HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center

PagerDuty

Instabug allows you to integrate with PagerDuty with only a few simple steps.

Setting up the integration

  1. To set up your PagerDuty integration, you will need to create a Custom Event Transformer in PagerDuty, which will allow you to map Instabug events to a PagerDuty Incident.

  2. Once the Custom Event Transformer is created, edit the code portion to look something like this (feel free to change this to customize it for your needs):

var body = PD.inputRequest.body

var normalized_event = {
  event_type: PD.Trigger,
  description: `Instabug | ${body.application} | ${body.trace} ${body.trigger} ${body.trigger_operator} ${body.test_value}`,
  details: PD.inputRequest,
  client: "Instabug",
  client_url: body.url
};

PD.emitGenericEvents([normalized_event]);
  1. Simply add the PagerDuty webhook URL to which Instabug should forward your alerts.
1918
  1. At this point, we just need to test your integration so that we're sure everything is working smoothly.
1920
  1. All done! Your integration is now set up, just give your integration a name and you're ready to go.
1920

APMs' JSON model:

{
  "title": "String",
  "trace": "String",
  "trigger": "String",
  "trigger_operator": "String",
  "test_value": "Number",
  "duration": "String",
  "conditions": [
    {
      "key": "String",
      "operator": "String",
      "value": "String"
    }
  ],
  "current_value": "String",
  "metric": "String",
  "application": "String",
  "platform": "String",
  "url": "String"
}