You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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
}

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


1678
1679
1680
1681
1682
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1678

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

#log_event_messagesArray<String>

The log event messages to test.

Returns:

  • (Array<String>)


1678
1679
1680
1681
1682
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1678

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