Skip to content

Event Trends

Santanu edited this page May 31, 2014 · 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 #Request { "opcode" : "trend", //This is histogram operation (not-null) "table" : "test-app", //Your app/table name (not-null) "filters" : [], //Filter set (default: no filter) "field" : "header.eventType", //Field to classify and bucketize(not-null) "period" : "hours", //Size of bucket ["days", "hrs", "mins"] (default: days) "values" : [ //List of values to consider in "field". (default: all values) "APP_LOAD", "APP_CRASH" ] }

#Response { "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 }] } }