Density plugin required
This collection might not appear if you don't have density plugin enabled
Collection density contains break down of new, total and unique density provided in the metrics by time periods.
For shorter representation, these stats are abbreviated as:
- n - new
- t - total
- u - unique
There are 4 types of documents available:
- Zero document, which id is formed from {appID}_{year}:0 And it contains stats breakdown by months and weeks for the specified year
- Month document, which id is formed from {appID}_{year}:{month} And it contains stats breakdown by days of the month
- Splitted zero document which id is formed from {appID}{year}:0{shardname}
- Splitted month document which id is formed from {appID}{year}:{month}{shardname}
Here is the list of possible fields
Field | Description | Example |
---|---|---|
_id | ID formed as {appID}{year}:0 or {appID}{year}:{month} or {appID}{year}:0{shardname} or {appID}{year}:{month}{shardname} | 542e95d747f0be510c000004_2014:10 |
a | App ID | 542e95d747f0be510c000004 |
d | Data for specific document | { "3": { "MDPI": { "t": 2, "n": 1, "u": 1 } }, "15": { "XHDPI": { "t": 5, "n": 1, "u": 1 } } |
m | {year}:{month} for which data is provided | 2014:10 |
meta | Information about all density values. Note it exists only for Zero documents of each year | "density": [ "HDPI", "MDPI" ] |
meta_v2 | New way to store meta info, much faster writes than using sets | "density": { "HDPI":true, "MDPI":true } |
Here are examples of both document types:
{
"_id": "56e53eae4a359b2f5057c8bb_2012:0",
"m": "2012:0",
"a": "56e53eae4a359b2f5057c8bb",
"d": {
"1": {
"HDPI": {
"u": 1
}
},
"7": {
"MDPI": {
"u": 1
}
},
"10": {
"HDPI": {
"u": 1
}
},
"HDPI": {
"u": 2
},
"w1": {
"HDPI": {
"u": 1
}
},
"MDPI": {
"u": 1
},
"w27": {
"MDPI": {
"u": 1
}
},
"w41": {
"HDPI": {
"u": 1
}
}
},
"meta": {
"density": [
"HDPI",
"MDPI"
]
}
}
{
"_id": "56e53eae4a359b2f5057c8bb_2016:2",
"m": "2016:2",
"a": "56e53eae4a359b2f5057c8bb",
"d": {
"3": {
"MDPI": {
"t": 2,
"n": 1,
"u": 1
}
},
"15": {
"XHDPI": {
"t": 5,
"n": 1,
"u": 1
}
}
}
}
Custom Countly metrics
Same collection data pattern is also used in other custom Countly metrics you might want to use in your Countly installation