/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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.See Also:
AWS
* API Reference
Determines how the metric specified by MetricName
is compared to
* the value specified by Threshold
.
Determines how the metric specified by MetricName
is compared to
* the value specified by Threshold
.
Determines how the metric specified by MetricName
is compared to
* the value specified by Threshold
.
Determines how the metric specified by MetricName
is compared to
* the value specified by Threshold
.
Determines how the metric specified by MetricName
is compared to
* the value specified by Threshold
.
Determines how the metric specified by MetricName
is compared to
* the value specified by Threshold
.
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
.
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
.
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
.
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
.
The name of the CloudWatch metric that is watched to determine an alarm * condition.
*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *The name of the CloudWatch metric that is watched to determine an alarm * condition.
*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *The name of the CloudWatch metric that is watched to determine an alarm * condition.
*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *The name of the CloudWatch metric that is watched to determine an alarm * condition.
*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *The name of the CloudWatch metric that is watched to determine an alarm * condition.
*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *The name of the CloudWatch metric that is watched to determine an alarm * condition.
*/ inline CloudWatchAlarmDefinition& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *The name of the CloudWatch metric that is watched to determine an alarm * condition.
*/ inline CloudWatchAlarmDefinition& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *The name of the CloudWatch metric that is watched to determine an alarm * condition.
*/ inline CloudWatchAlarmDefinition& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *The namespace for the CloudWatch metric. The default is
* AWS/ElasticMapReduce
.
The namespace for the CloudWatch metric. The default is
* AWS/ElasticMapReduce
.
The namespace for the CloudWatch metric. The default is
* AWS/ElasticMapReduce
.
The namespace for the CloudWatch metric. The default is
* AWS/ElasticMapReduce
.
The namespace for the CloudWatch metric. The default is
* AWS/ElasticMapReduce
.
The namespace for the CloudWatch metric. The default is
* AWS/ElasticMapReduce
.
The namespace for the CloudWatch metric. The default is
* AWS/ElasticMapReduce
.
The namespace for the CloudWatch metric. The default is
* AWS/ElasticMapReduce
.
The period, in seconds, over which the statistic is applied. CloudWatch
* metrics for Amazon EMR are emitted every five minutes (300 seconds), so if you
* specify a CloudWatch metric, specify 300
.
The period, in seconds, over which the statistic is applied. CloudWatch
* metrics for Amazon EMR are emitted every five minutes (300 seconds), so if you
* specify a CloudWatch metric, specify 300
.
The period, in seconds, over which the statistic is applied. CloudWatch
* metrics for Amazon EMR are emitted every five minutes (300 seconds), so if you
* specify a CloudWatch metric, specify 300
.
The period, in seconds, over which the statistic is applied. CloudWatch
* metrics for Amazon EMR are emitted every five minutes (300 seconds), so if you
* specify a CloudWatch metric, specify 300
.
The statistic to apply to the metric associated with the alarm. The default
* is AVERAGE
.
The statistic to apply to the metric associated with the alarm. The default
* is AVERAGE
.
The statistic to apply to the metric associated with the alarm. The default
* is AVERAGE
.
The statistic to apply to the metric associated with the alarm. The default
* is AVERAGE
.
The statistic to apply to the metric associated with the alarm. The default
* is AVERAGE
.
The statistic to apply to the metric associated with the alarm. The default
* is AVERAGE
.
The value against which the specified statistic is compared.
*/ inline double GetThreshold() const{ return m_threshold; } /** *The value against which the specified statistic is compared.
*/ inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; } /** *The value against which the specified statistic is compared.
*/ inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; } /** *The value against which the specified statistic is compared.
*/ inline CloudWatchAlarmDefinition& WithThreshold(double value) { SetThreshold(value); return *this;} /** *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.
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.
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.
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.
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.
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.
A CloudWatch metric dimension.
*/ inline const Aws::VectorA CloudWatch metric dimension.
*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *A CloudWatch metric dimension.
*/ inline void SetDimensions(const Aws::VectorA CloudWatch metric dimension.
*/ inline void SetDimensions(Aws::VectorA CloudWatch metric dimension.
*/ inline CloudWatchAlarmDefinition& WithDimensions(const Aws::VectorA CloudWatch metric dimension.
*/ inline CloudWatchAlarmDefinition& WithDimensions(Aws::VectorA CloudWatch metric dimension.
*/ inline CloudWatchAlarmDefinition& AddDimensions(const MetricDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; } /** *A CloudWatch metric dimension.
*/ inline CloudWatchAlarmDefinition& AddDimensions(MetricDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; } private: ComparisonOperator m_comparisonOperator; bool m_comparisonOperatorHasBeenSet = false; int m_evaluationPeriods; bool m_evaluationPeriodsHasBeenSet = false; Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; int m_period; bool m_periodHasBeenSet = false; Statistic m_statistic; bool m_statisticHasBeenSet = false; double m_threshold; bool m_thresholdHasBeenSet = false; Unit m_unit; bool m_unitHasBeenSet = false; Aws::Vector