diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-12-01 22:47:14 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-12-01 22:47:14 +0100 |
commit | f251b9cacecbf35b15178a19990772940418d63e (patch) | |
tree | 06915828c52f4d513b7ef187542dc61f01239ff6 /src | |
parent | es5: return all buckets (diff) |
es5: average for clients
Diffstat (limited to 'src')
-rw-r--r-- | src/es5/es-query.json | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/es5/es-query.json b/src/es5/es-query.json index a1c2f35..0db2cfb 100644 --- a/src/es5/es-query.json +++ b/src/es5/es-query.json @@ -1,7 +1,7 @@ { "aggregations": { - "by_hostname": + "by_source": { "terms": { "script": "[ doc['hostname'].value, doc['streamer-id.content-id'].value, doc['streamer-id.format'].value, doc['streamer-id.quality'].value ].join('/') ", "size": 0 @@ -11,9 +11,9 @@ { "sum": { "field": "duration-ms" } }, - "da_klaient_do": + "avg_clients": { - "sum": { "field": "data.client-count" } + "avg": { "field": "data.client-count" } } } } |