[TASK] implement gateway_nexthop (#39)

https://github.com/freifunk-gluon/gluon/pull/795
This commit is contained in:
Geno 2017-03-13 12:15:22 +01:00 committed by GitHub
parent 8fcf9c496e
commit a68e13d311

View File

@ -7,16 +7,17 @@ package data
//Statistics struct //Statistics struct
type Statistics struct { type Statistics struct {
NodeID string `json:"node_id"` NodeID string `json:"node_id"`
Clients Clients `json:"clients"` Clients Clients `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 Memory `json:"memory,omitempty"` Memory Memory `json:"memory,omitempty"`
Uptime float64 `json:"uptime,omitempty"` Uptime float64 `json:"uptime,omitempty"`
Idletime float64 `json:"idletime,omitempty"` Idletime float64 `json:"idletime,omitempty"`
GatewayIPv4 string `json:"gateway,omitempty"` GatewayIPv4 string `json:"gateway,omitempty"`
GatewayIPv6 string `json:"gateway6,omitempty"` GatewayIPv6 string `json:"gateway6,omitempty"`
Processes struct { GatewayNexthop string `json:"gateway_nexthop,omitempty"`
Processes struct {
Total uint32 `json:"total"` Total uint32 `json:"total"`
Running uint32 `json:"running"` Running uint32 `json:"running"`
} `json:"processes,omitempty"` } `json:"processes,omitempty"`