opts

package
v0.0.0-...-c082c09 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aetos

type Aetos struct {
	NumLabels  uint8
	NumMetrics uint8
	// contains filtered or unexported fields
}

Aetos is a type that represents the current configuration of metrics|labels

func (*Aetos) Descs

func (a *Aetos) Descs() []*prometheus.Desc

Descs is a method that represents the Config as a slice of prometheus.Desc This method is used by the Metrics methods and by the collector's Describe method

func (*Aetos) Get

Get is a method that gets the Config as a protobuf message

func (*Aetos) Metrics

func (a *Aetos) Metrics() []prometheus.Metric

Metrics is a method that represents the Config as a slice of prometheus.Metric This method is used by the collector's Collect method

func (*Aetos) Set

func (a *Aetos) Set(rqst *v1alpha1.AetosPublishRequest) error

Set is a method that sets the Config using a protobuf message

type Build

type Build struct {
	Namespace string
	Subsystem string

	GitCommit string
	GoVersion string
	OSVersion string
	StartTime int64
}

type Opts

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

func NewOpts

func NewOpts(namespace, subsystem string) *Opts

func (*Opts) NewAetosOpts

func (o *Opts) NewAetosOpts(cardinality, numLabels, numMetrics uint8) *Aetos

NewAetosOpts is a method that creates new NewAetosOpts opts

func (*Opts) NewBuildOpts

func (o *Opts) NewBuildOpts(GitCommit, GoVersion, OSVersion string, StartTime int64) *Build

NewBuildOpts is a method that creates new NewBuildOpts opts

Jump to

Keyboard shortcuts

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