data

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: LGPL-2.1 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect(only ...string) map[string]interface{}

Types

type BlockDevices added in v0.6.3

type BlockDevices struct {
	BlockDeviceRoot string
}

func (BlockDevices) Collect added in v0.6.3

func (self BlockDevices) Collect() map[string]interface{}

type CPU

type CPU struct {
	// contains filtered or unexported fields
}

func (CPU) Collect

func (self CPU) Collect() map[string]interface{}

type CPUStats added in v0.8.0

type CPUStats struct {
	User        map[int]int64
	Nice        map[int]int64
	System      map[int]int64
	Idle        map[int]int64
	IOWait      map[int]int64
	IRQ         map[int]int64
	SoftIRQ     map[int]int64
	Steal       map[int]int64
	Guest       map[int]int64
	GuestNice   map[int]int64
	CollectedAt time.Time
}

func (*CPUStats) Active added in v0.8.0

func (self *CPUStats) Active(core int) int64

func (*CPUStats) MaxCore added in v0.8.0

func (self *CPUStats) MaxCore() int

func (*CPUStats) Total added in v0.8.0

func (self *CPUStats) Total(core int) (sum int64)

type Collector

type Collector interface {
	Collect() map[string]interface{}
}

type IPMI added in v0.6.11

type IPMI struct {
}

func (IPMI) Collect added in v0.6.11

func (self IPMI) Collect() map[string]interface{}

type Kernel

type Kernel struct {
}

func (Kernel) Collect

func (self Kernel) Collect() map[string]interface{}

type Memory added in v0.6.11

type Memory struct {
}

func (Memory) Collect added in v0.6.11

func (self Memory) Collect() map[string]interface{}

type Mounts added in v0.6.3

type Mounts struct {
}

func (Mounts) Collect added in v0.6.3

func (self Mounts) Collect() map[string]interface{}

type Network

type Network struct {
}

func (Network) Collect

func (self Network) Collect() map[string]interface{}

type OS

type OS struct {
}

func (OS) Collect

func (self OS) Collect() map[string]interface{}

type System

type System struct {
}

func (System) Collect

func (self System) Collect() map[string]interface{}

Jump to

Keyboard shortcuts

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