host

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	HostName string `json:"name"`
	HostIP   string `json:"ip"`
	CPUCores string `json:"cpu_cores"`
	MemSize  string `json:"mem_size"`
}

func (*Host) DeepCopy

func (r *Host) DeepCopy() *Host

type Metrics

type Metrics struct {
	MemTotal        uint64  `json:"memTotal"`
	MemAvailable    uint64  `json:"memAvailable"`
	MemUsedPercent  float64 `json:"memUsedPercent"`
	CpuCount        int     `json:"cpuCount"`
	CpuTotalPercent float64 `json:"cpuTotalPercent"`
	BytesSent       uint64  `json:"bytesSent"`
	BytesRecv       uint64  `json:"bytesRecv"`
}

func (*Metrics) DeepCopy

func (r *Metrics) DeepCopy() *Metrics

Jump to

Keyboard shortcuts

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