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

com.pulumi.gcp.vertex.kotlin.outputs.AiEndpointDeployedModelDedicatedResourceAutoscalingMetricSpec.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.vertex.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property metricName (Output)
 * 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 (Output)
 * 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 AiEndpointDeployedModelDedicatedResourceAutoscalingMetricSpec(
    public val metricName: String? = null,
    public val target: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.vertex.outputs.AiEndpointDeployedModelDedicatedResourceAutoscalingMetricSpec): AiEndpointDeployedModelDedicatedResourceAutoscalingMetricSpec =
            AiEndpointDeployedModelDedicatedResourceAutoscalingMetricSpec(
                metricName = javaType.metricName().map({ args0 -> args0 }).orElse(null),
                target = javaType.target().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy