prometheus

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(query *Prometheus)

Option represents an option that can be used to configure a prometheus query.

func Legend

func Legend(legend string) Option

Legend sets the legend format.

func TimeRange

func TimeRange(from time.Duration, to time.Duration) Option

TimeRange sets the legend format.

type Prometheus

type Prometheus struct {
	Builder sdk.AlertQuery
}

Prometheus represents a prometheus query.

func New

func New(ref string, query string, options ...Option) *Prometheus

New creates a new prometheus query.

Jump to

Keyboard shortcuts

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