com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.MetricTarget.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.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 MetricTarget(
public val averageUtilization: Int? = null,
public val averageValue: String? = null,
public val type: String,
public val `value`: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricTarget): MetricTarget = MetricTarget(
averageUtilization = javaType.averageUtilization().map({ args0 -> args0 }).orElse(null),
averageValue = javaType.averageValue().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
`value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy