Class: Aws::CloudWatchLogs::Types::MetricFilter

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

Overview

Metric filters express how CloudWatch Logs would extract metric observations from ingested log events and transform them into metric data in a CloudWatch metric.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#creation_timeInteger

The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

Returns:

  • (Integer)


3300
3301
3302
3303
3304
3305
3306
3307
3308
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 3300

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

#filter_nameString

The name of the metric filter.

Returns:

  • (String)


3300
3301
3302
3303
3304
3305
3306
3307
3308
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 3300

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

#filter_patternString

A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.

Returns:

  • (String)


3300
3301
3302
3303
3304
3305
3306
3307
3308
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 3300

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

#log_group_nameString

The name of the log group.

Returns:

  • (String)


3300
3301
3302
3303
3304
3305
3306
3307
3308
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 3300

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

#metric_transformationsArray<Types::MetricTransformation>

The metric transformations.

Returns:



3300
3301
3302
3303
3304
3305
3306
3307
3308
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 3300

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