Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data AlarmState = AlarmState' {}
- newAlarmState :: AlarmState
- alarmState_customerAction :: Lens' AlarmState (Maybe CustomerAction)
- alarmState_stateName :: Lens' AlarmState (Maybe AlarmStateName)
- alarmState_ruleEvaluation :: Lens' AlarmState (Maybe RuleEvaluation)
- alarmState_systemEvent :: Lens' AlarmState (Maybe SystemEvent)
Documentation
data AlarmState Source #
Contains information about the current state of the alarm.
See: newAlarmState
smart constructor.
AlarmState' | |
|
Instances
newAlarmState :: AlarmState Source #
Create a value of AlarmState
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:customerAction:AlarmState'
, alarmState_customerAction
- Contains information about the action that you can take to respond to
the alarm.
$sel:stateName:AlarmState'
, alarmState_stateName
- The name of the alarm state. The state name can be one of the following
values:
DISABLED
- When the alarm is in theDISABLED
state, it isn't ready to evaluate data. To enable the alarm, you must change the alarm to theNORMAL
state.NORMAL
- When the alarm is in theNORMAL
state, it's ready to evaluate data.ACTIVE
- If the alarm is in theACTIVE
state, the alarm is invoked.ACKNOWLEDGED
- When the alarm is in theACKNOWLEDGED
state, the alarm was invoked and you acknowledged the alarm.SNOOZE_DISABLED
- When the alarm is in theSNOOZE_DISABLED
state, the alarm is disabled for a specified period of time. After the snooze time, the alarm automatically changes to theNORMAL
state.LATCHED
- When the alarm is in theLATCHED
state, the alarm was invoked. However, the data that the alarm is currently evaluating is within the specified range. To change the alarm to theNORMAL
state, you must acknowledge the alarm.
$sel:ruleEvaluation:AlarmState'
, alarmState_ruleEvaluation
- Information needed to evaluate data.
$sel:systemEvent:AlarmState'
, alarmState_systemEvent
- Contains information about alarm state changes.
alarmState_customerAction :: Lens' AlarmState (Maybe CustomerAction) Source #
Contains information about the action that you can take to respond to the alarm.
alarmState_stateName :: Lens' AlarmState (Maybe AlarmStateName) Source #
The name of the alarm state. The state name can be one of the following values:
DISABLED
- When the alarm is in theDISABLED
state, it isn't ready to evaluate data. To enable the alarm, you must change the alarm to theNORMAL
state.NORMAL
- When the alarm is in theNORMAL
state, it's ready to evaluate data.ACTIVE
- If the alarm is in theACTIVE
state, the alarm is invoked.ACKNOWLEDGED
- When the alarm is in theACKNOWLEDGED
state, the alarm was invoked and you acknowledged the alarm.SNOOZE_DISABLED
- When the alarm is in theSNOOZE_DISABLED
state, the alarm is disabled for a specified period of time. After the snooze time, the alarm automatically changes to theNORMAL
state.LATCHED
- When the alarm is in theLATCHED
state, the alarm was invoked. However, the data that the alarm is currently evaluating is within the specified range. To change the alarm to theNORMAL
state, you must acknowledge the alarm.
alarmState_ruleEvaluation :: Lens' AlarmState (Maybe RuleEvaluation) Source #
Information needed to evaluate data.
alarmState_systemEvent :: Lens' AlarmState (Maybe SystemEvent) Source #
Contains information about alarm state changes.