cloudwatchlogs_test_metric_filter: Tests the filter pattern of a metric filter against a sample...

Description Usage Arguments Value Request syntax

View source: R/cloudwatchlogs_operations.R

Description

Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.

Usage

1
cloudwatchlogs_test_metric_filter(filterPattern, logEventMessages)

Arguments

filterPattern

[required]

logEventMessages

[required] The log event messages to test.

Value

A list with the following syntax:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
list(
  matches = list(
    list(
      eventNumber = 123,
      eventMessage = "string",
      extractedValues = list(
        "string"
      )
    )
  )
)

Request syntax

1
2
3
4
5
6
svc$test_metric_filter(
  filterPattern = "string",
  logEventMessages = list(
    "string"
  )
)

paws.management documentation built on March 8, 2021, 1:07 a.m.