LogMetricFilterMetricTransformationArgs

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

Constructors

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

Functions

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

Properties

Link copied to clipboard
val defaultValue: Output<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: Output<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
val name: Output<String>

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

Link copied to clipboard
val namespace: Output<String>

The destination namespace of the CloudWatch metric.

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

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

Link copied to clipboard
val value: Output<String>

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.