Class: Ansible::Ruby::Modules::Ec2_metric_alarm
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ec2_metric_alarm
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb
Overview
Can create or delete AWS metric alarms. Metrics you wish to alarm on must already exist.
Instance Method Summary collapse
-
#alarm_actions ⇒ Array<String>, ...
A list of the names action(s) taken when the alarm is in the ‘alarm’ status.
-
#comparison ⇒ :<=, :<, :>, :>=?
Determines how the threshold value is compared.
-
#description ⇒ String?
A longer description of the alarm.
-
#dimensions ⇒ Hash?
Describes to what the alarm is applied.
-
#evaluation_periods ⇒ Integer?
The number of times in which the metric is evaluated before final calculation.
-
#insufficient_data_actions ⇒ Object?
A list of the names of action(s) to take when the alarm is in the ‘insufficient_data’ status.
-
#metric ⇒ String?
Name of the monitored metric (e.g. CPUUtilization),Metric must already exist.
-
#name ⇒ String
Unique name for the alarm.
-
#namespace ⇒ String?
Name of the appropriate namespace (‘AWS/EC2’, ‘System/Linux’, etc.), which determines the category it will appear under in cloudwatch.
-
#ok_actions ⇒ Object?
A list of the names of action(s) to take when the alarm is in the ‘ok’ status.
-
#period ⇒ Integer?
The time (in seconds) between metric evaluations.
-
#state ⇒ :present, :absent
Register or deregister the alarm.
-
#statistic ⇒ :SampleCount, ...
Operation applied to the metric,Works in conjunction with period and evaluation_periods to determine the comparison value.
-
#threshold ⇒ Float?
Sets the min/max bound for triggering the alarm.
-
#unit ⇒ :Seconds, ...
The threshold’s unit of measurement.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#alarm_actions ⇒ Array<String>, ...
Returns A list of the names action(s) taken when the alarm is in the ‘alarm’ status.
61 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 61 attribute :alarm_actions |
#comparison ⇒ :<=, :<, :>, :>=?
Returns Determines how the threshold value is compared.
33 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 33 attribute :comparison |
#description ⇒ String?
Returns A longer description of the alarm.
53 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 53 attribute :description |
#dimensions ⇒ Hash?
Returns Describes to what the alarm is applied.
57 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 57 attribute :dimensions |
#evaluation_periods ⇒ Integer?
Returns The number of times in which the metric is evaluated before final calculation.
45 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 45 attribute :evaluation_periods |
#insufficient_data_actions ⇒ Object?
Returns A list of the names of action(s) to take when the alarm is in the ‘insufficient_data’ status.
65 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 65 attribute :insufficient_data_actions |
#metric ⇒ String?
Returns Name of the monitored metric (e.g. CPUUtilization),Metric must already exist.
21 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 21 attribute :metric |
#name ⇒ String
Returns Unique name for the alarm.
17 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 17 attribute :name |
#namespace ⇒ String?
Returns Name of the appropriate namespace (‘AWS/EC2’, ‘System/Linux’, etc.), which determines the category it will appear under in cloudwatch.
25 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 25 attribute :namespace |
#ok_actions ⇒ Object?
Returns A list of the names of action(s) to take when the alarm is in the ‘ok’ status.
68 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 68 attribute :ok_actions |
#period ⇒ Integer?
Returns The time (in seconds) between metric evaluations.
41 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 41 attribute :period |
#state ⇒ :present, :absent
Returns register or deregister the alarm.
13 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 13 attribute :state |
#statistic ⇒ :SampleCount, ...
Returns Operation applied to the metric,Works in conjunction with period and evaluation_periods to determine the comparison value.
29 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 29 attribute :statistic |
#threshold ⇒ Float?
Returns Sets the min/max bound for triggering the alarm.
37 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 37 attribute :threshold |
#unit ⇒ :Seconds, ...
Returns The threshold’s unit of measurement.
49 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_metric_alarm.rb', line 49 attribute :unit |