feat: KPI黄金指标补充网元类型

This commit is contained in:
TsMask committed 2024-02-06 19:26:49 +08:00
1 parent 102754f1fb
commit 76b00ccfe5
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -198,7 +198,8 @@ func PostKPIReportFromNF(w http.ResponseWriter, r *http.Request) {
// 黄金指标事件对象
kpiEvent := map[string]any{
// kip_id ...
"neName": goldKpi.NEType,
"neType": goldKpi.NEType,
"neName": goldKpi.NEName,
"startIndex": goldKpi.Index,
"timeGroup": goldKpi.StartTime,
}
@@ -55,6 +55,7 @@ func (r *PerfKPIImpl) SelectGoldKPI(query model.GoldKPIQuery, kpiIds []string) [
var fields = []string{
groupByField,
"min(CASE WHEN gk.index != '' THEN gk.index ELSE 0 END) AS startIndex",
"min(CASE WHEN gk.ne_type != '' THEN gk.ne_type ELSE 0 END) AS neType",
"min(CASE WHEN gk.ne_name != '' THEN gk.ne_name ELSE 0 END) AS neName",
}
for _, kid := range kpiIds {