Add LowCollector & rename Supervisor to Monitoring
[src/xds/xds-agent.git] / lib / xdsconfig / configfile.go
index 7ddb010..85e26bc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017-2018 "IoT.bzh"
+ * Copyright (C) 2017-2019 "IoT.bzh"
  * Author Sebastien Douheret <sebastien@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -43,13 +43,19 @@ type XDSServerConf struct {
        APIPartialURL string `json:"-"`
 }
 
-type XDSBinderConf struct {
+type XDSMonitoringConf struct {
+       URL       string `json:"url"`
+       ConnRetry int    `json:"connRetry"`
+}
+
+type XDSLowCollectorConf struct {
        URL       string `json:"url"`
        ConnRetry int    `json:"connRetry"`
 }
 
 type ProfileConfT struct {
-       XDSBinder XDSBinderConf `json:"xdsBinder"`
+       XDSMonitoring   XDSMonitoringConf   `json:"xdsMonitoring"`
+       XDSLowCollector XDSLowCollectorConf `json:"xdsLowCollector"`
 }
 
 type FileConfig struct {