我有一个HTTP查询,我用它来获取1.5.2018和7.5.2018之间的所有客户。我可以以某种方式编辑这个以获得从1.5.2018到现在的所有客户?我在文档中找不到这个,所以我假设结束间隔是必需的,必须具体。有人可以帮我编辑吗?或者我是否需要在应用程序中获取实际日期?
{
"queryType": "timeseries",
"dataSource": "customers",
"granularity": "all",
"intervals": [ "2018-05-07T00:00:00.000/2018-05-21T00:00:00.000" ]
}
答案 0 :(得分:0)
时间间隔值如下所示
"intervals": "2018-05-07T00:00:00.000/2018-05-21T00:00:00.000"
没有方括号。以下是topN查询示例 -
{"aggregations":[{"name":"count","type":"count"},{"fieldName":"fname1","name":"fname1","type":"longSum"},{"fieldName":"fname2","name":"fname2","type":"longSum"}],"dataSource":"xxx","dimension":"dim1","granularity":"all","intervals":"2018-05-16T00:00:00.000/2018-05-17T00:00:00.000","metric":"count","queryType":"topN","threshold":4}