LogMetricFilterMetricTransformation

data class LogMetricFilterMetricTransformation(val defaultValue: String? = null, val dimensions: Map<String, String>? = null, val name: String, val namespace: String, val unit: String? = null, val value: String)

Constructors

Link copied to clipboard
constructor(defaultValue: String? = null, dimensions: Map<String, String>? = null, name: String, namespace: String, unit: String? = null, value: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val defaultValue: String? = null

The value to emit when a filter pattern does not match a log event. Conflicts with dimensions.

Link copied to clipboard
val dimensions: Map<String, String>? = null

Map of fields to use as dimensions for the metric. Up to 3 dimensions are allowed. Conflicts with default_value.

Link copied to clipboard

The name of the CloudWatch metric to which the monitored log information should be published (e.g., ErrorCount)

Link copied to clipboard

The destination namespace of the CloudWatch metric.

Link copied to clipboard
val unit: String? = null

The unit to assign to the metric. If you omit this, the unit is set as None.

Link copied to clipboard

What to publish to the metric. For example, if you're counting the occurrences of a particular term like "Error", the value will be "1" for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event.