hsdp

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	prometheus.Collector

	Updater
	// contains filtered or unexported fields
}

func NewMetric

func NewMetric(opts ...OptionFunc) (*Metric, error)

func (*Metric) Prune added in v0.0.11

func (metrics *Metric) Prune()

func (*Metric) Update

func (metrics *Metric) Update(ctx context.Context, instance console.Instance) error

type OptionFunc

type OptionFunc func(m *Metric) error

func WithClient

func WithClient(client *console.Client) OptionFunc

func WithHelp

func WithHelp(help string) OptionFunc

func WithName

func WithName(name string) OptionFunc

func WithPrune added in v0.0.11

func WithPrune(prune int) OptionFunc

func WithQuery

func WithQuery(query string) OptionFunc

func WithRegion added in v0.0.7

func WithRegion(region string) OptionFunc

func WithService added in v0.0.6

func WithService(service string) OptionFunc

type Updater

type Updater interface {
	WithLabelValues(lvs ...string) prometheus.Gauge
}

Jump to

Keyboard shortcuts

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