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:
- Manage policies
- Use NRQL conditions
- Add muting rules to suppress notifications
- Manage notification channels
- Customize loss of signal and gap filling
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.
Tip
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:
Mutations
To explore various mutations, look in the alerts dropdown in the NerdGraph API explorer:
For more help
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's and and documentation.