You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CloudWatchLogs::Types::PutMetricFilterRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchLogs::Types::PutMetricFilterRequest
- Defined in:
- (unknown)
Overview
Note:
When passing PutMetricFilterRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
log_group_name: "LogGroupName", # required
filter_name: "FilterName", # required
filter_pattern: "FilterPattern", # required
metric_transformations: [ # required
{
metric_name: "MetricName", # required
metric_namespace: "MetricNamespace", # required
metric_value: "MetricValue", # required
default_value: 1.0,
},
],
}
Instance Attribute Summary collapse
-
#filter_name ⇒ String
A name for the metric filter.
-
#filter_pattern ⇒ String
A filter pattern for extracting metric data out of ingested log events.
-
#log_group_name ⇒ String
The name of the log group.
-
#metric_transformations ⇒ Array<Types::MetricTransformation>
A collection of information that defines how metric data gets emitted.
Instance Attribute Details
#filter_name ⇒ String
A name for the metric filter.
#filter_pattern ⇒ String
A filter pattern for extracting metric data out of ingested log events.
#log_group_name ⇒ String
The name of the log group.
#metric_transformations ⇒ Array<Types::MetricTransformation>
A collection of information that defines how metric data gets emitted.