Hi,
I'm trying to fetch a number of active alarms that have the same Alarm Property value set. The intention is to pass along to an API call a Root Alarm ID and a property value, and DataMiner would return all active alarms matching these parameters.
I could spot on our documentation the GetAlarms call, but I wasn't able to catch any example in which the filter specifies the alarm property value to be matched, nor is this call able to fetch per Root Alarm ID (only per Alarm ID, apparently).
Also, are the following fields mandatory on the filter?
Is it possible to have an example of such filter and also, is it possible to use Root Alarm ID in this call?
Thank you.
It's not possible at the moment to filter on properties (you can create a new software feature task so that this functionality can get added). Unfortunately I also discovered an issue when applying a filter on the AlarmRootID, but I just pushed a fix for this (RN27445).
For now as a workaround, you could first create a public shared alarm filter in Cube, then you can use this saved filter when requesting the alarms via the WebAPI.
Example:
Unfortunately, this is currently not possible with the API but we are close though. It's already possible to get the active alarms for a given root alarm ID, but we are not yet able to filter these for a given property and its value.
The fields you marked are indeed not mandatory. Leaving these empty will filter the active alarms instead. Masked alarms and information events will not be returned and the default limit is set to a 100 alarms.
Thanks Wim, I believe that for this specific use case configuring an alarm filter and then use it via the API is our best bet.
I’ll test this and come back with more questions (if any)