[Agent] [Status] agent metric accomplish
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user