You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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 in to metric data in a CloudWatch metric.

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)


1372
1373
1374
1375
1376
1377
1378
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1372

class MetricTransformation < Struct.new(
  :metric_name,
  :metric_namespace,
  :metric_value,
  :default_value)
  include Aws::Structure
end

#metric_nameString

The name of the CloudWatch metric.

Returns:

  • (String)


1372
1373
1374
1375
1376
1377
1378
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1372

class MetricTransformation < Struct.new(
  :metric_name,
  :metric_namespace,
  :metric_value,
  :default_value)
  include Aws::Structure
end

#metric_namespaceString

The namespace of the CloudWatch metric.

Returns:

  • (String)


1372
1373
1374
1375
1376
1377
1378
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1372

class MetricTransformation < Struct.new(
  :metric_name,
  :metric_namespace,
  :metric_value,
  :default_value)
  include Aws::Structure
end

#metric_valueString

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

Returns:

  • (String)


1372
1373
1374
1375
1376
1377
1378
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1372

class MetricTransformation < Struct.new(
  :metric_name,
  :metric_namespace,
  :metric_value,
  :default_value)
  include Aws::Structure
end