ScheduledQueryRulesAlertV2Args

data class ScheduledQueryRulesAlertV2Args(val action: Output<ScheduledQueryRulesAlertV2ActionArgs>? = null, val autoMitigationEnabled: Output<Boolean>? = null, val criterias: Output<List<ScheduledQueryRulesAlertV2CriteriaArgs>>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val enabled: Output<Boolean>? = null, val evaluationFrequency: Output<String>? = null, val location: Output<String>? = null, val muteActionsAfterAlertDuration: Output<String>? = null, val name: Output<String>? = null, val queryTimeRangeOverride: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scopes: Output<String>? = null, val severity: Output<Int>? = null, val skipQueryValidation: Output<Boolean>? = null, val tags: Output<Map<String, String>>? = null, val targetResourceTypes: Output<List<String>>? = null, val windowDuration: Output<String>? = null, val workspaceAlertsStorageEnabled: Output<Boolean>? = null) : ConvertibleToJava<ScheduledQueryRulesAlertV2Args>

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

Constructors

Link copied to clipboard
fun ScheduledQueryRulesAlertV2Args(action: Output<ScheduledQueryRulesAlertV2ActionArgs>? = null, autoMitigationEnabled: Output<Boolean>? = null, criterias: Output<List<ScheduledQueryRulesAlertV2CriteriaArgs>>? = null, description: Output<String>? = null, displayName: Output<String>? = null, enabled: Output<Boolean>? = null, evaluationFrequency: Output<String>? = null, location: Output<String>? = null, muteActionsAfterAlertDuration: Output<String>? = null, name: Output<String>? = null, queryTimeRangeOverride: Output<String>? = null, resourceGroupName: Output<String>? = null, scopes: Output<String>? = null, severity: Output<Int>? = null, skipQueryValidation: Output<Boolean>? = null, tags: Output<Map<String, String>>? = null, targetResourceTypes: Output<List<String>>? = null, windowDuration: Output<String>? = null, workspaceAlertsStorageEnabled: Output<Boolean>? = null)

Functions

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

Properties

Link copied to clipboard

An action block as defined below.

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

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

A criteria block as defined below.

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

Specifies the description of the scheduled query rule.

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

Specifies the display name of the alert rule.

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

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
val evaluationFrequency: Output<String>? = null

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 location: Output<String>? = null

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

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 queryTimeRangeOverride: Output<String>? = null

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
val resourceGroupName: Output<String>? = null

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

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

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

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

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

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

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

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 windowDuration: Output<String>? = null

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.