Hello,
I am trying to add a comment to an active alarm using API call. The comment gets updated in the comment column but when I pull Alarm details after adding comment, the comments doesn't show up in alarm details.
Looking for possible solution to this.
Thanks
When adding a comment, a new alarm (with a new alarm ID) gets created. This new alarm has the same root alarm ID of the previous alarm. Using the root alarm ID you can call the GetAlarmHistory API method to get the alarm ID of the most recent alarm, and then call GetAlarmDetails with this alarm ID, this response should include the comments.
I tried using Root Alarm ID for Get Alarm Details API call but the comment doesn't shows up. If I use the latest alarm ID which gets updated after adding a comment then using that alarm ID only the comment shows up.
Is there a way to get the new alarm ID after adding a comment ?
Is, there an automated way to get a new alarm ID after adding a comment ? Or manually we have to keep a track of new alarm ID which gets generated ?
Yes, that’s what I tried to explain with my previous answer:
1) After adding the comment, with GetAlarmHistory you can get the new alarm ID
2) With this new alarm ID call GetAlarmDetails