grafana_dashboard

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DashboardFilename

func DashboardFilename(documentBytes []byte, productName string) string

Types

type GrafanaDashboard

type GrafanaDashboard struct {
	Title string       `json:"title"`
	Rows  []GrafanaRow `json:"rows"`
}

func DocumentToDashboard

func DocumentToDashboard(document indicator.Document) GrafanaDashboard

type GrafanaPanel

type GrafanaPanel struct {
	Title      string             `json:"title"`
	Type       string             `json:"type"`
	Targets    []GrafanaTarget    `json:"targets"`
	Thresholds []GrafanaThreshold `json:"thresholds"`
}

type GrafanaRow

type GrafanaRow struct {
	Title  string         `json:"title"`
	Panels []GrafanaPanel `json:"panels"`
}

type GrafanaTarget

type GrafanaTarget struct {
	Expression string `json:"expr"`
}

type GrafanaThreshold

type GrafanaThreshold struct {
	Value     float64 `json:"value"`
	ColorMode string  `json:"colorMode"`
	Op        string  `json:"op"`
	Fill      bool    `json:"fill"`
	Line      bool    `json:"line"`
	Yaxis     string  `json:"yaxis"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL