-
Notifications
You must be signed in to change notification settings - Fork 7
Event Trends
Rishabh edited this page Apr 7, 2015
·
5 revisions
Event trend provides a breakdown of event histograms by type. For example, the following provides a breakdown of a couple of event types that have come over the last one day, broken up by 1hr period.
Note: Periods where there are zero events do not appear in the results
- opcode - trend (not-null) - Operation code for this analytics
- table - table_name (not-null) - Table on which analytics will be run
- filters - Array of filters (Optional - defaults to no filters)
- field - Field to classify and bucketize (not-null)
- period - Bucketing period of response (Optional) (default - days) (Allowed values - seconds, minutes, hours, days)
{
"opcode": "trend",
"table": "test",
"filters": [],
"field": "eventType",
"period": "hours",
"values": [
"APP_LOAD",
"APP_CRASH"
]
}
{
"opcode": "trend",
"trends": {
"APP_LOAD": [
{
"period": 1401534000000,
"count": 3577025
},
{
"period": 1401537600000,
"count": 4475149
},
{
"period": 1401541200000,
"count": 4450258
},
{
"period": 1401544800000,
"count": 4441747
},
{
"period": 1401548400000,
"count": 4793743
},
{
"period": 1401552000000,
"count": 4625320
},
{
"period": 1401555600000,
"count": 3984052
},
{
"period": 1401559200000,
"count": 5344878
},
{
"period": 1401562800000,
"count": 6909432
},
{
"period": 1401566400000,
"count": 1439693
}
],
"APP_CRASH": [
{
"period": 1401534000000,
"count": 3
},
{
"period": 1401537600000,
"count": 1
},
{
"period": 1401541200000,
"count": 5
},
{
"period": 1401566400000,
"count": 2
}
]
}
}