Package io.kubernetes.client
Class Metrics
java.lang.Object
io.kubernetes.client.Metrics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.kubernetes.client.openapi.ApiClient
Get the API client for these Attach operations.io.kubernetes.client.custom.NodeMetricsList
io.kubernetes.client.custom.PodMetricsList
getPodMetrics
(String namespace) void
setApiClient
(io.kubernetes.client.openapi.ApiClient apiClient) Set the API client for subsequent Attach operations.
-
Constructor Details
-
Metrics
public Metrics()Simple Metrics API constructor, uses default configuration -
Metrics
public Metrics(io.kubernetes.client.openapi.ApiClient apiClient) Metrics API Constructor- Parameters:
apiClient
- The api client to use.
-
-
Method Details
-
getApiClient
public io.kubernetes.client.openapi.ApiClient getApiClient()Get the API client for these Attach operations.- Returns:
- The API client that will be used.
-
setApiClient
public void setApiClient(io.kubernetes.client.openapi.ApiClient apiClient) Set the API client for subsequent Attach operations.- Parameters:
apiClient
- The new API client to use.
-
getNodeMetrics
public io.kubernetes.client.custom.NodeMetricsList getNodeMetrics() throws io.kubernetes.client.openapi.ApiException- Throws:
io.kubernetes.client.openapi.ApiException
-
getPodMetrics
public io.kubernetes.client.custom.PodMetricsList getPodMetrics(String namespace) throws io.kubernetes.client.openapi.ApiException - Throws:
io.kubernetes.client.openapi.ApiException
-