Make calls into the busbyalarm system
Clear an alarm. The alarm to be triggered must be set in the busby configuration tool prior to making this call. Call clear alarm when the underlying cause of the alarm has been resolved. For alarms where it is not possible to know when the alarm has been resolved, make sure you set the alarm type as Latching.
the alarm id for the alarm to be triggered
// clears the alarm with alarm id 'my-alarm-id'
busby.clearAlarm("my-alarm-id")
Sets or clear alarms for selector tasks.
Trigger an alarm. The alarm to be triggered must be set in the busby configuration tool prior to making this call.
the alarm id for the alarm to be triggered
a brief description describing the reason this alarm has been triggered.
// triggers an alarm with an alarm id 'my-alarm-id'
busby.setAlarm("my-alarm-id", "This has gone wrong")