ServiceLevelObjectiveMetricStatArgs

data class ServiceLevelObjectiveMetricStatArgs(val metric: Output<ServiceLevelObjectiveMetricArgs>, val period: Output<Int>, val stat: Output<String>, val unit: Output<String>? = null) : ConvertibleToJava<ServiceLevelObjectiveMetricStatArgs>

A metric to be used directly for the SLO, or to be used in the math expression that will be used for the SLO. Within one MetricDataQuery object, you must specify either Expression or MetricStat but not both.

Constructors

Link copied to clipboard
constructor(metric: Output<ServiceLevelObjectiveMetricArgs>, period: Output<Int>, stat: Output<String>, unit: Output<String>? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val period: Output<Int>

The granularity, in seconds, to be used for the metric.

Link copied to clipboard
val stat: Output<String>

The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic.

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

If you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

Functions

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