service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stats

func Stats(cl *client.Client) (*map[string]*ResourceStats, error)

Types

type NetStat

type NetStat struct {
	SentKB uint64 `json:"sent_kb"`
	RecvKB uint64 `json:"recv_kb"`
}

type ResourceStats

type ResourceStats struct {
	CpuUsagePercent uint8   `json:"cpu_used_percent"`
	UsedMemoryMB    uint64  `json:"used_memory_mb"`
	NetStat         NetStat `json:"network"`
}

Jump to

Keyboard shortcuts

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