ScheduledQueryRulesAlert

class ScheduledQueryRulesAlert : KotlinCustomResource

Manages an AlertingAction Scheduled Query Rules resource within Azure Monitor.

Note: This resource is using an older AzureRM API version which is known to cause problems e.g. with custom webhook properties not included in triggered alerts. This resource is superseded by the azure.monitoring.ScheduledQueryRulesAlertV2 resource using newer API versions.

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

Properties

Link copied to clipboard

An action block as defined below.

Link copied to clipboard

List of Resource IDs referred into query.

Link copied to clipboard

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

Link copied to clipboard
val dataSourceId: Output<String>

The resource URI over which log search query is to be run. Changing this forces a new resource to be created.

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

The description of the scheduled query rule.

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

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

Link copied to clipboard
val frequency: Output<Int>

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

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>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val query: Output<String>

Log search query.

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

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

Link copied to clipboard

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>?

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

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

A mapping of tags to assign to the resource.

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

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>

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.

Link copied to clipboard
val urn: Output<String>