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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing TestMetricFilterRequest as input to an Aws::Client method, you can use a vanilla 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 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)

    A symbolic description of how CloudWatch Logs should interpret the data in each log event.

#log_event_messagesArray<String>

The log event messages to test.

Returns:

  • (Array<String>)

    The log event messages to test.