fix json encoding in meshviewer
This commit is contained in:
parent
8927fe27f5
commit
e586dad6d5
@ -33,16 +33,16 @@ type Nodes struct {
|
|||||||
type Statistics struct {
|
type Statistics struct {
|
||||||
NodeId string `json:"node_id"`
|
NodeId string `json:"node_id"`
|
||||||
Clients uint32 `json:"clients"`
|
Clients uint32 `json:"clients"`
|
||||||
RootFsUsage float64 `json:"rootfs_usage,omitempty""`
|
RootFsUsage float64 `json:"rootfs_usage,omitempty"`
|
||||||
LoadAverage float64 `json:"loadavg,omitempty""`
|
LoadAverage float64 `json:"loadavg,omitempty"`
|
||||||
Memory data.Memory `json:"memory,omitempty""`
|
Memory data.Memory `json:"memory,omitempty"`
|
||||||
Uptime float64 `json:"uptime,omitempty""`
|
Uptime float64 `json:"uptime,omitempty"`
|
||||||
Idletime float64 `json:"idletime,omitempty""`
|
Idletime float64 `json:"idletime,omitempty"`
|
||||||
Gateway string `json:"gateway,omitempty"`
|
Gateway string `json:"gateway,omitempty"`
|
||||||
Processes struct {
|
Processes struct {
|
||||||
Total uint32 `json:"total"`
|
Total uint32 `json:"total"`
|
||||||
Running uint32 `json:"running"`
|
Running uint32 `json:"running"`
|
||||||
} `json:"processes,omitempty""`
|
} `json:"processes,omitempty"`
|
||||||
MeshVpn *data.MeshVPN `json:"mesh_vpn,omitempty"`
|
MeshVpn *data.MeshVPN `json:"mesh_vpn,omitempty"`
|
||||||
Traffic struct {
|
Traffic struct {
|
||||||
Tx *data.Traffic `json:"tx"`
|
Tx *data.Traffic `json:"tx"`
|
||||||
@ -50,5 +50,5 @@ type Statistics struct {
|
|||||||
Forward *data.Traffic `json:"forward"`
|
Forward *data.Traffic `json:"forward"`
|
||||||
MgmtTx *data.Traffic `json:"mgmt_tx"`
|
MgmtTx *data.Traffic `json:"mgmt_tx"`
|
||||||
MgmtRx *data.Traffic `json:"mgmt_rx"`
|
MgmtRx *data.Traffic `json:"mgmt_rx"`
|
||||||
} `json:"traffic,omitempty""`
|
} `json:"traffic,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user