New Relic · Arazzo Workflow

New Relic Create Synthetics Alert Condition

Version 1.0.0

Resolve a policy by name and attach a Synthetics monitor condition to it.

1 workflow 1 source API 1 provider
View Spec View on GitHub AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatformArazzoWorkflows

Provider

new-relic

Workflows

create-synthetics-alert-condition
Resolve a policy then attach a Synthetics monitor condition.
Filters policies by exact name, reads the policy id, and creates a Synthetics condition tying a monitor to the policy.
2 steps inputs: conditionName, monitorId, policyName, runbookUrl outputs: conditionId, policyId
1
findPolicy
Resolve the alert policy by exact name and capture the policy id used to scope the Synthetics condition.
2
createSyntheticsCondition
Create a Synthetics condition on the resolved policy that fires when the named monitor fails.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: New Relic Create Synthetics Alert Condition
  summary: Resolve a policy by name and attach a Synthetics monitor condition to it.
  description: >-
    Wires Synthetics monitoring into alerting. The workflow resolves an alert
    policy by name, captures the policy id, and creates a Synthetics condition on
    that policy that fires when a given Synthetics monitor fails. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: alertsApi
  url: ../openapi/new-relic-alerts-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-synthetics-alert-condition
  summary: Resolve a policy then attach a Synthetics monitor condition.
  description: >-
    Filters policies by exact name, reads the policy id, and creates a Synthetics
    condition tying a monitor to the policy.
  inputs:
    type: object
    required:
    - policyName
    - conditionName
    - monitorId
    properties:
      policyName:
        type: string
        description: The exact name of the alert policy to attach the condition to.
      conditionName:
        type: string
        description: A title for the Synthetics alert condition.
      monitorId:
        type: string
        description: The id of the Synthetics monitor the condition watches.
      runbookUrl:
        type: string
        description: Runbook URL to display in notifications.
  steps:
  - stepId: findPolicy
    description: >-
      Resolve the alert policy by exact name and capture the policy id used to
      scope the Synthetics condition.
    operationId: getAlertsPolicies
    parameters:
    - name: filter[name]
      in: query
      value: $inputs.policyName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      policyId: $response.body#/policy/id
  - stepId: createSyntheticsCondition
    description: >-
      Create a Synthetics condition on the resolved policy that fires when the
      named monitor fails.
    operationId: postAlertsSyntheticsConditionsPoliciesPolicyId
    parameters:
    - name: policy_id
      in: path
      value: $steps.findPolicy.outputs.policyId
    requestBody:
      contentType: application/json
      payload:
        synthetics_condition:
          name: $inputs.conditionName
          monitor_id: $inputs.monitorId
          runbook_url: $inputs.runbookUrl
          enabled: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      conditionId: $response.body#/synthetics_condition/id
  outputs:
    policyId: $steps.findPolicy.outputs.policyId
    conditionId: $steps.createSyntheticsCondition.outputs.conditionId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/new-relic-create-synthetics-alert-condition-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.