Update Policy And Condition
A 4-step recipe with New Relic. We can help you get access.
Recipe · 4 steps
Update Policy And Condition
with New Relic
Resolve a policy, update it, then update one of its conditions.
- Resolve the alert policy id by exact name.
- Update the resolved policy's name and incident preference.
- List the policy's conditions and capture the first condition id to tune.
- 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.