2015-05-17 20:51:42 +00:00
|
|
|
package types
|
2015-04-07 08:20:55 +00:00
|
|
|
|
|
|
|
type Build struct {
|
2015-05-19 03:44:44 +00:00
|
|
|
ID int64 `meddler:"build_id,pk" json:"id"`
|
2015-05-11 07:45:31 +00:00
|
|
|
CommitID int64 `meddler:"commit_id" json:"-"`
|
|
|
|
State string `meddler:"build_state" json:"state"`
|
|
|
|
ExitCode int `meddler:"build_exit" json:"exit_code"`
|
|
|
|
Sequence int `meddler:"build_seq" json:"sequence"`
|
|
|
|
Duration int64 `meddler:"build_duration" json:"duration"`
|
|
|
|
Started int64 `meddler:"build_started" json:"started_at"`
|
|
|
|
Finished int64 `meddler:"build_finished" json:"finished_at"`
|
|
|
|
Created int64 `meddler:"build_created" json:"created_at"`
|
|
|
|
Updated int64 `meddler:"build_updated" json:"updated_at"`
|
|
|
|
|
|
|
|
Environment map[string]string `meddler:"build_env,json" json:"environment"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// QUESTION: should we track if it was oom killed?
|
|
|
|
// OOMKill bool `meddler:"build_oom" json:"oom_kill"`
|