AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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

Class: Aws::CloudWatchLogs::Types::PutMetricFilterRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing PutMetricFilterRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  log_group_name: "LogGroupName", # required
  filter_name: "FilterName", # required
  filter_pattern: "FilterPattern", # required
  metric_transformations: [ # required
    {
      metric_name: "MetricName", # required
      metric_namespace: "MetricNamespace", # required
      metric_value: "MetricValue", # required
      default_value: 1.0,
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#filter_nameString

A name for the metric filter.

Returns:

  • (String)

    A name for the metric filter.

#filter_patternString

A filter pattern for extracting metric data out of ingested log events.

Returns:

  • (String)

    A filter pattern for extracting metric data out of ingested log events.

#log_group_nameString

The name of the log group.

Returns:

  • (String)

    The name of the log group.

#metric_transformationsArray<Types::MetricTransformation>

A collection of information that defines how metric data gets emitted.

Returns: