panels

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

+kubebuilder:object:generate=true

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Axis

type Axis struct {
	// Limit the decimal numbers
	Decimals int64 `json:"decimals,omitempty"`
	// Display unit
	Format string `json:"format,omitempty"`
}

func (*Axis) DeepCopy

func (in *Axis) DeepCopy() *Axis

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Axis.

func (*Axis) DeepCopyInto

func (in *Axis) DeepCopyInto(out *Axis)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BarGaugeOptions

type BarGaugeOptions struct {
	Orientation string `json:"orientation,omitempty"`
	TextMode    string `json:"textMode,omitempty"`
	ColorMode   string `json:"colorMode,omitempty"`
	GraphMode   string `json:"graphMode,omitempty"`
	JustifyMode string `json:"justifyMode,omitempty"`
	DisplayMode string `json:"displayMode,omitempty"`
	Content     string `json:"content,omitempty"`
	Mode        string `json:"mode,omitempty"`
}

func (*BarGaugeOptions) DeepCopy

func (in *BarGaugeOptions) DeepCopy() *BarGaugeOptions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BarGaugeOptions.

func (*BarGaugeOptions) DeepCopyInto

func (in *BarGaugeOptions) DeepCopyInto(out *BarGaugeOptions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BarGaugePanel

type BarGaugePanel struct {
	Options *BarGaugeOptions `json:"options,omitempty"`
}

refers to https://pkg.go.dev/github.com/grafana-tools/sdk#BarGaugePanel

func (*BarGaugePanel) DeepCopy

func (in *BarGaugePanel) DeepCopy() *BarGaugePanel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BarGaugePanel.

func (*BarGaugePanel) DeepCopyInto

func (in *BarGaugePanel) DeepCopyInto(out *BarGaugePanel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CommonPanel

type CommonPanel struct {
	// Name of the  panel
	Title string `json:"title,omitempty"`
	// Type of the  panel
	Type string `json:"type,omitempty"`
	// Panel ID
	Id int64 `json:"id,omitempty"`
	// Description
	Description *string `json:"description,omitempty"`
	// Datasource
	Datasource *string `json:"datasource,omitempty"`
	// Height
	Height   *string `json:"height,omitempty"`
	Decimals *int64  `json:"decimals,omitempty"`
	// A collection of queries
	Targets []Target `json:"targets,omitempty"`
	// Set series color
	Colors []string `json:"colors,omitempty"`
	// legend
	Legend []string `json:"legend,omitempty"`
	// Display unit
	Format string `json:"format,omitempty"`
}

Query editor options

func (*CommonPanel) DeepCopy

func (in *CommonPanel) DeepCopy() *CommonPanel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommonPanel.

func (*CommonPanel) DeepCopyInto

func (in *CommonPanel) DeepCopyInto(out *CommonPanel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Gauge

type Gauge struct {
	MaxValue         int64 `json:"maxValue,omitempty"`
	MinValue         int64 `json:"minValue,omitempty"`
	Show             bool  `json:"show,omitempty"`
	ThresholdLabels  bool  `json:"thresholdLabels,omitempty"`
	ThresholdMarkers bool  `json:"thresholdMarkers,omitempty"`
}

Gauge for a stat

func (*Gauge) DeepCopy

func (in *Gauge) DeepCopy() *Gauge

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gauge.

func (*Gauge) DeepCopyInto

func (in *Gauge) DeepCopyInto(out *Gauge)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GraphPanel

type GraphPanel struct {
	// Display as a bar chart
	Bars bool `json:"bars,omitempty"`
	// Display as a line chart
	Lines bool `json:"lines,omitempty"`
	// Display as a stacked chart
	Stack bool `json:"stack,omitempty"`

	Xaxis Axis `json:"xaxis,omitempty"`
	// Y-axis options
	Yaxes []Axis `json:"yaxes,omitempty"`
}

Graph visualizes range query results into a linear graph

func (*GraphPanel) DeepCopy

func (in *GraphPanel) DeepCopy() *GraphPanel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GraphPanel.

func (*GraphPanel) DeepCopyInto

func (in *GraphPanel) DeepCopyInto(out *GraphPanel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Panel

type Panel struct {
	CommonPanel `json:",inline"`
	*GraphPanel `json:",inline"`
	// RowPanel        *RowPanel        `json:",inline"`
	*SinglestatPanel `json:",inline"`
	*TablePanel      `json:",inline"`
	*TextPanel       `json:",inline"`
	*BarGaugePanel   `json:",inline"`
}

func (*Panel) DeepCopy

func (in *Panel) DeepCopy() *Panel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Panel.

func (*Panel) DeepCopyInto

func (in *Panel) DeepCopyInto(out *Panel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Panel) MarshalJSON

func (p *Panel) MarshalJSON() ([]byte, error)

func (*Panel) UnmarshalJSON

func (p *Panel) UnmarshalJSON(b []byte) (err error)

type RowPanel

type RowPanel struct {
}

Row groups relevant charts

func (*RowPanel) DeepCopy

func (in *RowPanel) DeepCopy() *RowPanel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RowPanel.

func (*RowPanel) DeepCopyInto

func (in *RowPanel) DeepCopyInto(out *RowPanel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SinglestatPanel

type SinglestatPanel struct {
	// spark line: full or bottom
	SparkLine string `json:"sparkline,omitempty"`
	// gauge
	Gauge Gauge `json:"gauge,omitempty"`
	// value name
	ValueName string `json:"valueName,omitempty"`
}

SingleStat shows instant query result

func (*SinglestatPanel) DeepCopy

func (in *SinglestatPanel) DeepCopy() *SinglestatPanel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SinglestatPanel.

func (*SinglestatPanel) DeepCopyInto

func (in *SinglestatPanel) DeepCopyInto(out *SinglestatPanel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Sort

type Sort struct {
	Col  int  `json:"col,omitempty"`
	Desc bool `json:"desc,omitempty"`
}

func (*Sort) DeepCopy

func (in *Sort) DeepCopy() *Sort

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sort.

func (*Sort) DeepCopyInto

func (in *Sort) DeepCopyInto(out *Sort)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TablePanel

type TablePanel struct {
	Sort   *Sort `json:"sort,omitempty"`
	Scroll bool  `json:"scroll,omitempty"`
}

a table panel

func (*TablePanel) DeepCopy

func (in *TablePanel) DeepCopy() *TablePanel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TablePanel.

func (*TablePanel) DeepCopyInto

func (in *TablePanel) DeepCopyInto(out *TablePanel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Target

type Target struct {
	// Reference ID
	RefID int64 `json:"refId,omitempty"`
	// only support prometheus,and the corresponding fields are as follows:
	// Input for fetching metrics.
	Expression string `json:"expr,omitempty"`
	// Legend format for outputs. You can make a dynamic legend with templating variables.
	LegendFormat string `json:"legendFormat,omitempty"`
	// Set series time interval
	Step string `json:"step,omitempty"`
}

Query editor options Referers to https://pkg.go.dev/github.com/grafana-tools/sdk#Target

func (*Target) DeepCopy

func (in *Target) DeepCopy() *Target

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.

func (*Target) DeepCopyInto

func (in *Target) DeepCopyInto(out *Target)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TextPanel

type TextPanel struct {
	Mode    string `json:"mode,omitempty"`
	Content string `json:"content,omitempty"`
}

dashboard text type referers to https://pkg.go.dev/github.com/K-Phoen/grabana/decoder#DashboardText

func (*TextPanel) DeepCopy

func (in *TextPanel) DeepCopy() *TextPanel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TextPanel.

func (*TextPanel) DeepCopyInto

func (in *TextPanel) DeepCopyInto(out *TextPanel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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