Documentation
¶
Index ¶
Constants ¶
View Source
const PluginKind = "GaugeChart"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
PluginSpec `json:",inline" yaml:",inline"`
}
type LegendSpec ¶ added in v0.12.1
type LegendSpec struct {
Show bool `json:"show" yaml:"show"`
}
type Option ¶
func Calculation ¶
func Calculation(calculation common.Calculation) Option
func Legend ¶ added in v0.12.1
func Legend(legend LegendSpec) Option
func Thresholds ¶
func Thresholds(thresholds common.Thresholds) Option
type PluginSpec ¶
type PluginSpec struct {
Calculation common.Calculation `json:"calculation" yaml:"calculation"`
Format *common.Format `json:"format,omitempty" yaml:"format,omitempty"`
Thresholds *common.Thresholds `json:"thresholds,omitempty" yaml:"thresholds,omitempty"`
Max float64 `json:"max,omitempty" yaml:"max,omitempty"`
Legend *LegendSpec `json:"legend,omitempty" yaml:"legend,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.