com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.ObjectMetricStatus.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs
import kotlin.Suppress
/**
* ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
* @property current current contains the current value for the given metric
* @property describedObject
* @property metric metric identifies the target metric by name and selector
*/
public data class ObjectMetricStatus(
public val current: MetricValueStatus,
public val describedObject: CrossVersionObjectReference,
public val metric: MetricIdentifier,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2beta2.outputs.ObjectMetricStatus): ObjectMetricStatus = ObjectMetricStatus(
current = javaType.current().let({ args0 ->
com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.MetricValueStatus.Companion.toKotlin(args0)
}),
describedObject = javaType.describedObject().let({ args0 ->
com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.CrossVersionObjectReference.Companion.toKotlin(args0)
}),
metric = javaType.metric().let({ args0 ->
com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.MetricIdentifier.Companion.toKotlin(args0)
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy