cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Settings API for Problem Notifications question

MarciaB
Observer

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:

MarciaB_0-1686581818117.png

 

 

1 REPLY 1

francisco_casti
Dynatrace Promoter
Dynatrace Promoter

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

Featured Posts