Can we get current-day's events in aggregate endpoints?
Can we get today's aggregation data for the aggregation endpoints listed? For example the below Events request body is throwing error when i set the count to 0
What I am trying to achieve: get currentday's aggregate information, hence replaced count with 0 instead of -1
Error Message:
bad pipeline: either count or last must be specified for time series
Request Body:
{
"channelId": "",
"response": {
"location": "request",
"mimeType": "application/json"
},
"request": {
"name": "",
"pipeline": [
{
"source": {
"pageEvents": null,
"timeSeries": {
"period": "dayRange",
"first": "now()",
"count": 0
}
}
}
],
"requestId": ""
}
}
0
コメント
Hi Dimple,
You can, indeed. Instead of zero, you'd want to use a count of one.
"timeSeries": {"period": "dayRange",
"first": "now()",
"count": 1
}
When creating timeSeries, consider "now()" as being the beginning of the period value and the count as being one unit of that period type. In the case of dayRange, "now()" would equate to midnight and a count of one would be one day forward from midnight (i.e. today).
サインインしてコメントを残してください。