Skip to content

Commit

Permalink
Slim down GQL query
Browse files Browse the repository at this point in the history
Signed-off-by: Orlando Valdez <[email protected]>
  • Loading branch information
orlando-valdez-ck committed Jul 24, 2024
1 parent 6f337fb commit 54cd686
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions metricproviders/newrelic/newrelic.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,15 @@ type gqlNrglQueryResponse struct {
}

const gqlNrqlQuery = `query (
$query: Nrql!,
$accountId: Int!,
$timeout: Seconds!
)
$query: Nrql!,
$accountId: Int!,
$timeout: Seconds!
)
{
actor {
account(id: $accountId) {
nrql(query: $query, timeout: $timeout) {
currentResults
otherResult
previousResults
results
totalResult
metadata {
eventTypes
facets
messages
timeWindow {
begin
compareWith
end
since
until
}
}
}
}
}
Expand Down

0 comments on commit 54cd686

Please sign in to comment.