Reference documentation and code samples for the Chronicle V1 API class Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.
Client for the RuleExecutionErrorService service.
RuleExecutionErrorService contains endpoints related to rule execution errors.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the RuleExecutionErrorService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all RuleExecutionErrorService clients ::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the RuleExecutionErrorService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#initialize
def initialize() { |config| ... } -> ClientCreate a new RuleExecutionErrorService client object.
- (config) — Configure the RuleExecutionErrorService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.new do |config| config.timeout = 10.0 end
#list_rule_execution_errors
def list_rule_execution_errors(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::RuleExecutionError>
def list_rule_execution_errors(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::RuleExecutionError>Lists rule execution errors.
def list_rule_execution_errors(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::RuleExecutionError>list_rule_execution_errors via a request object, either of type
ListRuleExecutionErrorsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ListRuleExecutionErrorsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_rule_execution_errors(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::RuleExecutionError>list_rule_execution_errors via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The instance to list rule execution errors from. Format: projects/{project}/locations/{location}/instances/{instance}
- page_size (::Integer) — The maximum number of rule execution errors to return. The service may return fewer than this value. If unspecified, at most 1000 rule execution errors will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
-
page_token (::String) — A page token, received from a previous
ListRuleExecutionErrorscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListRuleExecutionErrorsmust match the call that provided the page token. -
filter (::String) — A filter that can be used to retrieve specific rule execution errors.
Only the following filters are allowed:
rule = "\\{Rule.name}" curated_rule = "\\{CuratedRule.name}"The value for rule or curated_rule must be a valid rule resource name or a valid curated rule resource name specified in quotes.For 'rule', an optional 'revision_id' can be specified which can be used to fetch errors for a given revision of the rule. A '-' is also allowed to fetch errors across all revisions of the rule. If unspecified, only errors corresponding to the most recent revision of the rule will be returned. So these variations are all allowed:
rule = "\\{Rule.name}" rule = "\\{Rule.name}@\\{Rule.revision_id}" rule = "\\{Rule.name}@-"Revision IDs are not supported for curated rules.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::RuleExecutionError>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::RuleExecutionError>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ListRuleExecutionErrorsRequest.new # Call the list_rule_execution_errors method. result = client.list_rule_execution_errors request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Chronicle::V1::RuleExecutionError. p item end
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)