我从日期直方图聚合中创建了移动平均聚合。我想在后面链接其他聚合。该怎么做?
我有此错误消息->
聚合[the_movavg]无法定义子聚合”
样品
间隔10分钟的值
"aggs": {
"agg_histogram_hour": {
"date_histogram": {
"interval": "hour",
"min_doc_count": 0,
"field": "timestamp"
},
"aggs": {
"the_sum": {
"sum": {
"field": "value"
}
},
"the_movavg": {
"moving_avg": {
"window": 4,
"buckets_path": "the_sum"
}
}..........next aggs..........
}
}
结果将是按天,按类型,最大(平均(4h))和总计 (例如:1d'A'最多5个,总共10个)
Elasticsearch查询
dotnet new mvc -o SeniorDevops --auth Individual