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
show all
Defined in:
(unknown)

Overview

Note:

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

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)

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

#metric_nameString

The name of the CloudWatch metric.

Returns:

  • (String)

    The name of the CloudWatch metric.

#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)

    A custom namespace to contain your metric in CloudWatch.

#metric_valueString

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

Returns:

  • (String)

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