Documentation ¶
Index ¶
- func ImageReportCLI(cfg config.ImageReport) (string, error)
- func NewFsWriter() *fs
- func NewImageReporter(screenshotter GrafanaScreenshotter, uploader Uploader) *imageReporter
- func NewMetaReport(allowlist []string) (*metaReport, error)
- func NewS3Writer(bucketName string) (*s3Writer, error)
- func NewTableReport(q Querier) *tableReport
- func TableReportCli(q Querier, queriesFile string) (string, error)
- type DashboardScreenshotter
- type GrafanaScreenshotter
- type Panel
- type Querier
- type QueriesConfig
- type Query
- type Row
- type ScreenshotPanelConfig
- type Uploader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageReportCLI ¶
func ImageReportCLI(cfg config.ImageReport) (string, error)
func NewFsWriter ¶
func NewFsWriter() *fs
func NewImageReporter ¶
func NewImageReporter(screenshotter GrafanaScreenshotter, uploader Uploader) *imageReporter
func NewMetaReport ¶
NewMetaReport creates a meta report the allowlist parameter refers to which keys are valid
func NewS3Writer ¶
NewS3Writer creates a s3 it assumes AWS environment variables are setup correctly
func NewTableReport ¶
func NewTableReport(q Querier) *tableReport
Types ¶
type DashboardScreenshotter ¶
type GrafanaScreenshotter ¶
func (*GrafanaScreenshotter) AllPanels ¶
func (gs *GrafanaScreenshotter) AllPanels(ctx context.Context, dashboardUID string, from int64, to int64) ([]Panel, error)
AllPanes take a screenshot of all panes in a dashboard
func (*GrafanaScreenshotter) ScreenshotPanel ¶
func (gs *GrafanaScreenshotter) ScreenshotPanel(ctx context.Context, cfg ScreenshotPanelConfig) ([]byte, error)
ScreenshotPanel takes screenshot of a grafana panel
type QueriesConfig ¶
type Query ¶
type Query struct { Name string `yaml:"name"` Description string `yaml:"description" default:""` Base string `yaml:"base"` BaseResult float64 Target string `yaml:"target"` TargetResult float64 // TODO(eh-am): implement a default value DiffThreshold float64 `yaml:"diffThresholdPercent"` DiffPercent float64 BiggerIsBetter bool `yaml:"biggerIsBetter"` // contains filtered or unexported fields }
type ScreenshotPanelConfig ¶
Click to show internal directories.
Click to hide internal directories.