Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data CloudWatchAlarmDefinition = CloudWatchAlarmDefinition' {}
- newCloudWatchAlarmDefinition :: ComparisonOperator -> Text -> Int -> Double -> CloudWatchAlarmDefinition
- cloudWatchAlarmDefinition_evaluationPeriods :: Lens' CloudWatchAlarmDefinition (Maybe Int)
- cloudWatchAlarmDefinition_namespace :: Lens' CloudWatchAlarmDefinition (Maybe Text)
- cloudWatchAlarmDefinition_dimensions :: Lens' CloudWatchAlarmDefinition (Maybe [MetricDimension])
- cloudWatchAlarmDefinition_unit :: Lens' CloudWatchAlarmDefinition (Maybe Unit)
- cloudWatchAlarmDefinition_statistic :: Lens' CloudWatchAlarmDefinition (Maybe Statistic)
- cloudWatchAlarmDefinition_comparisonOperator :: Lens' CloudWatchAlarmDefinition ComparisonOperator
- cloudWatchAlarmDefinition_metricName :: Lens' CloudWatchAlarmDefinition Text
- cloudWatchAlarmDefinition_period :: Lens' CloudWatchAlarmDefinition Int
- cloudWatchAlarmDefinition_threshold :: Lens' CloudWatchAlarmDefinition Double
Documentation
data CloudWatchAlarmDefinition Source #
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: newCloudWatchAlarmDefinition
smart constructor.
CloudWatchAlarmDefinition' | |
|
Instances
newCloudWatchAlarmDefinition Source #
:: ComparisonOperator | |
-> Text | |
-> Int | |
-> Double | |
-> CloudWatchAlarmDefinition |
Create a value of CloudWatchAlarmDefinition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:evaluationPeriods:CloudWatchAlarmDefinition'
, cloudWatchAlarmDefinition_evaluationPeriods
- 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
.
$sel:namespace:CloudWatchAlarmDefinition'
, cloudWatchAlarmDefinition_namespace
- The namespace for the CloudWatch metric. The default is
AWS/ElasticMapReduce
.
$sel:dimensions:CloudWatchAlarmDefinition'
, cloudWatchAlarmDefinition_dimensions
- A CloudWatch metric dimension.
$sel:unit:CloudWatchAlarmDefinition'
, cloudWatchAlarmDefinition_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.
$sel:statistic:CloudWatchAlarmDefinition'
, cloudWatchAlarmDefinition_statistic
- The statistic to apply to the metric associated with the alarm. The
default is AVERAGE
.
$sel:comparisonOperator:CloudWatchAlarmDefinition'
, cloudWatchAlarmDefinition_comparisonOperator
- Determines how the metric specified by MetricName
is compared to the
value specified by Threshold
.
$sel:metricName:CloudWatchAlarmDefinition'
, cloudWatchAlarmDefinition_metricName
- The name of the CloudWatch metric that is watched to determine an alarm
condition.
$sel:period:CloudWatchAlarmDefinition'
, cloudWatchAlarmDefinition_period
- 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
.
$sel:threshold:CloudWatchAlarmDefinition'
, cloudWatchAlarmDefinition_threshold
- The value against which the specified statistic is compared.
cloudWatchAlarmDefinition_evaluationPeriods :: Lens' CloudWatchAlarmDefinition (Maybe Int) Source #
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
.
cloudWatchAlarmDefinition_namespace :: Lens' CloudWatchAlarmDefinition (Maybe Text) Source #
The namespace for the CloudWatch metric. The default is
AWS/ElasticMapReduce
.
cloudWatchAlarmDefinition_dimensions :: Lens' CloudWatchAlarmDefinition (Maybe [MetricDimension]) Source #
A CloudWatch metric dimension.
cloudWatchAlarmDefinition_unit :: Lens' CloudWatchAlarmDefinition (Maybe Unit) Source #
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.
cloudWatchAlarmDefinition_statistic :: Lens' CloudWatchAlarmDefinition (Maybe Statistic) Source #
The statistic to apply to the metric associated with the alarm. The
default is AVERAGE
.
cloudWatchAlarmDefinition_comparisonOperator :: Lens' CloudWatchAlarmDefinition ComparisonOperator Source #
Determines how the metric specified by MetricName
is compared to the
value specified by Threshold
.
cloudWatchAlarmDefinition_metricName :: Lens' CloudWatchAlarmDefinition Text Source #
The name of the CloudWatch metric that is watched to determine an alarm condition.
cloudWatchAlarmDefinition_period :: Lens' CloudWatchAlarmDefinition Int Source #
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
.
cloudWatchAlarmDefinition_threshold :: Lens' CloudWatchAlarmDefinition Double Source #
The value against which the specified statistic is compared.