Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.monitoring.inputs.SloBasicSliArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 SloBasicSliArgs(
public val availability: Output? = null,
public val latency: Output? = null,
public val locations: Output>? = null,
public val methods: Output>? = null,
public val versions: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.monitoring.inputs.SloBasicSliArgs =
com.pulumi.gcp.monitoring.inputs.SloBasicSliArgs.builder()
.availability(availability?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.latency(latency?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.locations(locations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.methods(methods?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.versions(versions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [SloBasicSliArgs].
*/
@PulumiTagMarker
public class SloBasicSliArgsBuilder internal constructor() {
private var availability: Output? = null
private var latency: Output? = null
private var locations: Output>? = null
private var methods: Output>? = null
private var versions: Output>? = null
/**
* @param value Availability based SLI, dervied from count of requests made to this service that return successfully.
* Structure is documented below.
*/
@JvmName("mnyobhaxsabicfnt")
public suspend fun availability(`value`: Output) {
this.availability = value
}
/**
* @param value Parameters for a latency threshold SLI.
* Structure is documented below.
*/
@JvmName("pedxyxnwahecgvgh")
public suspend fun latency(`value`: Output) {
this.latency = value
}
/**
* @param value 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.
*/
@JvmName("ckulfejcaftsisjm")
public suspend fun locations(`value`: Output>) {
this.locations = value
}
@JvmName("ubolwckpsveqqvvy")
public suspend fun locations(vararg values: Output) {
this.locations = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("uqjtvgbrntpdekel")
public suspend fun locations(values: List