public class Metrics extends Object
Constructor and Description |
---|
Metrics()
Simple Metrics API constructor, uses default configuration
|
Metrics(io.kubernetes.client.openapi.ApiClient apiClient)
Metrics API Constructor
|
Modifier and Type | Method and Description |
---|---|
io.kubernetes.client.openapi.ApiClient |
getApiClient()
Get the API client for these Attach operations.
|
io.kubernetes.client.custom.NodeMetricsList |
getNodeMetrics() |
io.kubernetes.client.custom.PodMetricsList |
getPodMetrics(String namespace) |
void |
setApiClient(io.kubernetes.client.openapi.ApiClient apiClient)
Set the API client for subsequent Attach operations.
|
public Metrics()
public Metrics(io.kubernetes.client.openapi.ApiClient apiClient)
apiClient
- The api client to use.public io.kubernetes.client.openapi.ApiClient getApiClient()
public void setApiClient(io.kubernetes.client.openapi.ApiClient apiClient)
apiClient
- The new API client to use.public io.kubernetes.client.custom.NodeMetricsList getNodeMetrics() throws io.kubernetes.client.openapi.ApiException
io.kubernetes.client.openapi.ApiException
public io.kubernetes.client.custom.PodMetricsList getPodMetrics(String namespace) throws io.kubernetes.client.openapi.ApiException
io.kubernetes.client.openapi.ApiException
Copyright © 2021. All rights reserved.