Create a Metric Alert Rule
A 3-step recipe with Sentry. We can help you get access.
Recipe · 3 steps
Create a Metric Alert Rule
with Sentry · Observability Management
Works with AI assistants
Create a metric alert rule and verify it via retrieval and listing.
- Create a metric alert rule with a single trigger that fires when the aggregate crosses the supplied threshold.
- Retrieve the created metric alert rule to confirm its configuration.
- List the organization's metric alert rules to verify the new rule is present.
What you'll need to have ready
- organizationIdOrSlug: The ID or slug of the organization.
- ruleName: The name of the metric alert rule.
- aggregate: The aggregation function to evaluate (e.g. "count()").
- timeWindow: The time window in minutes over which the alert is evaluated.
- alertThreshold: The threshold value that triggers the alert.
- projects: The project slugs the alert rule applies to.
For your developer
Arazzo workflow sentry-system:create-metric-alert, 3 operations: createMetricAlertRule → retrieveMetricAlertRule → listMetricAlertRules. Specs on APIs.io.