azure-native.insights.ScheduledQueryRule
Explore with Pulumi AI
The scheduled query rule resource. Azure REST API version: 2023-03-15-preview. Prior API version in Azure Native 1.x: 2018-04-16.
Other available API versions: 2018-04-16, 2020-05-01-preview, 2022-08-01-preview, 2023-12-01, 2024-01-01-preview.
Example Usage
Create or update a scheduled query rule for Single Resource
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var scheduledQueryRule = new AzureNative.Insights.ScheduledQueryRule("scheduledQueryRule", new()
    {
        Actions = new AzureNative.Insights.Inputs.ActionsArgs
        {
            ActionGroups = new[]
            {
                "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup",
            },
            CustomProperties = 
            {
                { "key11", "value11" },
                { "key12", "value12" },
            },
        },
        CheckWorkspaceAlertsStorageConfigured = true,
        Criteria = new AzureNative.Insights.Inputs.ScheduledQueryRuleCriteriaArgs
        {
            AllOf = new[]
            {
                new AzureNative.Insights.Inputs.ConditionArgs
                {
                    Dimensions = new[]
                    {
                        new AzureNative.Insights.Inputs.DimensionArgs
                        {
                            Name = "ComputerIp",
                            Operator = AzureNative.Insights.DimensionOperator.Exclude,
                            Values = new[]
                            {
                                "192.168.1.1",
                            },
                        },
                        new AzureNative.Insights.Inputs.DimensionArgs
                        {
                            Name = "OSType",
                            Operator = AzureNative.Insights.DimensionOperator.Include,
                            Values = new[]
                            {
                                "*",
                            },
                        },
                    },
                    FailingPeriods = new AzureNative.Insights.Inputs.ConditionFailingPeriodsArgs
                    {
                        MinFailingPeriodsToAlert = 1,
                        NumberOfEvaluationPeriods = 1,
                    },
                    MetricMeasureColumn = "% Processor Time",
                    Operator = AzureNative.Insights.ConditionOperator.GreaterThan,
                    Query = "Perf | where ObjectName == \"Processor\"",
                    ResourceIdColumn = "resourceId",
                    Threshold = 70,
                    TimeAggregation = AzureNative.Insights.TimeAggregation.Average,
                },
            },
        },
        Description = "Performance rule",
        Enabled = true,
        EvaluationFrequency = "PT5M",
        Location = "eastus",
        MuteActionsDuration = "PT30M",
        ResolveConfiguration = new AzureNative.Insights.Inputs.RuleResolveConfigurationArgs
        {
            AutoResolved = true,
            TimeToResolve = "PT10M",
        },
        ResourceGroupName = "QueryResourceGroupName",
        RuleName = "perf",
        Scopes = new[]
        {
            "/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1",
        },
        Severity = 4,
        SkipQueryValidation = true,
        WindowSize = "PT10M",
    });
});
package main
import (
	insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := insights.NewScheduledQueryRule(ctx, "scheduledQueryRule", &insights.ScheduledQueryRuleArgs{
			Actions: &insights.ActionsArgs{
				ActionGroups: pulumi.StringArray{
					pulumi.String("/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"),
				},
				CustomProperties: pulumi.StringMap{
					"key11": pulumi.String("value11"),
					"key12": pulumi.String("value12"),
				},
			},
			CheckWorkspaceAlertsStorageConfigured: pulumi.Bool(true),
			Criteria: &insights.ScheduledQueryRuleCriteriaArgs{
				AllOf: insights.ConditionArray{
					&insights.ConditionArgs{
						Dimensions: insights.DimensionArray{
							&insights.DimensionArgs{
								Name:     pulumi.String("ComputerIp"),
								Operator: pulumi.String(insights.DimensionOperatorExclude),
								Values: pulumi.StringArray{
									pulumi.String("192.168.1.1"),
								},
							},
							&insights.DimensionArgs{
								Name:     pulumi.String("OSType"),
								Operator: pulumi.String(insights.DimensionOperatorInclude),
								Values: pulumi.StringArray{
									pulumi.String("*"),
								},
							},
						},
						FailingPeriods: &insights.ConditionFailingPeriodsArgs{
							MinFailingPeriodsToAlert:  pulumi.Float64(1),
							NumberOfEvaluationPeriods: pulumi.Float64(1),
						},
						MetricMeasureColumn: pulumi.String("% Processor Time"),
						Operator:            pulumi.String(insights.ConditionOperatorGreaterThan),
						Query:               pulumi.String("Perf | where ObjectName == \"Processor\""),
						ResourceIdColumn:    pulumi.String("resourceId"),
						Threshold:           pulumi.Float64(70),
						TimeAggregation:     pulumi.String(insights.TimeAggregationAverage),
					},
				},
			},
			Description:         pulumi.String("Performance rule"),
			Enabled:             pulumi.Bool(true),
			EvaluationFrequency: pulumi.String("PT5M"),
			Location:            pulumi.String("eastus"),
			MuteActionsDuration: pulumi.String("PT30M"),
			ResolveConfiguration: &insights.RuleResolveConfigurationArgs{
				AutoResolved:  pulumi.Bool(true),
				TimeToResolve: pulumi.String("PT10M"),
			},
			ResourceGroupName: pulumi.String("QueryResourceGroupName"),
			RuleName:          pulumi.String("perf"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1"),
			},
			Severity:            pulumi.Float64(4),
			SkipQueryValidation: pulumi.Bool(true),
			WindowSize:          pulumi.String("PT10M"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.ScheduledQueryRule;
import com.pulumi.azurenative.insights.ScheduledQueryRuleArgs;
import com.pulumi.azurenative.insights.inputs.ActionsArgs;
import com.pulumi.azurenative.insights.inputs.ScheduledQueryRuleCriteriaArgs;
import com.pulumi.azurenative.insights.inputs.RuleResolveConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var scheduledQueryRule = new ScheduledQueryRule("scheduledQueryRule", ScheduledQueryRuleArgs.builder()
            .actions(ActionsArgs.builder()
                .actionGroups("/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup")
                .customProperties(Map.ofEntries(
                    Map.entry("key11", "value11"),
                    Map.entry("key12", "value12")
                ))
                .build())
            .checkWorkspaceAlertsStorageConfigured(true)
            .criteria(ScheduledQueryRuleCriteriaArgs.builder()
                .allOf(ConditionArgs.builder()
                    .dimensions(                    
                        DimensionArgs.builder()
                            .name("ComputerIp")
                            .operator("Exclude")
                            .values("192.168.1.1")
                            .build(),
                        DimensionArgs.builder()
                            .name("OSType")
                            .operator("Include")
                            .values("*")
                            .build())
                    .failingPeriods(ConditionFailingPeriodsArgs.builder()
                        .minFailingPeriodsToAlert(1)
                        .numberOfEvaluationPeriods(1)
                        .build())
                    .metricMeasureColumn("% Processor Time")
                    .operator("GreaterThan")
                    .query("Perf | where ObjectName == \"Processor\"")
                    .resourceIdColumn("resourceId")
                    .threshold(70)
                    .timeAggregation("Average")
                    .build())
                .build())
            .description("Performance rule")
            .enabled(true)
            .evaluationFrequency("PT5M")
            .location("eastus")
            .muteActionsDuration("PT30M")
            .resolveConfiguration(RuleResolveConfigurationArgs.builder()
                .autoResolved(true)
                .timeToResolve("PT10M")
                .build())
            .resourceGroupName("QueryResourceGroupName")
            .ruleName("perf")
            .scopes("/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1")
            .severity(4)
            .skipQueryValidation(true)
            .windowSize("PT10M")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const scheduledQueryRule = new azure_native.insights.ScheduledQueryRule("scheduledQueryRule", {
    actions: {
        actionGroups: ["/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"],
        customProperties: {
            key11: "value11",
            key12: "value12",
        },
    },
    checkWorkspaceAlertsStorageConfigured: true,
    criteria: {
        allOf: [{
            dimensions: [
                {
                    name: "ComputerIp",
                    operator: azure_native.insights.DimensionOperator.Exclude,
                    values: ["192.168.1.1"],
                },
                {
                    name: "OSType",
                    operator: azure_native.insights.DimensionOperator.Include,
                    values: ["*"],
                },
            ],
            failingPeriods: {
                minFailingPeriodsToAlert: 1,
                numberOfEvaluationPeriods: 1,
            },
            metricMeasureColumn: "% Processor Time",
            operator: azure_native.insights.ConditionOperator.GreaterThan,
            query: "Perf | where ObjectName == \"Processor\"",
            resourceIdColumn: "resourceId",
            threshold: 70,
            timeAggregation: azure_native.insights.TimeAggregation.Average,
        }],
    },
    description: "Performance rule",
    enabled: true,
    evaluationFrequency: "PT5M",
    location: "eastus",
    muteActionsDuration: "PT30M",
    resolveConfiguration: {
        autoResolved: true,
        timeToResolve: "PT10M",
    },
    resourceGroupName: "QueryResourceGroupName",
    ruleName: "perf",
    scopes: ["/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1"],
    severity: 4,
    skipQueryValidation: true,
    windowSize: "PT10M",
});
import pulumi
import pulumi_azure_native as azure_native
scheduled_query_rule = azure_native.insights.ScheduledQueryRule("scheduledQueryRule",
    actions={
        "action_groups": ["/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"],
        "custom_properties": {
            "key11": "value11",
            "key12": "value12",
        },
    },
    check_workspace_alerts_storage_configured=True,
    criteria={
        "all_of": [{
            "dimensions": [
                {
                    "name": "ComputerIp",
                    "operator": azure_native.insights.DimensionOperator.EXCLUDE,
                    "values": ["192.168.1.1"],
                },
                {
                    "name": "OSType",
                    "operator": azure_native.insights.DimensionOperator.INCLUDE,
                    "values": ["*"],
                },
            ],
            "failing_periods": {
                "min_failing_periods_to_alert": 1,
                "number_of_evaluation_periods": 1,
            },
            "metric_measure_column": "% Processor Time",
            "operator": azure_native.insights.ConditionOperator.GREATER_THAN,
            "query": "Perf | where ObjectName == \"Processor\"",
            "resource_id_column": "resourceId",
            "threshold": 70,
            "time_aggregation": azure_native.insights.TimeAggregation.AVERAGE,
        }],
    },
    description="Performance rule",
    enabled=True,
    evaluation_frequency="PT5M",
    location="eastus",
    mute_actions_duration="PT30M",
    resolve_configuration={
        "auto_resolved": True,
        "time_to_resolve": "PT10M",
    },
    resource_group_name="QueryResourceGroupName",
    rule_name="perf",
    scopes=["/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1"],
    severity=4,
    skip_query_validation=True,
    window_size="PT10M")
resources:
  scheduledQueryRule:
    type: azure-native:insights:ScheduledQueryRule
    properties:
      actions:
        actionGroups:
          - /subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup
        customProperties:
          key11: value11
          key12: value12
      checkWorkspaceAlertsStorageConfigured: true
      criteria:
        allOf:
          - dimensions:
              - name: ComputerIp
                operator: Exclude
                values:
                  - 192.168.1.1
              - name: OSType
                operator: Include
                values:
                  - '*'
            failingPeriods:
              minFailingPeriodsToAlert: 1
              numberOfEvaluationPeriods: 1
            metricMeasureColumn: '% Processor Time'
            operator: GreaterThan
            query: Perf | where ObjectName == "Processor"
            resourceIdColumn: resourceId
            threshold: 70
            timeAggregation: Average
      description: Performance rule
      enabled: true
      evaluationFrequency: PT5M
      location: eastus
      muteActionsDuration: PT30M
      resolveConfiguration:
        autoResolved: true
        timeToResolve: PT10M
      resourceGroupName: QueryResourceGroupName
      ruleName: perf
      scopes:
        - /subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1
      severity: 4
      skipQueryValidation: true
      windowSize: PT10M
Create or update a scheduled query rule on Resource group(s)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var scheduledQueryRule = new AzureNative.Insights.ScheduledQueryRule("scheduledQueryRule", new()
    {
        Actions = new AzureNative.Insights.Inputs.ActionsArgs
        {
            ActionGroups = new[]
            {
                "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup",
            },
            CustomProperties = 
            {
                { "key11", "value11" },
                { "key12", "value12" },
            },
        },
        CheckWorkspaceAlertsStorageConfigured = true,
        Criteria = new AzureNative.Insights.Inputs.ScheduledQueryRuleCriteriaArgs
        {
            AllOf = new[]
            {
                new AzureNative.Insights.Inputs.ConditionArgs
                {
                    Dimensions = new() { },
                    FailingPeriods = new AzureNative.Insights.Inputs.ConditionFailingPeriodsArgs
                    {
                        MinFailingPeriodsToAlert = 1,
                        NumberOfEvaluationPeriods = 1,
                    },
                    Operator = AzureNative.Insights.ConditionOperator.GreaterThan,
                    Query = "Heartbeat",
                    Threshold = 360,
                    TimeAggregation = AzureNative.Insights.TimeAggregation.Count,
                },
            },
        },
        Description = "Health check rule",
        Enabled = true,
        EvaluationFrequency = "PT5M",
        Location = "eastus",
        MuteActionsDuration = "PT30M",
        ResolveConfiguration = new AzureNative.Insights.Inputs.RuleResolveConfigurationArgs
        {
            AutoResolved = true,
            TimeToResolve = "PT10M",
        },
        ResourceGroupName = "QueryResourceGroupName",
        RuleName = "heartbeat",
        Scopes = new[]
        {
            "/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1",
        },
        Severity = 4,
        SkipQueryValidation = true,
        TargetResourceTypes = new[]
        {
            "Microsoft.Compute/virtualMachines",
        },
        WindowSize = "PT10M",
    });
});
package main
import (
	insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := insights.NewScheduledQueryRule(ctx, "scheduledQueryRule", &insights.ScheduledQueryRuleArgs{
			Actions: &insights.ActionsArgs{
				ActionGroups: pulumi.StringArray{
					pulumi.String("/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"),
				},
				CustomProperties: pulumi.StringMap{
					"key11": pulumi.String("value11"),
					"key12": pulumi.String("value12"),
				},
			},
			CheckWorkspaceAlertsStorageConfigured: pulumi.Bool(true),
			Criteria: &insights.ScheduledQueryRuleCriteriaArgs{
				AllOf: insights.ConditionArray{
					&insights.ConditionArgs{
						Dimensions: insights.DimensionArray{},
						FailingPeriods: &insights.ConditionFailingPeriodsArgs{
							MinFailingPeriodsToAlert:  pulumi.Float64(1),
							NumberOfEvaluationPeriods: pulumi.Float64(1),
						},
						Operator:        pulumi.String(insights.ConditionOperatorGreaterThan),
						Query:           pulumi.String("Heartbeat"),
						Threshold:       pulumi.Float64(360),
						TimeAggregation: pulumi.String(insights.TimeAggregationCount),
					},
				},
			},
			Description:         pulumi.String("Health check rule"),
			Enabled:             pulumi.Bool(true),
			EvaluationFrequency: pulumi.String("PT5M"),
			Location:            pulumi.String("eastus"),
			MuteActionsDuration: pulumi.String("PT30M"),
			ResolveConfiguration: &insights.RuleResolveConfigurationArgs{
				AutoResolved:  pulumi.Bool(true),
				TimeToResolve: pulumi.String("PT10M"),
			},
			ResourceGroupName: pulumi.String("QueryResourceGroupName"),
			RuleName:          pulumi.String("heartbeat"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1"),
			},
			Severity:            pulumi.Float64(4),
			SkipQueryValidation: pulumi.Bool(true),
			TargetResourceTypes: pulumi.StringArray{
				pulumi.String("Microsoft.Compute/virtualMachines"),
			},
			WindowSize: pulumi.String("PT10M"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.ScheduledQueryRule;
import com.pulumi.azurenative.insights.ScheduledQueryRuleArgs;
import com.pulumi.azurenative.insights.inputs.ActionsArgs;
import com.pulumi.azurenative.insights.inputs.ScheduledQueryRuleCriteriaArgs;
import com.pulumi.azurenative.insights.inputs.RuleResolveConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var scheduledQueryRule = new ScheduledQueryRule("scheduledQueryRule", ScheduledQueryRuleArgs.builder()
            .actions(ActionsArgs.builder()
                .actionGroups("/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup")
                .customProperties(Map.ofEntries(
                    Map.entry("key11", "value11"),
                    Map.entry("key12", "value12")
                ))
                .build())
            .checkWorkspaceAlertsStorageConfigured(true)
            .criteria(ScheduledQueryRuleCriteriaArgs.builder()
                .allOf(ConditionArgs.builder()
                    .dimensions()
                    .failingPeriods(ConditionFailingPeriodsArgs.builder()
                        .minFailingPeriodsToAlert(1)
                        .numberOfEvaluationPeriods(1)
                        .build())
                    .operator("GreaterThan")
                    .query("Heartbeat")
                    .threshold(360)
                    .timeAggregation("Count")
                    .build())
                .build())
            .description("Health check rule")
            .enabled(true)
            .evaluationFrequency("PT5M")
            .location("eastus")
            .muteActionsDuration("PT30M")
            .resolveConfiguration(RuleResolveConfigurationArgs.builder()
                .autoResolved(true)
                .timeToResolve("PT10M")
                .build())
            .resourceGroupName("QueryResourceGroupName")
            .ruleName("heartbeat")
            .scopes("/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1")
            .severity(4)
            .skipQueryValidation(true)
            .targetResourceTypes("Microsoft.Compute/virtualMachines")
            .windowSize("PT10M")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const scheduledQueryRule = new azure_native.insights.ScheduledQueryRule("scheduledQueryRule", {
    actions: {
        actionGroups: ["/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"],
        customProperties: {
            key11: "value11",
            key12: "value12",
        },
    },
    checkWorkspaceAlertsStorageConfigured: true,
    criteria: {
        allOf: [{
            dimensions: [],
            failingPeriods: {
                minFailingPeriodsToAlert: 1,
                numberOfEvaluationPeriods: 1,
            },
            operator: azure_native.insights.ConditionOperator.GreaterThan,
            query: "Heartbeat",
            threshold: 360,
            timeAggregation: azure_native.insights.TimeAggregation.Count,
        }],
    },
    description: "Health check rule",
    enabled: true,
    evaluationFrequency: "PT5M",
    location: "eastus",
    muteActionsDuration: "PT30M",
    resolveConfiguration: {
        autoResolved: true,
        timeToResolve: "PT10M",
    },
    resourceGroupName: "QueryResourceGroupName",
    ruleName: "heartbeat",
    scopes: ["/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1"],
    severity: 4,
    skipQueryValidation: true,
    targetResourceTypes: ["Microsoft.Compute/virtualMachines"],
    windowSize: "PT10M",
});
import pulumi
import pulumi_azure_native as azure_native
scheduled_query_rule = azure_native.insights.ScheduledQueryRule("scheduledQueryRule",
    actions={
        "action_groups": ["/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"],
        "custom_properties": {
            "key11": "value11",
            "key12": "value12",
        },
    },
    check_workspace_alerts_storage_configured=True,
    criteria={
        "all_of": [{
            "dimensions": [],
            "failing_periods": {
                "min_failing_periods_to_alert": 1,
                "number_of_evaluation_periods": 1,
            },
            "operator": azure_native.insights.ConditionOperator.GREATER_THAN,
            "query": "Heartbeat",
            "threshold": 360,
            "time_aggregation": azure_native.insights.TimeAggregation.COUNT,
        }],
    },
    description="Health check rule",
    enabled=True,
    evaluation_frequency="PT5M",
    location="eastus",
    mute_actions_duration="PT30M",
    resolve_configuration={
        "auto_resolved": True,
        "time_to_resolve": "PT10M",
    },
    resource_group_name="QueryResourceGroupName",
    rule_name="heartbeat",
    scopes=["/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1"],
    severity=4,
    skip_query_validation=True,
    target_resource_types=["Microsoft.Compute/virtualMachines"],
    window_size="PT10M")
resources:
  scheduledQueryRule:
    type: azure-native:insights:ScheduledQueryRule
    properties:
      actions:
        actionGroups:
          - /subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup
        customProperties:
          key11: value11
          key12: value12
      checkWorkspaceAlertsStorageConfigured: true
      criteria:
        allOf:
          - dimensions: []
            failingPeriods:
              minFailingPeriodsToAlert: 1
              numberOfEvaluationPeriods: 1
            operator: GreaterThan
            query: Heartbeat
            threshold: 360
            timeAggregation: Count
      description: Health check rule
      enabled: true
      evaluationFrequency: PT5M
      location: eastus
      muteActionsDuration: PT30M
      resolveConfiguration:
        autoResolved: true
        timeToResolve: PT10M
      resourceGroupName: QueryResourceGroupName
      ruleName: heartbeat
      scopes:
        - /subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1
      severity: 4
      skipQueryValidation: true
      targetResourceTypes:
        - Microsoft.Compute/virtualMachines
      windowSize: PT10M
Create or update a scheduled query rule on Subscription
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var scheduledQueryRule = new AzureNative.Insights.ScheduledQueryRule("scheduledQueryRule", new()
    {
        Actions = new AzureNative.Insights.Inputs.ActionsArgs
        {
            ActionGroups = new[]
            {
                "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup",
            },
            CustomProperties = 
            {
                { "key11", "value11" },
                { "key12", "value12" },
            },
        },
        CheckWorkspaceAlertsStorageConfigured = true,
        Criteria = new AzureNative.Insights.Inputs.ScheduledQueryRuleCriteriaArgs
        {
            AllOf = new[]
            {
                new AzureNative.Insights.Inputs.ConditionArgs
                {
                    Dimensions = new[]
                    {
                        new AzureNative.Insights.Inputs.DimensionArgs
                        {
                            Name = "ComputerIp",
                            Operator = AzureNative.Insights.DimensionOperator.Exclude,
                            Values = new[]
                            {
                                "192.168.1.1",
                            },
                        },
                        new AzureNative.Insights.Inputs.DimensionArgs
                        {
                            Name = "OSType",
                            Operator = AzureNative.Insights.DimensionOperator.Include,
                            Values = new[]
                            {
                                "*",
                            },
                        },
                    },
                    FailingPeriods = new AzureNative.Insights.Inputs.ConditionFailingPeriodsArgs
                    {
                        MinFailingPeriodsToAlert = 1,
                        NumberOfEvaluationPeriods = 1,
                    },
                    MetricMeasureColumn = "% Processor Time",
                    Operator = AzureNative.Insights.ConditionOperator.GreaterThan,
                    Query = "Perf | where ObjectName == \"Processor\"",
                    ResourceIdColumn = "resourceId",
                    Threshold = 70,
                    TimeAggregation = AzureNative.Insights.TimeAggregation.Average,
                },
            },
        },
        Description = "Performance rule",
        Enabled = true,
        EvaluationFrequency = "PT5M",
        Location = "eastus",
        MuteActionsDuration = "PT30M",
        ResolveConfiguration = new AzureNative.Insights.Inputs.RuleResolveConfigurationArgs
        {
            AutoResolved = true,
            TimeToResolve = "PT10M",
        },
        ResourceGroupName = "QueryResourceGroupName",
        RuleName = "perf",
        Scopes = new[]
        {
            "/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147",
        },
        Severity = 4,
        SkipQueryValidation = true,
        TargetResourceTypes = new[]
        {
            "Microsoft.Compute/virtualMachines",
        },
        WindowSize = "PT10M",
    });
});
package main
import (
	insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := insights.NewScheduledQueryRule(ctx, "scheduledQueryRule", &insights.ScheduledQueryRuleArgs{
			Actions: &insights.ActionsArgs{
				ActionGroups: pulumi.StringArray{
					pulumi.String("/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"),
				},
				CustomProperties: pulumi.StringMap{
					"key11": pulumi.String("value11"),
					"key12": pulumi.String("value12"),
				},
			},
			CheckWorkspaceAlertsStorageConfigured: pulumi.Bool(true),
			Criteria: &insights.ScheduledQueryRuleCriteriaArgs{
				AllOf: insights.ConditionArray{
					&insights.ConditionArgs{
						Dimensions: insights.DimensionArray{
							&insights.DimensionArgs{
								Name:     pulumi.String("ComputerIp"),
								Operator: pulumi.String(insights.DimensionOperatorExclude),
								Values: pulumi.StringArray{
									pulumi.String("192.168.1.1"),
								},
							},
							&insights.DimensionArgs{
								Name:     pulumi.String("OSType"),
								Operator: pulumi.String(insights.DimensionOperatorInclude),
								Values: pulumi.StringArray{
									pulumi.String("*"),
								},
							},
						},
						FailingPeriods: &insights.ConditionFailingPeriodsArgs{
							MinFailingPeriodsToAlert:  pulumi.Float64(1),
							NumberOfEvaluationPeriods: pulumi.Float64(1),
						},
						MetricMeasureColumn: pulumi.String("% Processor Time"),
						Operator:            pulumi.String(insights.ConditionOperatorGreaterThan),
						Query:               pulumi.String("Perf | where ObjectName == \"Processor\""),
						ResourceIdColumn:    pulumi.String("resourceId"),
						Threshold:           pulumi.Float64(70),
						TimeAggregation:     pulumi.String(insights.TimeAggregationAverage),
					},
				},
			},
			Description:         pulumi.String("Performance rule"),
			Enabled:             pulumi.Bool(true),
			EvaluationFrequency: pulumi.String("PT5M"),
			Location:            pulumi.String("eastus"),
			MuteActionsDuration: pulumi.String("PT30M"),
			ResolveConfiguration: &insights.RuleResolveConfigurationArgs{
				AutoResolved:  pulumi.Bool(true),
				TimeToResolve: pulumi.String("PT10M"),
			},
			ResourceGroupName: pulumi.String("QueryResourceGroupName"),
			RuleName:          pulumi.String("perf"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147"),
			},
			Severity:            pulumi.Float64(4),
			SkipQueryValidation: pulumi.Bool(true),
			TargetResourceTypes: pulumi.StringArray{
				pulumi.String("Microsoft.Compute/virtualMachines"),
			},
			WindowSize: pulumi.String("PT10M"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.ScheduledQueryRule;
import com.pulumi.azurenative.insights.ScheduledQueryRuleArgs;
import com.pulumi.azurenative.insights.inputs.ActionsArgs;
import com.pulumi.azurenative.insights.inputs.ScheduledQueryRuleCriteriaArgs;
import com.pulumi.azurenative.insights.inputs.RuleResolveConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var scheduledQueryRule = new ScheduledQueryRule("scheduledQueryRule", ScheduledQueryRuleArgs.builder()
            .actions(ActionsArgs.builder()
                .actionGroups("/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup")
                .customProperties(Map.ofEntries(
                    Map.entry("key11", "value11"),
                    Map.entry("key12", "value12")
                ))
                .build())
            .checkWorkspaceAlertsStorageConfigured(true)
            .criteria(ScheduledQueryRuleCriteriaArgs.builder()
                .allOf(ConditionArgs.builder()
                    .dimensions(                    
                        DimensionArgs.builder()
                            .name("ComputerIp")
                            .operator("Exclude")
                            .values("192.168.1.1")
                            .build(),
                        DimensionArgs.builder()
                            .name("OSType")
                            .operator("Include")
                            .values("*")
                            .build())
                    .failingPeriods(ConditionFailingPeriodsArgs.builder()
                        .minFailingPeriodsToAlert(1)
                        .numberOfEvaluationPeriods(1)
                        .build())
                    .metricMeasureColumn("% Processor Time")
                    .operator("GreaterThan")
                    .query("Perf | where ObjectName == \"Processor\"")
                    .resourceIdColumn("resourceId")
                    .threshold(70)
                    .timeAggregation("Average")
                    .build())
                .build())
            .description("Performance rule")
            .enabled(true)
            .evaluationFrequency("PT5M")
            .location("eastus")
            .muteActionsDuration("PT30M")
            .resolveConfiguration(RuleResolveConfigurationArgs.builder()
                .autoResolved(true)
                .timeToResolve("PT10M")
                .build())
            .resourceGroupName("QueryResourceGroupName")
            .ruleName("perf")
            .scopes("/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147")
            .severity(4)
            .skipQueryValidation(true)
            .targetResourceTypes("Microsoft.Compute/virtualMachines")
            .windowSize("PT10M")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const scheduledQueryRule = new azure_native.insights.ScheduledQueryRule("scheduledQueryRule", {
    actions: {
        actionGroups: ["/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"],
        customProperties: {
            key11: "value11",
            key12: "value12",
        },
    },
    checkWorkspaceAlertsStorageConfigured: true,
    criteria: {
        allOf: [{
            dimensions: [
                {
                    name: "ComputerIp",
                    operator: azure_native.insights.DimensionOperator.Exclude,
                    values: ["192.168.1.1"],
                },
                {
                    name: "OSType",
                    operator: azure_native.insights.DimensionOperator.Include,
                    values: ["*"],
                },
            ],
            failingPeriods: {
                minFailingPeriodsToAlert: 1,
                numberOfEvaluationPeriods: 1,
            },
            metricMeasureColumn: "% Processor Time",
            operator: azure_native.insights.ConditionOperator.GreaterThan,
            query: "Perf | where ObjectName == \"Processor\"",
            resourceIdColumn: "resourceId",
            threshold: 70,
            timeAggregation: azure_native.insights.TimeAggregation.Average,
        }],
    },
    description: "Performance rule",
    enabled: true,
    evaluationFrequency: "PT5M",
    location: "eastus",
    muteActionsDuration: "PT30M",
    resolveConfiguration: {
        autoResolved: true,
        timeToResolve: "PT10M",
    },
    resourceGroupName: "QueryResourceGroupName",
    ruleName: "perf",
    scopes: ["/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147"],
    severity: 4,
    skipQueryValidation: true,
    targetResourceTypes: ["Microsoft.Compute/virtualMachines"],
    windowSize: "PT10M",
});
import pulumi
import pulumi_azure_native as azure_native
scheduled_query_rule = azure_native.insights.ScheduledQueryRule("scheduledQueryRule",
    actions={
        "action_groups": ["/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"],
        "custom_properties": {
            "key11": "value11",
            "key12": "value12",
        },
    },
    check_workspace_alerts_storage_configured=True,
    criteria={
        "all_of": [{
            "dimensions": [
                {
                    "name": "ComputerIp",
                    "operator": azure_native.insights.DimensionOperator.EXCLUDE,
                    "values": ["192.168.1.1"],
                },
                {
                    "name": "OSType",
                    "operator": azure_native.insights.DimensionOperator.INCLUDE,
                    "values": ["*"],
                },
            ],
            "failing_periods": {
                "min_failing_periods_to_alert": 1,
                "number_of_evaluation_periods": 1,
            },
            "metric_measure_column": "% Processor Time",
            "operator": azure_native.insights.ConditionOperator.GREATER_THAN,
            "query": "Perf | where ObjectName == \"Processor\"",
            "resource_id_column": "resourceId",
            "threshold": 70,
            "time_aggregation": azure_native.insights.TimeAggregation.AVERAGE,
        }],
    },
    description="Performance rule",
    enabled=True,
    evaluation_frequency="PT5M",
    location="eastus",
    mute_actions_duration="PT30M",
    resolve_configuration={
        "auto_resolved": True,
        "time_to_resolve": "PT10M",
    },
    resource_group_name="QueryResourceGroupName",
    rule_name="perf",
    scopes=["/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147"],
    severity=4,
    skip_query_validation=True,
    target_resource_types=["Microsoft.Compute/virtualMachines"],
    window_size="PT10M")
resources:
  scheduledQueryRule:
    type: azure-native:insights:ScheduledQueryRule
    properties:
      actions:
        actionGroups:
          - /subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup
        customProperties:
          key11: value11
          key12: value12
      checkWorkspaceAlertsStorageConfigured: true
      criteria:
        allOf:
          - dimensions:
              - name: ComputerIp
                operator: Exclude
                values:
                  - 192.168.1.1
              - name: OSType
                operator: Include
                values:
                  - '*'
            failingPeriods:
              minFailingPeriodsToAlert: 1
              numberOfEvaluationPeriods: 1
            metricMeasureColumn: '% Processor Time'
            operator: GreaterThan
            query: Perf | where ObjectName == "Processor"
            resourceIdColumn: resourceId
            threshold: 70
            timeAggregation: Average
      description: Performance rule
      enabled: true
      evaluationFrequency: PT5M
      location: eastus
      muteActionsDuration: PT30M
      resolveConfiguration:
        autoResolved: true
        timeToResolve: PT10M
      resourceGroupName: QueryResourceGroupName
      ruleName: perf
      scopes:
        - /subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147
      severity: 4
      skipQueryValidation: true
      targetResourceTypes:
        - Microsoft.Compute/virtualMachines
      windowSize: PT10M
Create ScheduledQueryRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScheduledQueryRule(name: string, args: ScheduledQueryRuleArgs, opts?: CustomResourceOptions);@overload
def ScheduledQueryRule(resource_name: str,
                       args: ScheduledQueryRuleArgs,
                       opts: Optional[ResourceOptions] = None)
@overload
def ScheduledQueryRule(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       enabled: Optional[bool] = None,
                       scopes: Optional[Sequence[str]] = None,
                       resource_group_name: Optional[str] = None,
                       criteria: Optional[ScheduledQueryRuleCriteriaArgs] = None,
                       location: Optional[str] = None,
                       resolve_configuration: Optional[RuleResolveConfigurationArgs] = None,
                       description: Optional[str] = None,
                       evaluation_frequency: Optional[str] = None,
                       identity: Optional[IdentityArgs] = None,
                       kind: Optional[Union[str, Kind]] = None,
                       actions: Optional[ActionsArgs] = None,
                       mute_actions_duration: Optional[str] = None,
                       override_query_time_range: Optional[str] = None,
                       display_name: Optional[str] = None,
                       check_workspace_alerts_storage_configured: Optional[bool] = None,
                       rule_name: Optional[str] = None,
                       auto_mitigate: Optional[bool] = None,
                       severity: Optional[float] = None,
                       skip_query_validation: Optional[bool] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       target_resource_types: Optional[Sequence[str]] = None,
                       window_size: Optional[str] = None)func NewScheduledQueryRule(ctx *Context, name string, args ScheduledQueryRuleArgs, opts ...ResourceOption) (*ScheduledQueryRule, error)public ScheduledQueryRule(string name, ScheduledQueryRuleArgs args, CustomResourceOptions? opts = null)
public ScheduledQueryRule(String name, ScheduledQueryRuleArgs args)
public ScheduledQueryRule(String name, ScheduledQueryRuleArgs args, CustomResourceOptions options)
type: azure-native:insights:ScheduledQueryRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ScheduledQueryRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ScheduledQueryRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ScheduledQueryRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduledQueryRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScheduledQueryRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var scheduledQueryRuleResource = new AzureNative.Insights.ScheduledQueryRule("scheduledQueryRuleResource", new()
{
    Enabled = false,
    Scopes = new[]
    {
        "string",
    },
    ResourceGroupName = "string",
    Criteria = new AzureNative.Insights.Inputs.ScheduledQueryRuleCriteriaArgs
    {
        AllOf = new[]
        {
            new AzureNative.Insights.Inputs.ConditionArgs
            {
                Dimensions = new[]
                {
                    new AzureNative.Insights.Inputs.DimensionArgs
                    {
                        Name = "string",
                        Operator = "string",
                        Values = new[]
                        {
                            "string",
                        },
                    },
                },
                FailingPeriods = new AzureNative.Insights.Inputs.ConditionFailingPeriodsArgs
                {
                    MinFailingPeriodsToAlert = 0,
                    NumberOfEvaluationPeriods = 0,
                },
                MetricMeasureColumn = "string",
                MetricName = "string",
                Operator = "string",
                Query = "string",
                ResourceIdColumn = "string",
                Threshold = 0,
                TimeAggregation = "string",
            },
        },
    },
    Location = "string",
    ResolveConfiguration = new AzureNative.Insights.Inputs.RuleResolveConfigurationArgs
    {
        AutoResolved = false,
        TimeToResolve = "string",
    },
    Description = "string",
    EvaluationFrequency = "string",
    Identity = new AzureNative.Insights.Inputs.IdentityArgs
    {
        Type = AzureNative.Insights.IdentityType.SystemAssigned,
        UserAssignedIdentities = new[]
        {
            "string",
        },
    },
    Kind = "string",
    Actions = new AzureNative.Insights.Inputs.ActionsArgs
    {
        ActionGroups = new[]
        {
            "string",
        },
        ActionProperties = 
        {
            { "string", "string" },
        },
        CustomProperties = 
        {
            { "string", "string" },
        },
    },
    MuteActionsDuration = "string",
    OverrideQueryTimeRange = "string",
    DisplayName = "string",
    CheckWorkspaceAlertsStorageConfigured = false,
    RuleName = "string",
    AutoMitigate = false,
    Severity = 0,
    SkipQueryValidation = false,
    Tags = 
    {
        { "string", "string" },
    },
    TargetResourceTypes = new[]
    {
        "string",
    },
    WindowSize = "string",
});
example, err := insights.NewScheduledQueryRule(ctx, "scheduledQueryRuleResource", &insights.ScheduledQueryRuleArgs{
	Enabled: pulumi.Bool(false),
	Scopes: pulumi.StringArray{
		pulumi.String("string"),
	},
	ResourceGroupName: pulumi.String("string"),
	Criteria: &insights.ScheduledQueryRuleCriteriaArgs{
		AllOf: insights.ConditionArray{
			&insights.ConditionArgs{
				Dimensions: insights.DimensionArray{
					&insights.DimensionArgs{
						Name:     pulumi.String("string"),
						Operator: pulumi.String("string"),
						Values: pulumi.StringArray{
							pulumi.String("string"),
						},
					},
				},
				FailingPeriods: &insights.ConditionFailingPeriodsArgs{
					MinFailingPeriodsToAlert:  pulumi.Float64(0),
					NumberOfEvaluationPeriods: pulumi.Float64(0),
				},
				MetricMeasureColumn: pulumi.String("string"),
				MetricName:          pulumi.String("string"),
				Operator:            pulumi.String("string"),
				Query:               pulumi.String("string"),
				ResourceIdColumn:    pulumi.String("string"),
				Threshold:           pulumi.Float64(0),
				TimeAggregation:     pulumi.String("string"),
			},
		},
	},
	Location: pulumi.String("string"),
	ResolveConfiguration: &insights.RuleResolveConfigurationArgs{
		AutoResolved:  pulumi.Bool(false),
		TimeToResolve: pulumi.String("string"),
	},
	Description:         pulumi.String("string"),
	EvaluationFrequency: pulumi.String("string"),
	Identity: &insights.IdentityArgs{
		Type: insights.IdentityTypeSystemAssigned,
		UserAssignedIdentities: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	Kind: pulumi.String("string"),
	Actions: &insights.ActionsArgs{
		ActionGroups: pulumi.StringArray{
			pulumi.String("string"),
		},
		ActionProperties: pulumi.StringMap{
			"string": pulumi.String("string"),
		},
		CustomProperties: pulumi.StringMap{
			"string": pulumi.String("string"),
		},
	},
	MuteActionsDuration:                   pulumi.String("string"),
	OverrideQueryTimeRange:                pulumi.String("string"),
	DisplayName:                           pulumi.String("string"),
	CheckWorkspaceAlertsStorageConfigured: pulumi.Bool(false),
	RuleName:                              pulumi.String("string"),
	AutoMitigate:                          pulumi.Bool(false),
	Severity:                              pulumi.Float64(0),
	SkipQueryValidation:                   pulumi.Bool(false),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TargetResourceTypes: pulumi.StringArray{
		pulumi.String("string"),
	},
	WindowSize: pulumi.String("string"),
})
var scheduledQueryRuleResource = new ScheduledQueryRule("scheduledQueryRuleResource", ScheduledQueryRuleArgs.builder()
    .enabled(false)
    .scopes("string")
    .resourceGroupName("string")
    .criteria(ScheduledQueryRuleCriteriaArgs.builder()
        .allOf(ConditionArgs.builder()
            .dimensions(DimensionArgs.builder()
                .name("string")
                .operator("string")
                .values("string")
                .build())
            .failingPeriods(ConditionFailingPeriodsArgs.builder()
                .minFailingPeriodsToAlert(0)
                .numberOfEvaluationPeriods(0)
                .build())
            .metricMeasureColumn("string")
            .metricName("string")
            .operator("string")
            .query("string")
            .resourceIdColumn("string")
            .threshold(0)
            .timeAggregation("string")
            .build())
        .build())
    .location("string")
    .resolveConfiguration(RuleResolveConfigurationArgs.builder()
        .autoResolved(false)
        .timeToResolve("string")
        .build())
    .description("string")
    .evaluationFrequency("string")
    .identity(IdentityArgs.builder()
        .type("SystemAssigned")
        .userAssignedIdentities("string")
        .build())
    .kind("string")
    .actions(ActionsArgs.builder()
        .actionGroups("string")
        .actionProperties(Map.of("string", "string"))
        .customProperties(Map.of("string", "string"))
        .build())
    .muteActionsDuration("string")
    .overrideQueryTimeRange("string")
    .displayName("string")
    .checkWorkspaceAlertsStorageConfigured(false)
    .ruleName("string")
    .autoMitigate(false)
    .severity(0)
    .skipQueryValidation(false)
    .tags(Map.of("string", "string"))
    .targetResourceTypes("string")
    .windowSize("string")
    .build());
scheduled_query_rule_resource = azure_native.insights.ScheduledQueryRule("scheduledQueryRuleResource",
    enabled=False,
    scopes=["string"],
    resource_group_name="string",
    criteria={
        "all_of": [{
            "dimensions": [{
                "name": "string",
                "operator": "string",
                "values": ["string"],
            }],
            "failing_periods": {
                "min_failing_periods_to_alert": 0,
                "number_of_evaluation_periods": 0,
            },
            "metric_measure_column": "string",
            "metric_name": "string",
            "operator": "string",
            "query": "string",
            "resource_id_column": "string",
            "threshold": 0,
            "time_aggregation": "string",
        }],
    },
    location="string",
    resolve_configuration={
        "auto_resolved": False,
        "time_to_resolve": "string",
    },
    description="string",
    evaluation_frequency="string",
    identity={
        "type": azure_native.insights.IdentityType.SYSTEM_ASSIGNED,
        "user_assigned_identities": ["string"],
    },
    kind="string",
    actions={
        "action_groups": ["string"],
        "action_properties": {
            "string": "string",
        },
        "custom_properties": {
            "string": "string",
        },
    },
    mute_actions_duration="string",
    override_query_time_range="string",
    display_name="string",
    check_workspace_alerts_storage_configured=False,
    rule_name="string",
    auto_mitigate=False,
    severity=0,
    skip_query_validation=False,
    tags={
        "string": "string",
    },
    target_resource_types=["string"],
    window_size="string")
const scheduledQueryRuleResource = new azure_native.insights.ScheduledQueryRule("scheduledQueryRuleResource", {
    enabled: false,
    scopes: ["string"],
    resourceGroupName: "string",
    criteria: {
        allOf: [{
            dimensions: [{
                name: "string",
                operator: "string",
                values: ["string"],
            }],
            failingPeriods: {
                minFailingPeriodsToAlert: 0,
                numberOfEvaluationPeriods: 0,
            },
            metricMeasureColumn: "string",
            metricName: "string",
            operator: "string",
            query: "string",
            resourceIdColumn: "string",
            threshold: 0,
            timeAggregation: "string",
        }],
    },
    location: "string",
    resolveConfiguration: {
        autoResolved: false,
        timeToResolve: "string",
    },
    description: "string",
    evaluationFrequency: "string",
    identity: {
        type: azure_native.insights.IdentityType.SystemAssigned,
        userAssignedIdentities: ["string"],
    },
    kind: "string",
    actions: {
        actionGroups: ["string"],
        actionProperties: {
            string: "string",
        },
        customProperties: {
            string: "string",
        },
    },
    muteActionsDuration: "string",
    overrideQueryTimeRange: "string",
    displayName: "string",
    checkWorkspaceAlertsStorageConfigured: false,
    ruleName: "string",
    autoMitigate: false,
    severity: 0,
    skipQueryValidation: false,
    tags: {
        string: "string",
    },
    targetResourceTypes: ["string"],
    windowSize: "string",
});
type: azure-native:insights:ScheduledQueryRule
properties:
    actions:
        actionGroups:
            - string
        actionProperties:
            string: string
        customProperties:
            string: string
    autoMitigate: false
    checkWorkspaceAlertsStorageConfigured: false
    criteria:
        allOf:
            - dimensions:
                - name: string
                  operator: string
                  values:
                    - string
              failingPeriods:
                minFailingPeriodsToAlert: 0
                numberOfEvaluationPeriods: 0
              metricMeasureColumn: string
              metricName: string
              operator: string
              query: string
              resourceIdColumn: string
              threshold: 0
              timeAggregation: string
    description: string
    displayName: string
    enabled: false
    evaluationFrequency: string
    identity:
        type: SystemAssigned
        userAssignedIdentities:
            - string
    kind: string
    location: string
    muteActionsDuration: string
    overrideQueryTimeRange: string
    resolveConfiguration:
        autoResolved: false
        timeToResolve: string
    resourceGroupName: string
    ruleName: string
    scopes:
        - string
    severity: 0
    skipQueryValidation: false
    tags:
        string: string
    targetResourceTypes:
        - string
    windowSize: string
ScheduledQueryRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ScheduledQueryRule resource accepts the following input properties:
- Criteria
Pulumi.Azure Native. Insights. Inputs. Scheduled Query Rule Criteria 
- The rule criteria that defines the conditions of the scheduled query rule.
- Enabled bool
- The flag which indicates whether this scheduled query rule is enabled. Value should be true or false
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Scopes List<string>
- The list of resource id's that this scheduled query rule is scoped to.
- Actions
Pulumi.Azure Native. Insights. Inputs. Actions 
- Actions to invoke when the alert fires.
- AutoMitigate bool
- The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert.
- CheckWorkspace boolAlerts Storage Configured 
- The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert.
- Description string
- The description of the scheduled query rule.
- DisplayName string
- The display name of the alert rule
- EvaluationFrequency string
- How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert.
- Identity
Pulumi.Azure Native. Insights. Inputs. Identity 
- The identity of the resource.
- Kind
string | Pulumi.Azure Native. Insights. Kind 
- Indicates the type of scheduled query rule. The default is LogAlert.
- Location string
- The geo-location where the resource lives
- MuteActions stringDuration 
- Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert.
- OverrideQuery stringTime Range 
- If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
- ResolveConfiguration Pulumi.Azure Native. Insights. Inputs. Rule Resolve Configuration 
- Defines the configuration for resolving fired alerts. Relevant only for rules of the kind LogAlert.
- RuleName string
- The name of the rule.
- Severity double
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert.
- SkipQuery boolValidation 
- The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert.
- Dictionary<string, string>
- Resource tags.
- TargetResource List<string>Types 
- 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. Relevant only for rules of the kind LogAlert
- WindowSize string
- The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert.
- Criteria
ScheduledQuery Rule Criteria Args 
- The rule criteria that defines the conditions of the scheduled query rule.
- Enabled bool
- The flag which indicates whether this scheduled query rule is enabled. Value should be true or false
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Scopes []string
- The list of resource id's that this scheduled query rule is scoped to.
- Actions
ActionsArgs 
- Actions to invoke when the alert fires.
- AutoMitigate bool
- The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert.
- CheckWorkspace boolAlerts Storage Configured 
- The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert.
- Description string
- The description of the scheduled query rule.
- DisplayName string
- The display name of the alert rule
- EvaluationFrequency string
- How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert.
- Identity
IdentityArgs 
- The identity of the resource.
- Kind string | Kind
- Indicates the type of scheduled query rule. The default is LogAlert.
- Location string
- The geo-location where the resource lives
- MuteActions stringDuration 
- Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert.
- OverrideQuery stringTime Range 
- If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
- ResolveConfiguration RuleResolve Configuration Args 
- Defines the configuration for resolving fired alerts. Relevant only for rules of the kind LogAlert.
- RuleName string
- The name of the rule.
- Severity float64
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert.
- SkipQuery boolValidation 
- The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert.
- map[string]string
- Resource tags.
- TargetResource []stringTypes 
- 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. Relevant only for rules of the kind LogAlert
- WindowSize string
- The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert.
- criteria
ScheduledQuery Rule Criteria 
- The rule criteria that defines the conditions of the scheduled query rule.
- enabled Boolean
- The flag which indicates whether this scheduled query rule is enabled. Value should be true or false
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- scopes List<String>
- The list of resource id's that this scheduled query rule is scoped to.
- actions Actions
- Actions to invoke when the alert fires.
- autoMitigate Boolean
- The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert.
- checkWorkspace BooleanAlerts Storage Configured 
- The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert.
- description String
- The description of the scheduled query rule.
- displayName String
- The display name of the alert rule
- evaluationFrequency String
- How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert.
- identity Identity
- The identity of the resource.
- kind String | Kind
- Indicates the type of scheduled query rule. The default is LogAlert.
- location String
- The geo-location where the resource lives
- muteActions StringDuration 
- Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert.
- overrideQuery StringTime Range 
- If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
- resolveConfiguration RuleResolve Configuration 
- Defines the configuration for resolving fired alerts. Relevant only for rules of the kind LogAlert.
- ruleName String
- The name of the rule.
- severity Double
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert.
- skipQuery BooleanValidation 
- The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert.
- Map<String,String>
- Resource tags.
- targetResource List<String>Types 
- 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. Relevant only for rules of the kind LogAlert
- windowSize String
- The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert.
- criteria
ScheduledQuery Rule Criteria 
- The rule criteria that defines the conditions of the scheduled query rule.
- enabled boolean
- The flag which indicates whether this scheduled query rule is enabled. Value should be true or false
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- scopes string[]
- The list of resource id's that this scheduled query rule is scoped to.
- actions Actions
- Actions to invoke when the alert fires.
- autoMitigate boolean
- The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert.
- checkWorkspace booleanAlerts Storage Configured 
- The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert.
- description string
- The description of the scheduled query rule.
- displayName string
- The display name of the alert rule
- evaluationFrequency string
- How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert.
- identity Identity
- The identity of the resource.
- kind string | Kind
- Indicates the type of scheduled query rule. The default is LogAlert.
- location string
- The geo-location where the resource lives
- muteActions stringDuration 
- Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert.
- overrideQuery stringTime Range 
- If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
- resolveConfiguration RuleResolve Configuration 
- Defines the configuration for resolving fired alerts. Relevant only for rules of the kind LogAlert.
- ruleName string
- The name of the rule.
- severity number
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert.
- skipQuery booleanValidation 
- The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert.
- {[key: string]: string}
- Resource tags.
- targetResource string[]Types 
- 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. Relevant only for rules of the kind LogAlert
- windowSize string
- The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert.
- criteria
ScheduledQuery Rule Criteria Args 
- The rule criteria that defines the conditions of the scheduled query rule.
- enabled bool
- The flag which indicates whether this scheduled query rule is enabled. Value should be true or false
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- scopes Sequence[str]
- The list of resource id's that this scheduled query rule is scoped to.
- actions
ActionsArgs 
- Actions to invoke when the alert fires.
- auto_mitigate bool
- The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert.
- check_workspace_ boolalerts_ storage_ configured 
- The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert.
- description str
- The description of the scheduled query rule.
- display_name str
- The display name of the alert rule
- evaluation_frequency str
- How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert.
- identity
IdentityArgs 
- The identity of the resource.
- kind str | Kind
- Indicates the type of scheduled query rule. The default is LogAlert.
- location str
- The geo-location where the resource lives
- mute_actions_ strduration 
- Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert.
- override_query_ strtime_ range 
- If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
- resolve_configuration RuleResolve Configuration Args 
- Defines the configuration for resolving fired alerts. Relevant only for rules of the kind LogAlert.
- rule_name str
- The name of the rule.
- severity float
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert.
- skip_query_ boolvalidation 
- The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert.
- Mapping[str, str]
- Resource tags.
- target_resource_ Sequence[str]types 
- 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. Relevant only for rules of the kind LogAlert
- window_size str
- The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert.
- criteria Property Map
- The rule criteria that defines the conditions of the scheduled query rule.
- enabled Boolean
- The flag which indicates whether this scheduled query rule is enabled. Value should be true or false
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- scopes List<String>
- The list of resource id's that this scheduled query rule is scoped to.
- actions Property Map
- Actions to invoke when the alert fires.
- autoMitigate Boolean
- The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert.
- checkWorkspace BooleanAlerts Storage Configured 
- The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert.
- description String
- The description of the scheduled query rule.
- displayName String
- The display name of the alert rule
- evaluationFrequency String
- How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert.
- identity Property Map
- The identity of the resource.
- kind
String | "LogAlert" | "Log To Metric" 
- Indicates the type of scheduled query rule. The default is LogAlert.
- location String
- The geo-location where the resource lives
- muteActions StringDuration 
- Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert.
- overrideQuery StringTime Range 
- If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
- resolveConfiguration Property Map
- Defines the configuration for resolving fired alerts. Relevant only for rules of the kind LogAlert.
- ruleName String
- The name of the rule.
- severity Number
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert.
- skipQuery BooleanValidation 
- The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert.
- Map<String>
- Resource tags.
- targetResource List<String>Types 
- 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. Relevant only for rules of the kind LogAlert
- windowSize String
- The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduledQueryRule resource produces the following output properties:
- CreatedWith stringApi Version 
- The api-version used when creating this alert rule
- Etag string
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsLegacy boolLog Analytics Rule 
- True if alert rule is legacy Log Analytic rule
- IsWorkspace boolAlerts Storage Configured 
- The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
- Name string
- The name of the resource
- SystemData Pulumi.Azure Native. Insights. Outputs. System Data Response 
- SystemData of ScheduledQueryRule.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- CreatedWith stringApi Version 
- The api-version used when creating this alert rule
- Etag string
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsLegacy boolLog Analytics Rule 
- True if alert rule is legacy Log Analytic rule
- IsWorkspace boolAlerts Storage Configured 
- The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
- Name string
- The name of the resource
- SystemData SystemData Response 
- SystemData of ScheduledQueryRule.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- createdWith StringApi Version 
- The api-version used when creating this alert rule
- etag String
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id String
- The provider-assigned unique ID for this managed resource.
- isLegacy BooleanLog Analytics Rule 
- True if alert rule is legacy Log Analytic rule
- isWorkspace BooleanAlerts Storage Configured 
- The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
- name String
- The name of the resource
- systemData SystemData Response 
- SystemData of ScheduledQueryRule.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- createdWith stringApi Version 
- The api-version used when creating this alert rule
- etag string
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id string
- The provider-assigned unique ID for this managed resource.
- isLegacy booleanLog Analytics Rule 
- True if alert rule is legacy Log Analytic rule
- isWorkspace booleanAlerts Storage Configured 
- The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
- name string
- The name of the resource
- systemData SystemData Response 
- SystemData of ScheduledQueryRule.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- created_with_ strapi_ version 
- The api-version used when creating this alert rule
- etag str
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id str
- The provider-assigned unique ID for this managed resource.
- is_legacy_ boollog_ analytics_ rule 
- True if alert rule is legacy Log Analytic rule
- is_workspace_ boolalerts_ storage_ configured 
- The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
- name str
- The name of the resource
- system_data SystemData Response 
- SystemData of ScheduledQueryRule.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- createdWith StringApi Version 
- The api-version used when creating this alert rule
- etag String
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id String
- The provider-assigned unique ID for this managed resource.
- isLegacy BooleanLog Analytics Rule 
- True if alert rule is legacy Log Analytic rule
- isWorkspace BooleanAlerts Storage Configured 
- The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
- name String
- The name of the resource
- systemData Property Map
- SystemData of ScheduledQueryRule.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
Actions, ActionsArgs  
- ActionGroups List<string>
- Action Group resource Ids to invoke when the alert fires.
- ActionProperties Dictionary<string, string>
- The properties of an action properties.
- CustomProperties Dictionary<string, string>
- The properties of an alert payload.
- ActionGroups []string
- Action Group resource Ids to invoke when the alert fires.
- ActionProperties map[string]string
- The properties of an action properties.
- CustomProperties map[string]string
- The properties of an alert payload.
- actionGroups List<String>
- Action Group resource Ids to invoke when the alert fires.
- actionProperties Map<String,String>
- The properties of an action properties.
- customProperties Map<String,String>
- The properties of an alert payload.
- actionGroups string[]
- Action Group resource Ids to invoke when the alert fires.
- actionProperties {[key: string]: string}
- The properties of an action properties.
- customProperties {[key: string]: string}
- The properties of an alert payload.
- action_groups Sequence[str]
- Action Group resource Ids to invoke when the alert fires.
- action_properties Mapping[str, str]
- The properties of an action properties.
- custom_properties Mapping[str, str]
- The properties of an alert payload.
- actionGroups List<String>
- Action Group resource Ids to invoke when the alert fires.
- actionProperties Map<String>
- The properties of an action properties.
- customProperties Map<String>
- The properties of an alert payload.
ActionsResponse, ActionsResponseArgs    
- ActionGroups List<string>
- Action Group resource Ids to invoke when the alert fires.
- ActionProperties Dictionary<string, string>
- The properties of an action properties.
- CustomProperties Dictionary<string, string>
- The properties of an alert payload.
- ActionGroups []string
- Action Group resource Ids to invoke when the alert fires.
- ActionProperties map[string]string
- The properties of an action properties.
- CustomProperties map[string]string
- The properties of an alert payload.
- actionGroups List<String>
- Action Group resource Ids to invoke when the alert fires.
- actionProperties Map<String,String>
- The properties of an action properties.
- customProperties Map<String,String>
- The properties of an alert payload.
- actionGroups string[]
- Action Group resource Ids to invoke when the alert fires.
- actionProperties {[key: string]: string}
- The properties of an action properties.
- customProperties {[key: string]: string}
- The properties of an alert payload.
- action_groups Sequence[str]
- Action Group resource Ids to invoke when the alert fires.
- action_properties Mapping[str, str]
- The properties of an action properties.
- custom_properties Mapping[str, str]
- The properties of an alert payload.
- actionGroups List<String>
- Action Group resource Ids to invoke when the alert fires.
- actionProperties Map<String>
- The properties of an action properties.
- customProperties Map<String>
- The properties of an alert payload.
Condition, ConditionArgs  
- Dimensions
List<Pulumi.Azure Native. Insights. Inputs. Dimension> 
- List of Dimensions conditions
- FailingPeriods Pulumi.Azure Native. Insights. Inputs. Condition Failing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- MetricMeasure stringColumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- MetricName string
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- Operator
string | Pulumi.Azure Native. Insights. Condition Operator 
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- Query string
- Log query alert
- ResourceId stringColumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- Threshold double
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- TimeAggregation string | Pulumi.Azure Native. Insights. Time Aggregation 
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
- Dimensions []Dimension
- List of Dimensions conditions
- FailingPeriods ConditionFailing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- MetricMeasure stringColumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- MetricName string
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- Operator
string | ConditionOperator 
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- Query string
- Log query alert
- ResourceId stringColumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- Threshold float64
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- TimeAggregation string | TimeAggregation 
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
- dimensions List<Dimension>
- List of Dimensions conditions
- failingPeriods ConditionFailing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- metricMeasure StringColumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- metricName String
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- operator
String | ConditionOperator 
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- query String
- Log query alert
- resourceId StringColumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- threshold Double
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- timeAggregation String | TimeAggregation 
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
- dimensions Dimension[]
- List of Dimensions conditions
- failingPeriods ConditionFailing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- metricMeasure stringColumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- metricName string
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- operator
string | ConditionOperator 
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- query string
- Log query alert
- resourceId stringColumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- threshold number
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- timeAggregation string | TimeAggregation 
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
- dimensions Sequence[Dimension]
- List of Dimensions conditions
- failing_periods ConditionFailing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- metric_measure_ strcolumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- metric_name str
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- operator
str | ConditionOperator 
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- query str
- Log query alert
- resource_id_ strcolumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- threshold float
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- time_aggregation str | TimeAggregation 
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
- dimensions List<Property Map>
- List of Dimensions conditions
- failingPeriods Property Map
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- metricMeasure StringColumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- metricName String
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- operator
String | "Equals" | "GreaterThan" | "Greater Than Or Equal" | "Less Than" | "Less Than Or Equal" 
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- query String
- Log query alert
- resourceId StringColumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- threshold Number
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- timeAggregation String | "Count" | "Average" | "Minimum" | "Maximum" | "Total"
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
ConditionFailingPeriods, ConditionFailingPeriodsArgs      
- MinFailing doublePeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- NumberOf doubleEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
- MinFailing float64Periods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- NumberOf float64Evaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
- minFailing DoublePeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- numberOf DoubleEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
- minFailing numberPeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- numberOf numberEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
- min_failing_ floatperiods_ to_ alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- number_of_ floatevaluation_ periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
- minFailing NumberPeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- numberOf NumberEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
ConditionOperator, ConditionOperatorArgs    
- EqualsValue 
- Equals
- GreaterThan 
- GreaterThan
- GreaterThan Or Equal 
- GreaterThanOrEqual
- LessThan 
- LessThan
- LessThan Or Equal 
- LessThanOrEqual
- ConditionOperator Equals 
- Equals
- ConditionOperator Greater Than 
- GreaterThan
- ConditionOperator Greater Than Or Equal 
- GreaterThanOrEqual
- ConditionOperator Less Than 
- LessThan
- ConditionOperator Less Than Or Equal 
- LessThanOrEqual
- Equals
- Equals
- GreaterThan 
- GreaterThan
- GreaterThan Or Equal 
- GreaterThanOrEqual
- LessThan 
- LessThan
- LessThan Or Equal 
- LessThanOrEqual
- Equals
- Equals
- GreaterThan 
- GreaterThan
- GreaterThan Or Equal 
- GreaterThanOrEqual
- LessThan 
- LessThan
- LessThan Or Equal 
- LessThanOrEqual
- EQUALS
- Equals
- GREATER_THAN
- GreaterThan
- GREATER_THAN_OR_EQUAL
- GreaterThanOrEqual
- LESS_THAN
- LessThan
- LESS_THAN_OR_EQUAL
- LessThanOrEqual
- "Equals"
- Equals
- "GreaterThan" 
- GreaterThan
- "GreaterThan Or Equal" 
- GreaterThanOrEqual
- "LessThan" 
- LessThan
- "LessThan Or Equal" 
- LessThanOrEqual
ConditionResponse, ConditionResponseArgs    
- Dimensions
List<Pulumi.Azure Native. Insights. Inputs. Dimension Response> 
- List of Dimensions conditions
- FailingPeriods Pulumi.Azure Native. Insights. Inputs. Condition Response Failing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- MetricMeasure stringColumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- MetricName string
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- Operator string
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- Query string
- Log query alert
- ResourceId stringColumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- Threshold double
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- TimeAggregation string
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
- Dimensions
[]DimensionResponse 
- List of Dimensions conditions
- FailingPeriods ConditionResponse Failing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- MetricMeasure stringColumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- MetricName string
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- Operator string
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- Query string
- Log query alert
- ResourceId stringColumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- Threshold float64
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- TimeAggregation string
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
- dimensions
List<DimensionResponse> 
- List of Dimensions conditions
- failingPeriods ConditionResponse Failing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- metricMeasure StringColumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- metricName String
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- operator String
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- query String
- Log query alert
- resourceId StringColumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- threshold Double
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- timeAggregation String
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
- dimensions
DimensionResponse[] 
- List of Dimensions conditions
- failingPeriods ConditionResponse Failing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- metricMeasure stringColumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- metricName string
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- operator string
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- query string
- Log query alert
- resourceId stringColumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- threshold number
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- timeAggregation string
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
- dimensions
Sequence[DimensionResponse] 
- List of Dimensions conditions
- failing_periods ConditionResponse Failing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- metric_measure_ strcolumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- metric_name str
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- operator str
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- query str
- Log query alert
- resource_id_ strcolumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- threshold float
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- time_aggregation str
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
- dimensions List<Property Map>
- List of Dimensions conditions
- failingPeriods Property Map
- The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.
- metricMeasure StringColumn 
- The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
- metricName String
- The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
- operator String
- The criteria operator. Relevant and required only for rules of the kind LogAlert.
- query String
- Log query alert
- resourceId StringColumn 
- The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.
- threshold Number
- the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert.
- timeAggregation String
- Aggregation type. Relevant and required only for rules of the kind LogAlert.
ConditionResponseFailingPeriods, ConditionResponseFailingPeriodsArgs        
- MinFailing doublePeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- NumberOf doubleEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
- MinFailing float64Periods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- NumberOf float64Evaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
- minFailing DoublePeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- numberOf DoubleEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
- minFailing numberPeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- numberOf numberEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
- min_failing_ floatperiods_ to_ alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- number_of_ floatevaluation_ periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
- minFailing NumberPeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1
- numberOf NumberEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
Dimension, DimensionArgs  
- Name string
- Name of the dimension
- Operator
string | Pulumi.Azure Native. Insights. Dimension Operator 
- Operator for dimension values
- Values List<string>
- List of dimension values
- Name string
- Name of the dimension
- Operator
string | DimensionOperator 
- Operator for dimension values
- Values []string
- List of dimension values
- name String
- Name of the dimension
- operator
String | DimensionOperator 
- Operator for dimension values
- values List<String>
- List of dimension values
- name string
- Name of the dimension
- operator
string | DimensionOperator 
- Operator for dimension values
- values string[]
- List of dimension values
- name str
- Name of the dimension
- operator
str | DimensionOperator 
- Operator for dimension values
- values Sequence[str]
- List of dimension values
- name String
- Name of the dimension
- operator String | "Include" | "Exclude"
- Operator for dimension values
- values List<String>
- List of dimension values
DimensionOperator, DimensionOperatorArgs    
- Include
- Include
- Exclude
- Exclude
- DimensionOperator Include 
- Include
- DimensionOperator Exclude 
- Exclude
- Include
- Include
- Exclude
- Exclude
- Include
- Include
- Exclude
- Exclude
- INCLUDE
- Include
- EXCLUDE
- Exclude
- "Include"
- Include
- "Exclude"
- Exclude
DimensionResponse, DimensionResponseArgs    
Identity, IdentityArgs  
- Type
Pulumi.Azure Native. Insights. Identity Type 
- Type of managed service identity.
- UserAssigned List<string>Identities 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- Type
IdentityType 
- Type of managed service identity.
- UserAssigned []stringIdentities 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
IdentityType 
- Type of managed service identity.
- userAssigned List<String>Identities 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
IdentityType 
- Type of managed service identity.
- userAssigned string[]Identities 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
IdentityType 
- Type of managed service identity.
- user_assigned_ Sequence[str]identities 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
"SystemAssigned" | "User Assigned" | "None" 
- Type of managed service identity.
- userAssigned List<String>Identities 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
IdentityResponse, IdentityResponseArgs    
- PrincipalId string
- The principal ID of resource identity.
- TenantId string
- The tenant ID of resource.
- Type string
- Type of managed service identity.
- UserAssigned Dictionary<string, Pulumi.Identities Azure Native. Insights. Inputs. User Identity Properties Response> 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- PrincipalId string
- The principal ID of resource identity.
- TenantId string
- The tenant ID of resource.
- Type string
- Type of managed service identity.
- UserAssigned map[string]UserIdentities Identity Properties Response 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principalId String
- The principal ID of resource identity.
- tenantId String
- The tenant ID of resource.
- type String
- Type of managed service identity.
- userAssigned Map<String,UserIdentities Identity Properties Response> 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principalId string
- The principal ID of resource identity.
- tenantId string
- The tenant ID of resource.
- type string
- Type of managed service identity.
- userAssigned {[key: string]: UserIdentities Identity Properties Response} 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal_id str
- The principal ID of resource identity.
- tenant_id str
- The tenant ID of resource.
- type str
- Type of managed service identity.
- user_assigned_ Mapping[str, Useridentities Identity Properties Response] 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principalId String
- The principal ID of resource identity.
- tenantId String
- The tenant ID of resource.
- type String
- Type of managed service identity.
- userAssigned Map<Property Map>Identities 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
IdentityType, IdentityTypeArgs    
- SystemAssigned 
- SystemAssigned
- UserAssigned 
- UserAssigned
- None
- None
- IdentityType System Assigned 
- SystemAssigned
- IdentityType User Assigned 
- UserAssigned
- IdentityType None 
- None
- SystemAssigned 
- SystemAssigned
- UserAssigned 
- UserAssigned
- None
- None
- SystemAssigned 
- SystemAssigned
- UserAssigned 
- UserAssigned
- None
- None
- SYSTEM_ASSIGNED
- SystemAssigned
- USER_ASSIGNED
- UserAssigned
- NONE
- None
- "SystemAssigned" 
- SystemAssigned
- "UserAssigned" 
- UserAssigned
- "None"
- None
Kind, KindArgs  
- LogAlert 
- LogAlert
- LogTo Metric 
- LogToMetric
- KindLog Alert 
- LogAlert
- KindLog To Metric 
- LogToMetric
- LogAlert 
- LogAlert
- LogTo Metric 
- LogToMetric
- LogAlert 
- LogAlert
- LogTo Metric 
- LogToMetric
- LOG_ALERT
- LogAlert
- LOG_TO_METRIC
- LogToMetric
- "LogAlert" 
- LogAlert
- "LogTo Metric" 
- LogToMetric
RuleResolveConfiguration, RuleResolveConfigurationArgs      
- AutoResolved bool
- The flag that indicates whether or not to auto resolve a fired alert.
- TimeTo stringResolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
- AutoResolved bool
- The flag that indicates whether or not to auto resolve a fired alert.
- TimeTo stringResolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
- autoResolved Boolean
- The flag that indicates whether or not to auto resolve a fired alert.
- timeTo StringResolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
- autoResolved boolean
- The flag that indicates whether or not to auto resolve a fired alert.
- timeTo stringResolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
- auto_resolved bool
- The flag that indicates whether or not to auto resolve a fired alert.
- time_to_ strresolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
- autoResolved Boolean
- The flag that indicates whether or not to auto resolve a fired alert.
- timeTo StringResolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
RuleResolveConfigurationResponse, RuleResolveConfigurationResponseArgs        
- AutoResolved bool
- The flag that indicates whether or not to auto resolve a fired alert.
- TimeTo stringResolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
- AutoResolved bool
- The flag that indicates whether or not to auto resolve a fired alert.
- TimeTo stringResolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
- autoResolved Boolean
- The flag that indicates whether or not to auto resolve a fired alert.
- timeTo StringResolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
- autoResolved boolean
- The flag that indicates whether or not to auto resolve a fired alert.
- timeTo stringResolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
- auto_resolved bool
- The flag that indicates whether or not to auto resolve a fired alert.
- time_to_ strresolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
- autoResolved Boolean
- The flag that indicates whether or not to auto resolve a fired alert.
- timeTo StringResolve 
- The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format.
ScheduledQueryRuleCriteria, ScheduledQueryRuleCriteriaArgs        
- AllOf List<Pulumi.Azure Native. Insights. Inputs. Condition> 
- A list of conditions to evaluate against the specified scopes
- AllOf []Condition
- A list of conditions to evaluate against the specified scopes
- allOf List<Condition>
- A list of conditions to evaluate against the specified scopes
- allOf Condition[]
- A list of conditions to evaluate against the specified scopes
- all_of Sequence[Condition]
- A list of conditions to evaluate against the specified scopes
- allOf List<Property Map>
- A list of conditions to evaluate against the specified scopes
ScheduledQueryRuleCriteriaResponse, ScheduledQueryRuleCriteriaResponseArgs          
- AllOf List<Pulumi.Azure Native. Insights. Inputs. Condition Response> 
- A list of conditions to evaluate against the specified scopes
- AllOf []ConditionResponse 
- A list of conditions to evaluate against the specified scopes
- allOf List<ConditionResponse> 
- A list of conditions to evaluate against the specified scopes
- allOf ConditionResponse[] 
- A list of conditions to evaluate against the specified scopes
- all_of Sequence[ConditionResponse] 
- A list of conditions to evaluate against the specified scopes
- allOf List<Property Map>
- A list of conditions to evaluate against the specified scopes
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
TimeAggregation, TimeAggregationArgs    
- Count
- Count
- Average
- Average
- Minimum
- Minimum
- Maximum
- Maximum
- Total
- Total
- TimeAggregation Count 
- Count
- TimeAggregation Average 
- Average
- TimeAggregation Minimum 
- Minimum
- TimeAggregation Maximum 
- Maximum
- TimeAggregation Total 
- Total
- Count
- Count
- Average
- Average
- Minimum
- Minimum
- Maximum
- Maximum
- Total
- Total
- Count
- Count
- Average
- Average
- Minimum
- Minimum
- Maximum
- Maximum
- Total
- Total
- COUNT
- Count
- AVERAGE
- Average
- MINIMUM
- Minimum
- MAXIMUM
- Maximum
- TOTAL
- Total
- "Count"
- Count
- "Average"
- Average
- "Minimum"
- Minimum
- "Maximum"
- Maximum
- "Total"
- Total
UserIdentityPropertiesResponse, UserIdentityPropertiesResponseArgs        
- ClientId string
- The client id of user assigned identity.
- PrincipalId string
- The principal id of user assigned identity.
- ClientId string
- The client id of user assigned identity.
- PrincipalId string
- The principal id of user assigned identity.
- clientId String
- The client id of user assigned identity.
- principalId String
- The principal id of user assigned identity.
- clientId string
- The client id of user assigned identity.
- principalId string
- The principal id of user assigned identity.
- client_id str
- The client id of user assigned identity.
- principal_id str
- The principal id of user assigned identity.
- clientId String
- The client id of user assigned identity.
- principalId String
- The principal id of user assigned identity.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:ScheduledQueryRule perf /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0