| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package buildbot | 5 package buildbot |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "bytes" | 8 "bytes" |
| 9 "compress/gzip" | 9 "compress/gzip" |
| 10 "encoding/json" | 10 "encoding/json" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 // buildbotBuild is a single build json on buildbot. | 57 // buildbotBuild is a single build json on buildbot. |
| 58 type buildbotBuild struct { | 58 type buildbotBuild struct { |
| 59 Master string `gae:"$master"` | 59 Master string `gae:"$master"` |
| 60 Blame []string `json:"blame" gae:"-"` | 60 Blame []string `json:"blame" gae:"-"` |
| 61 Buildername string `json:"builderName"` | 61 Buildername string `json:"builderName"` |
| 62 // This needs to be reflected. This can be either a String or a buildbo
tStep. | 62 // This needs to be reflected. This can be either a String or a buildbo
tStep. |
| 63 Currentstep interface{} `json:"currentStep" gae:"-"` | 63 Currentstep interface{} `json:"currentStep" gae:"-"` |
| 64 // We don't care about this one. | 64 // We don't care about this one. |
| 65 » Eta interface{} `json:"eta" gae:"-"` | 65 » Eta interface{} `json:"eta" gae:"-"` |
| 66 » Logs [][]string `json:"logs" gae:"-"` | 66 » Logs [][]string `json:"logs" gae:"-"` |
| 67 » Number int `json:"number"` | 67 » Number int `json:"number"` |
| 68 » // This is a slice of tri-tuples of [property name, value, source]. |
| 69 » // property name is always a string |
| 70 » // value can be a string or float |
| 71 » // source is optional, but is always a string if present |
| 68 Properties [][]interface{} `json:"properties" gae:"-"` | 72 Properties [][]interface{} `json:"properties" gae:"-"` |
| 69 Reason string `json:"reason"` | 73 Reason string `json:"reason"` |
| 70 Results *int `json:"results" gae:"-"` | 74 Results *int `json:"results" gae:"-"` |
| 71 Slave string `json:"slave"` | 75 Slave string `json:"slave"` |
| 72 Sourcestamp *buildbotSourceStamp `json:"sourceStamp" gae:"-"` | 76 Sourcestamp *buildbotSourceStamp `json:"sourceStamp" gae:"-"` |
| 73 Steps []buildbotStep `json:"steps" gae:"-"` | 77 Steps []buildbotStep `json:"steps" gae:"-"` |
| 74 Text []string `json:"text" gae:"-"` | 78 Text []string `json:"text" gae:"-"` |
| 75 Times []*float64 `json:"times" gae:"-"` | 79 Times []*float64 `json:"times" gae:"-"` |
| 76 // This one is injected by the publisher module. Does not exist in a | 80 // This one is injected by the publisher module. Does not exist in a |
| 77 // normal json query. | 81 // normal json query. |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 PendingBuilds int `json:"pending_builds"` | 320 PendingBuilds int `json:"pending_builds"` |
| 317 State string `json:"state"` | 321 State string `json:"state"` |
| 318 TotalSlaves int `json:"total_slaves"` | 322 TotalSlaves int `json:"total_slaves"` |
| 319 } `json:"builders"` | 323 } `json:"builders"` |
| 320 ServerUptime float64 `json:"server_uptime"` | 324 ServerUptime float64 `json:"server_uptime"` |
| 321 } `json:"varz"` | 325 } `json:"varz"` |
| 322 | 326 |
| 323 // This is injected by the pubsub publisher on the buildbot side. | 327 // This is injected by the pubsub publisher on the buildbot side. |
| 324 Name string `json:"name"` | 328 Name string `json:"name"` |
| 325 } | 329 } |
| OLD | NEW |