Class ResourceMetricStatus

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class ResourceMetricStatus
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
    • Constructor Detail

      • ResourceMetricStatus

        public ResourceMetricStatus​(@NonNull
                                    @NonNull MetricValueStatus current,
                                    @NonNull
                                    @NonNull java.lang.String name)
      • ResourceMetricStatus

        public ResourceMetricStatus()
    • Method Detail

      • getName

        @NonNull
        public @NonNull java.lang.String getName()
        name is the name of the resource in question.
      • setCurrent

        public void setCurrent​(@NonNull
                               @NonNull MetricValueStatus current)
      • setName

        public void setName​(@NonNull
                            @NonNull java.lang.String name)
        name is the name of the resource in question.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object