Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeapsterMetricsClient ¶
type HeapsterMetricsClient struct {
// contains filtered or unexported fields
}
Heapster-based implementation of MetricsClient
func NewHeapsterMetricsClient ¶
func NewHeapsterMetricsClient(client client.Interface) *HeapsterMetricsClient
func (*HeapsterMetricsClient) ResourceConsumption ¶
func (h *HeapsterMetricsClient) ResourceConsumption(namespace string) ResourceConsumptionClient
type HeapsterResourceConsumptionClient ¶
type HeapsterResourceConsumptionClient struct {
// contains filtered or unexported fields
}
func (*HeapsterResourceConsumptionClient) Get ¶
func (h *HeapsterResourceConsumptionClient) Get(resourceName api.ResourceName, selector map[string]string) (*extensions.ResourceConsumption, error)
type MetricsClient ¶
type MetricsClient interface {
ResourceConsumption(namespace string) ResourceConsumptionClient
}
An interface for getting metrics for pods.
type ResourceConsumptionClient ¶
type ResourceConsumptionClient interface { // Gets average resource consumption for pods under the given selector. Get(resourceName api.ResourceName, selector map[string]string) (*extensions.ResourceConsumption, error) }
Click to show internal directories.
Click to hide internal directories.