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

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#apply_on_transformed_logsBoolean

This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see [PutTransformer].

If the log group uses either a log-group level or account-level transformer, and you specify ‘true`, the metric filter will be applied on the transformed version of the log events instead of the original ingested log events.

[1]: docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html

Returns:

  • (Boolean)


6314
6315
6316
6317
6318
6319
6320
6321
6322
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 6314

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

#filter_nameString

A name for the metric filter.

Returns:

  • (String)


6314
6315
6316
6317
6318
6319
6320
6321
6322
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 6314

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

#filter_patternString

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

Returns:

  • (String)


6314
6315
6316
6317
6318
6319
6320
6321
6322
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 6314

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

#log_group_nameString

The name of the log group.

Returns:

  • (String)


6314
6315
6316
6317
6318
6319
6320
6321
6322
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 6314

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

#metric_transformationsArray<Types::MetricTransformation>

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

Returns:



6314
6315
6316
6317
6318
6319
6320
6321
6322
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 6314

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