Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The LUCI Authors. All rights reserved. | 1 // Copyright 2015 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 resp | 5 package resp |
| 6 | 6 |
| 7 import "time" | 7 import "time" |
| 8 | 8 |
| 9 // Interval is a time interval which has a start, an end and a duration. | 9 // Interval is a time interval which has a start, an end and a duration. |
| 10 type Interval struct { | 10 type Interval struct { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 Warning string | 56 Warning string |
| 57 | 57 |
| 58 CurrentBuilds []*BuildSummary | 58 CurrentBuilds []*BuildSummary |
| 59 PendingBuilds []*BuildSummary | 59 PendingBuilds []*BuildSummary |
| 60 FinishedBuilds []*BuildSummary | 60 FinishedBuilds []*BuildSummary |
| 61 | 61 |
| 62 // MachinePool is primarily used by buildbot builders to list the set of | 62 // MachinePool is primarily used by buildbot builders to list the set of |
| 63 // machines that can run in a builder. It has no meaning in buildbucket or dm | 63 // machines that can run in a builder. It has no meaning in buildbucket or dm |
| 64 // and is expected to be nil. | 64 // and is expected to be nil. |
| 65 MachinePool *MachinePool | 65 MachinePool *MachinePool |
| 66 | |
| 67 // PrevCursor is a cursor to the previous page. | |
| 68 PrevCursor string | |
|
nodir
2017/04/18 20:27:49
`json:",omitempty"`
hinoka
2017/04/20 21:37:07
Done.
| |
| 69 // NextCursor is a cursor to the next page. | |
| 70 NextCursor string | |
|
nodir
2017/04/18 20:27:49
`json:",omitempty"`
hinoka
2017/04/20 21:37:08
Done.
| |
| 66 } | 71 } |
| 67 | 72 |
| 68 // MachinePool represents the capacity and availability of a builder. | 73 // MachinePool represents the capacity and availability of a builder. |
| 69 type MachinePool struct { | 74 type MachinePool struct { |
| 70 Connected int | 75 Connected int |
| 71 Total int | 76 Total int |
| 72 Free int | 77 Free int |
| 73 Used int | 78 Used int |
| 74 } | 79 } |
| OLD | NEW |