MetricAlarmMetricQuery class

Constructors

MetricAlarmMetricQuery({Input<String?>? accountId, Input<String?>? expression, required Input<String> id, Input<String?>? label, Input<MetricAlarmMetricQueryMetric?>? metric, Input<int?>? period, Input<bool?>? returnData})
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.
const
MetricAlarmMetricQuery.fromMap(Map<String, dynamic> map)
factory

Properties

accountId → Input<String?>?
The ID of the account where the metrics are located, if this is a cross-account alarm.
final
expression → Input<String?>?
A Metrics Insights query or a metric math expression to be evaluated on the returned data. For details about Metrics Insights queries, see Metrics Insights query components and syntax in the AWS documentation. For details about metric math expressions, see Metric Math Syntax and Functions in the AWS documentation.
final
hashCode → int
The hash code for this object.
no setterinherited
id → Input<String>
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.
final
label → Input<String?>?
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.
final
metric → Input<MetricAlarmMetricQueryMetric?>?
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.
final
period → Input<int?>?
Granularity in seconds of returned data points. For metrics with regular resolution, valid values are any multiple of 60. For high-resolution metrics, valid values are 1, 5, 10, 20, 30, or any multiple of 60.
final
returnData → Input<bool?>?
Specify exactly one metricQuery to be true to use that metricQuery result as the alarm.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited