azure-native.workloads.Alert
Explore with Pulumi AI
A alert associated with SAP monitor. Azure REST API version: 2024-02-01-preview.
Example Usage
Creates an Alert
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var alert = new AzureNative.Workloads.Alert("alert", new()
    {
        AlertName = "myAlert",
        AlertRuleProperties = new AzureNative.Workloads.Inputs.AlertRulePropertiesArgs
        {
            ActionGroups = new[]
            {
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1",
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2",
            },
            AlertQueryParameters = new[]
            {
                new AzureNative.Workloads.Inputs.AlertQueryParameterArgs
                {
                    Name = "providerInstance",
                    Value = "",
                },
                new AzureNative.Workloads.Inputs.AlertQueryParameterArgs
                {
                    Name = "workType",
                    Value = "",
                },
            },
            AutoMitigate = AzureNative.Workloads.AlertAutoMitigate.Disable,
            Dimension = "cpu",
            EvaluationFrequency = 5,
            FailingPeriodsOperator = AzureNative.Workloads.ConditionalOperator.GreaterThan,
            FailingPeriodsToAlert = 3,
            MuteActionsDuration = 0,
            Severity = 3,
            Status = AzureNative.Workloads.AlertRuleStatus.Enabled,
            Threshold = 80,
            ThresholdOperator = AzureNative.Workloads.ConditionalOperator.GreaterThan,
            WindowSize = 15,
        },
        MonitorName = "mySapMonitor",
        ProviderNames = new[]
        {
            "hana-provider-1",
            "hana-provider-2",
        },
        ProviderType = "SapHana",
        ResourceGroupName = "myResourceGroup",
        TemplateName = "saphana-cpu-memory-health",
    });
});
package main
import (
	workloads "github.com/pulumi/pulumi-azure-native-sdk/workloads/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := workloads.NewAlert(ctx, "alert", &workloads.AlertArgs{
			AlertName: pulumi.String("myAlert"),
			AlertRuleProperties: &workloads.AlertRulePropertiesArgs{
				ActionGroups: pulumi.StringArray{
					pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1"),
					pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2"),
				},
				AlertQueryParameters: workloads.AlertQueryParameterArray{
					&workloads.AlertQueryParameterArgs{
						Name:  pulumi.String("providerInstance"),
						Value: pulumi.String(""),
					},
					&workloads.AlertQueryParameterArgs{
						Name:  pulumi.String("workType"),
						Value: pulumi.String(""),
					},
				},
				AutoMitigate:           pulumi.String(workloads.AlertAutoMitigateDisable),
				Dimension:              pulumi.String("cpu"),
				EvaluationFrequency:    pulumi.Int(5),
				FailingPeriodsOperator: pulumi.String(workloads.ConditionalOperatorGreaterThan),
				FailingPeriodsToAlert:  pulumi.Int(3),
				MuteActionsDuration:    pulumi.Int(0),
				Severity:               pulumi.Int(3),
				Status:                 pulumi.String(workloads.AlertRuleStatusEnabled),
				Threshold:              pulumi.Int(80),
				ThresholdOperator:      pulumi.String(workloads.ConditionalOperatorGreaterThan),
				WindowSize:             pulumi.Int(15),
			},
			MonitorName: pulumi.String("mySapMonitor"),
			ProviderNames: pulumi.StringArray{
				pulumi.String("hana-provider-1"),
				pulumi.String("hana-provider-2"),
			},
			ProviderType:      pulumi.String("SapHana"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
			TemplateName:      pulumi.String("saphana-cpu-memory-health"),
		})
		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.workloads.Alert;
