dashboard

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 10 Imported by: 4 modules, 14 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationDisplay added in v0.2.0

type AnnotationDisplay struct {
	Name        string `json:"name" yaml:"name"`
	Description string `json:"description,omitempty" yaml:"description,omitempty"`
	Hidden      bool   `json:"hidden,omitempty" yaml:"hidden,omitempty"`
	Color       string `json:"color,omitempty" yaml:"color,omitempty"`
}

type AnnotationSpec added in v0.2.0

type AnnotationSpec struct {
	Display AnnotationDisplay `json:"display" yaml:"display"`
	Plugin  plugin.Plugin     `json:"plugin" yaml:"plugin"`
}

func (*AnnotationSpec) UnmarshalJSON added in v0.2.0

func (d *AnnotationSpec) UnmarshalJSON(data []byte) error

func (*AnnotationSpec) UnmarshalYAML added in v0.2.0

func (d *AnnotationSpec) UnmarshalYAML(unmarshal func(any) error) error

type GridItem

type GridItem struct {
	X              int             `json:"x" yaml:"x"`
	Y              int             `json:"y" yaml:"y"`
	Width          int             `json:"width" yaml:"width"`
	Height         int             `json:"height" yaml:"height"`
	Content        *common.JSONRef `json:"content" yaml:"content"`
	RepeatVariable *RepeatVariable `json:"repeatVariable,omitempty" yaml:"repeatVariable,omitempty"`
}

type GridLayoutCollapse

type GridLayoutCollapse struct {
	Open bool `json:"open" yaml:"open"`
}

type GridLayoutDisplay

type GridLayoutDisplay struct {
	Title string `json:"title" yaml:"title"`
	// If Collapse is defined, the grid layout will be rendered in a collapsible group.
	// If not defined, the grid layout will be rendered expanded without the ability to collapse it.
	Collapse *GridLayoutCollapse `json:"collapse,omitempty" yaml:"collapse,omitempty"`
}

type GridLayoutSpec

type GridLayoutSpec struct {
	Display        *GridLayoutDisplay `json:"display,omitempty" yaml:"display,omitempty"`
	Items          []GridItem         `json:"items" yaml:"items"`
	RepeatVariable string             `json:"repeatVariable,omitempty" yaml:"repeatVariable,omitempty"`
}

type Layout

type Layout struct {
	Kind LayoutKind `json:"kind" yaml:"kind"`
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Schemaless
	Spec LayoutSpec `json:"spec" yaml:"spec"`
}

func (*Layout) UnmarshalJSON

func (d *Layout) UnmarshalJSON(data []byte) error

func (*Layout) UnmarshalYAML

func (d *Layout) UnmarshalYAML(unmarshal func(any) error) error

type LayoutKind

type LayoutKind string
const (
	KindGridLayout LayoutKind = "Grid"
	KindTabLayout  LayoutKind = "Tabs"
)

func (*LayoutKind) UnmarshalJSON

func (k *LayoutKind) UnmarshalJSON(data []byte) error

func (*LayoutKind) UnmarshalYAML

func (k *LayoutKind) UnmarshalYAML(unmarshal func(any) error) error

type LayoutSpec

type LayoutSpec any
type Link struct {
	Name            string `json:"name,omitempty" yaml:"name,omitempty"`
	URL             string `json:"url" yaml:"url"`
	Tooltip         string `json:"tooltip,omitempty" yaml:"tooltip,omitempty"`
	RenderVariables bool   `json:"renderVariables,omitempty" yaml:"renderVariables,omitempty"`
	TargetBlank     bool   `json:"targetBlank,omitempty" yaml:"targetBlank,omitempty"`
}

type ListVariableSpec

type ListVariableSpec struct {
	variable.ListSpec `json:",inline" yaml:",inline"`
	Name              string `json:"name" yaml:"name"`
	// contains filtered or unexported fields
}

func (*ListVariableSpec) GetName

func (v *ListVariableSpec) GetName() string

func (*ListVariableSpec) UnmarshalJSON

func (v *ListVariableSpec) UnmarshalJSON(data []byte) error

func (*ListVariableSpec) UnmarshalYAML

func (v *ListVariableSpec) UnmarshalYAML(unmarshal func(any) error) error

type Panel

type Panel struct {
	Kind string    `json:"kind" yaml:"kind"`
	Spec PanelSpec `json:"spec" yaml:"spec"`
}

type PanelDisplay

type PanelDisplay struct {
	Name        string `json:"name,omitempty" yaml:"name,omitempty"`
	Description string `json:"description,omitempty" yaml:"description,omitempty"`
}

type PanelSpec

type PanelSpec struct {
	Display     *PanelDisplay    `json:"display,omitempty" yaml:"display,omitempty"`
	Plugin      plugin.Plugin    `json:"plugin" yaml:"plugin"`
	Queries     []Query          `json:"queries,omitempty" yaml:"queries,omitempty"`
	Links       []Link           `json:"links,omitempty" yaml:"links,omitempty"`
	Annotations []AnnotationSpec `json:"annotations,omitempty" yaml:"annotations,omitempty"`
}

