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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Graph.
func (*Graph) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Row.
func (*Row) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.
func (*Target) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Yaxis.
func (*Yaxis) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.