Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client we use to retrieve the metrics
func NewMetricsClient ¶
NewMetricsClient creates a new metrics client
func (*Client) GetNodeMetrics ¶
func (c *Client) GetNodeMetrics(name, labelSelector string) (*metricsapi.NodeMetricsList, error)
GetNodeMetrics retrieves the node metrics for a given name or labelSelector
func (*Client) GetPodMetrics ¶
func (c *Client) GetPodMetrics(namespace, name, selector string, allNamespaces bool) (*metricsapi.PodMetricsList, error)
GetPodMetrics retrieves the pod metrics for a given namespace and resource name
Click to show internal directories.
Click to hide internal directories.