All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.MetricTargetPatch.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 * MetricTarget defines the target value, average value, or average utilization of a specific metric
 * @property 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
 * @property averageValue averageValue is the target value of the average of the metric across all relevant pods (as a quantity)
 * @property type type represents whether the metric type is Utilization, Value, or AverageValue
 * @property value value is the target value of the metric (as a quantity).
 */
public data class MetricTargetPatch(
    public val averageUtilization: Int? = null,
    public val averageValue: String? = null,
    public val type: String? = null,
    public val `value`: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricTargetPatch): MetricTargetPatch = MetricTargetPatch(
            averageUtilization = javaType.averageUtilization().map({ args0 -> args0 }).orElse(null),
            averageValue = javaType.averageValue().map({ args0 -> args0 }).orElse(null),
            type = javaType.type().map({ args0 -> args0 }).orElse(null),
            `value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy