# PagerDuty

Open a PagerDuty incident when an alert fires and resolve it when the alert resolves.

## Set it up

1. In PagerDuty, open the service you want paged, choose **Integrations**, and add the **Events API v2** integration.
2. Copy its **Integration Key** (32 letters and digits).
3. In Tailcove, open an alert or a monitor, switch on **PagerDuty** and paste the key.

The key is stored encrypted and never shown again; leave the field blank when you edit to keep it. Tailcove always sends to PagerDuty's own events endpoint.

## What you get

A firing alert or a monitor that goes down sends a `trigger` event with the title as the summary, the source, and the details. The event carries a stable key for that alert or monitor (`tailcove-alert-<id>`, `tailcove-monitor-<id>`, where `<id>` is its public id such as `alr_…` or `mon_…`), so a second event for the same thing groups into the open incident, and the resolved alert or recovered monitor sends a `resolve` event with the same key, which closes it.

A regressed issue triggers a warning-level event and is not resolved automatically.
