newrelic / nr1-community

An open-source library of useful components for building on New Relic One's programmability platform.
https://developer.newrelic.com
Apache License 2.0
11 stars 12 forks source link

TimeRangeToNRQL example is wrong #88

Open ryanv94 opened 3 years ago

ryanv94 commented 3 years ago

Description

The timeRangeToNRQL() example in the screenshot provided shows passing in the timeRange to the module.

The result of this was null,

Instead we had to pass in the full platformState to get the right output

timeRangeToNrql(platformState)

CC @jsbnr