Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Unified Diff: milo/appengine/common/model/summary.go

Issue 2944633003: [milo] Add BuildSummary and common models. (Closed)
Patch Set: add comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « milo/appengine/common/model/status_string.go ('k') | milo/appengine/frontend/buildbot_data.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/common/model/summary.go
diff --git a/milo/appengine/common/model/summary.go b/milo/appengine/common/model/summary.go
new file mode 100644
index 0000000000000000000000000000000000000000..48e40f3f0da83d23c9d7294c85f92338d3645f40
--- /dev/null
+++ b/milo/appengine/common/model/summary.go
@@ -0,0 +1,23 @@
+// Copyright 2017 The LUCI Authors. All rights reserved.
+// Use of this source code is governed under the Apache License, Version 2.0
+// that can be found in the LICENSE file.
+
+package model
+
+import "time"
+
+// Summary summarizes a thing (step, build, group of builds, whatever).
+type Summary struct {
+ // Status indicates the 'goodness' and lifetime of the thing. This usually
+ // translates directly to a status color.
+ Status Status
+
+ // Start indicates when this thing started doing its action.
+ Start time.Time
+
+ // End indicates when this thing completed doing its action.
+ End time.Time
+
+ // Text is a possibly-multi-line summary of what happened.
+ Text []string
+}
« no previous file with comments | « milo/appengine/common/model/status_string.go ('k') | milo/appengine/frontend/buildbot_data.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698