Table of Contents

Module Members



new MetricFilter

Call this constructor to create a new Fugue.Core.AWS.CloudWatch.Logs.MetricFilter value

Example usage:

metricFilter: Logs.MetricFilter.new {
  logGroup: group0,
  name: "filter0",
  pattern: "pattern",
  metricTransformation: Logs.MetricTransformation.new(),

Type Signature

 fun { logGroup: LogGroup,
       name: String,
       pattern: String,
       metricTransformation: MetricTransformation,
       resourceId: Optional<String> } -> MetricFilter
Argument: logGroup

LogGroup to which this MetricFilter applies. A maximum of 100 MetricFilters can be specified for a LogGroup.

Type: LogGroup

Argument: name

The name of the MetricFilter.

Type: String

Argument: pattern

Pattern for extracting metric data out of ingested log events. For more details on pattern formats, see this page: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html Mutable.

Type: String

Argument: metricTransformation

A transformer that defines how metric data is emitted. Mutable.

Type: MetricTransformation

Argument: resourceId

Resource ID of the resource to import with Fugue import. This field is only honored on fugue run. The resource ID is the LogGroup ARN, the characters |||, and the MetricFilter name, concatenated.

Type: Optional<String>

Type: MetricFilter