capabilities.work

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.

  1. Create a metric alert rule with a single trigger that fires when the aggregate crosses the supplied threshold.
  2. Retrieve the created metric alert rule to confirm its configuration.
  3. 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.