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

Unified Diff: common/tsmon/config.go

Issue 2225933003: tsmon: read hostname and region from config file (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Fixed error in test Created 4 years, 4 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 | « no previous file | common/tsmon/config_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/tsmon/config.go
diff --git a/common/tsmon/config.go b/common/tsmon/config.go
index 17ac80a466095f04f0211af9dc29601e5404f013..749b9d21031f8cb38ef9750adf3e0c1101f98fa9 100644
--- a/common/tsmon/config.go
+++ b/common/tsmon/config.go
@@ -15,6 +15,8 @@ type config struct {
Endpoint string `json:"endpoint"`
Credentials string `json:"credentials"`
AutoGenHostname bool `json:"autogen_hostname"`
+ Hostname string `json:"hostname"`
+ Region string `json:"region"`
}
// loadConfig loads a tsmon JSON config from a file.
« no previous file with comments | « no previous file | common/tsmon/config_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698