Documentation ¶
Index ¶
- type BlkioCalculator
- type BlkioCalculatorImpl
- type BlkioData
- type CPUCalculator
- type CPUCalculatorImpl
- type CPUData
- type CalculatorFactory
- type CalculatorFactoryImpl
- type NetworkCalculator
- type NetworkCalculatorImpl
- func (c NetworkCalculatorImpl) GetRxBytesPerSecond() float64
- func (c NetworkCalculatorImpl) GetRxDroppedPerSecond() float64
- func (c NetworkCalculatorImpl) GetRxErrorsPerSecond() float64
- func (c NetworkCalculatorImpl) GetRxPacketsPerSecond() float64
- func (c NetworkCalculatorImpl) GetTxBytesPerSecond() float64
- func (c NetworkCalculatorImpl) GetTxDroppedPerSecond() float64
- func (c NetworkCalculatorImpl) GetTxErrorsPerSecond() float64
- func (c NetworkCalculatorImpl) GetTxPacketsPerSecond() float64
- type NetworkData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlkioCalculator ¶
type BlkioCalculatorImpl ¶
func (BlkioCalculatorImpl) GetReadPs ¶
func (c BlkioCalculatorImpl) GetReadPs() float64
func (BlkioCalculatorImpl) GetTotalPs ¶
func (c BlkioCalculatorImpl) GetTotalPs() float64
func (BlkioCalculatorImpl) GetWritePs ¶
func (c BlkioCalculatorImpl) GetWritePs() float64
type CPUCalculator ¶
type CPUCalculatorImpl ¶
func (CPUCalculatorImpl) PerCpuUsage ¶
func (c CPUCalculatorImpl) PerCpuUsage() common.MapStr
func (CPUCalculatorImpl) TotalUsage ¶
func (c CPUCalculatorImpl) TotalUsage() float64
func (CPUCalculatorImpl) UsageInKernelmode ¶
func (c CPUCalculatorImpl) UsageInKernelmode() float64
func (CPUCalculatorImpl) UsageInUsermode ¶
func (c CPUCalculatorImpl) UsageInUsermode() float64
type CalculatorFactory ¶
type CalculatorFactory interface { NewBlkioCalculator(old BlkioData, new BlkioData) BlkioCalculator NewCPUCalculator(old CPUData, new CPUData) CPUCalculator NewNetworkCalculator(old NetworkData, new NetworkData) NetworkCalculator }
type CalculatorFactoryImpl ¶
type CalculatorFactoryImpl struct { }
func (CalculatorFactoryImpl) NewBlkioCalculator ¶
func (c CalculatorFactoryImpl) NewBlkioCalculator(old BlkioData, new BlkioData) BlkioCalculator
func (CalculatorFactoryImpl) NewCPUCalculator ¶
func (c CalculatorFactoryImpl) NewCPUCalculator(old CPUData, new CPUData) CPUCalculator
func (CalculatorFactoryImpl) NewNetworkCalculator ¶
func (c CalculatorFactoryImpl) NewNetworkCalculator(old NetworkData, new NetworkData) NetworkCalculator
type NetworkCalculator ¶
type NetworkCalculatorImpl ¶
type NetworkCalculatorImpl struct {
// contains filtered or unexported fields
}
func (NetworkCalculatorImpl) GetRxBytesPerSecond ¶
func (c NetworkCalculatorImpl) GetRxBytesPerSecond() float64
func (NetworkCalculatorImpl) GetRxDroppedPerSecond ¶
func (c NetworkCalculatorImpl) GetRxDroppedPerSecond() float64
func (NetworkCalculatorImpl) GetRxErrorsPerSecond ¶
func (c NetworkCalculatorImpl) GetRxErrorsPerSecond() float64
func (NetworkCalculatorImpl) GetRxPacketsPerSecond ¶
func (c NetworkCalculatorImpl) GetRxPacketsPerSecond() float64
func (NetworkCalculatorImpl) GetTxBytesPerSecond ¶
func (c NetworkCalculatorImpl) GetTxBytesPerSecond() float64
func (NetworkCalculatorImpl) GetTxDroppedPerSecond ¶
func (c NetworkCalculatorImpl) GetTxDroppedPerSecond() float64
func (NetworkCalculatorImpl) GetTxErrorsPerSecond ¶
func (c NetworkCalculatorImpl) GetTxErrorsPerSecond() float64
func (NetworkCalculatorImpl) GetTxPacketsPerSecond ¶
func (c NetworkCalculatorImpl) GetTxPacketsPerSecond() float64
Click to show internal directories.
Click to hide internal directories.