com.pulumi.kubernetes.autoscaling.v2beta1.kotlin.outputs.ExternalMetricStatusPatch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.autoscaling.v2beta1.kotlin.outputs
import com.pulumi.kubernetes.meta.v1.kotlin.outputs.LabelSelectorPatch
import kotlin.String
import kotlin.Suppress
/**
* ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.
* @property currentAverageValue currentAverageValue is the current value of metric averaged over autoscaled pods.
* @property currentValue currentValue is the current value of the metric (as a quantity)
* @property metricName metricName is the name of a metric used for autoscaling in metric system.
* @property metricSelector metricSelector is used to identify a specific time series within a given metric.
*/
public data class ExternalMetricStatusPatch(
public val currentAverageValue: String? = null,
public val currentValue: String? = null,
public val metricName: String? = null,
public val metricSelector: LabelSelectorPatch? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2beta1.outputs.ExternalMetricStatusPatch): ExternalMetricStatusPatch = ExternalMetricStatusPatch(
currentAverageValue = javaType.currentAverageValue().map({ args0 -> args0 }).orElse(null),
currentValue = javaType.currentValue().map({ args0 -> args0 }).orElse(null),
metricName = javaType.metricName().map({ args0 -> args0 }).orElse(null),
metricSelector = javaType.metricSelector().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.meta.v1.kotlin.outputs.LabelSelectorPatch.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy