class
Amazonite::CloudWatchLogs::MetricFilter
- Amazonite::CloudWatchLogs::MetricFilter
- Reference
- Object
Overview
Metric filters express how CloudWatch Logs would extract metric observations from ingested log events and transform them into metric data in a CloudWatch metric.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch_logs/metric_filter.crConstructors
- .new(pull : JSON::PullParser)
- .new(filter_name : String | Nil = nil, filter_pattern : String | Nil = nil, metric_transformations : Array(MetricTransformation) | Nil = nil, creation_time : Int64 | Nil = nil, log_group_name : String | Nil = nil, apply_on_transformed_logs : Bool | Nil = nil, field_selection_criteria : String | Nil = nil, emit_system_field_dimensions : Array(String) | Nil = nil)
- .new(*, __pull_for_json_serializable 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.
-
#creation_time : Int64 | Nil
The creation time of the metric filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC. -
#creation_time=(creation_time : Int64 | Nil)
The creation time of the metric filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC. -
#emit_system_field_dimensions : Array(String) | Nil
The list of system fields that are emitted as additional dimensions in the generated metrics.
-
#emit_system_field_dimensions=(emit_system_field_dimensions : Array(String) | Nil)
The list of system fields that are emitted as additional dimensions in the generated metrics.
-
#field_selection_criteria : String | Nil
The filter expression that specifies which log events are processed by this metric filter based on system fields.
-
#field_selection_criteria=(field_selection_criteria : String | Nil)
The filter expression that specifies which log events are processed by this metric filter based on system fields.
-
#filter_name : String | Nil
The name of the metric filter.
-
#filter_name=(filter_name : String | Nil)
The name of the metric filter.
- #filter_pattern : String | Nil
- #filter_pattern=(filter_pattern : String | Nil)
-
#hash(hasher)
See
Object#hash(hasher) -
#log_group_name : String | Nil
The name of the log group.
-
#log_group_name=(log_group_name : String | Nil)
The name of the log group.
-
#metric_transformations : Array(MetricTransformation) | Nil
The metric transformations.
-
#metric_transformations=(metric_transformations : Array(MetricTransformation) | Nil)
The metric transformations.
- #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 this value is true, the metric filter is 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 this value is true, the metric filter is applied on the transformed version of the log
events instead of the original ingested log events.
The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
The list of system fields that are emitted as additional dimensions in the generated metrics.
Returns the emitSystemFieldDimensions value if it was specified when the metric filter was
created.
The list of system fields that are emitted as additional dimensions in the generated metrics.
Returns the emitSystemFieldDimensions value if it was specified when the metric filter was
created.
The filter expression that specifies which log events are processed by this metric filter based
on system fields. Returns the fieldSelectionCriteria value if it was specified when the metric
filter was created.
The filter expression that specifies which log events are processed by this metric filter based
on system fields. Returns the fieldSelectionCriteria value if it was specified when the metric
filter was created.
The metric transformations.