kube-metrics-adapter/pkg/collector/object_collector.go
Per Ploug 3db0cc3135 Adding boilerplate files
Signed-off-by: Per Ploug <per.ploug@zalando.de>
2018-10-08 13:17:05 +02:00

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
// }