Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrJavaScriptReturnedNoPanels = errors.New("javascript returned no panels") ErrDashboardHTTPError = errors.New("dashboard request does not return 200 OK") ErrImageRendererHTTPError = errors.New("imager renderer request does not return 200 OK") ErrEmptyBlobURL = errors.New("empty blob URL") ErrEmptyCSVData = errors.New("empty csv data") )
Functions ¶
This section is empty.
Types ¶
type APIDashboardData ¶
type APIDashboardData struct { Title string `json:"title"` Description string `json:"description"` VariableValues string // Not present in the Grafana JSON structure. Enriched data passed used by the Tex templating RowOrPanels []RowOrPanel `json:"panels"` }
type APIData ¶
type APIData struct {
Dashboard APIDashboardData `json:"dashboard"`
}
type BrowserData ¶
type BrowserData struct { TimeRange TimeRange PanelData []BrowserPanelData }
type BrowserPanelData ¶
type Dashboard ¶
type Dashboard struct {
// contains filtered or unexported fields
}
func New ¶
func New(logger log.Logger, conf config.Config, httpClient *http.Client, chromeInstance chrome.Instance, pools worker.Pools, grafanaBaseURL string, uid string, values url.Values, saToken string, ) *Dashboard
New creates a new instance of the Dashboard struct.
func (*Dashboard) FetchTable ¶
type GridPos ¶
type GridPos struct { H float64 `json:"h"` W float64 `json:"w"` X float64 `json:"x"` Y float64 `json:"y"` }
GridPos represents a Grafana dashboard panel position.
type Panel ¶
type Panel struct { ID int `json:"id"` Type string `json:"type"` Title string `json:"title"` GridPos GridPos `json:"gridPos"` }
Panel represents a Grafana dashboard panel.
func (Panel) IsPartialWidth ¶
IsPartialWidth If panel has width less than total allowable width.
func (Panel) IsSingleStat ¶
IsSingleStat returns true if panel is of type SingleStat.
type PanelImage ¶
func (PanelImage) String ¶
func (p PanelImage) String() string
type PanelTable ¶
type PanelTable struct { Title string Data PanelTableData }
type PanelTableData ¶
type PanelTableData [][]string
type RowOrPanel ¶
RowOrPanel represents a container for Panels.
Click to show internal directories.
Click to hide internal directories.