Constructor
new module:caplin/alerts/Trigger(properties)
Parameters:
Name | Type | Description |
---|---|---|
properties |
module:caplin/core/EmittingMap | The properties of this trigger. It should define 'subject', 'condition' and 'state' properties. |
Methods
-
getCondition() → {String}
-
Returns:
The condition that, when met, will cause this trigger to raise amodule:caplin/alerts/Notification
.- Type
- String
-
getState() → {module:caplin/alerts/TriggerStates}
-
Returns:
The state that the trigger is currently in. -
getSubject() → {String}
-
Returns:
The subject of the instrument that this trigger is monitoring.- Type
- String