dashboard

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Dashboard v1.Dashboard `json:"-" yaml:"-"`
}

func New

func New(name string, options ...Option) (Builder, error)

type Option

type Option func(dashboard *Builder) error

func AddDatasource

func AddDatasource(name string, options ...datasource.Option) Option

func AddPanelGroup

func AddPanelGroup(title string, options ...panelgroup.Option) Option

func AddVariable

func AddVariable(name string, options ...variable.Option) Option

func AddVariableGroup

func AddVariableGroup(options ...variablegroup.Option) Option

func Duration

func Duration(seconds time.Duration) Option

func Name

func Name(name string) Option

func ProjectName

func ProjectName(name string) Option

func RefreshInterval

func RefreshInterval(seconds time.Duration) Option

Jump to

Keyboard shortcuts

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