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>