com.pulumi.gcp.vertex.kotlin.outputs.AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpec.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.vertex.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property metricName The resource metric name. Supported metrics: For Online Prediction: * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
* @property target The target resource utilization in percentage (1% - 100%) for the given metric; once the real usage deviates from the target by a certain percentage, the machine replicas change. The default value is 60 (representing 60%) if not provided.
*/
public data class AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpec(
public val metricName: String,
public val target: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.vertex.outputs.AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpec): AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpec =
AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpec(
metricName = javaType.metricName(),
target = javaType.target().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy