capabilities.work

Prune NRQL Condition

A 3-step recipe with New Relic. We can help you get access.

Recipe · 3 steps

Prune NRQL Condition

Resolve a policy, find a NRQL condition, and delete it.

  1. Resolve the alert policy id by exact name.
  2. List the NRQL conditions attached to the resolved policy and capture a condition id to delete.
  3. Delete the identified NRQL condition so the policy stops evaluating the retired query.
What you'll need to have ready
  • policyName: The exact name of the alert policy whose NRQL condition to prune.
For your developer

Arazzo workflow new-relic:prune-nrql-condition, 3 operations: getAlertsPolicies → getAlertsNrqlConditions → deleteAlertsNrqlConditionsConditionId. Specs on APIs.io.