Class Metrics

java.lang.Object
io.kubernetes.client.Metrics

public class Metrics extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Simple Metrics API constructor, uses default configuration
    Metrics(io.kubernetes.client.openapi.ApiClient apiClient)
    Metrics API Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    io.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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