I've successfully used the swis API to invoke SupressAlerts for a node (uri) but the supression state is not reflected in Web Console.
I can Invoke GetAlertSupressioState and use SWQL Studio to check that indeed the node has Alerts Suppressed.
(Not sure it if matters, but I did not provide any from or until parameters, they are supposed to be optional)
UPDATE:
I've also confirmed that even when I set SuppressAlerts via API and use the the Alert Manger to edit an alert, the Alert Engine will still send an alert when testing
If I use Web Console to Mute Alerts and try the the same test the Alert Manager will honor the Mute Alert setting and not show the node in the list of node that will trigger the alert.
POST I'm using to suppress:
localhost:17778/.../SuppressAlerts
Payload:
[ [ "swis://localhost/Orion/Orion.Nodes/NodeID=1398" ] ]
Results from GetAlertSupressionState:
[
{
"EntityUri": "swis://localhost/Orion/Orion.Nodes/NodeID=1398",
"SuppressedParentUri": null,
"SuppressionMode": 1,
"SuppressedFrom": "2018-12-12T23:25:04.963",
"SuppressedUntil": null
}
]
Web Console does not reflect that Alerts are Suppressed in managed nodes:
Same on Node Details Page:
If I use Web Console to Mute alerts - both show that Alerts are Muted as status:
Is this a known bug with the the API?