statushistory

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const PluginKind = "StatusHistoryChart"

Variables

This section is empty.

Functions

func Chart

func Chart(options ...Option) panel.Option

Types

type Builder

type Builder struct {
	PluginSpec `json:",inline" yaml:",inline"`
}

type Legend

type Legend struct {
	Position LegendPosition `json:"position" yaml:"position"`
	Mode     LegendMode     `json:"mode,omitempty" yaml:"mode,omitempty"`
	Size     LegendSize     `json:"size,omitempty" yaml:"size,omitempty"`
}

type LegendMode

type LegendMode string
const (
	ListMode  LegendMode = "list"
	TableMode LegendMode = "table"
)

type LegendPosition

type LegendPosition string
const (
	BottomPosition LegendPosition = "bottom"
	RightPosition  LegendPosition = "right"
)

type LegendSize

type LegendSize string
const (
	SmallSize  LegendSize = "small"
	MediumSize LegendSize = "medium"
)

type Option

type Option func(plugin *Builder) error

func WithLegend

func WithLegend(legend Legend) Option

type PluginSpec

type PluginSpec struct {
	Legend *Legend `json:"legend,omitempty" yaml:"legend,omitempty"`
}

Jump to

Keyboard shortcuts

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