mirror of
https://github.com/zalando-incubator/kube-metrics-adapter.git
synced 2025-02-03 02:48:10 +00:00
3db0cc3135
Signed-off-by: Per Ploug <per.ploug@zalando.de>
21 lines
672 B
Go
21 lines
672 B
Go
package collector
|
|
|
|
import autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1"
|
|
|
|
type ObjectMetricsGetter interface {
|
|
GetObjectMetric(namespace string, reference *autoscalingv2beta1.CrossVersionObjectReference) (float64, error)
|
|
}
|
|
|
|
// type PodCollector struct {
|
|
// client kubernetes.Interface
|
|
// Getter PodMetricsGetter
|
|
// podLabelSelector string
|
|
// namespace string
|
|
// metricName string
|
|
// interval time.Duration
|
|
// }
|
|
|
|
// func NewObjectCollector(client kubernetes.Interface, hpa *autoscalingv2beta1.HorizontalPodAutoscaler, metricName string, config *MetricConfig, interval time.Duration) (Collector, error) {
|
|
// switch
|
|
// }
|