Statistics Query
Basic query for statistics
Basic statistic query format
{
"query": {
"distinct": ...,
"aggregate": {...},
"filter": [...],
"filter_or": [...],
"sort": {...},
"limit":{...}
}
}{
"query": {
"distinct": "server_id"
}
}{ "query": {
"aggregate": {
"unwind": [
{
"path": "collection_info.service_accounts"
}
],
"group": {
"keys": [
{
"key": "service_account_id",
"name": "service_account"
}
],
"fields": [
{
"operator": "count",
"name": "cloud_service_count"
}
]
},
"count": {
"name": "service_counts"
}
}
}
}aggregate specification : (type: dict)
unwind specification : (type: list)
group specification : (type: dict)
keys specification : (type: list)
fields specification : (type: list)
count specification : (type: dict)
Last updated