The original search script was using the New Relic REST API
v2, which has gaps and bugs. It was not clearly documented
that the preferred method is to use the new GraphQL API.
The script has been updated to use the new GraphQL API.
Note: it may make sense to introduce Graphene, or some other
library to work with GraphQL, but to start I avoided adding
a new dependency and was able to use New Relic's GUI to play
with different queries here:
https://api.newrelic.com/graphiql
Description:
The original search script was using the New Relic REST API v2, which has gaps and bugs. It was not clearly documented that the preferred method is to use the new GraphQL API.
The script has been updated to use the new GraphQL API.
Note: it may make sense to introduce Graphene, or some other library to work with GraphQL, but to start I avoided adding a new dependency and was able to use New Relic's GUI to play with different queries here: https://api.newrelic.com/graphiql
Testing instructions:
Was tested locally with the following:
Merge checklist: