CloudWatchAlarmDefinition class

The definition of a CloudWatch metric alarm, which determines when an automatic scaling activity is triggered. When the defined alarm conditions are satisfied, scaling activity begins.

Constructors

CloudWatchAlarmDefinition({required ComparisonOperator comparisonOperator, required String metricName, required int period, required double threshold, List<MetricDimension>? dimensions, int? evaluationPeriods, String? namespace, Statistic? statistic, Unit? unit})
CloudWatchAlarmDefinition.fromJson(Map<String, dynamic> json)
factory

Properties

comparisonOperator ComparisonOperator
Determines how the metric specified by MetricName is compared to the value specified by Threshold.
final
dimensions List<MetricDimension>?
A CloudWatch metric dimension.
final
evaluationPeriods int?
The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is 1.
final
hashCode int
The hash code for this object.
no setterinherited
metricName String
The name of the CloudWatch metric that is watched to determine an alarm condition.
final
namespace String?
The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce.
final
period int
The period, in seconds, over which the statistic is applied. EMR CloudWatch metrics are emitted every five minutes (300 seconds), so if an EMR CloudWatch metric is specified, specify 300.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statistic Statistic?
The statistic to apply to the metric associated with the alarm. The default is AVERAGE.
final
threshold double
The value against which the specified statistic is compared.
final
unit Unit?
The unit of measure associated with the CloudWatch metric being watched. The value specified for Unit must correspond to the units specified in the CloudWatch metric.
final

Methods

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

Operators

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