reports

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 Metric

type Metric string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL