How to create a new problem notification configuration #891
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @ngetichnicholas. To handle this with monaco, you will need to define both the alerting-profile and notification using monaco and reference[0] the profile's ID as a variable to the notification. You can find a sample of this (using monaco 2.0 and Settings) here: https://github.com/Dynatrace/dynatrace-configuration-as-code-samples/tree/main/problem_notification_sample (focus mostly on the notification configuration in that sample) |
Beta Was this translation helpful? Give feedback.
-
Is it possible to create an alerting profile and a (related) notification in a single project? It seems that the notification JSON can't 'know' the id of the profile... because it doesn't exist yet. I've tried referencing by name (using 2.0,0-rc8) but that gave me an error. I tried both using the API style JSON and the settings style JSON but got an error both ways. I'd like to create multiple pairs of profiles and notifications so that individual support teams can then tailor the profiles to their own needs. |
Beta Was this translation helpful? Give feedback.
Hi @ngetichnicholas.
Problem notifications do always require an alerting profile that they are triggered on.
To handle this with monaco, you will need to define both the alerting-profile and notification using monaco and reference[0] the profile's ID as a variable to the notification.
You can find a sample of this (using monaco 2.0 and Settings) here: https://github.com/Dynatrace/dynatrace-configuration-as-code-samples/tree/main/problem_notification_sample (focus mostly on the notification configuration in that sample)
[0] https://www.dynatrace.com/support/help/manage/configuration-as-code/configuration/yaml-configuration#reference