Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskStat ¶
type ServerStat ¶
type ServerStat struct { // Host HostName string `json:"hostname"` HostID string `json:"hostid"` VirtualizationSystem string `json:"virtualizationSystem"` // Memory MemStat mem.VirtualMemoryStat `json:"memStat"` // DiskIO DiskIO []DiskStat `json:"diskIO"` // Cpu CpuUsedPercent []float64 `json:"cpuUsedPercent"` // Apache ApacheStat float64 `json:"apacheStat"` ApacheLog int64 `json:"apacheLog"` ReqPerSec float64 `json:"reqPerSec"` // Dstat DstatLog string `json:"dstatLog"` // Time Time string `json:"time"` // Error ErrorInfo []error `json:"errorInfo"` }
func GetServerStat ¶
func GetServerStat() ServerStat
func (*ServerStat) GetApacheStat ¶
func (s *ServerStat) GetApacheStat()
func (*ServerStat) GetCpuStat ¶
func (s *ServerStat) GetCpuStat()
func (*ServerStat) GetDiskIOStat ¶
func (s *ServerStat) GetDiskIOStat()
func (*ServerStat) GetDstatLog ¶
func (s *ServerStat) GetDstatLog()
func (*ServerStat) GetHostStat ¶
func (s *ServerStat) GetHostStat()
func (*ServerStat) GetMemoryStat ¶
func (s *ServerStat) GetMemoryStat()
func (*ServerStat) GetTime ¶
func (s *ServerStat) GetTime()
func (ServerStat) String ¶
func (d ServerStat) String() string
Click to show internal directories.
Click to hide internal directories.