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 //go:generate stringer -type=BotStatus | 5 //go:generate stringer -type=BotStatus |
6 | 6 |
7 package resp | 7 package resp |
8 | 8 |
9 import ( | 9 import ( |
10 "time" | 10 "time" |
11 | 11 |
12 » "github.com/luci/luci-go/milo/appengine/common/model" | 12 » "github.com/luci/luci-go/milo/common/model" |
13 ) | 13 ) |
14 | 14 |
15 // Interval is a time interval which has a start, an end and a duration. | 15 // Interval is a time interval which has a start, an end and a duration. |
16 type Interval struct { | 16 type Interval struct { |
17 Started time.Time // when did this interval start | 17 Started time.Time // when did this interval start |
18 Finished time.Time // when did this interval finish | 18 Finished time.Time // when did this interval finish |
19 Duration time.Duration // length of the interval; may be non-zero if Fin
ished is zero | 19 Duration time.Duration // length of the interval; may be non-zero if Fin
ished is zero |
20 } | 20 } |
21 | 21 |
22 // BuildSummary is a summary of a build, with just enough information for displa
y | 22 // BuildSummary is a summary of a build, with just enough information for displa
y |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } | 92 } |
93 | 93 |
94 // MachinePool represents the capacity and availability of a builder. | 94 // MachinePool represents the capacity and availability of a builder. |
95 type MachinePool struct { | 95 type MachinePool struct { |
96 Total int | 96 Total int |
97 Disconnected int | 97 Disconnected int |
98 Idle int | 98 Idle int |
99 Busy int | 99 Busy int |
100 Bots []Bot | 100 Bots []Bot |
101 } | 101 } |
OLD | NEW |