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

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 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,
    },
  ],
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#filter_nameString

A name for the metric filter.

Returns:

  • (String)


2080
2081
2082
2083
2084
2085
2086
2087
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 2080

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)


2080
2081
2082
2083
2084
2085
2086
2087
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 2080

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)


2080
2081
2082
2083
2084
2085
2086
2087
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 2080

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:



2080
2081
2082
2083
2084
2085
2086
2087
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 2080

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