linux

package
v1.300037.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

type CPU struct {
	PerCore  bool
	TotalCPU bool

	UsageIdle   bool `cpu_usage_idle`
	UsageIOWait bool `cpu_usage_iowait`
	UsageSteal  bool `cpu_usage_steal`
	UsageGuest  bool `cpu_usage_guest`
	UsageUser   bool `cpu_usage_user`
	UsageSystem bool `cpu_usage_system`
}

func (*CPU) Enable

func (config *CPU) Enable()

func (*CPU) ToMap

func (config *CPU) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type Disk

type Disk struct {
	Instances []string

	UsedPercent bool `used_percent`
	InodesFree  bool `inodes_free`
}

func (*Disk) Enable

func (config *Disk) Enable()

func (*Disk) ToMap

func (config *Disk) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type DiskIO

type DiskIO struct {
	Instances []string

	IOTime     bool `io_time`
	WriteBytes bool `write_bytes`
	ReadBytes  bool `read_bytes`
	Writes     bool `writes`
	Reads      bool `reads`
}

func (*DiskIO) Enable

func (config *DiskIO) Enable()

func (*DiskIO) ToMap

func (config *DiskIO) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type Memory

type Memory struct {
	MemUsedPercent bool `mem_used_percent`
}

func (*Memory) Enable

func (config *Memory) Enable()

func (*Memory) ToMap

func (config *Memory) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type Net

type Net struct {
	Instances []string

	BytesSent       bool `bytes_sent`
	BytesReceived   bool `bytes_recv`
	PacketsSent     bool `packets_sent`
	PacketsReceived bool `packets_recv`
}

func (*Net) Enable

func (config *Net) Enable()

func (*Net) ToMap

func (config *Net) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type NetStat

type NetStat struct {
	TCPEstablished bool `tcp_established`
	TCPTimeWait    bool `tcp_time_wait`
}

func (*NetStat) Enable

func (config *NetStat) Enable()

func (*NetStat) ToMap

func (config *NetStat) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type Swap

type Swap struct {
	UsedPercent bool `swap_used_percent`
}

func (*Swap) Enable

func (config *Swap) Enable()

func (*Swap) ToMap

func (config *Swap) ToMap(ctx *runtime.Context) (string, map[string]interface{})

Jump to

Keyboard shortcuts

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