Class: Aws::EMR::Types::CloudWatchAlarmDefinition
- Inherits:
-
Struct
- Object
- Struct
- Aws::EMR::Types::CloudWatchAlarmDefinition
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-emr/types.rb
Overview
When making an API call, you may pass CloudWatchAlarmDefinition data as a hash:
{
comparison_operator: "GREATER_THAN_OR_EQUAL", # required, accepts GREATER_THAN_OR_EQUAL, GREATER_THAN, LESS_THAN, LESS_THAN_OR_EQUAL
evaluation_periods: 1,
metric_name: "String", # required
namespace: "String",
period: 1, # required
statistic: "SAMPLE_COUNT", # accepts SAMPLE_COUNT, AVERAGE, SUM, MINIMUM, MAXIMUM
threshold: 1.0, # required
unit: "NONE", # accepts NONE, SECONDS, MICRO_SECONDS, MILLI_SECONDS, BYTES, KILO_BYTES, MEGA_BYTES, GIGA_BYTES, TERA_BYTES, BITS, KILO_BITS, MEGA_BITS, GIGA_BITS, TERA_BITS, PERCENT, COUNT, BYTES_PER_SECOND, KILO_BYTES_PER_SECOND, MEGA_BYTES_PER_SECOND, GIGA_BYTES_PER_SECOND, TERA_BYTES_PER_SECOND, BITS_PER_SECOND, KILO_BITS_PER_SECOND, MEGA_BITS_PER_SECOND, GIGA_BITS_PER_SECOND, TERA_BITS_PER_SECOND, COUNT_PER_SECOND
dimensions: [
{
key: "String",
value: "String",
},
],
}
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.
Instance Attribute Summary collapse
-
#comparison_operator ⇒ String
Determines how the metric specified by ‘MetricName` is compared to the value specified by `Threshold`.
-
#dimensions ⇒ Array<Types::MetricDimension>
A CloudWatch metric dimension.
-
#evaluation_periods ⇒ Integer
The number of periods, expressed in seconds using ‘Period`, during which the alarm condition must exist before the alarm triggers automatic scaling activity.
-
#metric_name ⇒ String
The name of the CloudWatch metric that is watched to determine an alarm condition.
-
#namespace ⇒ String
The namespace for the CloudWatch metric.
-
#period ⇒ Integer
The period, in seconds, over which the statistic is applied.
-
#statistic ⇒ String
The statistic to apply to the metric associated with the alarm.
-
#threshold ⇒ Float
The value against which the specified statistic is compared.
-
#unit ⇒ String
The unit of measure associated with the CloudWatch metric being watched.
Instance Attribute Details
#comparison_operator ⇒ String
Determines how the metric specified by ‘MetricName` is compared to the value specified by `Threshold`.
693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/aws-sdk-emr/types.rb', line 693 class CloudWatchAlarmDefinition < Struct.new( :comparison_operator, :evaluation_periods, :metric_name, :namespace, :period, :statistic, :threshold, :unit, :dimensions) include Aws::Structure end |
#dimensions ⇒ Array<Types::MetricDimension>
A CloudWatch metric dimension.
693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/aws-sdk-emr/types.rb', line 693 class CloudWatchAlarmDefinition < Struct.new( :comparison_operator, :evaluation_periods, :metric_name, :namespace, :period, :statistic, :threshold, :unit, :dimensions) include Aws::Structure end |
#evaluation_periods ⇒ Integer
The number of periods, expressed in seconds using ‘Period`, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is `1`.
693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/aws-sdk-emr/types.rb', line 693 class CloudWatchAlarmDefinition < Struct.new( :comparison_operator, :evaluation_periods, :metric_name, :namespace, :period, :statistic, :threshold, :unit, :dimensions) include Aws::Structure end |
#metric_name ⇒ String
The name of the CloudWatch metric that is watched to determine an alarm condition.
693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/aws-sdk-emr/types.rb', line 693 class CloudWatchAlarmDefinition < Struct.new( :comparison_operator, :evaluation_periods, :metric_name, :namespace, :period, :statistic, :threshold, :unit, :dimensions) include Aws::Structure end |
#namespace ⇒ String
The namespace for the CloudWatch metric. The default is ‘AWS/ElasticMapReduce`.
693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/aws-sdk-emr/types.rb', line 693 class CloudWatchAlarmDefinition < Struct.new( :comparison_operator, :evaluation_periods, :metric_name, :namespace, :period, :statistic, :threshold, :unit, :dimensions) include Aws::Structure end |
#period ⇒ Integer
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`.
693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/aws-sdk-emr/types.rb', line 693 class CloudWatchAlarmDefinition < Struct.new( :comparison_operator, :evaluation_periods, :metric_name, :namespace, :period, :statistic, :threshold, :unit, :dimensions) include Aws::Structure end |
#statistic ⇒ String
The statistic to apply to the metric associated with the alarm. The default is ‘AVERAGE`.
693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/aws-sdk-emr/types.rb', line 693 class CloudWatchAlarmDefinition < Struct.new( :comparison_operator, :evaluation_periods, :metric_name, :namespace, :period, :statistic, :threshold, :unit, :dimensions) include Aws::Structure end |
#threshold ⇒ Float
The value against which the specified statistic is compared.
693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/aws-sdk-emr/types.rb', line 693 class CloudWatchAlarmDefinition < Struct.new( :comparison_operator, :evaluation_periods, :metric_name, :namespace, :period, :statistic, :threshold, :unit, :dimensions) include Aws::Structure end |
#unit ⇒ String
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.
693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/aws-sdk-emr/types.rb', line 693 class CloudWatchAlarmDefinition < Struct.new( :comparison_operator, :evaluation_periods, :metric_name, :namespace, :period, :statistic, :threshold, :unit, :dimensions) include Aws::Structure end |