Class: Aws::CloudWatchLogs::Types::MetricTransformation

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb

Overview

Note:

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

Instance Attribute Details

#default_valueFloat

(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.

Returns:

  • (Float)


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_nameString

The name of the CloudWatch metric.

Returns:

  • (String)


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_namespaceString

A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces.

Returns:

  • (String)


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_valueString

The value to publish to the CloudWatch metric when a filter pattern matches a log event.

Returns:

  • (String)


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