ScheduledQueryRulesAlertArgs

data class ScheduledQueryRulesAlertArgs(val action: Output<ScheduledQueryRulesAlertActionArgs>? = null, val authorizedResourceIds: Output<List<String>>? = null, val autoMitigationEnabled: Output<Boolean>? = null, val dataSourceId: Output<String>? = null, val description: Output<String>? = null, val enabled: Output<Boolean>? = null, val frequency: Output<Int>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val query: Output<String>? = null, val queryType: Output<String>? = null, val resourceGroupName: Output<String>? = null, val severity: Output<Int>? = null, val tags: Output<Map<String, String>>? = null, val throttling: Output<Int>? = null, val timeWindow: Output<Int>? = null, val trigger: Output<ScheduledQueryRulesAlertTriggerArgs>? = null) : ConvertibleToJava<ScheduledQueryRulesAlertArgs>

Manages an AlertingAction Scheduled Query Rules resource within Azure Monitor.

Import

Scheduled Query Rule Alerts can be imported using the resource id, e.g.

$ pulumi import azure:monitoring/scheduledQueryRulesAlert:ScheduledQueryRulesAlert example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Insights/scheduledQueryRules/myrulename

Constructors

Link copied to clipboard
fun ScheduledQueryRulesAlertArgs(action: Output<ScheduledQueryRulesAlertActionArgs>? = null, authorizedResourceIds: Output<List<String>>? = null, autoMitigationEnabled: Output<Boolean>? = null, dataSourceId: Output<String>? = null, description: Output<String>? = null, enabled: Output<Boolean>? = null, frequency: Output<Int>? = null, location: Output<String>? = null, name: Output<String>? = null, query: Output<String>? = null, queryType: Output<String>? = null, resourceGroupName: Output<String>? = null, severity: Output<Int>? = null, tags: Output<Map<String, String>>? = null, throttling: Output<Int>? = null, timeWindow: Output<Int>? = null, trigger: Output<ScheduledQueryRulesAlertTriggerArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ScheduledQueryRulesAlertArgs

Properties

Link copied to clipboard

An action block as defined below.

Link copied to clipboard
val authorizedResourceIds: Output<List<String>>? = null

List of Resource IDs referred into query.

Link copied to clipboard
val autoMitigationEnabled: Output<Boolean>? = null

Should the alerts in this Metric Alert be auto resolved? Defaults to false.

Link copied to clipboard
val dataSourceId: Output<String>? = null

The resource URI over which log search query is to be run.

Link copied to clipboard
val description: Output<String>? = null

The description of the scheduled query rule.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether this scheduled query rule is enabled. Default is true.

Link copied to clipboard
val frequency: Output<Int>? = null

Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).

Link copied to clipboard
val location: Output<String>? = null

Specifies the Azure Region where the resource should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

The name of the scheduled query rule. Changing this forces a new resource to be created.

Link copied to clipboard
val query: Output<String>? = null

Log search query.

Link copied to clipboard
val queryType: Output<String>? = null

The type of query results. Possible values are ResultCount and Number. Default is ResultCount. If set to Number, query must include an AggregatedValue column of a numeric type, for example, Heartbeat | summarize AggregatedValue = count() by bin(TimeGenerated, 5m).

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group in which to create the scheduled query rule instance. Changing this forces a new resource to be created.

Link copied to clipboard
val severity: Output<Int>? = null

Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.

Link copied to clipboard
val throttling: Output<Int>? = null

Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).

Link copied to clipboard
val timeWindow: Output<Int>? = null

Time window for which data needs to be fetched for query (must be greater than or equal to frequency). Values must be between 5 and 2880 (inclusive).

Link copied to clipboard

A trigger block as defined below.