Class: Aws::CloudWatch::Types::SetAlarmStateInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatch::Types::SetAlarmStateInput
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudwatch/types.rb
Overview
Note:
When making an API call, you may pass SetAlarmStateInput data as a hash:
{
alarm_name: "AlarmName", # required
state_value: "OK", # required, accepts OK, ALARM, INSUFFICIENT_DATA
state_reason: "StateReason", # required
state_reason_data: "StateReasonData",
}
Instance Attribute Summary collapse
-
#alarm_name ⇒ String
The name for the alarm.
-
#state_reason ⇒ String
The reason that this alarm is set to this specific state, in text format.
-
#state_reason_data ⇒ String
The reason that this alarm is set to this specific state, in JSON format.
-
#state_value ⇒ String
The value of the state.
Instance Attribute Details
#alarm_name ⇒ String
The name for the alarm. This name must be unique within the AWS account. The maximum length is 255 characters.
1956 1957 1958 1959 1960 1961 1962 |
# File 'lib/aws-sdk-cloudwatch/types.rb', line 1956 class SetAlarmStateInput < Struct.new( :alarm_name, :state_value, :state_reason, :state_reason_data) include Aws::Structure end |
#state_reason ⇒ String
The reason that this alarm is set to this specific state, in text format.
1956 1957 1958 1959 1960 1961 1962 |
# File 'lib/aws-sdk-cloudwatch/types.rb', line 1956 class SetAlarmStateInput < Struct.new( :alarm_name, :state_value, :state_reason, :state_reason_data) include Aws::Structure end |
#state_reason_data ⇒ String
The reason that this alarm is set to this specific state, in JSON format.
1956 1957 1958 1959 1960 1961 1962 |
# File 'lib/aws-sdk-cloudwatch/types.rb', line 1956 class SetAlarmStateInput < Struct.new( :alarm_name, :state_value, :state_reason, :state_reason_data) include Aws::Structure end |
#state_value ⇒ String
The value of the state.
1956 1957 1958 1959 1960 1961 1962 |
# File 'lib/aws-sdk-cloudwatch/types.rb', line 1956 class SetAlarmStateInput < Struct.new( :alarm_name, :state_value, :state_reason, :state_reason_data) include Aws::Structure end |