Versions in this module Expand all Collapse all v1 v1.1.0 May 24, 2021 Changes in this version type Client + func NewV4Client(grafanaURL string, apiToken string, variables url.Values, sslCheck bool, ...) Client + func NewV5Client(grafanaURL string, apiToken string, variables url.Values, sslCheck bool, ...) Client + type GridPos struct + H float64 + W float64 + X float64 + Y float64 type Panel + GridPos GridPos + func (p Panel) Height() float64 + func (p Panel) Is(t PanelType) bool + func (p Panel) IsPartialWidth() bool + func (p Panel) Width() float64 + type PanelType int + const Graph + const SingleStat + const Table + const Text v1.0.0 Feb 28, 2018 Changes in this version + const From + const To + type Client interface + GetDashboard func(dashName string) (Dashboard, error) + GetPanelPng func(p Panel, dashName string, t TimeRange) (io.ReadCloser, error) + func NewClient(url string, apiToken string, variables url.Values) Client + type Dashboard struct + Description string + Panels []Panel + Rows []Row + Title string + VariableValues string + func NewDashboard(dashJSON []byte, variables url.Values) Dashboard + type Panel struct + Id int + Title string + Type string + func (p Panel) IsSingleStat() bool + type Row struct + Id int + Panels []Panel + Showtitle bool + Title string + func (r Row) IsVisible() bool + type TimeRange struct + From string + To string + func NewTimeRange(from, to string) TimeRange + func (tr TimeRange) FromFormatted() string + func (tr TimeRange) ToFormatted() string Incompatible versions in this module v2.3.3+incompatible May 24, 2021 v2.3.2+incompatible May 24, 2021 v2.3.1+incompatible Nov 19, 2019