class
Amazonite::CloudWatchLogs::PutMetricFilterRequest
- Amazonite::CloudWatchLogs::PutMetricFilterRequest
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
cloudwatch_logs/put_metric_filter_request.crConstructors
- .new(log_group_name : String, filter_name : String, filter_pattern : String, metric_transformations : Array(MetricTransformation), apply_on_transformed_logs : Bool | Nil = nil, field_selection_criteria : String | Nil = nil, emit_system_field_dimensions : Array(String) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#apply_on_transformed_logs : Bool | Nil
This parameter is valid only for log groups that have an active log transformer.
-
#apply_on_transformed_logs=(apply_on_transformed_logs : Bool | Nil)
This parameter is valid only for log groups that have an active log transformer.
-
#emit_system_field_dimensions : Array(String) | Nil
A list of system fields to emit as additional dimensions in the generated metrics.
-
#emit_system_field_dimensions=(emit_system_field_dimensions : Array(String) | Nil)
A list of system fields to emit as additional dimensions in the generated metrics.
-
#field_selection_criteria : String | Nil
A filter expression that specifies which log events should be processed by this metric filter based on system fields such as source account and source region.
-
#field_selection_criteria=(field_selection_criteria : String | Nil)
A filter expression that specifies which log events should be processed by this metric filter based on system fields such as source account and source region.
-
#filter_name : String
A name for the metric filter.
-
#filter_name=(filter_name : String)
A name for the metric filter.
-
#filter_pattern : String
A filter pattern for extracting metric data out of ingested log events.
-
#filter_pattern=(filter_pattern : String)
A filter pattern for extracting metric data out of ingested log events.
-
#hash(hasher)
See
Object#hash(hasher) -
#log_group_name : String
The name of the log group.
-
#log_group_name=(log_group_name : String)
The name of the log group.
-
#metric_transformations : Array(MetricTransformation)
A collection of information that defines how metric data gets emitted.
-
#metric_transformations=(metric_transformations : Array(MetricTransformation))
A collection of information that defines how metric data gets emitted.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer.
If the log group uses either a log-group level or account-level transformer, and you specify
true, the metric filter will be applied on the transformed version of the log events instead
of the original ingested log events.
This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer.
If the log group uses either a log-group level or account-level transformer, and you specify
true, the metric filter will be applied on the transformed version of the log events instead
of the original ingested log events.
A list of system fields to emit as additional dimensions in the generated metrics. Valid values
are @aws.account and @aws.region. These dimensions help identify the source of centralized
log data and count toward the total dimension limit for metric filters.
A list of system fields to emit as additional dimensions in the generated metrics. Valid values
are @aws.account and @aws.region. These dimensions help identify the source of centralized
log data and count toward the total dimension limit for metric filters.
A filter expression that specifies which log events should be processed by this metric filter
based on system fields such as source account and source region. Uses selection criteria syntax
with operators like =, !=, AND, OR, IN, NOT IN. Example: @aws.region = "us-east-1"
or @aws.account IN ["123456789012", "987654321098"]. Maximum length: 2000 characters.
A filter expression that specifies which log events should be processed by this metric filter
based on system fields such as source account and source region. Uses selection criteria syntax
with operators like =, !=, AND, OR, IN, NOT IN. Example: @aws.region = "us-east-1"
or @aws.account IN ["123456789012", "987654321098"]. Maximum length: 2000 characters.
A filter pattern for extracting metric data out of ingested log events.
A filter pattern for extracting metric data out of ingested log events.
A collection of information that defines how metric data gets emitted.
A collection of information that defines how metric data gets emitted.