status

package
v0.0.0-...-3c1f8fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskStat

type DiskStat struct {
	Name       string `json:"name"`
	IoTime     uint64 `json:"ioTime"`
	WeightedIO uint64 `json:"weightedIO"`
}

func (DiskStat) String

func (d DiskStat) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL