libZSservicesZSamazonka-emrZSamazonka-emr
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.EMR.Types.CloudWatchAlarmDefinition

Description

 
Synopsis

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.

Constructors

CloudWatchAlarmDefinition' 

Fields

  • evaluationPeriods :: Maybe 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.

  • namespace :: Maybe Text

    The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce.

  • dimensions :: Maybe [MetricDimension]

    A CloudWatch metric dimension.

  • unit :: Maybe 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.

  • statistic :: Maybe Statistic

    The statistic to apply to the metric associated with the alarm. The default is AVERAGE.

  • comparisonOperator :: ComparisonOperator

    Determines how the metric specified by MetricName is compared to the value specified by Threshold.

  • metricName :: Text

    The name of the CloudWatch metric that is watched to determine an alarm condition.

  • 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.

  • threshold :: Double

    The value against which the specified statistic is compared.

Instances

Instances details
Eq CloudWatchAlarmDefinition Source # 
Instance details

Defined in Amazonka.EMR.Types.CloudWatchAlarmDefinition

Read CloudWatchAlarmDefinition Source # 
Instance details

Defined in Amazonka.EMR.Types.CloudWatchAlarmDefinition

Show CloudWatchAlarmDefinition Source # 
Instance details

Defined in Amazonka.EMR.Types.CloudWatchAlarmDefinition

Generic CloudWatchAlarmDefinition Source # 
Instance details

Defined in Amazonka.EMR.Types.CloudWatchAlarmDefinition

Associated Types

type Rep CloudWatchAlarmDefinition :: Type -> Type #

NFData CloudWatchAlarmDefinition Source # 
Instance details

Defined in Amazonka.EMR.Types.CloudWatchAlarmDefinition

Hashable CloudWatchAlarmDefinition Source # 
Instance details

Defined in Amazonka.EMR.Types.CloudWatchAlarmDefinition

ToJSON CloudWatchAlarmDefinition Source # 
Instance details

Defined in Amazonka.EMR.Types.CloudWatchAlarmDefinition

FromJSON CloudWatchAlarmDefinition Source # 
Instance details

Defined in Amazonka.EMR.Types.CloudWatchAlarmDefinition

type Rep CloudWatchAlarmDefinition Source # 
Instance details

Defined in Amazonka.EMR.Types.CloudWatchAlarmDefinition

newCloudWatchAlarmDefinition Source #

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_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.