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

com.pulumi.azure.appservice.kotlin.inputs.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property count The number of Slow Requests in the time `interval` to trigger this rule.
 * @property interval The time interval in the form `hh:mm:ss`.
 * @property path The path for which this slow request rule applies.
 * > **NOTE:** `path` in `slow_request` block will be deprecated in 4.0 provider. Please use `slow_request_with_path` to set a slow request trigger with path specified.
 * @property timeTaken The threshold of time passed to qualify as a Slow Request in `hh:mm:ss`.
 */
public data class LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs(
    public val count: Output,
    public val interval: Output,
    @Deprecated(
        message = """
  `path` will be removed in `slow_request` and please use `slow_request_with_path` to set the path
      in version 4.0 of the AzureRM Provider.
  """,
    )
    public val path: Output? = null,
    public val timeTaken: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs =
        com.pulumi.azure.appservice.inputs.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs.builder()
            .count(count.applyValue({ args0 -> args0 }))
            .interval(interval.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .timeTaken(timeTaken.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs].
 */
@PulumiTagMarker
public class LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgsBuilder internal
constructor() {
    private var count: Output? = null

    private var interval: Output? = null

    private var path: Output? = null

    private var timeTaken: Output? = null

    /**
     * @param value The number of Slow Requests in the time `interval` to trigger this rule.
     */
    @JvmName("nkvmyjxdgawoyowr")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value The time interval in the form `hh:mm:ss`.
     */
    @JvmName("cdjjksgapjojrtfx")
    public suspend fun interval(`value`: Output) {
        this.interval = value
    }

    /**
     * @param value The path for which this slow request rule applies.
     * > **NOTE:** `path` in `slow_request` block will be deprecated in 4.0 provider. Please use `slow_request_with_path` to set a slow request trigger with path specified.
     */
    @Deprecated(
        message = """
  `path` will be removed in `slow_request` and please use `slow_request_with_path` to set the path
      in version 4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("txbskfljiimqxnci")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value The threshold of time passed to qualify as a Slow Request in `hh:mm:ss`.
     */
    @JvmName("ryivewyustioaotn")
    public suspend fun timeTaken(`value`: Output) {
        this.timeTaken = value
    }

    /**
     * @param value The number of Slow Requests in the time `interval` to trigger this rule.
     */
    @JvmName("japxfseqovnyuwnq")
    public suspend fun count(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value The time interval in the form `hh:mm:ss`.
     */
    @JvmName("eekwesfueywjdxji")
    public suspend fun interval(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.interval = mapped
    }

    /**
     * @param value The path for which this slow request rule applies.
     * > **NOTE:** `path` in `slow_request` block will be deprecated in 4.0 provider. Please use `slow_request_with_path` to set a slow request trigger with path specified.
     */
    @Deprecated(
        message = """
  `path` will be removed in `slow_request` and please use `slow_request_with_path` to set the path
      in version 4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("qaitmcevvwwipgxc")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value The threshold of time passed to qualify as a Slow Request in `hh:mm:ss`.
     */
    @JvmName("xrlsvokwpmuelwsj")
    public suspend fun timeTaken(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timeTaken = mapped
    }

    internal fun build(): LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs =
        LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs(
            count = count ?: throw PulumiNullFieldException("count"),
            interval = interval ?: throw PulumiNullFieldException("interval"),
            path = path,
            timeTaken = timeTaken ?: throw PulumiNullFieldException("timeTaken"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy