options

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultInstantRound = 15 * time.Second

DefaultInstantRound is the default Instant Rounding Value for Prometheus

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Labels       map[string]string `yaml:"labels,omitempty"`
	InstantRound time.Duration     `yaml:"instant_round,omitempty"`
}

Options stores information about Prometheus Options

func New

func New() *Options

New returns a new Prometheus Options with default values

func (*Options) Clone

func (o *Options) Clone() *Options

func (*Options) UnmarshalYAML

func (o *Options) UnmarshalYAML(unmarshal func(any) error) error

Jump to

Keyboard shortcuts

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