newrelic-cli icon indicating copy to clipboard operation
newrelic-cli copied to clipboard

Unmarshalling error when using NRQL with FACET clause

Open sirianni opened this issue 1 year ago • 0 comments

Description

nrql query returns an unmarshalling error when used with FACET clause.

Current behavior

newrelic nrql query -q 'SELECT latest(k8s.pod.memory.usage) FROM Metric FACET `k8s.pod.name` SINCE 3 MINUTES AGO TIMESERIES 1 MINUTE'
cannot unmarshal array into Go struct field NRDBResultContainer.data.Actor.Account.NRQL.otherResult of type nrdb.NRDBResult

Expected behavior

I expect the query to return data like it does in the browser.

sirianni avatar Aug 09 '23 17:08 sirianni