Documentation ¶
Index ¶
- type ExternalMetricsManager
- func (em *ExternalMetricsManager) AddMetricsSource(m MetricSource)
- func (em *ExternalMetricsManager) GetExternalMetrics(namespace string, requirements labels.Requirements, info p.ExternalMetricInfo) ([]external_metrics.ExternalMetricValue, error)
- func (em *ExternalMetricsManager) GetMetricsInfoList() []p.ExternalMetricInfo
- type MetricSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalMetricsManager ¶
type ExternalMetricsManager struct {
// contains filtered or unexported fields
}
func GetExternalMetricsManager ¶
func GetExternalMetricsManager() *ExternalMetricsManager
func (*ExternalMetricsManager) AddMetricsSource ¶
func (em *ExternalMetricsManager) AddMetricsSource(m MetricSource)
func (*ExternalMetricsManager) GetExternalMetrics ¶
func (em *ExternalMetricsManager) GetExternalMetrics(namespace string, requirements labels.Requirements, info p.ExternalMetricInfo) ([]external_metrics.ExternalMetricValue, error)
func (*ExternalMetricsManager) GetMetricsInfoList ¶
func (em *ExternalMetricsManager) GetMetricsInfoList() []p.ExternalMetricInfo
type MetricSource ¶
type MetricSource interface { GetExternalMetricInfoList() []p.ExternalMetricInfo GetExternalMetric(info p.ExternalMetricInfo, namespace string, requirements labels.Requirements) ([]external_metrics.ExternalMetricValue, error) }
Click to show internal directories.
Click to hide internal directories.