types

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUStatsConfig added in v0.8.1

type CPUStatsConfig struct {
	MetricsConfigs map[string]MetricConfig `json:"metricsConfigs"`
}

type DiskStatsConfig

type DiskStatsConfig struct {
	MetricsConfigs        map[string]MetricConfig `json:"metricsConfigs"`
	IncludeRootBlk        bool                    `json:"includeRootBlk"`
	IncludeAllAttachedBlk bool                    `json:"includeAllAttachedBlk"`
	LsblkTimeoutString    string                  `json:"lsblkTimeout"`
	LsblkTimeout          time.Duration           `json:"-"`
}

type HostStatsConfig

type HostStatsConfig struct {
	MetricsConfigs map[string]MetricConfig `json:"metricsConfigs"`
}

type MemoryStatsConfig added in v0.8.1

type MemoryStatsConfig struct {
	MetricsConfigs map[string]MetricConfig `json:"metricsConfigs"`
}

type MetricConfig

type MetricConfig struct {
	DisplayName string `json:"displayName"`
}

type SystemStatsConfig

type SystemStatsConfig struct {
	CPUConfig            CPUStatsConfig    `json:"cpu"`
	DiskConfig           DiskStatsConfig   `json:"disk"`
	HostConfig           HostStatsConfig   `json:"host"`
	MemoryConfig         MemoryStatsConfig `json:"memory"`
	InvokeIntervalString string            `json:"invokeInterval"`
	InvokeInterval       time.Duration     `json:"-"`
}

func (*SystemStatsConfig) ApplyConfiguration

func (ssc *SystemStatsConfig) ApplyConfiguration() error

ApplyConfiguration applies default configurations.

func (*SystemStatsConfig) Validate

func (ssc *SystemStatsConfig) Validate() error

Validate verifies whether the settings are valid.

Jump to

Keyboard shortcuts

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