cloudwatchlogs_put_metric_filter: Creates or updates a metric filter and associates it with the...

Description Usage Arguments Value Request syntax

View source: R/cloudwatchlogs_operations.R

Description

Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through put_log_events.

The maximum number of metric filters that can be associated with a log group is 100.

Usage

1
2
cloudwatchlogs_put_metric_filter(logGroupName, filterName,
  filterPattern, metricTransformations)

Arguments

logGroupName

[required] The name of the log group.

filterName

[required] A name for the metric filter.

filterPattern

[required] A filter pattern for extracting metric data out of ingested log events.

metricTransformations

[required] A collection of information that defines how metric data gets emitted.

Value

An empty list.

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
svc$put_metric_filter(
  logGroupName = "string",
  filterName = "string",
  filterPattern = "string",
  metricTransformations = list(
    list(
      metricName = "string",
      metricNamespace = "string",
      metricValue = "string",
      defaultValue = 123.0
    )
  )
)

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