Class MetricTargetV2.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • type

        @Stability(Stable)
        public MetricTargetV2.Builder type​(String type)
        Sets the value of MetricTargetV2.getType()
        Parameters:
        type - type represents whether the metric type is Utilization, Value, or AverageValue. This parameter is required.
        Returns:
        this
      • averageUtilization

        @Stability(Stable)
        public MetricTargetV2.Builder averageUtilization​(Number averageUtilization)
        Parameters:
        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