Class NodeMetrics

java.lang.Object
io.kubernetes.client.custom.NodeMetrics
All Implemented Interfaces:
KubernetesObject, KubernetesType

public class NodeMetrics extends Object implements KubernetesObject
  • Constructor Details

    • NodeMetrics

      public NodeMetrics()
  • Method Details

    • getMetadata

      public V1ObjectMeta getMetadata()
      Description copied from interface: KubernetesObject
      Gets metadata.

      ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

      Specified by:
      getMetadata in interface KubernetesObject
      Returns:
      the metadata
    • getTimestamp

      public String getTimestamp()
    • getWindow

      public String getWindow()
    • getKind

      public String getKind()
      Description copied from interface: KubernetesType
      Gets kind.

      Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

      Specified by:
      getKind in interface KubernetesType
      Returns:
      the kind
    • getApiVersion

      public String getApiVersion()
      Description copied from interface: KubernetesType
      Gets api version.

      APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

      Specified by:
      getApiVersion in interface KubernetesType
      Returns:
      the api version
    • getUsage

      public Map<String,Quantity> getUsage()
    • setKind

      public void setKind(String kind)
    • setApiVersion

      public void setApiVersion(String apiVersion)
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
    • setTimestamp

      public void setTimestamp(String timestamp)
    • setWindow

      public void setWindow(String window)
    • setUsage

      public void setUsage(Map<String,Quantity> usage)