Class: Aws::CloudWatchLogs::Types::TestMetricFilterRequest

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 TestMetricFilterRequest data as a hash:

{
  filter_pattern: "FilterPattern", # required
  log_event_messages: ["EventMessage"], # required
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#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)


2785
2786
2787
2788
2789
2790
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 2785

class TestMetricFilterRequest < Struct.new(
  :filter_pattern,
  :log_event_messages)
  SENSITIVE = []
  include Aws::Structure
end

#log_event_messagesArray<String>

The log event messages to test.

Returns:

  • (Array<String>)


2785
2786
2787
2788
2789
2790
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 2785

class TestMetricFilterRequest < Struct.new(
  :filter_pattern,
  :log_event_messages)
  SENSITIVE = []
  include Aws::Structure
end