Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StaticMetricClient = MetricClient{
StableConcurrency: 10.0,
PanicConcurrency: 10.0,
StableOPS: 10.0,
PanicOPS: 10.0,
}
StaticMetricClient returns stable/panic concurrency and OPS with static value, i.e. 10.
Functions ¶
This section is empty.
Types ¶
type MetricClient ¶
type MetricClient struct { StableConcurrency float64 PanicConcurrency float64 StableOPS float64 PanicOPS float64 ErrF func(key types.NamespacedName, now time.Time) error }
MetricClient is a fake implementation of autoscaler.MetricClient for testing.
func (*MetricClient) StableAndPanicConcurrency ¶
func (t *MetricClient) StableAndPanicConcurrency(key types.NamespacedName, now time.Time) (float64, float64, error)
StableAndPanicConcurrency returns stable/panic concurrency stored in the object and the result of Errf as the error.
func (*MetricClient) StableAndPanicOPS ¶
func (t *MetricClient) StableAndPanicOPS(key types.NamespacedName, now time.Time) (float64, float64, error)
StableAndPanicOPS returns stable/panic OPS stored in the object and the result of Errf as the error.
Click to show internal directories.
Click to hide internal directories.