influxdb

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 InfluxDB

type InfluxDB struct {
	Builder sdk.AlertQuery
}

InfluxDB represents a influxdb query.

func New

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

New creates a new influxdb query.

type Option

type Option func(query *InfluxDB)

Option represents an option that can be used to configure a influxdb 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.

Jump to

Keyboard shortcuts

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