Max Value Time Aggregator
Description
Returns minimum and maximum values, as well as timestamps, when these values occurred for the first time in each period.
Request
[
{
"entity": "duckduckgo",
"metric": "direct.queries",
"aggregate": {
"types": ["MAX", "MAX_VALUE_TIME", "MIN", "MIN_VALUE_TIME"],
"period": {"count": 1, "unit": "YEAR"}
},
"startDate": "2016-01-01T00:00:00Z",
"endDate": "now"
}
]
Response
[
{
"entity":"duckduckgo",
"metric":"direct.queries",
"tags":{
},
"type":"HISTORY",
"aggregate":{
"type":"MAX",
"period":{
"count":1,
"unit":"YEAR",
"align":"CALENDAR"
}
},
"data":[
{
"d":"2016-01-01T00:00:00.000Z",
"v":1.2657536E7
}
]
},
{
"entity":"duckduckgo",
"metric":"direct.queries",
"tags":{
},
"type":"HISTORY",
"aggregate":{
"type":"MAX_VALUE_TIME",
"period":{
"count":1,
"unit":"YEAR",
"align":"CALENDAR"
}
},
"data":[
{
"d":"2016-01-01T00:00:00.000Z",
"v":1463961600000
}
]
},
{
"entity":"duckduckgo",
"metric":"direct.queries",
"tags":{
},
"type":"HISTORY",
"aggregate":{
"type":"MIN",
"period":{
"count":1,
"unit":"YEAR",
"align":"CALENDAR"
}
},
"data":[
{
"d":"2016-01-01T00:00:00.000Z",
"v":8530739.0
}
]
},
{
"entity":"duckduckgo",
"metric":"direct.queries",
"tags":{
},
"type":"HISTORY",
"aggregate":{
"type":"MIN_VALUE_TIME",
"period":{
"count":1,
"unit":"YEAR",
"align":"CALENDAR"
}
},
"data":[
{
"d":"2016-01-01T00:00:00.000Z",
"v":1457740800000
}
]
}
]
MAX
of12657536
reached atMAX_VALUE_TIME 1463961600000 = 2016-05-23T00:00:00.000Z
.MIN
of8530739
reached atMIN_VALUE_TIME 1457740800000 = 2016-03-12T00:00:00.000Z
.