Results Format
The results element is an array containing the actual results. Each event is presented as a JSON object inside the results array. This is the same data contained in the downloadable zipped CSV files.
In the following example, the last 2 lines in the CSV are being requested (the lineCount property is set to 2)
Example Request
POST /customEventTracking/getLastLines HTTP/1.1
Host: api.revulytics.com
Content-Type: application/json
Accept: application/json
{
"user": "testuser@test.com",
"sessionId": "VSB8E2BzSC2eZSJm4QmTpA",
"productId": 2376158762,
"lineCount": 2
}
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"status":"OK",
"fieldNames":{
"timestamp":"Timestamp",
"clientId":"Client ID",
"prodEdition":"Edition",
"prodVersion":"Version",
"prodBuild":"Build",
"prodLanguage":"Language",
"licenseType":"License Type",
"licenseStatus.allowed":"Key Allowed",
"licenseStatus.blocked":"Key Blocked",
"licenseStatus.activated":"Key Activated",
"licenseStatus.expired":"Key Expired",
"os.version":"OS Type",
"osWordLength":"OS Architecture",
"osLanguage":"OS Language",
"cpuType":"CPU Type",
"cpuCores":"CPU Cores",
"ram":"RAM",
"displayCount":"Number of Monitors",
"resolution":"Screen Resolution",
"dotNetVersion": ".NET Versions",
"gpu.model": "GPU",
"formFactor":"Computer Type",
"geography.country":"Country",
"geography.usState":"US State",
"event.category":"Event Category",
"event.name":"Event Type",
"event.data":"Event Data"
},
"results":[
{
"timestamp":"2017-11-22T12:41:19",
"clientId":"AE99797E4B480921",
"prodEdition":"Standard",
"prodVersion":"3.1",
"prodBuild":"951",
"prodLanguage":"German",
"licenseType":"purchased",
"licenseStatus.allowed":"N",
"licenseStatus.blocked":"N",
"licenseStatus.activated":"N",
"licenseStatus.expired":"N",
"os.version":"MS Win XP",
"osWordLength":"64-bit",
"osLanguage":"German",
"cpuType":"Intel Core i7",
"cpuCores":"4",
"ram":"8192",
"displayCount":"1",
"resolution":"1920x1080",
"dotNetVersion": "2.0;3.5 SP1;3.0 SP2",
"gpu.model": "Intel HD Graphics 620",
"formFactor":"Desktop",
"geography.country":"DE",
"geography.usState":"",
"event.category":"File Operations",
"event.name":"Save",
"event.data":"final21.doc"
},
{
"timestamp":"2017-11-22T14:51:54",
"clientId":"2958A7C5911ABF77",
"prodEdition":"Premium",
"prodVersion":"2",
"prodBuild":"719",
"prodLanguage":"English",
"licenseType":"purchased",
"licenseStatus.allowed":"N",
"licenseStatus.blocked":"N",
"licenseStatus.activated":"N",
"licenseStatus.expired":"N",
"os.version":"MS Win Vista",
"osWordLength":"64-bit",
"osLanguage":"English",
"cpuType":"Intel Pentium",
"cpuCores":"2",
"ram":"1024",
"displayCount":"1",
"resolution":"1920x1080",
"dotNetVersion": "2.0;3.5 SP1;3.0 SP2",
"gpu.model": "Intel HD Graphics 620",
"formFactor":"Desktop",
"geography.country":"US",
"geography.usState":"IL",
"event.category":"File Operations",
"event.name":"Open",
"event.data":"testfl.doc"
}
]
}