Documentation ¶
Index ¶
- Constants
- func CreateReport(client JobRecordClient, cfg *ReportConfig, dataTable DataTable) error
- type DataTable
- type JobRecordClient
- type Metric
- type ReportConfig
- type SectionConfig
- func HorizontalBarChart(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 ¶
View Source
const ( TimeOp = Metric("time/op") Speed = Metric("speed") )
Variables ¶
This section is empty.
Functions ¶
func CreateReport ¶
func CreateReport(client JobRecordClient, cfg *ReportConfig, dataTable DataTable) error
Types ¶
type DataTable ¶
type DataTable interface {
HasSpeed() bool
}
func CreateDataTable ¶
func CreateDataTable(client JobRecordClient, jobIds ...string) (DataTable, error)
type JobRecordClient ¶
type JobRecordClient interface { LoadJob(jobId string) (*core.JobRecord, uint64, error) DownloadLogArtifact(*core.JobRecord, string) error DownloadResultsArtifact(*core.JobRecord, string) error DownloadScriptArtifact(*core.JobRecord, string) error LoadResultsArtifact(*core.JobRecord) ([]byte, error) LoadLogArtifact(*core.JobRecord) ([]byte, error) }
type ReportConfig ¶
type ReportConfig struct { Title string OutputPath 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) Verbose ¶
func (r *ReportConfig) Verbose() *ReportConfig
type SectionConfig ¶
type SectionConfig interface {
// contains filtered or unexported methods
}
func HorizontalBarChart ¶
func HorizontalBarChart(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.