Create Alert Policy With Condition
A 2-step recipe with New Relic. We can help you get access.
Recipe · 2 steps
Create Alert Policy With Condition
with New Relic
Create an alert policy then attach a metric condition to it.
- Create the alert policy with the supplied name and incident preference, returning the generated policy id used to scope conditions.
- Create an APM metric condition on the newly created policy so it begins evaluating the chosen metric immediately after creation.
What you'll need to have ready
- policyName: The name of the new alert policy.
- incidentPreference: Incident rollup strategy (PER_POLICY, PER_CONDITION, PER_CONDITION_AND_TARGET).
- conditionName: A title for the alert condition.
- conditionType: Condition type (e.g. apm_app_metric, apm_kt_metric, browser_metric).
- metric: The metric the condition evaluates (e.g. apdex, error_percentage).
- conditionScope: Condition scope, either application or instance.
For your developer
Arazzo workflow new-relic:create-alert-policy-with-condition, 2 operations: postAlertsPolicies → postAlertsConditionsPoliciesPolicyId. Specs on APIs.io.