Replies: 2 comments 5 replies
-
Sorry for the delay. Still if you need help, I am able to get this done with UQL {
"series1":[
{"time":"2022-01-01T00:00:00.000Z","value":22},
{"time":"2022-01-02T00:00:00.000Z","value":23}
],
"series2":[
{"time":"2022-01-01T00:00:00.000Z","value":220},
{"time":"2022-01-02T00:00:00.000Z","value":230}
]
} and the UQL parse-json
| project kv()
| mv-expand "value"
| project "time"=todatetime("value.time"), "value"="value.value", "series"="key" you can see the result here |
Beta Was this translation helpful? Give feedback.
4 replies
-
Hey, @yesoreyeram! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a JSON datasource (a REST API) which returns multiple timeseries as separate objects. See the example below. Is it possible to use it with this plugin ?
{ "series1": [ { "time": "2022-01-01T00:00:00.000Z", "value": 22}, { "time": "2022-01-02T00:00:00.000Z", "value": 23 } ] }, { "series2": [ { "time": "2022-01-01T00:00:00.000Z", "value": 220}, { "time": "2022-01-02T00:00:00.000Z", "value": 230 } ] }
Beta Was this translation helpful? Give feedback.
All reactions