ScheduledQueryRulesAlertV2

class ScheduledQueryRulesAlertV2 : KotlinCustomResource

Manages an AlertingAction Scheduled Query Rules Version 2 resource within Azure Monitor

Import

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

$ pulumi import azure:monitoring/scheduledQueryRulesAlertV2:ScheduledQueryRulesAlertV2 example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Insights/scheduledQueryRules/rule1

Properties

Link copied to clipboard

An action block as defined below.

Link copied to clipboard

Specifies the flag that indicates whether the alert should be automatically resolved or not. Value should be true or false. The default is false.

Link copied to clipboard

The api-version used when creating this alert rule.

Link copied to clipboard

A criteria block as defined below.

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

Specifies the description of the scheduled query rule.

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

Specifies the display name of the alert rule.

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

Specifies the flag which indicates whether this scheduled query rule is enabled. Value should be true or false. The default is true.

Link copied to clipboard

How often the scheduled query rule is evaluated, represented in ISO 8601 duration format. Possible values are PT1M, PT5M, PT10M, PT15M, PT30M, PT45M, PT1H, PT2H, PT3H, PT4H, PT5H, PT6H, P1D.

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

True if this alert rule is a legacy Log Analytic Rule.

Link copied to clipboard

The flag indicates whether this Scheduled Query Rule has been configured to be stored in the customer's storage.

Link copied to clipboard
val location: Output<String>

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

Link copied to clipboard

Mute actions for the chosen period of time in ISO 8601 duration format after the alert is fired. Possible values are PT5M, PT10M, PT15M, PT30M, PT45M, PT1H, PT2H, PT3H, PT4H, PT5H, PT6H, P1D and P2D.

Link copied to clipboard
val name: Output<String>

Specifies the name which should be used for this Monitor 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

Set this if the alert evaluation period is different from the query time range. If not specified, the value is window_duration*number_of_evaluation_periods. Possible values are PT5M, PT10M, PT15M, PT20M, PT30M, PT45M, PT1H, PT2H, PT3H, PT4H, PT5H, PT6H, P1D and P2D.

Link copied to clipboard

Specifies the name of the Resource Group where the Monitor Scheduled Query Rule should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val scopes: Output<String>

Specifies the list of resource IDs that this scheduled query rule is scoped to. Changing this forces a new resource to be created. Currently, the API supports exactly 1 resource ID in the scopes list.

Link copied to clipboard
val severity: Output<Int>

Severity of the alert. Should be an integer between 0 and 4. Value of 0 is severest.

Link copied to clipboard

Specifies the flag which indicates whether the provided query should be validated or not. The default is false.

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

A mapping of tags which should be assigned to the Monitor Scheduled Query Rule.

Link copied to clipboard

List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val windowDuration: Output<String>

Specifies the period of time in ISO 8601 duration format on which the Scheduled Query Rule will be executed (bin size). If evaluation_frequency is PT1M, possible values are PT1M, PT5M, PT10M, PT15M, PT30M, PT45M, PT1H, PT2H, PT3H, PT4H, PT5H, and PT6H. Otherwise, possible values are PT5M, PT10M, PT15M, PT30M, PT45M, PT1H, PT2H, PT3H, PT4H, PT5H, PT6H, P1D, and P2D.

Link copied to clipboard

Specifies the flag which indicates whether this scheduled query rule check if storage is configured. Value should be true or false. The default is false.