Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeMetrics ¶
type NodeMetrics struct {
Load1 float64
Load5 float64
Load15 float64
FilesystemAvailBytes uint64
FilesystemSizeBytes uint64
MemoryFreeBytes uint64
MemoryTotalBytes uint64
MemorySwapFreeBytes uint64
MemorySwapTotalBytes uint64
BootTimeSeconds uint64
TimeSeconds uint64
NetworkReceiveBytes uint64
NetworkTransmitBytes uint64
Hostname string
Kernel string
}
func GetNodeMetrics ¶
func GetNodeMetrics(ctx context.Context, u string) (*NodeMetrics, error)
func ParseNodeMetrics ¶
func (*NodeMetrics) Uptime ¶
func (m *NodeMetrics) Uptime() string
Click to show internal directories.
Click to hide internal directories.