Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(target *Prometheus)
Option represents an option that can be used to configure a prometheus query.
type Prometheus ¶
type Prometheus struct { Ref string Expr string IntervalFactor int Interval string Step int LegendFormat string Instant bool Format string }
Prometheus represents a prometheus query.
func New ¶
func New(query string, options ...Option) *Prometheus
New creates a new prometheus query.
Click to show internal directories.
Click to hide internal directories.