capabilities.work

Update Policy And Condition

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

Recipe · 4 steps

Update Policy And Condition

Resolve a policy, update it, then update one of its conditions.

  1. Resolve the alert policy id by exact name.
  2. Update the resolved policy's name and incident preference.
  3. List the policy's conditions and capture the first condition id to tune.
  4. Update the selected condition with a new name and metric so the policy evaluates the tuned signal.
What you'll need to have ready
  • policyName: The exact name of the alert policy to update.
  • incidentPreference: The new incident rollup strategy for the policy.
  • conditionName: The new name to apply to the selected condition.
  • metric: The metric the updated condition should evaluate.
For your developer

Arazzo workflow new-relic:update-policy-and-condition, 4 operations: getAlertsPolicies → putAlertsPoliciesPolicyId → getAlertsConditions → putAlertsConditionsConditionId. Specs on APIs.io.