# IncidentTrigger Configuration - Checkly Docs

> Learn how to configure status page incident automation with the Checkly CLI.

Source: https://www.checklyhq.com/docs/constructs/incident-trigger/

---

Status Pages

# IncidentTrigger Configuration

Learn how to configure status page incident automation with the Checkly CLI.

**Deprecated.** Incident triggers automate incidents on v2 (services-based) status pages. On v3 pages, use [`StatusPageV3AutomationRule`](https://www.checklyhq.com/docs/constructs/status-page-v3-automation-rule) instead.

Learn more about status pages in [the status pages overview](https://www.checklyhq.com/docs/communicate/status-pages/overview).

Use incident triggers to automatically create and resolve an incident and notify subscribers based on the alert configuration of a monitor or check. This allows you to link synthetic monitoring failures directly to incidents on your status pages.

```
import {
Frequency,
IncidentTrigger,
PlaywrightCheck,
StatusPageService,
} from "checkly/constructs";

const searchService = new StatusPageService("search-service", {
name: "Search Service",
});

const searchIncidentTrigger: IncidentTrigger = {
service: searchService,
severity: "MINOR",
name: "Search is down",
description:
"Some users experience issues with the product search. We're investigating.",
notifySubscribers: true,
};

new PlaywrightCheck("playwright-check-suite", {
name: "Search Monitoring",
playwrightConfigPath: "../playwright.config.ts",
activated: true,
pwProjects: ["Search Monitoring"],
locations: ["us-east-1", "eu-west-1", "ap-southeast-2"],
frequency: Frequency.EVERY_10M,
triggerIncident: searchIncidentTrigger,
});
```

## Configuration

- Incident Trigger

Parameter Type Required Default Description

`service` `StatusPageService` ✅ - The status page service that this incident will be associated with

`severity` `IncidentSeverity` ✅ - The severity level of the incident. (`MINOR`, `MEDIUM`, `MAJOR`, `CRITICAL`)

`name` `string` ✅ - The name of the incident.

`description` `string` ✅ - A detailed description of the incident.

`notifySubscribers` `boolean` ✅ - Whether to notify subscribers when the incident is triggered

## `IncidentTrigger` Options

StatusPageService

required

The status page service that this incident will be associated with. When a check or monitor fails, an incident is created for this service and connected status pages. **Usage:**

```
const searchService = new StatusPageService("search-service", {
name: "Search Service",
})

const incidentTrigger: IncidentTrigger = {
service: searchService,
/* More options... */
}
```

**Use cases**: Linking monitors to specific services, automatic incident creation, service-based status tracking.

IncidentSeverity

required

The severity level of the incident. Determines how the incident is displayed and prioritized. **Options:**

- `MINOR` - Minor impact, most users unaffected

- `MEDIUM` - Moderate impact, some users affected

- `MAJOR` - Major impact, many users affected

- `CRITICAL` - Critical impact, all users affected

**Usage:**

```
const incidentTrigger: IncidentTrigger = {
service: searchService,
severity: "MAJOR",
/* More options... */
}
```

**Use cases**: Incident prioritization, user communication, escalation workflows.

string

required

The name of the incident displayed on the status page. Should clearly communicate the issue to users. **Usage:**

```
const incidentTrigger: IncidentTrigger = {
service: searchService,
name: "Search is down",
/* More options... */
}
```

**Use cases**: User communication, incident identification, status page clarity.

string

required

A detailed description of the incident. Provides context to users about what’s happening and potential impact. **Usage:**

```
const incidentTrigger: IncidentTrigger = {
service: searchService,
description:
"Some users experience issues with the product search. We're investigating.",
/* More options... */
}
```

**Use cases**: User communication, incident context, expectation setting.

boolean

required

Whether to notify status page subscribers when the incident is triggered. When `true`, subscribers receive notifications via their configured channels. **Usage:**

```
const incidentTrigger: IncidentTrigger = {
service: searchService,
notifySubscribers: true,
/* More options... */
}
```

**Use cases**: Proactive user communication, incident awareness, stakeholder updates.

Was this page helpful?

[Suggest edits](https://github.com/checkly/docs/edit/main/constructs/incident-trigger.mdx)[Raise issue](https://github.com/checkly/docs/issues/new?title=Issue%20on%20docs&body=Path:%20/constructs/incident-trigger)

[StatusPageService Construct Previous](https://www.checklyhq.com/docs/constructs/status-page-service)[Dashboard Construct Next](https://www.checklyhq.com/docs/constructs/dashboard)

[x](https://x.com/checklyhq)[github](https://github.com/checkly)[linkedin](https://linkedin.com/company/checkly)

[Powered by This documentation is built and hosted on Mintlify, a developer documentation platform](https://www.mintlify.com/?utm_campaign=poweredBy&utm_medium=referral&utm_source=checkly-422f444a)
