Scheduled Query Rules Alert Args
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
Constructors
Properties
An action
block as defined below.
List of Resource IDs referred into query.
Should the alerts in this Metric Alert be auto resolved? Defaults to false
.
The resource URI over which log search query is to be run. Changing this forces a new resource to be created.
The description of the scheduled query rule.
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)
.
The name of the resource group in which to create the scheduled query rule instance. Changing this forces a new resource to be created.
Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
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).
A trigger
block as defined below.