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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Axis.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gauge.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Panel.
func (*Panel) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RowPanel ¶
type RowPanel struct { }
Row groups relevant charts
func (*RowPanel) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RowPanel.
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 ¶
func (*Sort) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sort.
type TablePanel ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TextPanel.