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

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

Overview

Note:

When making an API call, you may pass PutMetricFilterRequest data as a 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,
      dimensions: {
        "DimensionsKey" => "DimensionsValue",
      },
      unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
    },
  ],
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#filter_nameString

A name for the metric filter.

Returns:

  • (String)

2128
2129
2130
2131
2132
2133
2134
2135
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 2128

class PutMetricFilterRequest < Struct.new(
  :log_group_name,
  :filter_name,
  :filter_pattern,
  :metric_transformations)
  SENSITIVE = []
  include Aws::Structure
end

#filter_patternString

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

Returns:

  • (String)

2128
2129
2130
2131
2132
2133
2134
2135
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 2128

class PutMetricFilterRequest < Struct.new(
  :log_group_name,
  :filter_name,
  :filter_pattern,
  :metric_transformations)
  SENSITIVE = []
  include Aws::Structure
end

#log_group_nameString

The name of the log group.

Returns:

  • (String)

2128
2129
2130
2131
2132
2133
2134
2135
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 2128

class PutMetricFilterRequest < Struct.new(
  :log_group_name,
  :filter_name,
  :filter_pattern,
  :metric_transformations)
  SENSITIVE = []
  include Aws::Structure
end

#metric_transformationsArray<Types::MetricTransformation>

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

Returns:


2128
2129
2130
2131
2132
2133
2134
2135
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 2128

class PutMetricFilterRequest < Struct.new(
  :log_group_name,
  :filter_name,
  :filter_pattern,
  :metric_transformations)
  SENSITIVE = []
  include Aws::Structure
end