Json tags to some structs were missing. Fix ServerRep reply on the server.

This commit is contained in:
Krishna Srinivas
2015-09-22 01:31:20 -07:00
parent 3b050a4299
commit ca17408be0
2 changed files with 5 additions and 7 deletions
+3 -3
View File
@@ -59,12 +59,12 @@ type DefaultRep struct {
// ServerListRep collection of server replies
type ServerListRep struct {
List []ServerRep
List []ServerRep `json:"list"`
}
// DiskStatsRep collection of disks
type DiskStatsRep struct {
Disks []string
Disks []string `json:"disks"`
}
// MemStatsRep memory statistics of a server
@@ -83,7 +83,7 @@ type Network struct {
// NetStatsRep network statistics of a server
type NetStatsRep struct {
Interfaces []Network
Interfaces []Network `json:"interfaces"`
}
// SysInfoRep system information of a server