Class: Aws::CloudWatchLogs::Types::MetricFilter
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchLogs::Types::MetricFilter
- Defined in:
- gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb
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.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#apply_on_transformed_logs ⇒ Boolean
This parameter is valid only for log groups that have an active log transformer.
-
#creation_time ⇒ Integer
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>
The list of system fields that are emitted as additional dimensions in the generated metrics.
-
#field_selection_criteria ⇒ String
The filter expression that specifies which log events are processed by this metric filter based on system fields.
-
#filter_name ⇒ String
The name of the metric filter.
-
#filter_pattern ⇒ String
A symbolic description of how CloudWatch Logs should interpret the data in each log event.
-
#log_group_name ⇒ String
The name of the log group.
-
#metric_transformations ⇒ Array<Types::MetricTransformation>
The metric transformations.
Instance Attribute Details
#apply_on_transformed_logs ⇒ Boolean
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.
4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4711 class MetricFilter < Struct.new( :filter_name, :filter_pattern, :metric_transformations, :creation_time, :log_group_name, :apply_on_transformed_logs, :field_selection_criteria, :emit_system_field_dimensions) SENSITIVE = [] include Aws::Structure end |
#creation_time ⇒ Integer
The creation time of the metric filter, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC
.
4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4711 class MetricFilter < Struct.new( :filter_name, :filter_pattern, :metric_transformations, :creation_time, :log_group_name, :apply_on_transformed_logs, :field_selection_criteria, :emit_system_field_dimensions) SENSITIVE = [] include Aws::Structure end |
#emit_system_field_dimensions ⇒ Array<String>
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.
4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4711 class MetricFilter < Struct.new( :filter_name, :filter_pattern, :metric_transformations, :creation_time, :log_group_name, :apply_on_transformed_logs, :field_selection_criteria, :emit_system_field_dimensions) SENSITIVE = [] include Aws::Structure end |
#field_selection_criteria ⇒ String
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.
4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4711 class MetricFilter < Struct.new( :filter_name, :filter_pattern, :metric_transformations, :creation_time, :log_group_name, :apply_on_transformed_logs, :field_selection_criteria, :emit_system_field_dimensions) SENSITIVE = [] include Aws::Structure end |
#filter_name ⇒ String
The name of the metric filter.
4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4711 class MetricFilter < Struct.new( :filter_name, :filter_pattern, :metric_transformations, :creation_time, :log_group_name, :apply_on_transformed_logs, :field_selection_criteria, :emit_system_field_dimensions) SENSITIVE = [] include Aws::Structure end |
#filter_pattern ⇒ String
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4711 class MetricFilter < Struct.new( :filter_name, :filter_pattern, :metric_transformations, :creation_time, :log_group_name, :apply_on_transformed_logs, :field_selection_criteria, :emit_system_field_dimensions) SENSITIVE = [] include Aws::Structure end |
#log_group_name ⇒ String
The name of the log group.
4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4711 class MetricFilter < Struct.new( :filter_name, :filter_pattern, :metric_transformations, :creation_time, :log_group_name, :apply_on_transformed_logs, :field_selection_criteria, :emit_system_field_dimensions) SENSITIVE = [] include Aws::Structure end |
#metric_transformations ⇒ Array<Types::MetricTransformation>
The metric transformations.
4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4711 class MetricFilter < Struct.new( :filter_name, :filter_pattern, :metric_transformations, :creation_time, :log_group_name, :apply_on_transformed_logs, :field_selection_criteria, :emit_system_field_dimensions) SENSITIVE = [] include Aws::Structure end |