Route to configure more routing rules)Alert Respond, select HTTP Request Templates, and click New to create an alert channel
NameRequest URL section, select POST as the Method, and enter the integration push URL in Raw URL (enter the integration name on this page, and the URL will be generated after saving)
Payload section, select application/json as MIME Type and UTF-8 as Payload EncodingPayload text box:{
"policy_name":"${policy.name}",
"message": "${latestEvent.eventMessage}",
"application_name": "${latestEvent.application.name}",
"link": "${latestEvent.deepLink}",
"incident_id": "${latestEvent.incident.id}",
"details": {
"event_id": "${latestEvent.id}",
"event_name": "${latestEvent.displayName}",
"event_time": "${latestEvent.eventTime}",
"event_type": "${latestEvent.eventType}",
"health_rule_name":"${latestEvent.healthRule.name}",
"node_name": "${latestEvent.node.name}",
"severity": "${latestEvent.severity}"
}
}
Custom Templating Variables
Custom Templating Variables, you can refer to the following JSON template. Here, custom_variables is a fixed format, and the variables within custom_variables are custom Variables. The names defined on the page should match the variable names referenced in the JSON template.{
"policy_name":"${policy.name}",
"message": "${latestEvent.eventMessage}",
"application_name": "${latestEvent.application.name}",
"link": "${latestEvent.deepLink}",
"incident_id": "${latestEvent.incident.id}",
"details": {
"event_id": "${latestEvent.id}",
"event_name": "${latestEvent.displayName}",
"event_time": "${latestEvent.eventTime}",
"event_type": "${latestEvent.eventType}",
"health_rule_name":"${latestEvent.healthRule.name}",
"event_type_key": "${latestEvent.eventTypeKey}",
"node_name": "${latestEvent.node.name}",
"severity": "${latestEvent.severity}"
},
"custom_variables":{
"host":"${host}"
}
}Response Handling Criteria section, set the Failure Criteria status code to 400 and the Success Criteria status code to 201
Save to completeActions in the left navigation bar, choose the application type you want to create for, and click CreateCreate Action popup, select Make an HTTP Request and click OK
Create HTTP Action popup, enter a Name, select FlashDuty created in Step 1 as the HTTP Request Template, and click SAVE
Policies in the left navigation barActions section of the policy configuration page, click add and select the Action created in Step 2
Save to finish| AppDynamics | Flashduty | Status |
|---|---|---|
| ERROR | Critical | Critical |
| WARN | Warning | Warning |
| INFO | Info | Info |