Closed tcgbrett closed 2 months ago
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs.
... I would not like this issue closed. I would like if someone from NR responded.
This is affecting us as well so would be keen on a fix
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs.
The issue is no longer relevant because dashboard package was updated to point to the NerdGraph endpoint sometime in the past. Validated by
Hence, closing this issue.
Description
The
restBaseURL
inpkg/region/region_constants.go
refers toapi.newrelic.com/v2
which is deprecated for Dashboard interaction. That means the whole Dashboards package can't actually interact with the new NerdGraph API.Go Version
go version go1.17.2 darwin/amd64
Current behavior
When I use the dashboards package, the URL points to a deprecated endpoint, so the request fails. The failure
I changed my local NR code in
pkg/dashboards/dashboard.go
to print what the devised URL is, and it does confirm my suspicions. I changed this to a print statementAnd it printed:
Built URL: https://api.newrelic.com/v2/dashboards.json
Expected behavior
This should interact with a non-deprecated API so it's usable.
Steps To Reproduce
Steps to reproduce the behavior: Try to use
client.CreateDashboard(*db)
and it will fail.