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

com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.PodsMetricSource.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.v2beta2.kotlin.outputs

import kotlin.Suppress

/**
 * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
 * @property metric metric identifies the target metric by name and selector
 * @property target target specifies the target value for the given metric
 */
public data class PodsMetricSource(
    public val metric: MetricIdentifier,
    public val target: MetricTarget,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2beta2.outputs.PodsMetricSource): PodsMetricSource = PodsMetricSource(
            metric = javaType.metric().let({ args0 ->
                com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.MetricIdentifier.Companion.toKotlin(args0)
            }),
            target = javaType.target().let({ args0 ->
                com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.MetricTarget.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy