Skip to content

incident.io Configuration via HTTPS

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 allows you to integrate with any HTTPS endpoint. You can configure the request method, headers, and body to establish communication between Coralogix’s Notification Center and a third-party system like incident.io.

Prerequisites

In order to configure the connector, the Coralogix integration inside Incident.io app should be created first:

  • Navigate to Alerts > Create alert source
  • Select Coralogix integration type from the list, give it a name and press continue Coralogix integration
  • On the next page copy the provided URL, auth headers. They would be used during the connector creation stage Coralogix integration URL, auth
  • Finish integration creation by pressing Continue. Feel free to pause and read more about integration capabilities

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

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

{
  "alert_id": "{{alert.groupingKey}}",
  "alert_name": {% filter json_encode %}[ {{alertDef.priority}} ]{{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}}"
  }
}