com.pulumi.gcp.monitoring.kotlin.outputs.SloBasicSli.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.monitoring.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property availability Availability based SLI, dervied from count of requests made to this service that return successfully.
* Structure is documented below.
* @property latency Parameters for a latency threshold SLI.
* Structure is documented below.
* @property locations An optional set of locations to which this SLI is relevant.
* Telemetry from other locations will not be used to calculate
* performance for this SLI. If omitted, this SLI applies to all
* locations in which the Service has activity. For service types
* that don't support breaking down by location, setting this
* field will result in an error.
* @property methods An optional set of RPCs to which this SLI is relevant.
* Telemetry from other methods will not be used to calculate
* performance for this SLI. If omitted, this SLI applies to all
* the Service's methods. For service types that don't support
* breaking down by method, setting this field will result in an
* error.
* @property versions The set of API versions to which this SLI is relevant.
* Telemetry from other API versions will not be used to
* calculate performance for this SLI. If omitted,
* this SLI applies to all API versions. For service types
* that don't support breaking down by version, setting this
* field will result in an error.
*/
public data class SloBasicSli(
public val availability: SloBasicSliAvailability? = null,
public val latency: SloBasicSliLatency? = null,
public val locations: List? = null,
public val methods: List? = null,
public val versions: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.monitoring.outputs.SloBasicSli): SloBasicSli =
SloBasicSli(
availability = javaType.availability().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.monitoring.kotlin.outputs.SloBasicSliAvailability.Companion.toKotlin(args0)
})
}).orElse(null),
latency = javaType.latency().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.monitoring.kotlin.outputs.SloBasicSliLatency.Companion.toKotlin(args0)
})
}).orElse(null),
locations = javaType.locations().map({ args0 -> args0 }),
methods = javaType.methods().map({ args0 -> args0 }),
versions = javaType.versions().map({ args0 -> args0 }),
)
}
}