---
title: "Metric Alerts"
description: "Learn more about Sentry's integration platform metric alert webhooks."
url: https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts/
---

# Metric Alerts

Sentry integrations which have been made available as [alert rule actions](https://docs.sentry.io/organization/integrations/integration-platform.md#alerts) can receive metric alert webhooks.

The interactive demo below shows how to set up an internal integration that can receive Sentry alerts.

## [Sentry-Hook-Resource Header](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#sentry-hook-resource-header)

`'Sentry-Hook-Resource': 'metric_alert'`

## [Attributes](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#attributes)

### [action](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#action)

* type: string
* description: will be one of (`critical`, `warning`, `resolved`)

### [data\['metric\_alert'\]](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#datametric_alert)

* type: object
* description: the incident that triggered the alert rule

### [data\['metric\_alert'\]\['alert\_rule'\]](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#datametric_alertalert_rule)

* type: object
* description: the alert rule

### [data\['metric\_alert'\]\['alert\_rule'\]\['triggers'\]](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#datametric_alertalert_ruletriggers)

* type: array of objects
* description: the thresholds to trigger the alert

### [data\['metric\_alert'\]\['alert\_rule'\]\['triggers'\]\[0\]\['actions'\]](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#datametric_alertalert_ruletriggers0actions)

* type: array of objects
* description: the actions that will be performed when a trigger's threshold has been met

### [data\['description\_text'\]](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#datadescription_text)

* type: string
* description: a human-readable description of the alert

### [data\['description\_title'\]](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#datadescription_title)

* type: string
* description: a human-readable title for the alert

### [data\['web\_url'\]](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#dataweb_url)

* type: string
* description: the api url for the incident

The following field is for [alert rule action UI components](https://docs.sentry.io/organization/integrations/integration-platform/ui-components/alert-rule-action.md) only.

### [data\['metric\_alert'\]\['alert\_rule'\]\['triggers'\]\[0\]\['actions'\]\[0\]\['settings'\]](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#datametric_alertalert_ruletriggers0actions0settings)

* type: object
* description: the saved configuration for routing the alert within the external service

## [Payload](https://docs.sentry.io/organization/integrations/integration-platform/webhooks/metric-alerts.md#payload)

Note: The webhook payload stack frame order lists the oldest frame to the most recent (where the exception happened).

```json
{
  "action": "resolved",
  "actor": {
    "id": "sentry",
    "name": "Sentry",
    "type": "application"
  },
  "data": {
    "description_text": "1000 events in the last 10 minutes\\nFilter: level:error",
    "description_title": "Resolved: Too many errors",
    "metric_alert": {
      "alert_rule": {
        "aggregate": "count()",
        "created_by": null,
        "dataset": "events",
        "date_created": "2020-09-13T12:26:40.000000Z",
        "date_modified": "2020-09-13T12:26:40.000000Z",
        "environment": null,
        "id": "7",
        "include_all_projects": false,
        "name": "Too many errors",
        "organization_id": "5",
        "projects": ["bar"],
        "query": "level:error",
        "resolution": 1,
        "resolve_threshold": null,
        "status": 0,
        "threshold_period": 1,
        "threshold_type": 0,
        "time_window": 10,
        "triggers": []
      },
      "date_closed": null,
      "date_created": "2020-09-13T12:26:40.000000Z",
      "date_detected": "2020-09-13T12:26:40.000000Z",
      "date_started": "2020-09-13T12:26:40.000000Z",
      "id": "4",
      "identifier": "1",
      "organization_id": "5",
      "projects": ["bar"],
      "status": 2,
      "status_method": 3,
      "title": "Sacred Marmot",
      "type": 2
    },
    "web_url": "https://sentry.io/organizations/baz/alerts/1/"
  },
  "installation": {
    "uuid": "a8e5d37a-696c-4c54-adb5-b3f28d64c7de"
  }
}
```
