Results Format
The results object contains a number of members having a date as the key and an object as the value. The date is formatted as YYYY-MM-DD regardless of whether the report is being split by day, week, or month. If the report is being split by week or by month, the first date of the week or month is used.
Each sub-object contains a sub-object for each event. These contain the event category and name, and the number of times it occurred, or the custom numeric value that was sent with it, depending on whether the dataView value is set as usageCount or customValues.
Example Request
POST /reporting/eventTracking/basic/timeline HTTP/1.1
Host: api.revulytics.com
Content-Type: application/json
Accept: application/json
{
"user": "testuser@test.com",
"sessionId": "VSB8E2BzSC2eZSJm4QmTpA",
"productId": 12345678901,
"startDate": "2018-08-01",
"stopDate": "2018-08-03",
"dateSplit": "day",
"dataView": "usageCounts",
"divisor": null,
"events": [
{
"category": "File Operations",
"name": "Open"
},
{
"category": "File Operations",
"name": "Save"
}
]
}
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"status": "OK",
"results": {
"2018-08-01": [
{
"category": "File Operations",
"name": "Open",
"value": 295
},
{
"category": "File Operations",
"name": "Save",
"value": 59
}
],
"2018-08-02": [
{
"category": "File Operations",
"name": "Open",
"value": 132
},
{
"category": "File Operations",
"name": "Save",
"value": 24
}
],
"2018-08-03": [
{
"category": "File Operations",
"name": "Open",
"value": 14
},
{
"category": "File Operations",
"name": "Save",
"value": 2
}
]
}
}