# PagerDuty

## Getting Started

To integrate PagerDuty with Secoda, follow these steps:

1. **Create a new Service in PagerDuty (Optional)**
2. **Create an "Events API v2" Integration**
3. **Connect the Integration with Secoda**

### Step 1: Create a New Service in PagerDuty (Optional)

If you already have a service you want to use, you can skip this step.

To create a new service in PagerDuty:

1. Log in to PagerDuty.
2. Click the "Services" tab.
3. Click "New Service".
4. Provide a name, set an escalation policy, and assign it to team members.
5. If prompted, create an integration using "Events API v2".

### Step 2: Create an "Events API v2" Integration

If you already created an "Events API v2" integration during the service creation, you can skip this step.

To create a new integration:

1. Log in to PagerDuty.
2. Click the "Services" tab.
3. Select the service you want to integrate with Secoda.
4. Click the "Integrations" section on the service page.
5. Click "Add Integration" or "Add another integration".
6. Select "Events API v2" and add it to your service.

### Step 3: Connect the Integration with Secoda

1. Go to your service and open the "Integrations" section.
2. Open the "Events API v2" section.
3. Copy the Integration Key from the configuration section.

### Post-Integration Steps

After connecting PagerDuty to Secoda:

1. Open the "Alerts" section in the integration configuration.
2. Enable "Alert on incidents from Secoda Monitors" to receive monitoring incidents.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.secoda.co/extensions/pager-duty.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
