MetricAlarmMetricQuery constructor
Creates a new MetricAlarmMetricQuery.
accountId The ID of the account where the metrics are located, if this is a cross-account alarm.
expression A Metrics Insights query or a metric math expression to be evaluated on the returned data.
id A short name used to tie this object to the results in the response. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.
label A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents.
metric The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
period Granularity in seconds of returned data points.
returnData Specify exactly one metricQuery to be true to use that metricQuery result as the alarm.
Implementation
const MetricAlarmMetricQuery({
this.accountId,
this.expression,
required this.id,
this.label,
this.metric,
this.period,
this.returnData,
});