Documentation ¶
Index ¶
- func AppendMetric(metric *state.Metric, idx int32, value float64)
- func AppendResult(row *state.Row, rowResult Row, count int)
- func Days(d float64) time.Duration
- func FindMetric(row *state.Row, name string) *state.Metric
- func Headers(group configpb.TestGroup) []string
- func Update(client *storage.Client, ctx context.Context, path gcs.Path, ...)
- type Build
- type Builds
- type Column
- type ColumnMetadata
- type Row
- type Rows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendMetric ¶
AppendMetric adds the value at index to metric.
Handles the details of sparse-encoding the results. Indices must be monotonically increasing for the same metric.
func AppendResult ¶
AppendResult adds the rowResult column to the row.
Handles the details like missing fields and run-length-encoding the result.
func Days ¶
Days converts days float into a time.Duration, assuming a 24 hour day.
A day is not always 24 hours due to things like leap-seconds. We do not need this level of precision though, so ignore the complexity.
func FindMetric ¶
FindMetric returns the first metric with the specified name.
Types ¶
type Column ¶
type Column struct { ID string Started int64 Finished int64 Passed bool Rows map[string][]Row Metadata ColumnMetadata Version string }
Column represents a build run, which includes one or more row results and metadata.
type ColumnMetadata ¶
ColumnMetadata holds key => value mapping of metadata info.