You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CloudWatchLogs::Types::MetricTransformation
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchLogs::Types::MetricTransformation
- Defined in:
- (unknown)
Overview
When passing MetricTransformation as input to an Aws::Client method, you can use a vanilla Hash:
{
metric_name: "MetricName", # required
metric_namespace: "MetricNamespace", # required
metric_value: "MetricValue", # required
default_value: 1.0,
}
Indicates how to transform ingested log events to metric data in a CloudWatch metric.
Instance Attribute Summary collapse
-
#default_value ⇒ Float
(Optional) The value to emit when a filter pattern does not match a log event.
-
#metric_name ⇒ String
The name of the CloudWatch metric.
-
#metric_namespace ⇒ String
A custom namespace to contain your metric in CloudWatch.
-
#metric_value ⇒ String
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
Instance Attribute Details
#default_value ⇒ Float
(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
#metric_name ⇒ String
The name of the CloudWatch metric.
#metric_namespace ⇒ String
A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces.
#metric_value ⇒ String
The value to publish to the CloudWatch metric when a filter pattern matches a log event.