12 Jun 2023
03:57 PM
- last edited on
13 Jul 2023
05:32 PM
by
AgataWlodarczyk
I am trying to use the new settings API to retrieve the details about Problem Notifications.
I am successfully retrieving the list of all problem notifications with:
/api/v2/settings/objects?schemaIds=builtin%3Aproblem.notifications&scopes=environment&fields=objectId%2Cvalue%2Cscope
and then retrieving the details for each with:
/api/v2/settings/objects/' + notification['objectId']
but I cannot figure out how to get the event filters:
Solved! Go to Solution.
13 Jun 2023 11:11 AM
Hi MarciaB,
The settings schema you are using is for problem notifications. Alerting profiles is the schema you need (builtin:alerting.profile). When you pull the alerting profiles, the payload has a section called "eventFilters" which will have the information you want!
Best regards,
Paco