mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
feat(region): support hcsop
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user