create_nrql_condition
Create a NRQL alert condition to monitor custom metrics and trigger notifications when a threshold is breached. Define the NRQL query, threshold, operator, and duration.
Instructions
Create a NRQL alert condition
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy_id | Yes | Alert policy ID to attach the condition to | |
| name | Yes | Name of the alert condition | |
| description | No | Description of the alert condition (optional) | |
| nrql_query | Yes | NRQL query for the condition | |
| threshold | Yes | Alert threshold value | |
| threshold_operator | No | Threshold operator (ABOVE, BELOW, EQUAL) | ABOVE |
| threshold_duration | No | Duration in seconds for threshold breach (60-7200) | |
| priority | No | Alert priority — NerdGraph accepts only CRITICAL or WARNING | CRITICAL |
| aggregation_window | No | Aggregation window in seconds (30-1200) |