Versions in this module Expand all Collapse all v1 v1.4.1 May 22, 2024 v1.4.0 May 21, 2024 Changes in this version type Config + AppURL string + ChromeOptions []func(*chromedp.ExecAllocator) + DashboardMode string + DataPath string + EncodedLogo string + ExcludePanelIDs []int + IncludePanelIDs []int + Layout string + MaxRenderWorkers int + Orientation string + PersistData bool + SkipTLSCheck bool + TimeZone string + func DefaultConfig() Config + func NewAppConfig() Config + func (c *Config) String() string type GrafanaClient + Dashboard func(dashUID string) (Dashboard, error) + PanelPNG func(p Panel, dashUID string, t TimeRange) (io.ReadCloser, error) type Panel + ID int + type ReportOptions struct + func (o ReportOptions) From() string + func (o ReportOptions) IsGridLayout() bool + func (o ReportOptions) IsLandscapeOrientation() bool + func (o ReportOptions) Logo() string + func (o ReportOptions) To() string v1.3.0 May 3, 2024 Changes in this version type ReportConfig + func (c ReportConfig) Logo() string + type Secrets struct v1.2.0 Apr 19, 2024 v1.1.0 Apr 7, 2024 v1.0.0 Mar 18, 2024 Changes in this version type Dashboard + RowOrPanels []RowOrPanel + type RowOrPanel struct + Collapsed bool + Panels []Panel v0 v0.1.0 Feb 2, 2024 Changes in this version + const From + const GF_PATHS_DATA + const PLUGIN_NAME + const To + func NewApp(ctx context.Context, settings backend.AppInstanceSettings) (instancemgmt.Instance, error) + type App struct + func (a *App) CheckHealth(_ context.Context, _ *backend.CheckHealthRequest) (*backend.CheckHealthResult, error) + func (a *App) Dispose() + type Config struct + type Dashboard struct + Description string + Panels []Panel + Rows []Row + Title string + VariableValues string + func NewDashboard(dashJSON []byte, variables url.Values) Dashboard + type GrafanaClient interface + GetDashboard func(dashUID string) (Dashboard, error) + GetPanelPNG func(p Panel, dashUID string, t TimeRange) (io.ReadCloser, error) + func NewGrafanaClient(client *http.Client, grafanaAppURL string, cookie string, variables url.Values, ...) GrafanaClient + type GridPos struct + H float64 + W float64 + X float64 + Y float64 + type Panel struct + GridPos GridPos + Id int + Title string + Type string + func (p Panel) Height() float64 + func (p Panel) Is(t PanelType) bool + func (p Panel) IsPartialWidth() bool + func (p Panel) IsSingleStat() bool + func (p Panel) Width() float64 + type PanelType int + const Graph + const SingleStat + const Table + const Text + type Report interface + Clean func() + Generate func() (io.ReadCloser, error) + Title func() string + func NewReport(logger log.Logger, client GrafanaClient, config *ReportConfig) (Report, error) + type ReportConfig struct + func (c ReportConfig) From() string + func (c ReportConfig) IsGridLayout() bool + func (c ReportConfig) IsLandscapeOrientation() bool + func (c ReportConfig) To() string + type Row struct + Collapsed bool + Id int + Panels []Panel + 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