ServiceLevelObjectiveMetricDataQueryArgs

data class ServiceLevelObjectiveMetricDataQueryArgs(val accountId: Output<String>? = null, val expression: Output<String>? = null, val id: Output<String>, val metricStat: Output<ServiceLevelObjectiveMetricStatArgs>? = null, val returnData: Output<Boolean>? = null) : ConvertibleToJava<ServiceLevelObjectiveMetricDataQueryArgs>

Use this structure to define a metric or metric math expression that you want to use as for a service level objective. Each MetricDataQuery in the MetricDataQueries array specifies either a metric to retrieve, or a metric math expression to be performed on retrieved metrics. A single MetricDataQueries array can include as many as 20 MetricDataQuery structures in the array. The 20 structures can include as many as 10 structures that contain a MetricStat parameter to retrieve a metric, and as many as 10 structures that contain the Expression parameter to perform a math expression. Of those Expression structures, exactly one must have true as the value for ReturnData. The result of this expression used for the SLO.

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, expression: Output<String>? = null, id: Output<String>, metricStat: Output<ServiceLevelObjectiveMetricStatArgs>? = null, returnData: Output<Boolean>? = null)

Properties

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

The ID of the account where the metrics are located, if this is a cross-account alarm.

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

The math expression to be performed on the returned data.

Link copied to clipboard
val id: Output<String>

A short name used to tie this object to the results in the response.

Link copied to clipboard

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, you must specify either Expression or MetricStat but not both.

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

This option indicates whether to return the timestamps and raw data values of this metric.

Functions

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