Alarm Handling
Pre-requisite
- The user has to be signed in to perform the following operations.
- The user should have an active pro-monitoring plan activated on the space.
Acknowledging Alarms
To acknowledge an alarm, The following method can be used:
spaceId(required): The space ID of the User.eventId(required): The event ID of the Alarm.
Factory.proMonitoringService.acknowledgeAlarm(spaceId: String, eventId: String) -> IVPublisher<Void>
Getting Currently Live Alarm
To get the live alarm, The following method can be used:
spaceId(required): The space ID of the User.
Factory.proMonitoringService.getLiveAlarm(spaceId: String) -> IVPublisher<LiveAlarmModel>
Dismissing an Alarm
To dismiss an alarm inside its dismissal window — so the monitoring centre does not escalate it — The following method can be used:
spaceId(required): The space ID of the User.request(required):ProMonitoringAcknowledgementRequest(state:)— the dismissal decision with state value “”.
Factory.proMonitoringService.dismissEvent(spaceId: String, request: ProMonitoringAcknowledgementRequest) -> IVPublisher<Void>