com.pulumi.gcp.monitoring.kotlin.outputs.SloRequestBasedSli.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.monitoring.kotlin.outputs
import kotlin.Suppress
/**
*
* @property distributionCut Used when good_service is defined by a count of values aggregated in a
* Distribution that fall into a good range. The total_service is the
* total count of all values aggregated in the Distribution.
* Defines a distribution TimeSeries filter and thresholds used for
* measuring good service and total service.
* Exactly one of `distribution_cut` or `good_total_ratio` can be set.
* Structure is documented below.
* @property goodTotalRatio A means to compute a ratio of `good_service` to `total_service`.
* Defines computing this ratio with two TimeSeries [monitoring filters](https://cloud.google.com/monitoring/api/v3/filters)
* Must specify exactly two of good, bad, and total service filters.
* The relationship good_service + bad_service = total_service
* will be assumed.
* Exactly one of `distribution_cut` or `good_total_ratio` can be set.
* Structure is documented below.
*/
public data class SloRequestBasedSli(
public val distributionCut: SloRequestBasedSliDistributionCut? = null,
public val goodTotalRatio: SloRequestBasedSliGoodTotalRatio? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.monitoring.outputs.SloRequestBasedSli): SloRequestBasedSli = SloRequestBasedSli(
distributionCut = javaType.distributionCut().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.monitoring.kotlin.outputs.SloRequestBasedSliDistributionCut.Companion.toKotlin(args0)
})
}).orElse(null),
goodTotalRatio = javaType.goodTotalRatio().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.monitoring.kotlin.outputs.SloRequestBasedSliGoodTotalRatio.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy