Skip to main content
Sync AppDynamics alerts to Flashduty through webhook.

In Flashduty On-call

You can get the integration push URL in either of the following ways.

Use a dedicated integration

Choose this option if all alerts go to one channel. It’s the simpler setup.
  1. In the Flashduty console, select Channel and open a channel
  2. Select Configuration → Integrations → Private integration, then click Add integration, and enter the integration page
  3. Choose AppDynamics integration and click Save to generate a card
  4. Open the generated integration card and copy the Push URL

Use a shared integration

Choose this option if you need to route alerts to different channels based on the alert payload.
  1. Go to the Flashduty console, select Integration Center → Alerts, and enter the integration selection page
  2. Select AppDynamics integration:
    • Integration Name: Define a name for this integration
  3. Configure the default route and select a channel. You can add more rules under Routing after creation
  4. Click Save and copy the generated Push URL

Configure in AppDynamics

1

Create an HTTP Request Template in AppDynamics

Where:AppDynamics › Alert & Respond › HTTP Request Templates › NewHTTP Request Templates listRequest URL settingsPayload:
Payload settingsResponse Handling Criteria settingsClick Save.Special Note (Optional Configuration)Configuration: Custom Templating VariablesCustom Templating Variables settingsIf you need to configure Custom Templating Variables, 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 must match the variable names referenced in the JSON template. These variables become labels of the same name on the Flashduty alert.
2

Create an HTTP Action in AppDynamics

Where:AppDynamics › Alert & Respond › Actions › Create Action
  1. Select Actions in the left navigation bar, choose the application type you want to create for, and click Create.
  2. In the Create Action popup, select Make an HTTP Request and click OK. Create Action dialog
  3. In the Create HTTP Action popup, enter a Name, select the Flashduty template created in the previous step as the HTTP Request Template, and click SAVE. Create HTTP Action dialog
3

Use the action in an alert policy

Where:AppDynamics › Alert & Respond › Policies
  1. Create or edit a policy (configure the alert rules as needed; that configuration is omitted here).
  2. In the Actions section of the policy configuration page, click add and select the action created in the previous step. Adding an action to a policy
  3. In the policy’s triggers (Health Rule Violation Events), select the events for a violation ending (Ended) and being canceled (Canceled) as well as the ones for a violation starting. Flashduty decides recovery from event_type in the notification: a type containing CLOSE or CANCELED recovers the matching alert. If you do not select these events, AppDynamics sends no recovery and the alert does not recover on its own.
  4. After completing other configurations, click Save.
4

Trigger a health rule and verify

Cause a violation of a health rule covered by the policy (or wait for a real one). A few seconds later, the integration in Flashduty shows a Latest event time, which means the setup works; after the violation ends, confirm the matching alert recovers.

Status and severity

Alert Key and recovery

Flashduty uses incident_id from the payload as the Alert Key; if incident_id is still the unresolved ${latestEvent.incident.id}, it uses details.event_id instead. The alert recovers when details.event_type contains CLOSE or CANCELED. The alert title is “application name::event name”.