Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUStatsConfig ¶ added in v0.8.1
type CPUStatsConfig struct {
MetricsConfigs map[string]MetricConfig `json:"metricsConfigs"`
}
type DiskStatsConfig ¶
type HostStatsConfig ¶
type HostStatsConfig struct {
MetricsConfigs map[string]MetricConfig `json:"metricsConfigs"`
}
type MemoryStatsConfig ¶ added in v0.8.1
type MemoryStatsConfig struct {
MetricsConfigs map[string]MetricConfig `json:"metricsConfigs"`
}
type MetricConfig ¶
type MetricConfig struct {
DisplayName string `json:"displayName"`
}
type NetStatsConfig ¶ added in v0.8.6
type NetStatsConfig struct { MetricsConfigs map[string]MetricConfig `json:"metricsConfigs"` ExcludeInterfaceRegexp NetStatsInterfaceRegexp `json:"excludeInterfaceRegexp"` }
type NetStatsInterfaceRegexp ¶ added in v0.8.11
In order to marshal/unmarshal regexp, we need to implement MarshalText/UnmarshalText methods in a wrapper struct
func (NetStatsInterfaceRegexp) MarshalText ¶ added in v0.8.11
func (r NetStatsInterfaceRegexp) MarshalText() ([]byte, error)
func (*NetStatsInterfaceRegexp) UnmarshalText ¶ added in v0.8.11
func (r *NetStatsInterfaceRegexp) UnmarshalText(data []byte) error
type OSFeatureStatsConfig ¶ added in v0.8.6
type OSFeatureStatsConfig struct { MetricsConfigs map[string]MetricConfig `json:"metricsConfigs"` KnownModulesConfigPath string `json:"knownModulesConfigPath"` }
type SystemStatsConfig ¶
type SystemStatsConfig struct { CPUConfig CPUStatsConfig `json:"cpu"` DiskConfig DiskStatsConfig `json:"disk"` HostConfig HostStatsConfig `json:"host"` MemoryConfig MemoryStatsConfig `json:"memory"` OsFeatureConfig OSFeatureStatsConfig `json:"osFeature"` NetConfig NetStatsConfig `json:"net"` InvokeIntervalString string `json:"invokeInterval"` InvokeInterval time.Duration `json:"-"` ProcPath string `json:"procPath"` }
func (*SystemStatsConfig) ApplyConfiguration ¶
func (ssc *SystemStatsConfig) ApplyConfiguration() error
ApplyConfiguration applies default configurations.
func (*SystemStatsConfig) Validate ¶
func (ssc *SystemStatsConfig) Validate() error
Validate verifies whether the settings are valid.
Click to show internal directories.
Click to hide internal directories.