Class: Aws::CloudWatchLogs::Types::MetricTransformation
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchLogs::Types::MetricTransformation
- Defined in:
- gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb
Overview
When making an API call, you may pass MetricTransformation data as a 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.
Constant Summary collapse
- SENSITIVE =
[]
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.
1860 1861 1862 1863 1864 1865 1866 1867 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1860 class MetricTransformation < Struct.new( :metric_name, :metric_namespace, :metric_value, :default_value) SENSITIVE = [] include Aws::Structure end |
#metric_name ⇒ String
The name of the CloudWatch metric.
1860 1861 1862 1863 1864 1865 1866 1867 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1860 class MetricTransformation < Struct.new( :metric_name, :metric_namespace, :metric_value, :default_value) SENSITIVE = [] include Aws::Structure end |
#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.
1860 1861 1862 1863 1864 1865 1866 1867 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1860 class MetricTransformation < Struct.new( :metric_name, :metric_namespace, :metric_value, :default_value) SENSITIVE = [] include Aws::Structure end |
#metric_value ⇒ String
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
1860 1861 1862 1863 1864 1865 1866 1867 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1860 class MetricTransformation < Struct.new( :metric_name, :metric_namespace, :metric_value, :default_value) SENSITIVE = [] include Aws::Structure end |