NerdGraph API: Examples

You can manage your policies, conditions, and muting rules programmatically using our GraphQL NerdGraph API. This is a powerful alternative to managing them in New Relic One or through the REST API.

Alerts features you can manage with NerdGraph

Here's what you can do in NerdGraph:

The easiest way to discover alerts queries and mutations is through the NerdGraph API explorer.

NerdGraph API explorer

Our NerdGraph API explorer is a GraphiQL editor where you can prototype queries and mutations. Here are some examples showing how to find fields for queries and mutations.

For general information about NerdGraph, see Introduction to NerdGraph.

Queries

To explore the various queries, look for the available queries under the actor.account.alerts namespace in NerdGraph API explorer:

alerts_query.png

Mutations

To explore various mutations, look in the alerts dropdown in the NerdGraph API explorer:

alerts_mutations.png

For more help

If you need more help, check out these support and learning resources: