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

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

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,
}

View File

@@ -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 {