Closed seancorfield closed 1 year ago
Current status:
(format {:select [:mulog/timestamp :mulog/event-name]
:from :Log
:where [:= :mulog/data.account "foo-account-id"]
:since [2 :days :ago]
:limit 2000}
{:dialect :nrql})
;; ["SELECT `mulog/timestamp`, `mulog/event-name` FROM Log
;; WHERE `mulog/data.account` = 'foo-account-id' LIMIT 2000 SINCE 2 DAYS AGO"]
Needs FACET and WITH TIMEZONE added. Plus documentation.
:facet [:some.metric :another]
or :facet [[:some.metric :alias] :another]
-- no support yet for the more complex FACET CASES. Will wait for some demand for that 🙂
https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/nrql-syntax-clauses-functions/
https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/introduction-nrql-how-nrql-works/