countly.top_events

Follow

Here is the list of possible fields for the TopEvents widget.

Field Description Example
_id ID 5d47718079630e553a98e9a2
app_id APP_ID 5d37ab7293200231007419be
ts Time to create as timestamp 1564963201
period TopEvents period. It can only be "30days" and "today". today
data TopEvents data "data":[ { "name":"Login", "data":[ 0, 4, 1, 2, 3, 3, 0, 3, 1, 1, 1, 0, 2, 1, 0, 0, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], "count":29, "trend":"141.7%" } ]


Here is an example of top_events document

{
    "_id": "5d47718079630e553a98e9a2",
    "app_id": "5d37ab7293200231007419be",
    "ts": 1564963201,
    "period": "30days",
    "data": [
        {
            "name": "Login",
            "data": [
                0,
                4,
                1,
                2,
                3,
                3,
                0,
                3,
                1,
                1,
                1,
                0,
                2,
                1,
                0,
                0,
                5,
                2,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "count": 29,
            "trend": "141.7%"
        },
        {
            "name": "Achievement",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "count": 0,
            "trend": "∞"
        }
    ]
}

TopEvents endpoint is updated every 24 hours using jobs. You can see the data for 30 days and only daily. The limit parameter is an option.

Looking for help?