|
@@ -9,6 +9,10 @@ import (
|
|
"time"
|
|
"time"
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+type MonitorStruct struct {
|
|
|
|
+ Url string `yaml:"url"`
|
|
|
|
+}
|
|
|
|
+
|
|
type platform struct {
|
|
type platform struct {
|
|
UrlDeviceAuth string `yaml:"url-device-auth"`
|
|
UrlDeviceAuth string `yaml:"url-device-auth"`
|
|
UrlTaskPoll string `yaml:"url-task-poll"`
|
|
UrlTaskPoll string `yaml:"url-task-poll"`
|
|
@@ -41,21 +45,22 @@ type trigger struct {
|
|
}
|
|
}
|
|
|
|
|
|
type cloudConfig struct {
|
|
type cloudConfig struct {
|
|
- FullCollect bool `yaml:"full-collect"`
|
|
|
|
- ConfigRefreshInterval int `yaml:"config-refresh-interval"` // 配置刷新时间间隔
|
|
|
|
- BagNumber int `yaml:"bag-number"`
|
|
|
|
- TimeWindowSendGap int `yaml:"time-window-send-gap"` // 主节点向从节点发送窗口的最小时间间隔
|
|
|
|
- TimeToLabelJsonPath string `yaml:"time-to-label-json-path"`
|
|
|
|
- BagDataDir string `yaml:"bag-data-dir"`
|
|
|
|
- BagCopyDir string `yaml:"bag-copy-dir"`
|
|
|
|
- TriggersDir string `yaml:"triggers-dir"`
|
|
|
|
- TcpPort string `yaml:"tcp-port"`
|
|
|
|
- RpcPort string `yaml:"rpc-port"`
|
|
|
|
- Triggers []trigger `yaml:"triggers"`
|
|
|
|
- Hosts []hostStruct `yaml:"hosts"`
|
|
|
|
- Ros ros `yaml:"ros"`
|
|
|
|
- Platform platform `yaml:"platform"`
|
|
|
|
- Disk disk `yaml:"disk"`
|
|
|
|
|
|
+ FullCollect bool `yaml:"full-collect"`
|
|
|
|
+ ConfigRefreshInterval int `yaml:"config-refresh-interval"` // 配置刷新时间间隔
|
|
|
|
+ BagNumber int `yaml:"bag-number"`
|
|
|
|
+ TimeWindowSendGap int `yaml:"time-window-send-gap"` // 主节点向从节点发送窗口的最小时间间隔
|
|
|
|
+ TimeToLabelJsonPath string `yaml:"time-to-label-json-path"`
|
|
|
|
+ BagDataDir string `yaml:"bag-data-dir"`
|
|
|
|
+ BagCopyDir string `yaml:"bag-copy-dir"`
|
|
|
|
+ TriggersDir string `yaml:"triggers-dir"`
|
|
|
|
+ TcpPort string `yaml:"tcp-port"`
|
|
|
|
+ RpcPort string `yaml:"rpc-port"`
|
|
|
|
+ Triggers []trigger `yaml:"triggers"`
|
|
|
|
+ Hosts []hostStruct `yaml:"hosts"`
|
|
|
|
+ Ros ros `yaml:"ros"`
|
|
|
|
+ Platform platform `yaml:"platform"`
|
|
|
|
+ Disk disk `yaml:"disk"`
|
|
|
|
+ Monitor MonitorStruct `yaml:"monitor"`
|
|
}
|
|
}
|
|
|
|
|
|
var (
|
|
var (
|