From ee66af78c42c4d7ff33f104415bc09d60dbdc27b Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Mon, 18 Jun 2018 00:42:22 +0200 Subject: Added Supervision/Monitoring support Added new API supervisor/* to control and get status of AGL XDS Supervisor. Also add new panel in dashboard to control and visualized data collected by the supervision (visualiazation is based on Granafa). Change-Id: I093470f6e384e96a0856b233390e85a98911162e Signed-off-by: Sebastien Douheret --- lib/xdsconfig/configfile.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/xdsconfig/configfile.go') diff --git a/lib/xdsconfig/configfile.go b/lib/xdsconfig/configfile.go index 009517f..1390456 100644 --- a/lib/xdsconfig/configfile.go +++ b/lib/xdsconfig/configfile.go @@ -43,6 +43,15 @@ type XDSServerConf struct { APIPartialURL string `json:"-"` } +type XDSBinderConf struct { + URL string `json:"url"` + ConnRetry int `json:"connRetry"` +} + +type ProfileConfT struct { + XDSBinder XDSBinderConf `json:"xdsBinder"` +} + type FileConfig struct { HTTPPort string `json:"httpPort"` WebAppDir string `json:"webAppDir"` @@ -50,6 +59,7 @@ type FileConfig struct { XDSAPIKey string `json:"xds-apikey"` ServersConf []XDSServerConf `json:"xdsServers"` SThgConf *SyncThingConf `json:"syncthing"` + ProfileConf ProfileConfT `json:"profileConf"` } // readGlobalConfig reads configuration from a config file. -- cgit 1.2.3-korg