Entity pages
View current on-call information in the On-call block on an entity’s metadata sidebar, and on the entity’s details page under Connections > On-call.

Escalation policy and service details are hyperlinked to the corresponding pages in your PagerDuty instance.
Engineering homepage
The PagerDuty integration allows Cortex to pull on-call information into the My on-calls block on the Engineering homepage. On-call data from PagerDuty is refreshed every 60 minutes.
Eng Intelligence
Cortex also pulls in metrics from PagerDuty for Eng Intelligence, which displays MTTR, incidents opened, and incidents opened per week.Other ways to use the integration for PagerDuty
Retrieving on-call information in Slack
If you have the Slack integration set up, you can ask the AI Assistant for current on-call information. Mention@Cortex in a channel or direct message and ask a question like “Who’s on call for payments-api?” This works for both services and teams with registered PagerDuty schedules or escalation policies.
For setup and usage details, refer to Using the AI assistant.
Creating Scorecard rules and writing CQL queries with the PagerDuty integration
With the PagerDuty integration, you can create Scorecard rules and write CQL queries based on incidents, escalations, and on-call metadata. See more examples in the CQL Explorer in Cortex.Check if on-call is set
Check if on-call is set
Check if entity has a registered service, schedule, or escalation policy. If the service does not have any registrations in its entity descriptor, Cortex searches for PagerDuty services matching the tag defined in the entity’s This rule passes if an entity has a service, schedule, or escalation policy set.
x-cortex-tag field.Definition - oncall (==/!=) nullExampleFor a Scorecard focused an production readiness, you can use this expression to make sure on-call is defined for entities:Forbidden contact methods
Forbidden contact methods
Number of users in each entity’s escalation policy with missing or forbidden contact methods.Allowed contact methods:This rule passes if every user in an associated escalation policy has either SMS or phone calls enabled as their contact method.You can also use this expression in the query builder to find users that lack the required contact method:This query surfaces users without email addresses.If you want to check only current on-call users, you can use the When this parameter is set to
- “SMS”
- “PHONE”
- “EMAIL”
- “PUSH_NOTIFICATION”
- “SLACK”
oncall.usersWithoutContactMethods(allowed=<allowed>, onlyCurrentOncall=<boolean>).lengthExampleFor a Scorecard focused on ownership, you can use this expression to make sure users have required contact methods enabled:onlyCurrentOncall parameter:false or omitted, the expression checks all users in the associated escalation policy for the next 3 months.Incident response analysis
Incident response analysis
Get detailed on-call analysis stats for each entity:Entities pass this rule if incidents in the last week were acknowledged within 5 minutes.For mean time to resolve, you can use You can also use this expression to write a rule that checks an entity’s change failure rate:This rule passes if there weren’t any incidents in the last week.
- Mean assignment count
- Mean engaged seconds
- Mean engaged user count
- Mean seconds to engage
- Mean seconds to first ack
- Mean seconds to mobilize
- Mean seconds to resolve
- Total business-hour erruptions
- Total engaged seconds
- Total escalation count
- Total off-hour erruptions
- Total sleep-hour erruptions
- Total snoozed seconds
- Total incident count
- Up time percent
oncall.analysis(lookback = <duration>, priority = <List<String>>)ExamplesPagerDuty analytics can easily be used to craft rules for a DORA metrics Scorecard.For mean time to acknowledge, you can use the meanSecondsToFirstAck schema definition:meanSecondsToResolve to make sure that incidents were handled within an hour:Incidents
Incidents
Get incident data for each entity:Entities pass this rule if they have fewer than 15 incidents opened in the last month.You can also use this expression to make sure there aren’t incidents that remained open over the last month:Or you can check for incidents that took a certain amount of time to resolve:Entities pass this rule if there were 0 or 1 incidents in the last month that took more than 2 days to resolve.
- Assignee ID
- Created at
- Incident ID
- Last updated
- Resolved at
- Service ID
- Status
oncall.incidents(lookback = <duration>)ExamplesFor a Scorecard focused on service maturity or quality, you can use this expression to check the number of incidents opened in the last month:Number of escalations
Number of escalations
Number of escalation tiers in escalation policy.Definition - This rule checks that there are at least two tiers in an escalation policy for a given entity, so that if the first on-call does not ack, there is a backup.While making sure an on-call policy set is a rule that would be defined in a Scorecard’s first level, a rule focused on escalation tiers would make more sense in a higher level.
oncall.numOfEscalations()ExampleThis expression could be used in a Scorecard focused on production readiness or service maturity:On-call metadata
On-call metadata
On-call metadata, including type, id, and name.Definition - If you’re migrating on-call policies, you could use this rule to check for outdated policies. For example, assume that all outdated PagerDuty policies start with “Legacy” in their titles.Entities with on-call policies that start with “Legacy” fail, while those with other policy names pass.
oncall.details()ExamplesTo find all entities with a schedule-type on-call registration, you can use this expression in the Query builder:Triggering an incident
A given entity can have a PagerDuty service, schedule, or escalation policy defined, as described in Connecting via an entity descriptor. Only entities with a PagerDuty service defined include the option to trigger an incident directly from Cortex. Your PagerDuty API key must include theWrite permission to trigger incidents from an entity.
To trigger an incident in PagerDuty:
- In Cortex, navigate to an entity.
-
From the entity’s left sidebar, select Incidents.

- In the upper-right corner of the Incidents page, click Trigger incident. The Trigger incident side panel opens.
-
Do the following:
- Under Title, enter a name for the incident (required).
- Under Description, enter a description of the incident.
- From the Urgency dropdown, select a severity level.
- Click Trigger incident.
- Click Click here to view the incident in PagerDuty.
- Click Close to collapse the Trigger incident side panel.
Viewing PagerDuty integration logs
This feature is available in Cortex cloud.
