blob: 6fdfb81dbd2fd09f71e0a27916ced8c0e4568182 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{
"aggregations": {
"timeslots": {
"date_histogram": {
"field": "start-time",
"interval": "1h"
},
"aggregations": {
"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
},
"aggregations": {
"avg_clients": {
"avg": { "field": "data.client-count" }
}
}
}
}
}
}
}
|