Sentry · Schema
Sentry Alert Rule
Represents an alert rule in Sentry. Alert rules define conditions that trigger notifications when error or performance thresholds are breached. Includes both metric alert rules and issue alert rules.
APMApplication MonitoringBug TrackingDeveloper ToolsError TrackingObservabilityPerformance MonitoringReal-Time Monitoring
Properties
| Name | Type | Description |
|---|---|---|
| id | string | The unique identifier of the alert rule. |
| name | string | The name of the alert rule. |
| aggregate | string | The aggregation function for metric alerts (e.g., count(), p50(transaction.duration)). |
| dataset | string | The dataset to query (e.g., events, transactions, sessions). |
| query | string | An optional Sentry search query to filter events. |
| timeWindow | integer | The time window in minutes to evaluate the alert. |
| environment | stringnull | The environment to filter by. |
| projects | array | The project slugs the alert applies to. |
| triggers | array | The trigger conditions for the alert. |
| owner | stringnull | The owner of the alert (user:id or team:id). |
| dateCreated | string | When the alert rule was created. |
| dateModified | string | When the alert rule was last modified. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://sentry.io/schemas/alert-rule.json",
"title": "Sentry Alert Rule",
"description": "Represents an alert rule in Sentry. Alert rules define conditions that trigger notifications when error or performance thresholds are breached. Includes both metric alert rules and issue alert rules.",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the alert rule."
},
"name": {
"type": "string",
"description": "The name of the alert rule."
},
"aggregate": {
"type": "string",
"description": "The aggregation function for metric alerts (e.g., count(), p50(transaction.duration))."
},
"dataset": {
"type": "string",
"description": "The dataset to query (e.g., events, transactions, sessions)."
},
"query": {
"type": "string",
"description": "An optional Sentry search query to filter events."
},
"timeWindow": {
"type": "integer",
"description": "The time window in minutes to evaluate the alert."
},
"environment": {
"type": ["string", "null"],
"description": "The environment to filter by."
},
"projects": {
"type": "array",
"description": "The project slugs the alert applies to.",
"items": {
"type": "string"
}
},
"triggers": {
"type": "array",
"description": "The trigger conditions for the alert.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"label": {
"type": "string",
"description": "Trigger label (e.g., critical, warning)."
},
"alertThreshold": {
"type": "number",
"description": "The threshold value that triggers the alert."
},
"resolveThreshold": {
"type": ["number", "null"],
"description": "The threshold value that resolves the alert."
},
"thresholdType": {
"type": "integer",
"description": "0 for above, 1 for below."
},
"actions": {
"type": "array",
"description": "Actions to perform when triggered.",
"items": {
"type": "object"
}
}
}
}
},
"owner": {
"type": ["string", "null"],
"description": "The owner of the alert (user:id or team:id)."
},
"dateCreated": {
"type": "string",
"format": "date-time",
"description": "When the alert rule was created."
},
"dateModified": {
"type": "string",
"format": "date-time",
"description": "When the alert rule was last modified."
}
},
"required": ["id", "name"]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/sentry-alert-rule"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.