import com.pulumi.azurenative.workloads.AlertArgs;
import com.pulumi.azurenative.workloads.inputs.AlertRulePropertiesArgs;
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 alert = new Alert("alert", AlertArgs.builder()
            .alertName("myAlert")
            .alertRuleProperties(AlertRulePropertiesArgs.builder()
                .actionGroups(                
                    "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1",
                    "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2")
                .alertQueryParameters(                
                    AlertQueryParameterArgs.builder()
                        .name("providerInstance")
                        .value("")
                        .build(),
                    AlertQueryParameterArgs.builder()
                        .name("workType")
                        .value("")
                        .build())
                .autoMitigate("Disable")
                .dimension("cpu")
                .evaluationFrequency(5)
                .failingPeriodsOperator("GreaterThan")
                .failingPeriodsToAlert(3)
                .muteActionsDuration(0)
                .severity(3)
                .status("Enabled")
                .threshold(80)
                .thresholdOperator("GreaterThan")
                .windowSize(15)
                .build())
            .monitorName("mySapMonitor")
            .providerNames(            
                "hana-provider-1",
                "hana-provider-2")
            .providerType("SapHana")
            .resourceGroupName("myResourceGroup")
            .templateName("saphana-cpu-memory-health")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const alert = new azure_native.workloads.Alert("alert", {
    alertName: "myAlert",
    alertRuleProperties: {
        actionGroups: [
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1",
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2",
        ],
        alertQueryParameters: [
            {
                name: "providerInstance",
                value: "",
            },
            {
                name: "workType",
                value: "",
            },
        ],
        autoMitigate: azure_native.workloads.AlertAutoMitigate.Disable,
        dimension: "cpu",
        evaluationFrequency: 5,
        failingPeriodsOperator: azure_native.workloads.ConditionalOperator.GreaterThan,
        failingPeriodsToAlert: 3,
        muteActionsDuration: 0,
        severity: 3,
        status: azure_native.workloads.AlertRuleStatus.Enabled,
        threshold: 80,
        thresholdOperator: azure_native.workloads.ConditionalOperator.GreaterThan,
        windowSize: 15,
    },
    monitorName: "mySapMonitor",
    providerNames: [
        "hana-provider-1",
        "hana-provider-2",
    ],
    providerType: "SapHana",
    resourceGroupName: "myResourceGroup",
    templateName: "saphana-cpu-memory-health",
});
import pulumi
import pulumi_azure_native as azure_native
alert = azure_native.workloads.Alert("alert",
    alert_name="myAlert",
    alert_rule_properties={
        "action_groups": [
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1",
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2",
        ],
        "alert_query_parameters": [
            {
                "name": "providerInstance",
                "value": "",
            },
            {
                "name": "workType",
                "value": "",
            },
        ],
        "auto_mitigate": azure_native.workloads.AlertAutoMitigate.DISABLE,
        "dimension": "cpu",
        "evaluation_frequency": 5,
        "failing_periods_operator": azure_native.workloads.ConditionalOperator.GREATER_THAN,
        "failing_periods_to_alert": 3,
        "mute_actions_duration": 0,
        "severity": 3,
        "status": azure_native.workloads.AlertRuleStatus.ENABLED,
        "threshold": 80,
        "threshold_operator": azure_native.workloads.ConditionalOperator.GREATER_THAN,
        "window_size": 15,
    },
    monitor_name="mySapMonitor",
    provider_names=[
        "hana-provider-1",
        "hana-provider-2",
    ],
    provider_type="SapHana",
    resource_group_name="myResourceGroup",
    template_name="saphana-cpu-memory-health")
resources:
  alert:
    type: azure-native:workloads:Alert
    properties:
      alertName: myAlert
      alertRuleProperties:
        actionGroups:
          - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1
          - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2
        alertQueryParameters:
          - name: providerInstance
            value: ""
          - name: workType
            value: ""
        autoMitigate: Disable
        dimension: cpu
        evaluationFrequency: 5
        failingPeriodsOperator: GreaterThan
        failingPeriodsToAlert: 3
        muteActionsDuration: 0
        severity: 3
        status: Enabled
        threshold: 80
        thresholdOperator: GreaterThan
        windowSize: 15
      monitorName: mySapMonitor
      providerNames:
        - hana-provider-1
        - hana-provider-2
      providerType: SapHana
      resourceGroupName: myResourceGroup
      templateName: saphana-cpu-memory-health
Create Alert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Alert(name: string, args: AlertArgs, opts?: CustomResourceOptions);@overload
def Alert(resource_name: str,
          args: AlertArgs,
          opts: Optional[ResourceOptions] = None)
@overload
def Alert(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          monitor_name: Optional[str] = None,
          resource_group_name: Optional[str] = None,
          alert_name: Optional[str] = None,
          alert_rule_properties: Optional[AlertRulePropertiesArgs] = None,
          provider_names: Optional[Sequence[str]] = None,
          provider_type: Optional[str] = None,
          template_name: Optional[str] = None)func NewAlert(ctx *Context, name string, args AlertArgs, opts ...ResourceOption) (*Alert, error)public Alert(string name, AlertArgs args, CustomResourceOptions? opts = null)type: azure-native:workloads:Alert
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 AlertArgs
- 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 AlertArgs
- 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 AlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertArgs
- 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 alertResource = new AzureNative.Workloads.Alert("alertResource", new()
{
    MonitorName = "string",
    ResourceGroupName = "string",
    AlertName = "string",
    AlertRuleProperties = new AzureNative.Workloads.Inputs.AlertRulePropertiesArgs
    {
        ActionGroups = new[]
        {
            "string",
        },
        AlertQueryParameters = new[]
        {
            new AzureNative.Workloads.Inputs.AlertQueryParameterArgs
            {
                Name = "string",
                Value = "string",
            },
        },
        AutoMitigate = "string",
        Dimension = "string",
        EvaluationFrequency = 0,
        FailingPeriodsOperator = "string",
        FailingPeriodsToAlert = 0,
        MuteActionsDuration = 0,
        Severity = 0,
        Status = "string",
        Threshold = 0,
        ThresholdOperator = "string",
        WindowSize = 0,
    },
    ProviderNames = new[]
    {
        "string",
    },
    ProviderType = "string",
    TemplateName = "string",
});
example, err := workloads.NewAlert(ctx, "alertResource", &workloads.AlertArgs{
	MonitorName:       pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	AlertName:         pulumi.String("string"),
	AlertRuleProperties: &workloads.AlertRulePropertiesArgs{
		ActionGroups: pulumi.StringArray{
			pulumi.String("string"),
		},
		AlertQueryParameters: workloads.AlertQueryParameterArray{
			&workloads.AlertQueryParameterArgs{
				Name:  pulumi.String("string"),
				Value: pulumi.String("string"),
			},
		},
		AutoMitigate:           pulumi.String("string"),
		Dimension:              pulumi.String("string"),
		EvaluationFrequency:    pulumi.Int(0),
		FailingPeriodsOperator: pulumi.String("string"),
		FailingPeriodsToAlert:  pulumi.Int(0),
		MuteActionsDuration:    pulumi.Int(0),
		Severity:               pulumi.Int(0),
		Status:                 pulumi.String("string"),
		Threshold:              pulumi.Int(0),
		ThresholdOperator:      pulumi.String("string"),
		WindowSize:             pulumi.Int(0),
	},
	ProviderNames: pulumi.StringArray{
		pulumi.String("string"),
	},
	ProviderType: pulumi.String("string"),
	TemplateName: pulumi.String("string"),
})
var alertResource = new Alert("alertResource", AlertArgs.builder()
    .monitorName("string")
    .resourceGroupName("string")
    .alertName("string")
    .alertRuleProperties(AlertRulePropertiesArgs.builder()
        .actionGroups("string")
        .alertQueryParameters(AlertQueryParameterArgs.builder()
            .name("string")
            .value("string")
            .build())
        .autoMitigate("string")
        .dimension("string")
        .evaluationFrequency(0)
        .failingPeriodsOperator("string")
        .failingPeriodsToAlert(0)
        .muteActionsDuration(0)
        .severity(0)
        .status("string")
        .threshold(0)
        .thresholdOperator("string")
        .windowSize(0)
        .build())
    .providerNames("string")
    .providerType("string")
    .templateName("string")
    .build());
alert_resource = azure_native.workloads.Alert("alertResource",
    monitor_name="string",
    resource_group_name="string",
    alert_name="string",
    alert_rule_properties={
        "action_groups": ["string"],
        "alert_query_parameters": [{
            "name": "string",
            "value": "string",
        }],
        "auto_mitigate": "string",
        "dimension": "string",
        "evaluation_frequency": 0,
        "failing_periods_operator": "string",
        "failing_periods_to_alert": 0,
        "mute_actions_duration": 0,
        "severity": 0,
        "status": "string",
        "threshold": 0,
        "threshold_operator": "string",
        "window_size": 0,
    },
    provider_names=["string"],
    provider_type="string",
    template_name="string")
const alertResource = new azure_native.workloads.Alert("alertResource", {
    monitorName: "string",
    resourceGroupName: "string",
    alertName: "string",
    alertRuleProperties: {
        actionGroups: ["string"],
        alertQueryParameters: [{
            name: "string",
            value: "string",
        }],
        autoMitigate: "string",
        dimension: "string",
        evaluationFrequency: 0,
        failingPeriodsOperator: "string",
        failingPeriodsToAlert: 0,
        muteActionsDuration: 0,
        severity: 0,
        status: "string",
        threshold: 0,
        thresholdOperator: "string",
        windowSize: 0,
    },
    providerNames: ["string"],
    providerType: "string",
    templateName: "string",
});
type: azure-native:workloads:Alert
properties:
    alertName: string
    alertRuleProperties:
        actionGroups:
            - string
        alertQueryParameters:
            - name: string
              value: string
        autoMitigate: string
        dimension: string
        evaluationFrequency: 0
        failingPeriodsOperator: string
        failingPeriodsToAlert: 0
        muteActionsDuration: 0
        severity: 0
        status: string
        threshold: 0
        thresholdOperator: string
        windowSize: 0
    monitorName: string
    providerNames:
        - string
    providerType: string
    resourceGroupName: string
    templateName: string
Alert 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 Alert resource accepts the following input properties:
- MonitorName string
- Name of the SAP monitor resource.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- AlertName string
- Name of the SAP monitor alert resource.
- AlertRule Pulumi.Properties Azure Native. Workloads. Inputs. Alert Rule Properties 
- Describes the properties of an alert.
- ProviderNames List<string>
- Name of provider instances associated with the alert.
- ProviderType string
- The provider type for alert. For example, the value can be SapHana.
- TemplateName string
- Name of the alert template from which it was created.
- MonitorName string
- Name of the SAP monitor resource.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- AlertName string
- Name of the SAP monitor alert resource.
- AlertRule AlertProperties Rule Properties Args 
- Describes the properties of an alert.
- ProviderNames []string
- Name of provider instances associated with the alert.
- ProviderType string
- The provider type for alert. For example, the value can be SapHana.
- TemplateName string
- Name of the alert template from which it was created.
- monitorName String
- Name of the SAP monitor resource.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- alertName String
- Name of the SAP monitor alert resource.
- alertRule AlertProperties Rule Properties 
- Describes the properties of an alert.
- providerNames List<String>
- Name of provider instances associated with the alert.
- providerType String
- The provider type for alert. For example, the value can be SapHana.
- templateName String
- Name of the alert template from which it was created.
- monitorName string
- Name of the SAP monitor resource.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- alertName string
- Name of the SAP monitor alert resource.
- alertRule AlertProperties Rule Properties 
- Describes the properties of an alert.
- providerNames string[]
- Name of provider instances associated with the alert.
- providerType string
- The provider type for alert. For example, the value can be SapHana.
- templateName string
- Name of the alert template from which it was created.
- monitor_name str
- Name of the SAP monitor resource.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- alert_name str
- Name of the SAP monitor alert resource.
- alert_rule_ Alertproperties Rule Properties Args 
- Describes the properties of an alert.
- provider_names Sequence[str]
- Name of provider instances associated with the alert.
- provider_type str
- The provider type for alert. For example, the value can be SapHana.
- template_name str
- Name of the alert template from which it was created.
- monitorName String
- Name of the SAP monitor resource.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- alertName String
- Name of the SAP monitor alert resource.
- alertRule Property MapProperties 
- Describes the properties of an alert.
- providerNames List<String>
- Name of provider instances associated with the alert.
- providerType String
- The provider type for alert. For example, the value can be SapHana.
- templateName String
- Name of the alert template from which it was created.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alert resource produces the following output properties:
- AlertRule stringResource Id 
- ID of the alert rule resource created.
- Errors
Pulumi.Azure Native. Workloads. Outputs. Error Detail Response 
- Defines the alert instance errors.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- ProvisioningState string
- State of provisioning of the alert instance
- SystemData Pulumi.Azure Native. Workloads. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- AlertRule stringResource Id 
- ID of the alert rule resource created.
- Errors
ErrorDetail Response 
- Defines the alert instance errors.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- ProvisioningState string
- State of provisioning of the alert instance
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- alertRule StringResource Id 
- ID of the alert rule resource created.
- errors
ErrorDetail Response 
- Defines the alert instance errors.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioningState String
- State of provisioning of the alert instance
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- alertRule stringResource Id 
- ID of the alert rule resource created.
- errors
ErrorDetail Response 
- Defines the alert instance errors.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioningState string
- State of provisioning of the alert instance
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- alert_rule_ strresource_ id 
- ID of the alert rule resource created.
- errors
ErrorDetail Response 
- Defines the alert instance errors.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_state str
- State of provisioning of the alert instance
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- alertRule StringResource Id 
- ID of the alert rule resource created.
- errors Property Map
- Defines the alert instance errors.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioningState String
- State of provisioning of the alert instance
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
AlertAutoMitigate, AlertAutoMitigateArgs      
- Enable
- EnableThe alert should be automatically resolved.
- Disable
- DisableThe alert should not be automatically resolved.
- AlertAuto Mitigate Enable 
- EnableThe alert should be automatically resolved.
- AlertAuto Mitigate Disable 
- DisableThe alert should not be automatically resolved.
- Enable
- EnableThe alert should be automatically resolved.
- Disable
- DisableThe alert should not be automatically resolved.
- Enable
- EnableThe alert should be automatically resolved.
- Disable
- DisableThe alert should not be automatically resolved.
- ENABLE
- EnableThe alert should be automatically resolved.
- DISABLE
- DisableThe alert should not be automatically resolved.
- "Enable"
- EnableThe alert should be automatically resolved.
- "Disable"
- DisableThe alert should not be automatically resolved.
AlertQueryParameter, AlertQueryParameterArgs      
AlertQueryParameterResponse, AlertQueryParameterResponseArgs        
AlertRuleProperties, AlertRulePropertiesArgs      
- ActionGroups List<string>
- Action Group resource Ids to invoke when the alert fires
- AlertQuery List<Pulumi.Parameters Azure Native. Workloads. Inputs. Alert Query Parameter> 
- The alert query parameters.
- AutoMitigate string | Pulumi.Azure Native. Workloads. Alert Auto Mitigate 
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- Dimension string
- Evaluation of metric on a particular column.
- EvaluationFrequency int
- How often the scheduled query rule is evaluated.
- FailingPeriods string | Pulumi.Operator Azure Native. Workloads. Conditional Operator 
- The operator for failing periods.
- FailingPeriods intTo Alert 
- The number of failing periods to trigger an alert.
- MuteActions intDuration 
- Mute actions for the chosen period of time after the alert is fired.
- Severity int
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- Status
string | Pulumi.Azure Native. Workloads. Alert Rule Status 
- Indicates whether the alert is in an enabled state.
- Threshold int
- The threshold of the alert.
- ThresholdOperator string | Pulumi.Azure Native. Workloads. Conditional Operator 
- The threshold operator of the alert.
- WindowSize int
- The period of time on which the Alert query will be executed.
- ActionGroups []string
- Action Group resource Ids to invoke when the alert fires
- AlertQuery []AlertParameters Query Parameter 
- The alert query parameters.
- AutoMitigate string | AlertAuto Mitigate 
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- Dimension string
- Evaluation of metric on a particular column.
- EvaluationFrequency int
- How often the scheduled query rule is evaluated.
- FailingPeriods string | ConditionalOperator Operator 
- The operator for failing periods.
- FailingPeriods intTo Alert 
- The number of failing periods to trigger an alert.
- MuteActions intDuration 
- Mute actions for the chosen period of time after the alert is fired.
- Severity int
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- Status
string | AlertRule Status 
- Indicates whether the alert is in an enabled state.
- Threshold int
- The threshold of the alert.
- ThresholdOperator string | ConditionalOperator 
- The threshold operator of the alert.
- WindowSize int
- The period of time on which the Alert query will be executed.
- actionGroups List<String>
- Action Group resource Ids to invoke when the alert fires
- alertQuery List<AlertParameters Query Parameter> 
- The alert query parameters.
- autoMitigate String | AlertAuto Mitigate 
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension String
- Evaluation of metric on a particular column.
- evaluationFrequency Integer
- How often the scheduled query rule is evaluated.
- failingPeriods String | ConditionalOperator Operator 
- The operator for failing periods.
- failingPeriods IntegerTo Alert 
- The number of failing periods to trigger an alert.
- muteActions IntegerDuration 
- Mute actions for the chosen period of time after the alert is fired.
- severity Integer
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status
String | AlertRule Status 
- Indicates whether the alert is in an enabled state.
- threshold Integer
- The threshold of the alert.
- thresholdOperator String | ConditionalOperator 
- The threshold operator of the alert.
- windowSize Integer
- The period of time on which the Alert query will be executed.
- actionGroups string[]
- Action Group resource Ids to invoke when the alert fires
- alertQuery AlertParameters Query Parameter[] 
- The alert query parameters.
- autoMitigate string | AlertAuto Mitigate 
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension string
- Evaluation of metric on a particular column.
- evaluationFrequency number
- How often the scheduled query rule is evaluated.
- failingPeriods string | ConditionalOperator Operator 
- The operator for failing periods.
- failingPeriods numberTo Alert 
- The number of failing periods to trigger an alert.
- muteActions numberDuration 
- Mute actions for the chosen period of time after the alert is fired.
- severity number
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status
string | AlertRule Status 
- Indicates whether the alert is in an enabled state.
- threshold number
- The threshold of the alert.
- thresholdOperator string | ConditionalOperator 
- The threshold operator of the alert.
- windowSize number
- The period of time on which the Alert query will be executed.
- action_groups Sequence[str]
- Action Group resource Ids to invoke when the alert fires
- alert_query_ Sequence[Alertparameters Query Parameter] 
- The alert query parameters.
- auto_mitigate str | AlertAuto Mitigate 
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension str
- Evaluation of metric on a particular column.
- evaluation_frequency int
- How often the scheduled query rule is evaluated.
- failing_periods_ str | Conditionaloperator Operator 
- The operator for failing periods.
- failing_periods_ intto_ alert 
- The number of failing periods to trigger an alert.
- mute_actions_ intduration 
- Mute actions for the chosen period of time after the alert is fired.
- severity int
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status
str | AlertRule Status 
- Indicates whether the alert is in an enabled state.
- threshold int
- The threshold of the alert.
- threshold_operator str | ConditionalOperator 
- The threshold operator of the alert.
- window_size int
- The period of time on which the Alert query will be executed.
- actionGroups List<String>
- Action Group resource Ids to invoke when the alert fires
- alertQuery List<Property Map>Parameters 
- The alert query parameters.
- autoMitigate String | "Enable" | "Disable"
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension String
- Evaluation of metric on a particular column.
- evaluationFrequency Number
- How often the scheduled query rule is evaluated.
- failingPeriods String | "LessOperator Than" | "Greater Than" | "Equal" | "Greater Than Or Equal" | "Less Than Or Equal" 
- The operator for failing periods.
- failingPeriods NumberTo Alert 
- The number of failing periods to trigger an alert.
- muteActions NumberDuration 
- Mute actions for the chosen period of time after the alert is fired.
- severity Number
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status String | "Enabled" | "Disabled"
- Indicates whether the alert is in an enabled state.
- threshold Number
- The threshold of the alert.
- thresholdOperator String | "LessThan" | "Greater Than" | "Equal" | "Greater Than Or Equal" | "Less Than Or Equal" 
- The threshold operator of the alert.
- windowSize Number
- The period of time on which the Alert query will be executed.
AlertRulePropertiesResponse, AlertRulePropertiesResponseArgs        
- ActionGroups List<string>
- Action Group resource Ids to invoke when the alert fires
- AlertQuery List<Pulumi.Parameters Azure Native. Workloads. Inputs. Alert Query Parameter Response> 
- The alert query parameters.
- AutoMitigate string
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- Dimension string
- Evaluation of metric on a particular column.
- EvaluationFrequency int
- How often the scheduled query rule is evaluated.
- FailingPeriods stringOperator 
- The operator for failing periods.
- FailingPeriods intTo Alert 
- The number of failing periods to trigger an alert.
- MuteActions intDuration 
- Mute actions for the chosen period of time after the alert is fired.
- Severity int
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- Status string
- Indicates whether the alert is in an enabled state.
- Threshold int
- The threshold of the alert.
- ThresholdOperator string
- The threshold operator of the alert.
- WindowSize int
- The period of time on which the Alert query will be executed.
- ActionGroups []string
- Action Group resource Ids to invoke when the alert fires
- AlertQuery []AlertParameters Query Parameter Response 
- The alert query parameters.
- AutoMitigate string
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- Dimension string
- Evaluation of metric on a particular column.
- EvaluationFrequency int
- How often the scheduled query rule is evaluated.
- FailingPeriods stringOperator 
- The operator for failing periods.
- FailingPeriods intTo Alert 
- The number of failing periods to trigger an alert.
- MuteActions intDuration 
- Mute actions for the chosen period of time after the alert is fired.
- Severity int
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- Status string
- Indicates whether the alert is in an enabled state.
- Threshold int
- The threshold of the alert.
- ThresholdOperator string
- The threshold operator of the alert.
- WindowSize int
- The period of time on which the Alert query will be executed.
- actionGroups List<String>
- Action Group resource Ids to invoke when the alert fires
- alertQuery List<AlertParameters Query Parameter Response> 
- The alert query parameters.
- autoMitigate String
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension String
- Evaluation of metric on a particular column.
- evaluationFrequency Integer
- How often the scheduled query rule is evaluated.
- failingPeriods StringOperator 
- The operator for failing periods.
- failingPeriods IntegerTo Alert 
- The number of failing periods to trigger an alert.
- muteActions IntegerDuration 
- Mute actions for the chosen period of time after the alert is fired.
- severity Integer
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status String
- Indicates whether the alert is in an enabled state.
- threshold Integer
- The threshold of the alert.
- thresholdOperator String
- The threshold operator of the alert.
- windowSize Integer
- The period of time on which the Alert query will be executed.
- actionGroups string[]
- Action Group resource Ids to invoke when the alert fires
- alertQuery AlertParameters Query Parameter Response[] 
- The alert query parameters.
- autoMitigate string
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension string
- Evaluation of metric on a particular column.
- evaluationFrequency number
- How often the scheduled query rule is evaluated.
- failingPeriods stringOperator 
- The operator for failing periods.
- failingPeriods numberTo Alert 
- The number of failing periods to trigger an alert.
- muteActions numberDuration 
- Mute actions for the chosen period of time after the alert is fired.
- severity number
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status string
- Indicates whether the alert is in an enabled state.
- threshold number
- The threshold of the alert.
- thresholdOperator string
- The threshold operator of the alert.
- windowSize number
- The period of time on which the Alert query will be executed.
- action_groups Sequence[str]
- Action Group resource Ids to invoke when the alert fires
- alert_query_ Sequence[Alertparameters Query Parameter Response] 
- The alert query parameters.
- auto_mitigate str
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension str
- Evaluation of metric on a particular column.
- evaluation_frequency int
- How often the scheduled query rule is evaluated.
- failing_periods_ stroperator 
- The operator for failing periods.
- failing_periods_ intto_ alert 
- The number of failing periods to trigger an alert.
- mute_actions_ intduration 
- Mute actions for the chosen period of time after the alert is fired.
- severity int
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status str
- Indicates whether the alert is in an enabled state.
- threshold int
- The threshold of the alert.
- threshold_operator str
- The threshold operator of the alert.
- window_size int
- The period of time on which the Alert query will be executed.
- actionGroups List<String>
- Action Group resource Ids to invoke when the alert fires
- alertQuery List<Property Map>Parameters 
- The alert query parameters.
- autoMitigate String
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension String
- Evaluation of metric on a particular column.
- evaluationFrequency Number
- How often the scheduled query rule is evaluated.
- failingPeriods StringOperator 
- The operator for failing periods.
- failingPeriods NumberTo Alert 
- The number of failing periods to trigger an alert.
- muteActions NumberDuration 
- Mute actions for the chosen period of time after the alert is fired.
- severity Number
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status String
- Indicates whether the alert is in an enabled state.
- threshold Number
- The threshold of the alert.
- thresholdOperator String
- The threshold operator of the alert.
- windowSize Number
- The period of time on which the Alert query will be executed.
AlertRuleStatus, AlertRuleStatusArgs      
- Enabled
- EnabledThe scheduled query rule is enabled
- Disabled
- DisabledThe scheduled query rule is disabled
- AlertRule Status Enabled 
- EnabledThe scheduled query rule is enabled
- AlertRule Status Disabled 
- DisabledThe scheduled query rule is disabled
- Enabled
- EnabledThe scheduled query rule is enabled
- Disabled
- DisabledThe scheduled query rule is disabled
- Enabled
- EnabledThe scheduled query rule is enabled
- Disabled
- DisabledThe scheduled query rule is disabled
- ENABLED
- EnabledThe scheduled query rule is enabled
- DISABLED
- DisabledThe scheduled query rule is disabled
- "Enabled"
- EnabledThe scheduled query rule is enabled
- "Disabled"
- DisabledThe scheduled query rule is disabled
ConditionalOperator, ConditionalOperatorArgs    
- LessThan 
- LessThanThe value is less than the specified value.
- GreaterThan 
- GreaterThanThe value is greater than the specified value.
- Equal
- EqualThe value is equal to the specified value.
- GreaterThan Or Equal 
- GreaterThanOrEqualThe value is greater than or equal to the specified value.
- LessThan Or Equal 
- LessThanOrEqualThe value is less than or equal to the specified value.
- ConditionalOperator Less Than 
- LessThanThe value is less than the specified value.
- ConditionalOperator Greater Than 
- GreaterThanThe value is greater than the specified value.
- ConditionalOperator Equal 
- EqualThe value is equal to the specified value.
- ConditionalOperator Greater Than Or Equal 
- GreaterThanOrEqualThe value is greater than or equal to the specified value.
- ConditionalOperator Less Than Or Equal 
- LessThanOrEqualThe value is less than or equal to the specified value.
- LessThan 
- LessThanThe value is less than the specified value.
- GreaterThan 
- GreaterThanThe value is greater than the specified value.
- Equal
- EqualThe value is equal to the specified value.
- GreaterThan Or Equal 
- GreaterThanOrEqualThe value is greater than or equal to the specified value.
- LessThan Or Equal 
- LessThanOrEqualThe value is less than or equal to the specified value.
- LessThan 
- LessThanThe value is less than the specified value.
- GreaterThan 
- GreaterThanThe value is greater than the specified value.
- Equal
- EqualThe value is equal to the specified value.
- GreaterThan Or Equal 
- GreaterThanOrEqualThe value is greater than or equal to the specified value.
- LessThan Or Equal 
- LessThanOrEqualThe value is less than or equal to the specified value.
- LESS_THAN
- LessThanThe value is less than the specified value.
- GREATER_THAN
- GreaterThanThe value is greater than the specified value.
- EQUAL
- EqualThe value is equal to the specified value.
- GREATER_THAN_OR_EQUAL
- GreaterThanOrEqualThe value is greater than or equal to the specified value.
- LESS_THAN_OR_EQUAL
- LessThanOrEqualThe value is less than or equal to the specified value.
- "LessThan" 
- LessThanThe value is less than the specified value.
- "GreaterThan" 
- GreaterThanThe value is greater than the specified value.
- "Equal"
- EqualThe value is equal to the specified value.
- "GreaterThan Or Equal" 
- GreaterThanOrEqualThe value is greater than or equal to the specified value.
- "LessThan Or Equal" 
- LessThanOrEqualThe value is less than or equal to the specified value.
ErrorAdditionalInfoResponse, ErrorAdditionalInfoResponseArgs        
ErrorDetailResponse, ErrorDetailResponseArgs      
- AdditionalInfo List<Pulumi.Azure Native. Workloads. Inputs. Error Additional Info Response> 
- The error additional info.
- Code string
- The error code.
- Details
List<Pulumi.Azure Native. Workloads. Inputs. Error Detail Response> 
- The error details.
- Message string
- The error message.
- Target string
- The error target.
- AdditionalInfo []ErrorAdditional Info Response 
- The error additional info.
- Code string
- The error code.
- Details
[]ErrorDetail Response 
- The error details.
- Message string
- The error message.
- Target string
- The error target.
- additionalInfo List<ErrorAdditional Info Response> 
- The error additional info.
- code String
- The error code.
- details
List<ErrorDetail Response> 
- The error details.
- message String
- The error message.
- target String
- The error target.
- additionalInfo ErrorAdditional Info Response[] 
- The error additional info.
- code string
- The error code.
- details
ErrorDetail Response[] 
- The error details.
- message string
- The error message.
- target string
- The error target.
- additional_info Sequence[ErrorAdditional Info Response] 
- The error additional info.
- code str
- The error code.
- details
Sequence[ErrorDetail Response] 
- The error details.
- message str
- The error message.
- target str
- The error target.
- additionalInfo List<Property Map>
- The error additional info.
- code String
- The error code.
- details List<Property Map>
- The error details.
- message String
- The error message.
- target String
- The error target.
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.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:workloads:Alert myAlert /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}/alerts/{alertName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0