NAME
Paws::EMR::CloudWatchAlarmDefinition
USAGE
This class represents one of two things:
Arguments in a call to a service
Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object.
As an example, if Att1 is expected to be a Paws::EMR::CloudWatchAlarmDefinition object:
$service_obj->Method(Att1 => { ComparisonOperator => $value, ..., Unit => $value });
Results returned from an API call
Use accessors for each attribute. If Att1 is expected to be an Paws::EMR::CloudWatchAlarmDefinition object:
$result = $service_obj->Method(...);
$result->Att1->ComparisonOperator
DESCRIPTION
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.
ATTRIBUTES
REQUIRED ComparisonOperator => Str
Determines how the metric specified by MetricName
is compared to the value specified by Threshold
.
Dimensions => ArrayRef[Paws::EMR::MetricDimension]
A CloudWatch metric dimension.
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
.
REQUIRED MetricName => Str
The name of the CloudWatch metric that is watched to determine an alarm condition.
Namespace => Str
The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce
.
REQUIRED 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
.
Statistic => Str
The statistic to apply to the metric associated with the alarm. The default is AVERAGE
.
REQUIRED Threshold => Num
The value against which the specified statistic is compared.
Unit => Str
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.
SEE ALSO
This class forms part of Paws, describing an object used in Paws::EMR
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues