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

com.pulumi.azure.monitoring.kotlin.inputs.ScheduledQueryRulesLogCriteriaArgs.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.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesLogCriteriaArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property dimensions A `dimension` block as defined below.
 * @property metricName Name of the metric. Supported metrics are listed in the Azure Monitor [Microsoft.OperationalInsights/workspaces](https://docs.microsoft.com/azure/azure-monitor/platform/metrics-supported#microsoftoperationalinsightsworkspaces) metrics namespace.
 */
public data class ScheduledQueryRulesLogCriteriaArgs(
    public val dimensions: Output>,
    public val metricName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesLogCriteriaArgs =
        com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesLogCriteriaArgs.builder()
            .dimensions(
                dimensions.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .metricName(metricName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ScheduledQueryRulesLogCriteriaArgs].
 */
@PulumiTagMarker
public class ScheduledQueryRulesLogCriteriaArgsBuilder internal constructor() {
    private var dimensions: Output>? = null

    private var metricName: Output? = null

    /**
     * @param value A `dimension` block as defined below.
     */
    @JvmName("pkhcccqjlbsttmst")
    public suspend
    fun dimensions(`value`: Output>) {
        this.dimensions = value
    }

    @JvmName("fugywqhkhlaomqcd")
    public suspend fun dimensions(
        vararg
        values: Output,
    ) {
        this.dimensions = Output.all(values.asList())
    }

    /**
     * @param values A `dimension` block as defined below.
     */
    @JvmName("hwxgisbgnqpqvxvm")
    public suspend fun dimensions(values: List>) {
        this.dimensions = Output.all(values)
    }

    /**
     * @param value Name of the metric. Supported metrics are listed in the Azure Monitor [Microsoft.OperationalInsights/workspaces](https://docs.microsoft.com/azure/azure-monitor/platform/metrics-supported#microsoftoperationalinsightsworkspaces) metrics namespace.
     */
    @JvmName("oiolmlckoxplugat")
    public suspend fun metricName(`value`: Output) {
        this.metricName = value
    }

    /**
     * @param value A `dimension` block as defined below.
     */
    @JvmName("ntbygxfcdbolicun")
    public suspend fun dimensions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensions = mapped
    }

    /**
     * @param argument A `dimension` block as defined below.
     */
    @JvmName("rxaumthivbwlldft")
    public suspend
    fun dimensions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ScheduledQueryRulesLogCriteriaDimensionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dimensions = mapped
    }

    /**
     * @param argument A `dimension` block as defined below.
     */
    @JvmName("qycxpbnrfuvrgyje")
    public suspend fun dimensions(
        vararg
        argument: suspend ScheduledQueryRulesLogCriteriaDimensionArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            ScheduledQueryRulesLogCriteriaDimensionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dimensions = mapped
    }

    /**
     * @param argument A `dimension` block as defined below.
     */
    @JvmName("lgrrukvuthwmjbga")
    public suspend
    fun dimensions(argument: suspend ScheduledQueryRulesLogCriteriaDimensionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ScheduledQueryRulesLogCriteriaDimensionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.dimensions = mapped
    }

    /**
     * @param values A `dimension` block as defined below.
     */
    @JvmName("ujxydjmsgbdvgkxf")
    public suspend fun dimensions(vararg values: ScheduledQueryRulesLogCriteriaDimensionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensions = mapped
    }

    /**
     * @param value Name of the metric. Supported metrics are listed in the Azure Monitor [Microsoft.OperationalInsights/workspaces](https://docs.microsoft.com/azure/azure-monitor/platform/metrics-supported#microsoftoperationalinsightsworkspaces) metrics namespace.
     */
    @JvmName("bbjjfytgbdtjnkjb")
    public suspend fun metricName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metricName = mapped
    }

    internal fun build(): ScheduledQueryRulesLogCriteriaArgs = ScheduledQueryRulesLogCriteriaArgs(
        dimensions = dimensions ?: throw PulumiNullFieldException("dimensions"),
        metricName = metricName ?: throw PulumiNullFieldException("metricName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy