Documentation ¶
Index ¶
- type DataFormatMode
- type Heatmap
- type LegendOption
- type Option
- func DataFormat(format DataFormatMode) Option
- func DataSource(source string) Option
- func Description(content string) Option
- func Height(height string) Option
- func HideTooltip() Option
- func HideTooltipHistogram() Option
- func HideXAxis() Option
- func HideZeroBuckets() Option
- func HighlightCards() Option
- func Legend(opts ...LegendOption) Option
- func Links(panelLinks ...links.Link) Option
- func NoHighlightCards() Option
- func Repeat(repeat string) Option
- func RepeatDirection(direction sdk.RepeatDirection) Option
- func ReverseYBuckets() Option
- func ShowZeroBuckets() Option
- func Span(span float32) Option
- func TooltipDecimals(decimals int) Option
- func Transparent() Option
- func WithGraphiteTarget(query string, options ...graphite.Option) Option
- func WithInfluxDBTarget(query string, options ...influxdb.Option) Option
- func WithPrometheusTarget(query string, options ...prometheus.Option) Option
- func WithStackdriverTarget(target *stackdriver.Stackdriver) Option
- func YAxis(opts ...axis.Option) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataFormatMode ¶
type DataFormatMode string
DataFormatMode represents the data format modes.
const ( // Grafana does the bucketing by going through all time series values TimeSeriesBuckets DataFormatMode = "tsbuckets" // Each time series already represents a Y-Axis bucket. TimeSeries DataFormatMode = "timeseries" )
type LegendOption ¶
type LegendOption uint16
LegendOption allows to configure a legend.
const ( // Hide keeps the legend from being displayed. Hide LegendOption = iota )
type Option ¶
Option represents an option that can be used to configure a heatmap panel.
func DataFormat ¶
func DataFormat(format DataFormatMode) Option
DataFormat sets how the data should be interpreted.
func DataSource ¶
DataSource sets the data source to be used by the panel.
func Description ¶ added in v0.13.2
Description annotates the current visualization with a human-readable description.
func HideTooltipHistogram ¶
func HideTooltipHistogram() Option
HideTooltipHistogram prevents the histograms from being displayed in tooltips. Histogram represents the distribution of the bucket values for the specific timestamp.
func HighlightCards ¶ added in v0.17.0
func HighlightCards() Option
HighlightCards highlights bucket cards.
func Legend ¶
func Legend(opts ...LegendOption) Option
Legend defines what should be shown in the legend.
func NoHighlightCards ¶ added in v0.17.0
func NoHighlightCards() Option
NoHighlightCards disables the highlighting of bucket cards.
func RepeatDirection ¶ added in v0.22.0
func RepeatDirection(direction sdk.RepeatDirection) Option
RepeatDirection configures repeating vertical or horizontal
func ReverseYBuckets ¶
func ReverseYBuckets() Option
ReverseYBuckets reverses the order of bucket on the Y-axis.
func ShowZeroBuckets ¶
func ShowZeroBuckets() Option
ShowZeroBuckets forces the display of "zero" buckets.
func Span ¶
Span sets the width of the panel, in grid units. Should be a positive number between 1 and 12. Example: 6.
func TooltipDecimals ¶
TooltipDecimals sets the number of decimals to be displayed in tooltips.
func WithGraphiteTarget ¶ added in v0.14.0
WithGraphiteTarget adds a Graphite target to the table.
func WithInfluxDBTarget ¶ added in v0.15.0
WithInfluxDBTarget adds an InfluxDB target to the graph.
func WithPrometheusTarget ¶
func WithPrometheusTarget(query string, options ...prometheus.Option) Option
WithPrometheusTarget adds a prometheus query to the graph.
func WithStackdriverTarget ¶
func WithStackdriverTarget(target *stackdriver.Stackdriver) Option
WithStackdriverTarget adds a stackdriver query to the graph.