fossasia / susi_server

SUSI.AI server backend - the Artificial Intelligence server for personal assistants https://susi.ai
GNU Lesser General Public License v2.1
2.51k stars 1.08k forks source link

console rule cannot use json where result value is in array #1393

Closed Orbiter closed 5 years ago

Orbiter commented 5 years ago

https://dashboard.camp.ccc.de/api/datasources/proxy/1/api/v1/query_range?query=day_of_month()%20-%2020&start=1566575518&end=1566575518&step=900

returns

{"status":"success","data":{"resultType":"matrix","result":[{"metric":{},"values":[[1566575518,"3"]]}]}}

The jsonpath could be i.e.: "path":"$.status.data.result[1].values[0][1]" but then there is no attribute name. That name could be i.e. "!"