Class ResourceMetricSource.Builder

  • Enclosing class:
    ResourceMetricSource

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

      • name

        public ResourceMetricSource.Builder name​(@NonNull
                                                 @NonNull java.lang.String name)
        name is the name of the resource in question.
        Returns:
        this.
      • targetAverageUtilization

        public ResourceMetricSource.Builder targetAverageUtilization​(java.lang.Number targetAverageUtilization)
        targetAverageUtilization 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.
        Returns:
        this.
      • toString

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