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

com.pulumi.awsnative.applicationsignals.kotlin.outputs.ServiceLevelObjectiveSli.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.applicationsignals.kotlin.outputs

import com.pulumi.awsnative.applicationsignals.kotlin.enums.ServiceLevelObjectiveSliComparisonOperator
import kotlin.Double
import kotlin.Suppress

/**
 * This structure contains information about the performance metric that an SLO monitors.
 * @property comparisonOperator The arithmetic operation used when comparing the specified metric to the threshold.
 * @property metricThreshold The value that the SLI metric is compared to.
 * @property sliMetric Use this structure to specify the metric to be used for the SLO.
 */
public data class ServiceLevelObjectiveSli(
    public val comparisonOperator: ServiceLevelObjectiveSliComparisonOperator,
    public val metricThreshold: Double,
    public val sliMetric: ServiceLevelObjectiveSliMetric,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.applicationsignals.outputs.ServiceLevelObjectiveSli): ServiceLevelObjectiveSli = ServiceLevelObjectiveSli(
            comparisonOperator = javaType.comparisonOperator().let({ args0 ->
                com.pulumi.awsnative.applicationsignals.kotlin.enums.ServiceLevelObjectiveSliComparisonOperator.Companion.toKotlin(args0)
            }),
            metricThreshold = javaType.metricThreshold(),
            sliMetric = javaType.sliMetric().let({ args0 ->
                com.pulumi.awsnative.applicationsignals.kotlin.outputs.ServiceLevelObjectiveSliMetric.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy