panels

package
v0.0.0-...-1fe3f09 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	// Name of the graph panel
	//Title string `json:"title,omitempty"`
	// Must be `graph`
	//Type string `json:"type"`
	// Panel ID
	//Id int64 `json:"id,omitempty"`
	// Panel description
	Description string `json:"description,omitempty"`
	// A collection of queries
	//Targets []Target `json:"targets,omitempty"`
	// Display as a bar chart
	Bars bool `json:"bars,omitempty"`
	// Set series color
	Colors []string `json:"colors,omitempty"`
	// Display as a line chart
	Lines bool `json:"lines,omitempty"`
	// Display as a stacked chart
	Stack bool `json:"stack,omitempty"`
	// Y-axis options
	Yaxes []Yaxis `json:"yaxes,omitempty"`
}

Graph visualizes range query results into a linear graph

func (*Graph) DeepCopy

func (in *Graph) DeepCopy() *Graph

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

func (*Graph) DeepCopyInto

func (in *Graph) DeepCopyInto(out *Graph)

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

type Row

type Row struct {
}

Row groups relevant charts

func (*Row) DeepCopy

func (in *Row) DeepCopy() *Row

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

func (*Row) DeepCopyInto

func (in *Row) DeepCopyInto(out *Row)

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

type SingleStat

type SingleStat struct {
	// Name of the signlestat panel
	//Title string `json:"title,omitempty"`
	// Must be `singlestat`
	//Type string `json:"type"`
	// Panel ID
	//Id int64 `json:"id,omitempty"`
	// A collection of queries
	//Targets []Target `json:"targets,omitempty"`
	// Limit the decimal numbers
	Decimals *int64 `json:"decimals,omitempty"`
	// Display unit
	Format string `json:"format,omitempty"`
}

SingleStat shows instant query result

func (*SingleStat) DeepCopy

func (in *SingleStat) DeepCopy() *SingleStat

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

func (*SingleStat) DeepCopyInto

func (in *SingleStat) DeepCopyInto(out *SingleStat)

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

type Target

type Target struct {
	// 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"`
	// Reference ID
	RefID int64 `json:"refId,omitempty"`
	// Set series time interval
	Step string `json:"step,omitempty"`
}

Query editor options

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 Yaxis

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

func (*Yaxis) DeepCopy

func (in *Yaxis) DeepCopy() *Yaxis

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

func (*Yaxis) DeepCopyInto

func (in *Yaxis) DeepCopyInto(out *Yaxis)

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