# Functions
GetMetricUtilizationRatio takes in a set of metrics and a target utilization value, and calcuates the ratio of desired to actual utilization (returning that and the actual utilization).
GetResourceUtilizationRatio takes in a set of metrics, a set of matching requests, and a target utilization percentage, and calcuates the the ratio of desired to actual utilization (returning that, the actual utilization, and the raw average value).
No description provided by the author
# Constants
No description provided by the author
use the first exposed port on the service.
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
# Interfaces
MetricsClient knows how to query a remote interface to retrieve container-level resource metrics as well as pod-level arbitrary metrics.
# Type aliases
PodMetricsInfo contains pod metric values as a map from pod names to metric values (the metric values are expected to be the metric as a milli-value).