传入的消息是这样的:
[
{
"value": 27,
"unit": "%",
"type": "gauge",
"metric": "cpu_usage",
"time":1519314305.896,
"host":"vm01-partition01",
}
]
我想获得如下的json消息:
[
{
"value": 32,
"aggregation": "mean",
"metric": "cpu_usage",
"time":1519314305.896, //timestamp of the first processed value
"host":"vm01-partition01",
}
]
任何人都可以为我打开灯吗? 感谢