This API is deprecated. Use the Settings API instead. Look for the Problem notifications (builtin:problem.notifications
) schema.
Creates a new configuration.
The request consumes and produces an application/json
payload.
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/notifications |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/notifications |
To execute this request, you need an access token with WriteConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
The body must not provide an ID. An ID is assigned automatically by Dynatrace.
The JSON body of the request. Contains parameters of the new notification configuration.
NotificationConfig
objectConfiguration of a notification. The actual set of fields depends on the type
of the notification.
See Notifications API - JSON models in Dynatrace Documentation for example models of every notification type.
The configuration is enabled (true
) or disabled (false
).
The ID of the associated alerting profile.
The ID of the notification configuration.
The name of the notification configuration.
Defines the actual set of fields depending on the value. See one of the following objects:
EMAIL
-> EmailNotificationConfigPAGER_DUTY
-> PagerDutyNotificationConfigWEBHOOK
-> WebHookNotificationConfigSLACK
-> SlackNotificationConfigVICTOROPS
-> VictorOpsNotificationConfigSERVICE_NOW
-> ServiceNowNotificationConfigXMATTERS
-> XMattersNotificationConfigANSIBLETOWER
-> AnsibleTowerNotificationConfigOPS_GENIE
-> OpsGenieNotificationConfigJIRA
-> JiraNotificationConfigTRELLO
-> TrelloNotificationConfigANSIBLETOWER
EMAIL
JIRA
OPS_GENIE
PAGER_DUTY
SERVICE_NOW
SLACK
TRELLO
VICTOROPS
WEBHOOK
XMATTERS
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"active": true,"alertingProfile": "4f5e00f4-39b3-455a-820b-3514843615f3","description": "{ProblemDetailsText}","id": "acbed0c4-4ef1-4303-991f-102510a69322","issueType": "Task","name": "REST example","password": "","projectKey": "DEV","summary": "Problem {ProblemID}: {ProblemTitle}","type": "JIRA","url": "https://my-jira.atlassian.net/rest/api/2/","username": "john.smith"}
Success. The new notification configuration has been created. The response contains the ID of the new notification configuration.
We recommend that you validate the payload before submitting it with an actual request. A response code of 204 indicates a valid payload.
The request consumes an application/json
payload.
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/notifications/validator |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/notifications/validator |
To execute this request, you need an access token with WriteConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
Validated. The submitted configuration is valid. The response doesn't have a body