apache

package
v0.0.0-...-764d95b Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OperatingRatio

func OperatingRatio(board []byte) float64

func Scoreboard

func Scoreboard(host string) ([]byte, error)

Types

type DiskStatus

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

DiskStatus はディスクの付加情報を格納します。

type ServerStatus

type ServerStatus struct {
	// Host
	HostName             string `json:"hostname"`
	HostID               string `json:"hostid"`
	VirtualizationSystem string `json:"virtualizationSystem"`
	// Memory
	MemStat               mem.VirtualMemoryStat `json:"memStat"`
	MemoryAcquisitionTime string                `json:"memoryAcquisitionTime"`
	// DiskIO
	DiskIO              []DiskStatus `json:"diskIO"`
	DiskAcquisitionTime string       `json:"diskAcquisitionTime"`
	// CPU
	CpuUsedPercent     []float64 `json:"cpuUsedPercent"`
	CpuAcquisitionTime string    `json:"cpuAcquisitionTime"`
	// Apache
	ApacheStat            float64 `json:"apacheStat"`
	ApacheLog             int     `json:"apacheLog"`
	ReqPerSec             float64 `json:"reqPerSec"`
	ApacheAcquisitionTime string  `json:"apacheAcquisitionTime"`
	// Dstat
	DstatLog             string `json:"dstatLog"`
	DstatAcquisitionTime string `json:"dstatAcquisitionTime"`
	// Time
	Time string `json:"time"`
	// Error
	//ErrorInfo []error `json:"errorInfo"`
	// Other Error
	Other string `json:"other"`
	// ID
	Id int `json:"-"`
}

ServerStatus は各Webサーバの負荷状況を格納します。

Jump to

Keyboard shortcuts

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