public Optional<Output<List<MetricSpecArgs>>> metrics() {
        return Optional.ofNullable(this.metrics);
    }
@return metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).  The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods.  Ergo, metrics used must decrease as the pod count is increased, and vice-versa.  See the individual metric source types for more information about how each type of metric must respond.
sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerSpecArgs.java