feat(region): support hcsop

This commit is contained in:
ioito
2022-12-07 21:48:41 +08:00
parent 32a9f1840a
commit e0bd0574fb
19 changed files with 535 additions and 14 deletions
+9 -8
View File
@@ -22,14 +22,6 @@ type CloudMonOptions struct {
common_options.CommonOptions
PingProbeOptions
EndpointType string `default:"internalURL" help:"Defaults to internalURL" choices:"publicURL|internalURL|adminURL"`
ApiVersion string `help:"override default modules service api version"`
ReqTimeout int `default:"600" help:"Number of seconds to wait for a response"`
Insecure bool `default:"true" help:"Allow skip server cert verification if URL is https" short-token:"k"`
CertFile string `help:"certificate file"`
KeyFile string `help:"private key file"`
ResourcesSyncInterval int64 `help:"Increment Sync Interval unit:minute" default:"10"`
CollectMetricInterval int64 `help:"Increment Sync Interval unit:minute" default:"6"`
SkipMetricPullProviders string `help:"Skip indicate provider metric pull" default:""`
@@ -70,6 +62,15 @@ func OnOptionsChange(oldO, newO interface{}) bool {
changed = true
}
}
if oldOpts.ResourcesSyncInterval != newOpts.ResourcesSyncInterval {
changed = true
}
if oldOpts.CollectMetricInterval != newOpts.CollectMetricInterval {
changed = true
}
if oldOpts.CollectServiceMetricIntervalMinute != newOpts.CollectServiceMetricIntervalMinute {
changed = true
}
return changed
}