summaryrefslogtreecommitdiff
path: root/src/es5
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-12-01 22:47:14 +0100
committerChristian Pointner <equinox@spreadspace.org>2014-12-01 22:47:14 +0100
commitf251b9cacecbf35b15178a19990772940418d63e (patch)
tree06915828c52f4d513b7ef187542dc61f01239ff6 /src/es5
parentes5: return all buckets (diff)
es5: average for clients
Diffstat (limited to 'src/es5')
-rw-r--r--src/es5/es-query.json6
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" }
}
}
}