Evolution
Overview
The evo
parameter describes the context of the evolution analysis, allowing you to track how your data changes over time with specific granularity and element selection.
Parameters
Parameter | Description | Values | Required |
---|---|---|---|
granularity | Time granularity for the evolution | M (Month), W (Week), D (Day), H (Hour) | Yes |
top | Configuration for selecting top elements based on period, pagination and sorting | Object (see below) | Yes |
Top Parameters
Parameter | Description | Values | Required |
---|---|---|---|
max-results | Maximum number of results to return | Integer | No |
page-num | Page number for pagination | Integer | No |
sort | Sort by metrics | Array of metric names | No |
Examples
Example 1: Monthly evolution with top elements
{
"evo": {
"granularity": "M",
"top": {
"max-results": 10,
"page-num": 1,
"sort": ["-m_visits"]
}
},
"space": {
"s": [123456789]
}
}
Example 2: Daily evolution for multiple sites
{
"evo": {
"granularity": "D",
"top": {
"max-results": 20,
"sort": ["-m_visits", "m_users"]
}
},
"space": {
"s": [123456789, 1234567890]
}
}