provider

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 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 Dashboard

type Dashboard struct {
	Prefix    string
	RawData   []Query
	Variables []Variable
}

func (*Dashboard) Queries

func (dashboard *Dashboard) Queries(cfg Transform) (Queries, error)

type Graphite added in v0.4.0

type Graphite interface {
	Fetch(context.Context, string, time.Duration) (Metrics, error)
}

type Metric

type Metric string

type Metrics

type Metrics []Metric

func (Metrics) Len

func (metrics Metrics) Len() int

func (Metrics) Less

func (metrics Metrics) Less(i, j int) bool

func (Metrics) Swap

func (metrics Metrics) Swap(i, j int)

type Option

type Option struct {
	Name  string
	Value string
}

type Queries

type Queries []Query

func (*Queries) Convert

func (queries *Queries) Convert(src []string)

func (Queries) Len

func (queries Queries) Len() int

func (Queries) Less

func (queries Queries) Less(i, j int) bool

func (Queries) Swap

func (queries Queries) Swap(i, j int)

type Query

type Query string

type Transform

type Transform struct {
	SkipRaw        bool
	SkipDuplicates bool
	NeedSorting    bool
	Unpack         bool
	TrimPrefixes   []string
}

type Variable

type Variable struct {
	Name    string
	Options []Option
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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