Class MetricTarget.Builder

  • Enclosing class:
    MetricTarget

    public static class MetricTarget.Builder
    extends java.lang.Object
    • Method Detail

      • averageUtilization

        public MetricTarget.Builder averageUtilization​(java.lang.Number averageUtilization)
        averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type
        Returns:
        this.
      • averageValue

        public MetricTarget.Builder averageValue​(java.lang.String averageValue)
        Returns:
        this.
      • type

        public MetricTarget.Builder type​(@NonNull
                                         @NonNull java.lang.String type)
        type represents whether the metric type is Utilization, Value, or AverageValue
        Returns:
        this.
      • toString

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