MetricFilterArgs

data class MetricFilterArgs(val applyOnTransformedLogs: Output<Boolean>? = null, val filterName: Output<String>? = null, val filterPattern: Output<String>? = null, val logGroupName: Output<String>? = null, val metricTransformations: Output<List<MetricFilterMetricTransformationArgs>>? = null) : ConvertibleToJava<MetricFilterArgs>

The `AWS::Logs::MetricFilter` resource specifies a metric filter that describes how CWL extracts information from logs and transforms it into Amazon CloudWatch metrics. If you have multiple metric filters that are associated with a log group, all the filters are applied to the log streams in that group. The maximum number of metric filters that can be associated with a log group is 100.

Constructors

Link copied to clipboard
constructor(applyOnTransformedLogs: Output<Boolean>? = null, filterName: Output<String>? = null, filterPattern: Output<String>? = null, logGroupName: Output<String>? = null, metricTransformations: Output<List<MetricFilterMetricTransformationArgs>>? = null)

Properties

Link copied to clipboard
val applyOnTransformedLogs: Output<Boolean>? = null

This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer. If this value is `true`, the metric filter is applied on the transformed version of the log events instead of the original ingested log events.

Link copied to clipboard
val filterName: Output<String>? = null

The name of the metric filter.

Link copied to clipboard
val filterPattern: Output<String>? = null

A filter pattern for extracting metric data out of ingested log events. For more information, see Filter and Pattern Syntax.

Link copied to clipboard
val logGroupName: Output<String>? = null

The name of an existing log group that you want to associate with this metric filter.

Link copied to clipboard

The metric transformations.

Functions

Link copied to clipboard
open override fun toJava(): MetricFilterArgs