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

com.pulumi.azure.monitoring.kotlin.outputs.GetScheduledQueryRulesAlertResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 * A collection of values returned by getScheduledQueryRulesAlert.
 * @property actions supports the following:
 * @property authorizedResourceIds The list of Resource IDs referred into query.
 * @property dataSourceId The resource URI over which log search query is to be run.
 * @property description The description of the scheduled query rule.
 * @property enabled Whether this scheduled query rule is enabled.
 * @property frequency Frequency at which rule condition should be evaluated.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property location Specifies the Azure Region where the resource should exist.
 * @property name
 * @property query Log search query.
 * @property queryType The type of query results.
 * @property resourceGroupName
 * @property severity Severity of the alert.
 * @property tags
 * @property throttling Time for which alerts should be throttled or suppressed.
 * @property timeWindow Time window for which data needs to be fetched for query.
 * @property triggers A `trigger` block as defined below.
 */
public data class GetScheduledQueryRulesAlertResult(
    public val actions: List,
    public val authorizedResourceIds: List,
    public val dataSourceId: String,
    public val description: String,
    public val enabled: Boolean,
    public val frequency: Int,
    public val id: String,
    public val location: String,
    public val name: String,
    public val query: String,
    public val queryType: String,
    public val resourceGroupName: String,
    public val severity: Int,
    public val tags: Map,
    public val throttling: Int,
    public val timeWindow: Int,
    public val triggers: List,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.GetScheduledQueryRulesAlertResult):
            GetScheduledQueryRulesAlertResult = GetScheduledQueryRulesAlertResult(
            actions = javaType.actions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetScheduledQueryRulesAlertAction.Companion.toKotlin(args0)
                })
            }),
            authorizedResourceIds = javaType.authorizedResourceIds().map({ args0 -> args0 }),
            dataSourceId = javaType.dataSourceId(),
            description = javaType.description(),
            enabled = javaType.enabled(),
            frequency = javaType.frequency(),
            id = javaType.id(),
            location = javaType.location(),
            name = javaType.name(),
            query = javaType.query(),
            queryType = javaType.queryType(),
            resourceGroupName = javaType.resourceGroupName(),
            severity = javaType.severity(),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            throttling = javaType.throttling(),
            timeWindow = javaType.timeWindow(),
            triggers = javaType.triggers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetScheduledQueryRulesAlertTrigger.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy