-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AccountId() NRQL function (not yet ready for publish) #6854
AccountId() NRQL function (not yet ready for publish) #6854
Conversation
Hi @mlobiondo-newrelic 👋 Gatsby Cloud will automatically generate a preview of your request, and will comment with a link when the preview is ready (usually 20 to 30 minutes). |
Hi @bradleycamacho, this is the new version of the accountId() PR (the changes are the same). This still should not be merged yet. |
Gatsby Cloud Build Reportdocs-website-develop 🎉 Your build was successful! See the Deploy preview here. Build Details🕐 Build time: 20m |
For other tech writers: I did a review of this, for what it's worth. When this goes live, if it's not yet available to do this in query builder UI, I think we should add a note that this is not available in the UI, but only available when using NerdGraph queries. (As Mlobiondo said "you can use cross-account queries in dashboards via NerdGraph, JSON or Terraform, though not the Query Builder", and we maybe need to dig into that a little more. |
@zuluecho9, the accountId() NRQL function described in this docs update is available via the Query Builder like any other NRQL function. What's not available via the Query Builder is Cross-Account Queries, a related feature that will have its own documentation when it's GAed. We don't want to mention cross-account queries in the public docs for accountId() since cross-account queries are only in beta at this point. |
@mlobiondo-newrelic Is there much practical use of the accountId() function if they don't have the cross-account functionality? I guess that's what I'm not getting. Is there still a practical use to using it? I would think it would always be returning the same account IDs if they don't have cross-account ability. if that makes sense. |
@zuluecho9 It's not particularly useful when not used in a cross-account query. It will always return the same account ID on a query run against a single account. It's generally available now, though, while cross-account queries are not quite ready. |
This is waiting to be published until some time in April. This is documenting a NRQL function accountId() that allows you to return the accounts associated with the data queried. This is currently only for nerdgraph; query builder ability will come later (currently you can only run queries in UI query builder that are constrained by the account you're in but with nerdgraph you can cross account boundaries).
…-website/commit/567d3b1ea5975e0e12fcdfb7c002087166bfe1c7
Please follow conventional commit standards
in your commit messages and pull request title.
Give us some context
links to related docs, screenshots, etc.