blob: 0db2cfb9261d405639299fc00be5fd293bcb267a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{
"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
}
},
"the_total_time":
{
"sum": { "field": "duration-ms" }
},
"avg_clients":
{
"avg": { "field": "data.client-count" }
}
}
}
|