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

com.pulumi.kubernetes.autoscaling.v2.kotlin.outputs.MetricValueStatusPatch.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.

There is a newer version: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 * MetricValueStatus holds the current value for a metric
 * @property averageUtilization currentAverageUtilization is the current 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.
 * @property averageValue averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
 * @property value value is the current value of the metric (as a quantity).
 */
public data class MetricValueStatusPatch(
    public val averageUtilization: Int? = null,
    public val averageValue: String? = null,
    public val `value`: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2.outputs.MetricValueStatusPatch): MetricValueStatusPatch = MetricValueStatusPatch(
            averageUtilization = javaType.averageUtilization().map({ args0 -> args0 }).orElse(null),
            averageValue = javaType.averageValue().map({ args0 -> args0 }).orElse(null),
            `value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy