OLD | NEW |
1 // Copyright 2017 The LUCI Authors. All rights reserved. | 1 // Copyright 2017 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 model | 5 package model |
6 | 6 |
7 import "time" | 7 import "time" |
8 | 8 |
9 // Summary summarizes a thing (step, build, group of builds, whatever). | 9 // Summary summarizes a thing (step, build, group of builds, whatever). |
10 type Summary struct { | 10 type Summary struct { |
11 // Status indicates the 'goodness' and lifetime of the thing. This usual
ly | 11 // Status indicates the 'goodness' and lifetime of the thing. This usual
ly |
12 // translates directly to a status color. | 12 // translates directly to a status color. |
13 Status Status | 13 Status Status |
14 | 14 |
15 // Start indicates when this thing started doing its action. | 15 // Start indicates when this thing started doing its action. |
16 Start time.Time | 16 Start time.Time |
17 | 17 |
18 // End indicates when this thing completed doing its action. | 18 // End indicates when this thing completed doing its action. |
19 End time.Time | 19 End time.Time |
20 | 20 |
21 // Text is a possibly-multi-line summary of what happened. | 21 // Text is a possibly-multi-line summary of what happened. |
22 Text []string | 22 Text []string |
23 } | 23 } |
OLD | NEW |