Documentation ¶
Index ¶
- Constants
- func WriteReport(cfg *ReportConfig, dataTable DataTable, writer io.Writer) error
- type DataTable
- type JobRecordClient
- type Metric
- type ReportConfig
- type ReportSectionSpec
- type ReportSpec
- type SectionConfig
- func HorizontalBarChart(title string, metric Metric, filterExpr string) SectionConfig
- func HorizontalBoxChart(title string, metric Metric, filterExpr string) SectionConfig
- func HorizontalDeltaChart(title string, metric Metric, filterExpr string) SectionConfig
- func JobsTable() SectionConfig
- func ResultsDeltaTable(metric Metric, filterExpr string, hidden bool) SectionConfig
- func ResultsTable(metric Metric, filterExpr string, hidden bool) SectionConfig
- func TrendChart(title string, metric Metric, filterExpr string) SectionConfig
- type SectionType
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func WriteReport ¶
func WriteReport(cfg *ReportConfig, dataTable DataTable, writer io.Writer) error
Types ¶
type DataTable ¶
type DataTable interface {
HasSpeed() bool
}
func CreateDataTable ¶
func CreateDataTable(client JobRecordClient, jobIds ...string) (DataTable, error)
type JobRecordClient ¶
type ReportConfig ¶
type ReportConfig struct { Title string // contains filtered or unexported fields }
func (*ReportConfig) AddSections ¶
func (r *ReportConfig) AddSections(sections ...SectionConfig) *ReportConfig
func (*ReportConfig) Log ¶
func (r *ReportConfig) Log(format string, args ...any)
func (*ReportConfig) SetCustomLabels ¶ added in v1.2.5
func (r *ReportConfig) SetCustomLabels(customLabels []string)
func (*ReportConfig) Verbose ¶
func (r *ReportConfig) Verbose() *ReportConfig
type ReportSectionSpec ¶
type ReportSpec ¶
type ReportSpec struct { Title string `json:"title"` Sections []ReportSectionSpec `json:"sections"` Labels []string `json:"labels"` }
func (*ReportSpec) ConfigureReport ¶ added in v1.2.2
func (spec *ReportSpec) ConfigureReport(reportCfg *ReportConfig) error
func (*ReportSpec) LoadFile ¶ added in v1.2.2
func (spec *ReportSpec) LoadFile(specPath string) error
type SectionConfig ¶
type SectionConfig interface {
// contains filtered or unexported methods
}
func HorizontalBarChart ¶
func HorizontalBarChart(title string, metric Metric, filterExpr string) SectionConfig
func HorizontalBoxChart ¶
func HorizontalBoxChart(title string, metric Metric, filterExpr string) SectionConfig
func HorizontalDeltaChart ¶
func HorizontalDeltaChart(title string, metric Metric, filterExpr string) SectionConfig
func JobsTable ¶
func JobsTable() SectionConfig
func ResultsDeltaTable ¶
func ResultsDeltaTable(metric Metric, filterExpr string, hidden bool) SectionConfig
func ResultsTable ¶
func ResultsTable(metric Metric, filterExpr string, hidden bool) SectionConfig
func TrendChart ¶
func TrendChart(title string, metric Metric, filterExpr string) SectionConfig
type SectionType ¶
type SectionType string
Click to show internal directories.
Click to hide internal directories.