Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUHeadroomManagerOptions ¶
type CPUHeadroomManagerOptions struct{}
func NewCPUHeadroomManagerOptions ¶
func NewCPUHeadroomManagerOptions() *CPUHeadroomManagerOptions
func (*CPUHeadroomManagerOptions) AddFlags ¶
func (o *CPUHeadroomManagerOptions) AddFlags(*pflag.FlagSet)
AddFlags adds flags to the specified FlagSet.
func (*CPUHeadroomManagerOptions) ApplyTo ¶
func (o *CPUHeadroomManagerOptions) ApplyTo(*reporter.CPUHeadroomManagerConfiguration) error
ApplyTo fills up config with options
type HeadroomReporterOptions ¶
type HeadroomReporterOptions struct { HeadroomReporterSyncPeriod time.Duration HeadroomReporterSlidingWindowTime time.Duration HeadroomReporterSlidingWindowMinStep general.ResourceList HeadroomReporterSlidingWindowMaxStep general.ResourceList HeadroomReporterSlidingWindowAggregateFunction string HeadroomReporterSlidingWindowAggregateArguments string *CPUHeadroomManagerOptions *MemoryHeadroomManagerOptions }
HeadroomReporterOptions holds the configurations for headroom reporter in qos aware plugin
func NewHeadroomReporterOptions ¶
func NewHeadroomReporterOptions() *HeadroomReporterOptions
NewHeadroomReporterOptions creates new Options with default config
func (*HeadroomReporterOptions) AddFlags ¶
func (o *HeadroomReporterOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags to the specified FlagSet.
func (*HeadroomReporterOptions) ApplyTo ¶
func (o *HeadroomReporterOptions) ApplyTo(c *reporter.HeadroomReporterConfiguration) error
ApplyTo fills up config with options
type MemoryHeadroomManagerOptions ¶
type MemoryHeadroomManagerOptions struct{}
func NewMemoryHeadroomManagerOptions ¶
func NewMemoryHeadroomManagerOptions() *MemoryHeadroomManagerOptions
func (*MemoryHeadroomManagerOptions) AddFlags ¶
func (o *MemoryHeadroomManagerOptions) AddFlags(*pflag.FlagSet)
AddFlags adds flags to the specified FlagSet.
func (*MemoryHeadroomManagerOptions) ApplyTo ¶
func (o *MemoryHeadroomManagerOptions) ApplyTo(*reporter.MemoryHeadroomManagerConfiguration) error
ApplyTo fills up config with options
type NodeMetricReporterOptions ¶ added in v0.4.1
type NodeMetricReporterOptions struct { SyncPeriod time.Duration MetricSlidingWindowTime time.Duration AggregateFuncs map[string]string AggregateArgs map[string]string }
NodeMetricReporterOptions holds the configurations for node metric reporter in qos aware plugin
func NewNodeMetricReporterOptions ¶ added in v0.4.1
func NewNodeMetricReporterOptions() *NodeMetricReporterOptions
NewNodeMetricReporterOptions creates new Options with default config
func (*NodeMetricReporterOptions) AddFlags ¶ added in v0.4.1
func (o *NodeMetricReporterOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags to the specified FlagSet.
func (*NodeMetricReporterOptions) ApplyTo ¶ added in v0.4.1
func (o *NodeMetricReporterOptions) ApplyTo(c *reporter.NodeMetricReporterConfiguration) error
ApplyTo fills up config with options
type ReporterOptions ¶ added in v0.4.1
type ReporterOptions struct { Reporters []string *HeadroomReporterOptions *NodeMetricReporterOptions }
func NewReporterOptions ¶ added in v0.4.1
func NewReporterOptions() *ReporterOptions
func (*ReporterOptions) AddFlags ¶ added in v0.4.1
func (o *ReporterOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags to the specified FlagSet.
func (*ReporterOptions) ApplyTo ¶ added in v0.4.1
func (o *ReporterOptions) ApplyTo(c *reporter.ReporterConfiguration) error
ApplyTo fills up config with options