Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Options CloudMonOptions SubOptions SubCloudMonOptions )
Functions ¶
func GetArgumentParser ¶
func GetArgumentParser() (*structarg.ArgumentParser, error)
Types ¶
type CloudMonOptions ¶
type CloudMonOptions struct { common_options.CommonOptions ReportOptions 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"` InfluxDatabase string `help:"influxdb database name, default telegraf" default:"telegraf"` }
type PingProbeOptions ¶
type ReportOptions ¶
type ReportOptions struct { Batch int `help:"batch"` Count int `help:"count" json:"count"` CloudproviderSyncInterval int64 `help:"CloudproviderSyncInterval unit:minute" default:"30"` AlertRecordHistoryInterval int64 `help:"AlertRecordHistoryInterval unit:day" default:"1"` // 定时执行间隔,同时也会影响metric拉取间隔 Interval string `help:"interval" default:"6" unit:"minute"` Timeout int64 `help:"command timeout unit:second" default:"10"` SinceTime string `help:"sinceTime"` EndTime string `help:"endTime"` Provider []string `` /* 164-byte string literal not displayed */ MetricInterval string `help:"metric interval eg:PT1M"` PingProbeOptions }
type SubCloudMonOptions ¶
type SubCloudMonOptions struct { CloudMonOptions Subcommand string `help:"climc subcommand" subcommand:"true"` }
Click to show internal directories.
Click to hide internal directories.