Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Get overview of all alert policies for an infrastructure server/host

new-moderation-topic
mod_queue

#1

I’m looking for a way through the (GraphQL) api to get an overview of all alert policies that are attached to a given infrastructure server/host.


#2

Hello @Stijn.Cremers,

Here are our available API resources for the Infrastructure product:

https://docs.newrelic.com/docs/apis/get-started/intro-apis/introduction-new-relic-apis#infrastructure-api

Hope this helps! Please let me know if you have any questions.


#3

I already had a look at the graphql api for the infrastructure API’s.

I managed to get data from the infrastructure alerts api, and get host information from the graphql information.
But I didn’t found a solution to get the alert policies the are (indirectly) attached to a given host.