package
Version:
v6.2.3+incompatible
Opens a new window with list of versions in this module.
Published: Mar 12, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AddMemPercentage calculates the ratio of used and total size of memory
AddSwapPercentage calculates the ratio of used and total swap size
GetMemoryEvent returns the event created from memory statistics
GetSwapEvent returns the event created from swap usage
type MemStat struct {
sigar.Mem
UsedPercent float64 `json:"used_p"`
ActualUsedPercent float64 `json:"actual_used_p"`
}
MemStat includes the memory usage statistics and ratios of usage and total memory usage
Get returns the memory stats of the host
SwapStat includes the current swap usage and the ratio of used and total swap size
GetSwap returns the swap usage of the host
Source Files
¶
Click to show internal directories.
Click to hide internal directories.