Versions in this module Expand all Collapse all v3 v3.0.0 Mar 21, 2024 Changes in this version + func GetMetricUtilizationRatio(metrics podmetrics.MetricsInfo, targetUtilization int64) (utilizationRatio float64, currentUtilization int64) + func GetResourceUtilizationRatio(metrics podmetrics.MetricsInfo, requests map[string]int64, ...) (utilizationRatio float64, currentUtilization int32, rawAverageValue int64, ...) + type Client interface + GetExternalMetric func(metricName, namespace string, selector labels.Selector) ([]int64, time.Time, error) + GetObjectMetric func(metricName string, namespace string, ...) (int64, time.Time, error) + GetRawMetric func(metricName string, namespace string, selector labels.Selector, ...) (podmetrics.MetricsInfo, time.Time, error) + GetResourceMetric func(resource v1.ResourceName, namespace string, selector labels.Selector) (podmetrics.MetricsInfo, time.Time, error) + type RESTClient struct + Client metricsv1beta1.MetricsV1beta1Interface + CustomMetricsClient custom_metrics.CustomMetricsClient + ExternalMetricsClient external_metrics.ExternalMetricsClient + func NewClient(clusterConfig *rest.Config, discovery discovery.DiscoveryInterface) *RESTClient + func (c *RESTClient) GetExternalMetric(metricName, namespace string, selector labels.Selector) ([]int64, time.Time, error) + func (c *RESTClient) GetObjectMetric(metricName string, namespace string, ...) (int64, time.Time, error) + func (c *RESTClient) GetRawMetric(metricName string, namespace string, selector labels.Selector, ...) (podmetrics.MetricsInfo, time.Time, error) + func (c *RESTClient) GetResourceMetric(resource v1.ResourceName, namespace string, selector labels.Selector) (podmetrics.MetricsInfo, time.Time, error) Other modules containing this package github.com/jthomperoo/k8shorizmetrics github.com/jthomperoo/k8shorizmetrics/v2 github.com/jthomperoo/k8shorizmetrics/v4