Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricValue ¶
type MetricValue struct {
Value int64
}
type MetricsFactory ¶
type MetricsFactory struct {
// contains filtered or unexported fields
}
func NewMetricsFactory ¶
func NewMetricsFactory(params *common.KratosParameters) *MetricsFactory
func (*MetricsFactory) GetMetricsFetcher ¶
func (facade *MetricsFactory) GetMetricsFetcher(scaleMetric *v1alpha1.ScaleMetric) (MetricsFetcher, error)
type MetricsFetcher ¶
type MetricsFetcher interface {
Fetch(scaleMetric *v1alpha1.ScaleMetric, namespace string, selector labels.Selector) ([]MetricValue, error)
}
Click to show internal directories.
Click to hide internal directories.