blob: b0191e9157d3259458794f335ed91b829a35343c [file] [log] [blame]
// THIS FILE IS AUTOGENERATED. DO NOT MODIFY.
package buildevent
import pb "infra/libs/bqschema/tabledef"
import time "time"
// BuildsTable is the TableDef for the
// "" dataset's "builds" table.
var BuildsTable = &pb.TableDef{
DatasetId: "",
TableId: "builds",
}
// Builds_Properties is a record for the "properties" field.
type Builds_Properties struct {
Key string `bigquery:"key"`
ValueJson string `bigquery:"value_json"`
}
// Builds_Input is a record for the "input" field.
type Builds_Input struct {
// Input user-defined list of key-value pairs.
Properties []*Builds_Properties `bigquery:"properties"`
}
// Builds_Output is a record for the "output" field.
type Builds_Output struct {
// Output user-defined list of key-value pairs.
Properties []*Builds_Properties `bigquery:"properties"`
}
// Builds_Swarming is a record for the "swarming" field.
type Builds_Swarming struct {
// The host name of the swarming server.
Host string `bigquery:"host"`
// The run ID (zero out last digit for task ID).
RunId string `bigquery:"run_id"`
}
// Builds is the schema for "BuildsTable".
type Builds struct {
// An unique identifier of the build. On Buildbucket, it has format "buildbucket/<buildbucket host>/<buildbucket build id>". On Buildbot, it has format "buildbot/<master>/<builder>/<number>". Other tables may also have build_id field to reference this row.
BuildId string `bigquery:"build_id"`
// The buildbucket bucket.
Bucket string `bigquery:"bucket"`
// The name of the builder. Unique within the bucket.
Builder string `bigquery:"builder"`
// The build number, unique within the builder. May be not present.
Number int64 `bigquery:"number"`
// When the buildbucket build was created.
CreationTime time.Time `bigquery:"creation_time"`
// When a bot started bootstrapping the build.
StartTime time.Time `bigquery:"start_time"`
// The build completion time.
CompletionTime time.Time `bigquery:"completion_time"`
// The host name of the machine that runs the build.
HostName string `bigquery:"host_name"`
// The build status. Valid value are SUCCESS, FAILURE, ERROR, TIMEOUT, CANCELLED
Status string `bigquery:"status"`
// Buildset, format documented in go/buildbucket-buildset. Identifies a patchset.
Buildset []string `bigquery:"buildset"`
// Build input
Input *Builds_Input `bigquery:"input"`
// Build output
Output *Builds_Output `bigquery:"output"`
// Swarming information.
Swarming *Builds_Swarming `bigquery:"swarming"`
}