type Query

type Query struct {
	Kind string    `json:"kind" yaml:"kind"`
	Spec QuerySpec `json:"spec" yaml:"spec"`
}

type QuerySpec

type QuerySpec struct {
	Name   string        `json:"name,omitempty" yaml:"name,omitempty"`
	Plugin plugin.Plugin `json:"plugin" yaml:"plugin"`
}

type RepeatVariable added in v0.2.0

type RepeatVariable struct {
	Value     string                  `json:"value" yaml:"value"`
	MaxPer    *int                    `json:"maxPer,omitempty" yaml:"maxPer,omitempty"`
	Alignment RepeatVariableAlignment `json:"alignment,omitempty" yaml:"alignment,omitempty"`
}

type RepeatVariableAlignment added in v0.2.0

type RepeatVariableAlignment string
const (
	RepeatVariableAlignmentHorizontal RepeatVariableAlignment = "horizontal"
	RepeatVariableAlignmentVertical   RepeatVariableAlignment = "vertical"
)

func (*RepeatVariableAlignment) UnmarshalJSON added in v0.2.0

func (a *RepeatVariableAlignment) UnmarshalJSON(data []byte) error

func (*RepeatVariableAlignment) UnmarshalYAML added in v0.2.0

func (a *RepeatVariableAlignment) UnmarshalYAML(unmarshal func(any) error) error

type Spec

type Spec struct {
	Display *common.Display `json:"display,omitempty" yaml:"display,omitempty"`
	// Datasources is an optional list of datasource definition.
	Datasources map[string]*datasource.Spec `json:"datasources,omitempty" yaml:"datasources,omitempty"`
	Variables   []Variable                  `json:"variables,omitempty" yaml:"variables,omitempty"`
	Annotations []AnnotationSpec            `json:"annotations,omitempty" yaml:"annotations,omitempty"`
	Panels      map[string]*Panel           `json:"panels" yaml:"panels"`
	Layouts     []Layout                    `json:"layouts" yaml:"layouts"`
	// Duration is the default time range to use when getting data to fill the dashboard
	Duration common.DurationString `json:"duration" yaml:"duration"`
	// RefreshInterval is the default refresh interval to use when landing on the dashboard
	RefreshInterval common.DurationString `json:"refreshInterval,omitempty" yaml:"refreshInterval,omitempty"`
	// Timezone is the dashboard level timezone
	Timezone string `json:"timezone,omitempty" yaml:"timezone,omitempty"`
	// Links is an optional list of links to display at the dashboard level
	Links []Link `json:"links,omitempty" yaml:"links,omitempty"`
}

func (*Spec) UnmarshalJSON

func (d *Spec) UnmarshalJSON(data []byte) error

func (*Spec) UnmarshalYAML

func (d *Spec) UnmarshalYAML(unmarshal func(any) error) error

type TabItem added in v0.2.0

type TabItem struct {
	// Display name of the tab shown in the tab bar.
	Name string `json:"name" yaml:"name"`
	// The grid layout items within this tab.
	Items []GridItem `json:"items" yaml:"items"`
}

type TabLayoutDisplay added in v0.2.0

type TabLayoutDisplay struct {
	Title string `json:"title" yaml:"title"`
	// If Collapse is defined, the tab group will be rendered in a collapsible container.
	// If not defined, the tab group will be rendered expanded without the ability to collapse it.
	Collapse *GridLayoutCollapse `json:"collapse,omitempty" yaml:"collapse,omitempty"`
}

type TabLayoutSpec added in v0.2.0

type TabLayoutSpec struct {
	Display *TabLayoutDisplay `json:"display,omitempty" yaml:"display,omitempty"`
	// Ordered list of tabs. The first tab (or defaultTab index) is shown by default.
	Tabs []TabItem `json:"tabs" yaml:"tabs"`
	// Zero-based index of the tab to show by default. Defaults to 0.
	DefaultTab int `json:"defaultTab,omitempty" yaml:"defaultTab,omitempty"`
}

type TextVariableSpec

type TextVariableSpec struct {
	variable.TextSpec `json:",inline" yaml:",inline"`
	Name              string `json:"name" yaml:"name"`
	// contains filtered or unexported fields
}

func (*TextVariableSpec) GetName

func (v *TextVariableSpec) GetName() string

func (*TextVariableSpec) UnmarshalJSON

func (v *TextVariableSpec) UnmarshalJSON(data []byte) error

func (*TextVariableSpec) UnmarshalYAML

func (v *TextVariableSpec) UnmarshalYAML(unmarshal func(any) error) error

type Variable

type Variable struct {
	// Kind is the type of the variable. Depending on the value of Kind, it will change the content of Spec.
	Kind variable.Kind `json:"kind" yaml:"kind"`
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Schemaless
	Spec variableSpec `json:"spec" yaml:"spec"`
}

func (*Variable) UnmarshalJSON

func (v *Variable) UnmarshalJSON(data []byte) error

func (*Variable) UnmarshalYAML

func (v *Variable) UnmarshalYAML(unmarshal func(any) error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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