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

Unified Diff: go/src/infra/monitoring/messages/gatekeeper.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/src/infra/monitoring/messages/buildextract.go ('k') | go/src/infra/monitoring/messages/testresults.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/monitoring/messages/gatekeeper.go
diff --git a/go/src/infra/monitoring/messages/gatekeeper.go b/go/src/infra/monitoring/messages/gatekeeper.go
new file mode 100644
index 0000000000000000000000000000000000000000..8cc8d41b5d731883c6f2e52994d591a08a4208e1
--- /dev/null
+++ b/go/src/infra/monitoring/messages/gatekeeper.go
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// These structs are used for parsing gatekeeper.json files.
+
+package messages
+
+// MasterConfig represents filtering configurtaion for alerts
+// generated about a buildbot master.
+type MasterConfig struct {
+ Categories []string `json:"categories"`
+ TreeNotify []string `json:"tree_notify"`
+ SheriffClasses []string `json:"sheriff_classes"`
+ Builders map[string]BuilderConfig `json:"builders"`
+ ExcludedBuilders []string `json:"excluded_builders"`
+ ExcludedSteps []string `json:"excluded_steps"`
+}
+
+// BuilderConfig represents filtering configuration for alerts
+// generated about a buildbot builder.
+type BuilderConfig struct {
+ ExcludedSteps []string `json:"excluded_steps"`
+ ForgivingSteps []string `json:"forgiving_steps"`
+ ForgivingOptional []string `json:"forgiving_optional"`
+ SheriffClasses []string `json:"sheriff_classes"`
+ ClosingSteps []string `json:"closing_steps"`
+ ClosingOptional []string `json:"closing_optional"`
+}
« no previous file with comments | « go/src/infra/monitoring/messages/buildextract.go ('k') | go/src/infra/monitoring/messages/testresults.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698