New Relic · Arazzo Workflow

New Relic Find Policy And List Conditions

Version 1.0.0

Resolve an alert policy by name and list its metric conditions.

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

Provider

new-relic

Workflows

find-policy-and-list-conditions
Resolve a policy by name then enumerate its conditions.
Filters alert policies by exact name, captures the policy id from the match, and lists the conditions scoped to that policy for review.
2 steps inputs: policyName outputs: conditions, policyId
1
findPolicy
Look up the alert policy by its exact name and capture the resolved policy id used to query its conditions.
2
listConditions
List the APM metric conditions attached to the resolved policy so the caller can review what the policy evaluates.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: New Relic Find Policy And List Conditions
  summary: Resolve an alert policy by name and list its metric conditions.
  description: >-
    An audit pattern for reviewing what an alert policy evaluates. The workflow
    looks up a policy by its exact name, reads the resolved policy id, and lists
    the APM metric conditions attached to that policy. 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: find-policy-and-list-conditions
  summary: Resolve a policy by name then enumerate its conditions.
  description: >-
    Filters alert policies by exact name, captures the policy id from the match,
    and lists the conditions scoped to that policy for review.
  inputs:
    type: object
    required:
    - policyName
    properties:
      policyName:
        type: string
        description: The exact name of the alert policy to resolve.
  steps:
  - stepId: findPolicy
    description: >-
      Look up the alert policy by its exact name and capture the resolved policy
      id used to query its conditions.
    operationId: getAlertsPolicies
    parameters:
    - name: filter[name]
      in: query
      value: $inputs.policyName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      policyId: $response.body#/policy/id
      policyName: $response.body#/policy/name
  - stepId: listConditions
    description: >-
      List the APM metric conditions attached to the resolved policy so the
      caller can review what the policy evaluates.
    operationId: getAlertsConditions
    parameters:
    - name: policy_id
      in: query
      value: $steps.findPolicy.outputs.policyId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      conditions: $response.body#/condition
  outputs:
    policyId: $steps.findPolicy.outputs.policyId
    conditions: $steps.listConditions.outputs.conditions

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-find-policy-and-list-conditions-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.