com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.ContainerResourceMetricStatus.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.v2beta2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
* @property container Container is the name of the container in the pods of the scaling target
* @property current current contains the current value for the given metric
* @property name Name is the name of the resource in question.
*/
public data class ContainerResourceMetricStatus(
public val container: String,
public val current: MetricValueStatus,
public val name: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2beta2.outputs.ContainerResourceMetricStatus): ContainerResourceMetricStatus = ContainerResourceMetricStatus(
container = javaType.container(),
current = javaType.current().let({ args0 ->
com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.MetricValueStatus.Companion.toKotlin(args0)
}),
name = javaType.name(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy