Class PodsMetricSource

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

    public class PodsMetricSource
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
    • Constructor Detail

      • PodsMetricSource

        public PodsMetricSource​(@NonNull
                                @NonNull java.lang.String metricName,
                                LabelSelector selector,
                                @NonNull
                                @NonNull java.lang.String targetAverageValue)
      • PodsMetricSource

        public PodsMetricSource()
    • Method Detail

      • getMetricName

        @NonNull
        public @NonNull java.lang.String getMetricName()
        metricName is the name of the metric in question
      • getTargetAverageValue

        @NonNull
        public @NonNull java.lang.String getTargetAverageValue()
      • setMetricName

        public void setMetricName​(@NonNull
                                  @NonNull java.lang.String metricName)
        metricName is the name of the metric in question
      • setSelector

        public void setSelector​(LabelSelector selector)
      • setTargetAverageValue

        public void setTargetAverageValue​(@NonNull
                                          @NonNull java.lang.String targetAverageValue)
      • 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