---
updatedAt: 2026-11-09T12:59:14.000Z
agentTools:
  projectIndex: https://docs.getmontecarlo.com/llms.txt
---

# Alert operations

How many alerts you got, how fast you responded and fixed them, and how many became incidents.

> ℹ️ **Public preview**
>
> The Analytics API is in public preview: on for every account, and features may change. Monitor run metrics are in private preview: reach out to your account representative to request access. See [Integration and feature lifecycles](https://docs.getmontecarlo.com/docs/integration-feature-lifecycles) for what this means.

## Overview

An overview of your alerts: how many there are, how fast your team responds and fixes them, and how many became incidents. The tiles are modelled on the product's Data operations dashboard but are not the same: the product has no status update rate, no time to fixed for all alerts and no alerts by alert type.

**For:** data team leads. **Metrics:** [Data quality](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality).

![Alert operations dashboard, rendered from this example](https://files.readme.io/065be7481b63a292ddb42c06a060698d98758247fdd0eceba93db7c4886f039c-alert-operations.png)

*An example built from the prompt below, with sample names and values.*

## Prompt

Copy this prompt into an AI tool connected to the [Monte Carlo MCP server](https://docs.getmontecarlo.com/docs/mcp-server). With the dashboard skills from the [Monte Carlo agent toolkit](https://docs.getmontecarlo.com/docs/agent-toolkit) installed (in coding agents such as Claude Code, Cursor, Codex and GitHub Copilot), your agent reads this page, builds the layout and runs the queries below; without them, it works from the metrics alone.

The agent asks which format you want unless the prompt names one. To skip the question, add:

* "as a Claude artifact that refreshes" in Claude Desktop or claude.ai;
* "as an HTML file" in a coding agent.

```text
Using the Monte Carlo connector, build an alert operations dashboard by domain for the last 30 days, with alerts per week, median time to response and to fixed, status update rate, incidents by severity and alerts by alert type. Follow the "Alert operations" dashboard example in the Monte Carlo docs.
```

## What it covers

* How many alerts you got, week by week, against the previous period.
* Median time to response and time to fixed, and the status update rate.
* Alerts by alert type, and declared incidents by severity.
* One row per domain with its alerts, time to fixed and status update rate.
* Time to response and time to fixed are calculated differently from the Data operations dashboard in Monte Carlo, so the numbers differ.

## Filters and groupings

* By the monitors' domain (as the Alerts page filters), monitor tag (often the team) or audience, with their `monitor_domain_`, `monitor_tag_` and `audience_` alert metrics.
* By the tables' domain, data product or asset tag, with their `domain_`, `data_product_` and `asset_tag_` alert metrics.
* By alert type, severity, status or owner.
* Any window up to 13 full months, by day, week or month.

## How it's built

The layout, queries and definitions your agent follows; use them to check its numbers or to build the dashboard by hand.

### Layout

1. **Filters:** the window (7, 30 or 90 days, 30 by default) and one domain or data product. For alerts, a domain is the monitor domain, plus the domains of the assets for pipeline alerts (dbt and job errors) and merged alerts, as on the product's Alerts page. Time to response and alert type have no per-member metric: they say they count all alerts.
2. **The answer and trend:** alerts, median time to response, median time to fixed and status update rate as four number cards, each with its change against the previous 30 days, and alerts per week next to them as vertical bars.
3. **Breakdown:** alerts by alert type as horizontal bars, largest first, and declared incidents by severity as horizontal bars, SEV-1 to SEV-4, zero when there are none.
4. **Declared incidents:** by alert type as horizontal bars stacked by severity, and their median time to fixed as a number card.
5. **Domains:** a table, one row per monitor domain with alerts in the window, most alerts first: its alerts with a bar and a link to them, median time to fixed, status update rate with "x of y", and declared incidents. With one domain in the filter, only its row.

### Queries

| Block                                               | Window                                              |
| --------------------------------------------------- | --------------------------------------------------- |
| Alerts per week                                     | the 13 weeks before this one, and this week to date |
| Time to response, time to fixed, status update rate | last 30 days                                        |
| Incidents by severity                               | last 30 days                                        |
| Alerts by alert type                                | last 30 days                                        |
| Change against the previous period                  | the 30 days before the window                       |
| Declared incidents                                  | last 30 days                                        |
| Domains                                             | last 30 days                                        |

The domain filter lists the monitor domains with alerts in the window: `monitor_domain_incident_count` grouped by `monitor_domain__domain_uuid` and `monitor_domain__domain_name`, so each domain links to its alerts. The parts of the status update rate are `incident_count` grouped by `incident__is_incident_status_set`.

**Alerts per week**

* Metrics: [`incident_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `metric_time__week`
* Filter: `metric_time__day` on or after the start of the week 13 weeks ago
* Sorted by: `metric_time__week`, lowest first

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["incident_count"],
    "group_by": ["metric_time__week"],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<start of the week 13 weeks ago>"]
      }
    ],
    "order_by": [{"field": "metric_time__week"}]
  }
  ```
</Accordion>

Weeks start on Monday; the last week is to date. Alerts per week keep 13 weeks whatever the window filter says. For one domain, ask `monitor_domain_incident_count` filtered on `monitor_domain__domain_name`; for one data product, `data_product_incident_count` filtered on `data_product__data_product_name`.

**Time to response, time to fixed, status update rate**

* Metrics: [`incident_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality), [`incident_median_first_feedback_hours`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality), [`incident_median_ttr_hours`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality), [`incident_status_update_rate`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Filter: `metric_time__day` on or after 30 days ago

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": [
      "incident_count",
      "incident_median_first_feedback_hours",
      "incident_median_ttr_hours",
      "incident_status_update_rate"
    ],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<30 days ago>"]
      }
    ]
  }
  ```
</Accordion>

**Alerts behind the medians.** Only alerts that reached a status have a time to response, and only fixed alerts a time to fixed: the count under each median ("42.8 h over 2 alerts") is what the two queries below return, not the alerts without a status.

Behind time to fixed:

* Metrics: [`incident_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Filter: `metric_time__day` on or after 30 days ago; `incident__incident_ttr_hours` at least `0`

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["incident_count"],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<30 days ago>"]
      },
      {
        "field": "incident__incident_ttr_hours",
        "op": "gte",
        "values": ["0"]
      }
    ]
  }
  ```
</Accordion>

Behind time to response:

* Metrics: [`incident_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Filter: `metric_time__day` on or after 30 days ago; `incident__incident_first_feedback_hours` at least `0`

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["incident_count"],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<30 days ago>"]
      },
      {
        "field": "incident__incident_first_feedback_hours",
        "op": "gte",
        "values": ["0"]
      }
    ]
  }
  ```
</Accordion>

For the domain rows, ask `monitor_domain_incident_count` grouped by `monitor_domain__domain_uuid` and `monitor_domain__domain_name` with the same filters; for the previous period, the same with its window.

**Incidents by severity**

* Metrics: [`incident_declared_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `incident__incident_user_severity`
* Filter: `metric_time__day` on or after 30 days ago

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["incident_declared_count"],
    "group_by": ["incident__incident_user_severity"],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<30 days ago>"]
      }
    ]
  }
  ```
</Accordion>

**Alerts by alert type**

* Metrics: [`incident_alert_type_incident_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `incident_sub_type__incident_alert_type`
* Filter: `metric_time__day` on or after 30 days ago
* Sorted by: `incident_alert_type_incident_count`, highest first

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["incident_alert_type_incident_count"],
    "group_by": ["incident_sub_type__incident_alert_type"],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<30 days ago>"]
      }
    ],
    "order_by": [
      {
        "field": "incident_alert_type_incident_count",
        "descending": true
      }
    ]
  }
  ```
</Accordion>

Each alert type links to its alerts, as Links to a list of alerts in [Dashboard style](https://docs.getmontecarlo.com/docs/analytics-api-dashboard-style) says. The link needs the sub types of each alert type, from a second request that only lists them; the counts stay those of the first request, since an alert with several sub types would count once per sub type:

* Metrics: [`incident_alert_type_incident_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `incident_sub_type__incident_alert_type`, `incident_sub_type__incident_sub_type_value`
* Filter: `metric_time__day` on or after 30 days ago

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["incident_alert_type_incident_count"],
    "group_by": [
      "incident_sub_type__incident_alert_type",
      "incident_sub_type__incident_sub_type_value"
    ],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<30 days ago>"]
      }
    ]
  }
  ```
</Accordion>

**Change against the previous period**

* Metrics: the four of Time to response, time to fixed, status update rate, and [`incident_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Filter: `metric_time__day` from 60 days ago to 31 days ago

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["incident_count"],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<60 days ago>"]
      },
      {
        "field": "metric_time__day",
        "op": "lte",
        "values": ["<31 days ago>"]
      }
    ]
  }
  ```
</Accordion>

**Declared incidents by alert type and severity**

* Metrics: [`incident_alert_type_incident_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `incident_sub_type__incident_alert_type`, `incident__incident_user_severity`
* Filter: `metric_time__day` on or after 30 days ago; `incident__is_incident_declared` is `true`

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["incident_alert_type_incident_count"],
    "group_by": [
      "incident_sub_type__incident_alert_type",
      "incident__incident_user_severity"
    ],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<30 days ago>"]
      },
      {
        "field": "incident__is_incident_declared",
        "op": "in",
        "values": [true]
      }
    ]
  }
  ```
</Accordion>

**Declared incidents: time to fixed.** Their number is the sum of Incidents by severity.

* Metrics: [`incident_median_ttr_hours`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Filter: `metric_time__day` on or after 30 days ago; `incident__is_incident_declared` is `true`

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["incident_median_ttr_hours"],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<30 days ago>"]
      },
      {
        "field": "incident__is_incident_declared",
        "op": "in",
        "values": [true]
      }
    ]
  }
  ```
</Accordion>

For one domain or data product, `monitor_domain_incident_median_ttr_hours` and `monitor_domain_incident_status_update_rate` (or the `data_product_` ones) replace time to fixed and status update rate; time to response keeps counting all alerts. Declared incidents by severity for a member: its `..._incident_count` filtered on `incident__is_incident_declared` and on the member, grouped by `incident__incident_user_severity`.

**Domains**

* Metrics: [`monitor_domain_incident_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality), [`monitor_domain_incident_median_ttr_hours`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality), [`monitor_domain_incident_status_update_rate`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `monitor_domain__domain_uuid`, `monitor_domain__domain_name`
* Filter: `metric_time__day` on or after 30 days ago
* Sorted by: `monitor_domain_incident_count`, highest first

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": [
      "monitor_domain_incident_count",
      "monitor_domain_incident_median_ttr_hours",
      "monitor_domain_incident_status_update_rate"
    ],
    "group_by": [
      "monitor_domain__domain_uuid",
      "monitor_domain__domain_name"
    ],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<30 days ago>"]
      }
    ],
    "order_by": [
      {
        "field": "monitor_domain_incident_count",
        "descending": true
      }
    ]
  }
  ```
</Accordion>

The parts of the status update rate: `monitor_domain_incident_count` grouped by the same and `incident__is_incident_status_set`. Declared incidents: `monitor_domain_incident_count` grouped by the same, filtered `incident__is_incident_declared` is `true`. A domain with no fixed alert shows "No fixed alerts". Alerts in two domains count in both, so the rows do not add up to the answer.

### Definitions

* **Alerts and incidents.** An alert groups one or more events; an incident is an alert someone declared (SEV-1 to SEV-4). See the [Glossary](https://docs.getmontecarlo.com/docs/analytics-api-glossary).
* **Time to response and time to fixed** are medians with one value per alert: from the alert to its first status, and to Fixed. The product's Time to response (alerts) counts only Acknowledged, Expected and No action needed as a response, else the latest status, and its Time to resolved covers declared incidents only, taken over their events, so the values differ.