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

Side by Side Diff: go/src/infra/monitoring/messages/alerts.go

Issue 1062733009: dispatcher: updates go/infra/monitoring/messages to parse some more json formats (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | go/src/infra/monitoring/messages/buildextract.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Package alerts contains structs defined to implement the json format: 5 // Package alerts contains structs defined to implement the json format:
6 // https://docs.google.com/document/d/10MESGzRy9uAy3Y3-PxUcjiuF3BD3FGGmCNvCjqm3W QQ/preview 6 // https://docs.google.com/document/d/10MESGzRy9uAy3Y3-PxUcjiuF3BD3FGGmCNvCjqm3W QQ/preview
7 7
8 package messages 8 package messages
9 9
10 import ( 10 import (
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 // Link can be attached to an alert to provide more context to the sheriff. 71 // Link can be attached to an alert to provide more context to the sheriff.
72 type Link struct { 72 type Link struct {
73 Title string 73 Title string
74 Href string 74 Href string
75 } 75 }
76 76
77 // BuildFailure is an Extension. 77 // BuildFailure is an Extension.
78 type BuildFailure struct { 78 type BuildFailure struct {
79 » Builders []Builder 79 » TreeCloser bool
80 » Builders []AlertedBuilder
80 Reasons []Reason 81 Reasons []Reason
81 RegressionRanges []RegressionRange `json:"regression_ranges"` 82 RegressionRanges []RegressionRange `json:"regression_ranges"`
82 } 83 }
83 84
84 // Builder represents an individual builder. 85 // AlertedBuilder represents an individual builder.
85 type Builder struct { 86 type AlertedBuilder struct {
86 Name string 87 Name string
87 URL string 88 URL string
88 FirstFailure EpochTime `json:"first_failure"` 89 FirstFailure EpochTime `json:"first_failure"`
89 LatestFailure EpochTime `json:"latest_failure"` 90 LatestFailure EpochTime `json:"latest_failure"`
90 } 91 }
91 92
92 // Reason contains information about why the Alert was triggered. 93 // Reason contains information about why the Alert was triggered.
93 type Reason struct { 94 type Reason struct {
94 TestName string 95 TestName string
95 Step string 96 Step string
96 URL string 97 URL string
97 } 98 }
98 99
99 // RegressionRange identifies the bounds of the location of a regression. 100 // RegressionRange identifies the bounds of the location of a regression.
100 type RegressionRange struct { 101 type RegressionRange struct {
101 Repo string 102 Repo string
102 URL string 103 URL string
103 Revisions []string 104 Revisions []string
104 } 105 }
OLDNEW
« no previous file with comments | « no previous file | go/src/infra/monitoring/messages/buildextract.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698