From 50ba0dadf51aa6ccf531b21e83c36fcfdb43254b Mon Sep 17 00:00:00 2001 From: zhangyuxiang <1323804152@qq.com> Date: Mon, 16 Jun 2025 16:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2=E7=9A=84es?= =?UTF-8?q?=E7=9A=84factor=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/anxinyunEsAggQuery.go | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/utils/anxinyunEsAggQuery.go b/utils/anxinyunEsAggQuery.go index 57f298c..4d7eb30 100644 --- a/utils/anxinyunEsAggQuery.go +++ b/utils/anxinyunEsAggQuery.go @@ -86,6 +86,56 @@ func GetEsAggSubSqlByAxyFactorId(factorId int) string { "field": "data.z_acc_speed" } } +}` + case 102: + subAggSQl = ` +{ + "x": { + "extended_stats": { + "field": "data.displacement" + } + } +}` + case 1914: + subAggSQl = ` +{ + "x": { + "extended_stats": { + "field": "data.x" + } + }, + "y": { + "extended_stats": { + "field": "data.y" + } + } +}` + case 1917: + subAggSQl = ` +{ + "x": { + "extended_stats": { + "field": "data.pv" + } + } +}` + case 1919: + subAggSQl = ` +{ + "x": { + "extended_stats": { + "field": "data.xAcc" + } + } +}` + case 1920: + subAggSQl = ` +{ + "x": { + "extended_stats": { + "field": "data.yAcc" + } + } }` } return subAggSQl