[Agent] [Status] agent metric accomplish

This commit is contained in:
zeaslity
2023-12-21 11:39:19 +08:00
parent 8becc27472
commit 53f4f526cf
9 changed files with 246 additions and 49 deletions

View File

@@ -1,6 +1,7 @@
package status
import (
"agent-go/utils"
"encoding/json"
"fmt"
"testing"
@@ -37,10 +38,7 @@ func TestGetNetworkInfo(t *testing.T) {
}
for _, networkInfo := range networkInfos {
fmt.Println()
marshal, _ := json.MarshalIndent(networkInfo, "", " ")
fmt.Println(string(marshal))
fmt.Println()
utils.BeautifulPrint(networkInfo)
}
}