We would like to use the Events and State WebSocket API to subscribe to some predefined events from here: https://doc.milestonesys.com/latest/en-US/standard_features/sf_mc/sf_ui/mc_eventsoverview_rulesandevents.htm
we have chosen the following events :
- Communication Error (Device)
- Settings Changed Error
- Memory usage critical
- NVIDIA memory critical
- Used space critical
- Free space critical
- Retention time critical
- Scheduled password change completed with errors
Now the subscription filter I need to send requires the events IDs so when I looked into the MIP SDK I was able to find the following events IDs
- CommunicationError = “A334AF1C-4B4B-4957-9E5F-AB8CA07FEAB6”
- DeviceSettingsChangedError = “87BE2A0D-C33B-4B5F-AE1F-AFA6770A2497”
- SystemMonitorMemoryUsageCritical = “363741CF-4D7A-426D-9FE2-A201C4DB51C0”
- SystemMonitorUsedSpaceCritical = “766CF688-F3E2-4D2F-8D08-012193783739”
- SystemMonitorFreeSpaceCritical = “F80AF822-6A89-4C2F-AB38-B55D0D2CD13A”
- SystemMonitorRetentionTimeCritical = “D1603FBE-4BB8-49EB-9928-0E8EB3C736CE”
However, I was not able to find the events IDs for the following :
- NVIDIA memory critical
- Scheduled password change completed with errors
1. Can you please provide me with IDs for those events?
In the provided example the Subscriptions Filters looked like this
subscription_filters = [
{
"modifier": "include",
"resourceTypes": \[ "cameras" \],
"sourceIds": \[ "\*" \],
"eventTypes": \[ event\_types.motion\_started, event\_types.motion\_stopped, event\_types.recording\_started, event\_types.recording\_stopped \]
}
]
2. For the given events what should the resource types be?
3. Finally is there a way to force those events to happen in Milestone? we need this to test our integration and ensure we handle those events accordingly.