Create Notificant
Create a notification target
{
"method": "string",
"id": "string",
"contentType": "string",
"description": "string",
"createdEpochMillis": 0,
"updatedEpochMillis": 0,
"title": "string",
"customerId": "string",
"triggers": [
"string"
],
"template": "string",
"recipient": "string",
"emailSubject": "string",
"isHtmlContent": false,
"routes": [
{
"method": "string",
"target": "string",
"filter": "string"
}
],
"creatorId": "string",
"updaterId": "string"
}
The notification method used for notification target.
id
The value of the Content-Type header of the webhook POST request.
Description
createdEpochMillis
updatedEpochMillis
Title
customerId
A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED
A mustache template that will form the body of the POST request, email and summary of the PagerDuty.
The end point for the notification target.EMAIL: email address. PAGERDUTY: PagerDuty routing Key. WEBHOOK: URL end point
A string->string map specifying the custom HTTP header key / value pairs that will be sent in the requests of this web hook
The subject title of an email notification target
Determine whether the email alert target content is sent as html or text.
creatorId
updaterId
successful operation
{
"status": {
"result": "string",
"message": "string",
"code": 0
},
"response": {
"method": "string",
"id": "string",
"contentType": "string",
"description": "string",
"createdEpochMillis": 0,
"updatedEpochMillis": 0,
"title": "string",
"customerId": "string",
"triggers": [
"string"
],
"template": "string",
"recipient": "string",
"emailSubject": "string",
"isHtmlContent": false,
"routes": [
{
"method": "string",
"target": "string",
"filter": "string"
}
],
"creatorId": "string",
"updaterId": "string"
}
}