Class: Aws::EMR::Types::CloudWatchAlarmDefinition

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-emr/types.rb

Overview

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#comparison_operatorString

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

Returns:

  • (String)


554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/aws-sdk-emr/types.rb', line 554

class CloudWatchAlarmDefinition < Struct.new(
  :comparison_operator,
  :evaluation_periods,
  :metric_name,
  :namespace,
  :period,
  :statistic,
  :threshold,
  :unit,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#dimensionsArray<Types::MetricDimension>

A CloudWatch metric dimension.

Returns:



554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/aws-sdk-emr/types.rb', line 554

class CloudWatchAlarmDefinition < Struct.new(
  :comparison_operator,
  :evaluation_periods,
  :metric_name,
  :namespace,
  :period,
  :statistic,
  :threshold,
  :unit,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#evaluation_periodsInteger

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

Returns:

  • (Integer)


554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/aws-sdk-emr/types.rb', line 554

class CloudWatchAlarmDefinition < Struct.new(
  :comparison_operator,
  :evaluation_periods,
  :metric_name,
  :namespace,
  :period,
  :statistic,
  :threshold,
  :unit,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#metric_nameString

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

Returns:

  • (String)


554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/aws-sdk-emr/types.rb', line 554

class CloudWatchAlarmDefinition < Struct.new(
  :comparison_operator,
  :evaluation_periods,
  :metric_name,
  :namespace,
  :period,
  :statistic,
  :threshold,
  :unit,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#namespaceString

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

Returns:

  • (String)


554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/aws-sdk-emr/types.rb', line 554

class CloudWatchAlarmDefinition < Struct.new(
  :comparison_operator,
  :evaluation_periods,
  :metric_name,
  :namespace,
  :period,
  :statistic,
  :threshold,
  :unit,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#periodInteger

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

Returns:

  • (Integer)


554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/aws-sdk-emr/types.rb', line 554

class CloudWatchAlarmDefinition < Struct.new(
  :comparison_operator,
  :evaluation_periods,
  :metric_name,
  :namespace,
  :period,
  :statistic,
  :threshold,
  :unit,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#statisticString

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

Returns:

  • (String)


554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/aws-sdk-emr/types.rb', line 554

class CloudWatchAlarmDefinition < Struct.new(
  :comparison_operator,
  :evaluation_periods,
  :metric_name,
  :namespace,
  :period,
  :statistic,
  :threshold,
  :unit,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#thresholdFloat

The value against which the specified statistic is compared.

Returns:

  • (Float)


554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/aws-sdk-emr/types.rb', line 554

class CloudWatchAlarmDefinition < Struct.new(
  :comparison_operator,
  :evaluation_periods,
  :metric_name,
  :namespace,
  :period,
  :statistic,
  :threshold,
  :unit,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#unitString

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.

Returns:

  • (String)


554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/aws-sdk-emr/types.rb', line 554

class CloudWatchAlarmDefinition < Struct.new(
  :comparison_operator,
  :evaluation_periods,
  :metric_name,
  :namespace,
  :period,
  :statistic,
  :threshold,
  :unit,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end