config

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SourceTypeMemory      = "memory"
	SourceTypeSwapMemory  = "swap_memory"
	SourceTypeCPU         = "cpu"
	SourceTypeTemperature = "temperature"
	SourceTypeDisk        = "disk"
	SourceTypeProcess     = "process"
)

Keys

View Source
const (
	// process filter fields
	ProcessFieldPid      = "pid"
	ProcessFieldCmdLine  = "cmdline"
	ProcessFieldCwd      = "cwd"
	ProcessFieldEXE      = "exe"
	ProcessFieldName     = "name"
	ProcessFieldNice     = "nice"
	ProcessFieldPPid     = "ppid"
	ProcessFieldUsername = "username"

	// process extra fields
	ProcessFieldGids          = "gids"
	ProcessFieldUids          = "uids"
	ProcessFieldCpuPercent    = "cpu_percent"
	ProcessFieldMemoryPercent = "memory_percent"
	ProcessFieldRSS           = "rss"
	ProcessFieldVMS           = "vms"
	ProcessFieldSwap          = "swap"
	ProcessFieldStack         = "stack"
	ProcessFieldLocked        = "locked"
	ProcessFieldData          = "data"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUConfig

type CPUConfig struct {
	Interval       string `json:"interval" yaml:"interval"`
	CPUDisabled    bool   `json:"cpuDisabled" yaml:"cpuDisabled"`
	PerCPUDisabled bool   `json:"perCpuDisabled" yaml:"perCpuDisabled"`
}

CPU details

type Config

type Config struct {
	HostConfigMap map[string]HostConfig `json:"hostConfigMap"`
}

Config data

type DiskConfig

type DiskConfig struct {
	Interval string              `json:"interval" yaml:"interval"`
	Disabled bool                `json:"disabled" yaml:"disabled"`
	Data     map[string]DiskData `json:"data" yaml:"data"`
}

Disk details

type DiskData

type DiskData struct {
	Disabled bool   `json:"disabled" yaml:"disabled"`
	Name     string `json:"name" yaml:"name"`
	Path     string `json:"path" yaml:"path"`
	Unit     string `json:"unit" yaml:"unit"`
}

DiskData struct

type HostConfig

type HostConfig struct {
	Disabled    bool              `json:"disabled" yaml:"disabled"`
	HostIDs     []string          `json:"hostIds" yaml:"hostIds"`
	Memory      MemoryConfig      `json:"memory" yaml:"memory"`
	CPU         CPUConfig         `json:"cpu" yaml:"cpu"`
	Disk        DiskConfig        `json:"disk" yaml:"disk"`
	Temperature TemperatureConfig `json:"temperature" yaml:"temperature"`
	Process     ProcessConfig     `json:"process" yaml:"process"`
}

type MemoryConfig

type MemoryConfig struct {
	Interval       string `json:"interval" yaml:"interval"`
	MemoryDisabled bool   `json:"memoryDisabled" yaml:"memoryDisabled"`
	SwapDisabled   bool   `json:"swapDisabled" yaml:"swapDisabled"`
	Unit           string `json:"unit" yaml:"unit"`
}

Memory details

type ProcessConfig

type ProcessConfig struct {
	Interval string                 `json:"interval" yaml:"interval"`
	Disabled bool                   `json:"disabled" yaml:"disabled"`
	Data     map[string]ProcessData `json:"data" yaml:"data"`
}

Process details

type ProcessData

type ProcessData struct {
	Disabled bool              `json:"disabled" yaml:"disabled"`
	Name     string            `json:"name" yaml:"name"`
	Unit     string            `json:"unit" yaml:"unit"`
	Filter   map[string]string `json:"filter" yaml:"filter"`
}

ProcessData struct

type TemperatureConfig

type TemperatureConfig struct {
	Interval    string   `json:"interval" yaml:"interval"`
	DisabledAll bool     `json:"disabledAll" yaml:"disabledAll"`
	Enabled     []string `json:"enabled" yaml:"enabled"`
}

Temperature details

Jump to

Keyboard shortcuts

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