From 306383e2276bcbe72951b18c520c933c3b93581b Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 22 Nov 2022 14:35:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=82=E7=82=B9=E7=8A=B6=E6=80=81=E4=B8=AD?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0API=E8=B0=83=E7=94=A8=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/nodeconfigs/node_status.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/nodeconfigs/node_status.go b/pkg/nodeconfigs/node_status.go index 492fe7d..9d90f85 100644 --- a/pkg/nodeconfigs/node_status.go +++ b/pkg/nodeconfigs/node_status.go @@ -24,8 +24,10 @@ type NodeStatus struct { Load1m float64 `json:"load1m"` Load5m float64 `json:"load5m"` Load15m float64 `json:"load15m"` - ConnectionCount int `json:"connectionCount"` // 连接数 - ExePath string `json:"exePath"` // 可执行文件路径 + ConnectionCount int `json:"connectionCount"` // 连接数 + ExePath string `json:"exePath"` // 可执行文件路径 + APISuccessPercent float64 `json:"apiSuccessPercent"` // API成功比例 + APIAvgCostSeconds float64 `json:"apiAvgCostSeconds"` // API平均耗时 TrafficInBytes uint64 `json:"trafficInBytes"` TrafficOutBytes uint64 `json:"trafficOutBytes"`