Skip to main content

Send alerts and Cases to incident.io from Notification Center

This guide demonstrates how to configure a connector and define message configuration for integrating incident.io with Coralogix using the generic HTTPS destination type.

incident.io uses a single endpoint for both triggering and resolving alerts. The instructions below walk you through setting up the connector and message payloads to support this integration.

Connector configuration​

The generic HTTPS connector integrates with any HTTPS endpoint. Configure the request method, headers, and body to establish communication between Coralogix Notification Center and a third-party system like incident.io.

Prerequisites​

Before configuring the connector, create the Coralogix integration inside the incident.io app:

  • Go to Alerts, then Create alert source.
  • Select the Coralogix integration type from the list, give it a name, and select Continue. Coralogix integration type selection in incident.io
  • On the next page, copy the provided URL and auth headers. These values are used during the connector creation stage. Coralogix integration URL and auth headers in incident.io
  • Finish integration creation by selecting Continue. Pause and read more about integration capabilities if needed.

Create the connector with the following configuration:

  • URL: https://api.incident.io/v2/alert_events/coralogix/<<connection_id>>

  • Headers:

    {
    "Authorization": "Bearer <<YOUR_API_KEY>>",
    "Content-Type": "application/json"
    }

Message configuration​

incident.io supports both alert and case notifications from Coralogix. Use the preset that matches the entity type you are routing.

Create a preset for alerts using the following JSON structure (Body part):

{
"alert_id": "{{alert.groupingKey}}",
"alert_name": {% filter json_encode %}[ {{alert.highestPriority}} ]{{alertDef.name}}{% endfilter %},
"alert_description": {{alertDef.description | json_encode}},
"alert_action": {% if alert.status | lower == "triggered" %}"trigger"{% else %}"resolve"{% endif %},
"alert_url": "{{alert.alertDataUrl | default(value = '')}}",
"metadata": {
"alert_id": "{{alert.id}}",
"alert_name": {{alertDef.name | json_encode}},
"alert_description": {{alertDef.description | json_encode}},
"alert_action": {% if alert.status | lower == "triggered" %}"trigger"{% else %}"resolve"{% endif %},
"alert_url": "{{alert.alertDataUrl | default(value = '')}}",
"alert_priority": "{{alert.highestPriority | default(value = alertDef.priority)}}",
"dedup_key": "{{alert.groupingKey}}"
}
}

Next steps​

Configure a PagerDuty connector to send alert notifications in Connector configuration.

Last updated on