keyperf

package
v2.0.0-...-22a6e85 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CounterDefinition

type CounterDefinition struct {
	Name        string `yaml:"name"`
	Type        string `yaml:"type"`
	BaseCounter string `yaml:"base_counter,omitempty"`
}

type KeyPerf

type KeyPerf struct {
	*rest.Rest // provides: AbstractCollector, Client, Object, Query, TemplateFn, TemplateType
	// contains filtered or unexported fields
}

func (*KeyPerf) HarvestModule

func (kp *KeyPerf) HarvestModule() plugin.ModuleInfo

func (*KeyPerf) Init

func (*KeyPerf) InitMatrix

func (kp *KeyPerf) InitMatrix() error

func (*KeyPerf) LoadPlugin

func (kp *KeyPerf) LoadPlugin(kind string, p *plugin.AbstractPlugin) plugin.Plugin

func (*KeyPerf) PollData

func (kp *KeyPerf) PollData() (map[string]*matrix.Matrix, error)

type Object

type Object struct {
	CounterDefinitions []CounterDefinition `yaml:"counter_definitions"`
}

type ObjectCounters

type ObjectCounters struct {
	CounterDefinitions map[string]CounterDefinition `yaml:"-"`
}

func LoadStaticCounterDefinitions

func LoadStaticCounterDefinitions(object string, filePath string, logger *slog.Logger) (ObjectCounters, error)

type StaticCounterDefinitions

type StaticCounterDefinitions struct {
	Objects map[string]Object `yaml:"objects"`
}

Jump to

Keyboard shortcuts

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