有谁知道如何让事件聚合通过 Square-Cube REST 工作?
给定一个事件:
{
type: 'sampleType',
time: '...'
data:{
prop: 3.445
}
}
当试图总结这一点时,我得到了不同的项目计数,而不是总和:
http://..:1081/1.0/metric?expression=sum(sampleType(adjClose))
[{"time":"2013-10-16T14:50:50.000Z","value":0},
{"time":"2013-10-16T14:51:00.000Z","value":0},
{"time":"2013-10-16T14:51:10.000Z","value":0},
...,
{"time":"2013-10-16T14:51:40.000Z","value":0},
{"time":"2013-10-16T14:51:50.000Z","value":0}]