Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interfaces ¶
type NetInterface ¶
type NetInterface struct { Index int `json:"index"` MTU int `json:"mtu"` Name string `json:"name"` }
Structure for all network Interfaces
type NodeStat ¶
type NodeStat struct { NodeID int32 `json:"node_id"` NodeCode string `json:"node_code"` NodeName string `json:"node_name"` Stat SystemInfo `json:"stat"` Time int64 `json:"time"` }
type SystemInfo ¶
type SystemInfo struct { MemoryStatus *mem.VirtualMemoryStat `json:"memory_status"` AvgLoad *load.AvgStat `json:"avg_load"` Process *load.MiscStat `json:"process"` NetSpeed NetSpeed `json:"net_speed"` CpuCount int `json:"cpu_count"` CpuTimesStat cpu.TimesStat `json:"cpu_times_stat"` DiskUsage *disk.UsageStat `json:"disk_usage"` NetInfo NetInfo `json:"net_info"` NetStat net.IOCountersStat `json:"net_stat"` }
type VNResult ¶
type VNResult struct { VNStatVersion string `json:"vnstatversion"` JSONVersion string `json:"jsonversion"` InterfacesObj []Interfaces `json:"interfaces"` }
Click to show internal directories.
Click to hide internal directories.