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 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")
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",
});
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:
- Monitor
Name string - Name of the SAP monitor resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Alert
Name string - Name of the SAP monitor alert resource.
- Alert
Rule Pulumi.Properties Azure Native. Workloads. Inputs. Alert Rule Properties - Describes the properties of an alert.
- Provider
Names List<string> - Name of provider instances associated with the alert.
- Provider
Type string - The provider type for alert. For example, the value can be SapHana.
- Template
Name string - Name of the alert template from which it was created.
- Monitor
Name string - Name of the SAP monitor resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Alert
Name string - Name of the SAP monitor alert resource.
- Alert
Rule AlertProperties Rule Properties Args - Describes the properties of an alert.
- Provider
Names []string - Name of provider instances associated with the alert.
- Provider
Type string - The provider type for alert. For example, the value can be SapHana.
- Template
Name string - Name of the alert template from which it was created.
- monitor
Name String - Name of the SAP monitor resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- alert
Name String - Name of the SAP monitor alert resource.
- alert
Rule AlertProperties Rule Properties - Describes the properties of an alert.
- provider
Names List<String> - Name of provider instances associated with the alert.
- provider
Type String - The provider type for alert. For example, the value can be SapHana.
- template
Name String - Name of the alert template from which it was created.
- monitor
Name string - Name of the SAP monitor resource.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- alert
Name string - Name of the SAP monitor alert resource.
- alert
Rule AlertProperties Rule Properties - Describes the properties of an alert.
- provider
Names string[] - Name of provider instances associated with the alert.
- provider
Type string - The provider type for alert. For example, the value can be SapHana.
- template
Name 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.
- monitor
Name String - Name of the SAP monitor resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- alert
Name String - Name of the SAP monitor alert resource.
- alert
Rule Property MapProperties - Describes the properties of an alert.
- provider
Names List<String> - Name of provider instances associated with the alert.
- provider
Type String - The provider type for alert. For example, the value can be SapHana.
- template
Name 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:
- Alert
Rule 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
- Provisioning
State string - State of provisioning of the alert instance
- System
Data 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"
- Alert
Rule stringResource Id - ID of the alert rule resource created.
- Errors
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
- Provisioning
State string - State of provisioning of the alert instance
- System
Data 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 StringResource Id - ID of the alert rule resource created.
- errors
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
- provisioning
State String - State of provisioning of the alert instance
- system
Data 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 stringResource Id - ID of the alert rule resource created.
- errors
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
- provisioning
State string - State of provisioning of the alert instance
- system
Data 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
Error
Detail 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"
- alert
Rule 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
- provisioning
State String - State of provisioning of the alert instance
- system
Data 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.
- Alert
Auto Mitigate Enable - EnableThe alert should be automatically resolved.
- Alert
Auto 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
- Action
Groups List<string> - Action Group resource Ids to invoke when the alert fires
- Alert
Query List<Pulumi.Parameters Azure Native. Workloads. Inputs. Alert Query Parameter> - The alert query parameters.
- Auto
Mitigate 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.
- Evaluation
Frequency int - How often the scheduled query rule is evaluated.
- Failing
Periods string | Pulumi.Operator Azure Native. Workloads. Conditional 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
string | Pulumi.
Azure Native. Workloads. Alert Rule Status - Indicates whether the alert is in an enabled state.
- Threshold int
- The threshold of the alert.
- Threshold
Operator string | Pulumi.Azure Native. Workloads. Conditional Operator - The threshold operator of the alert.
- Window
Size int - The period of time on which the Alert query will be executed.
- Action
Groups []string - Action Group resource Ids to invoke when the alert fires
- Alert
Query []AlertParameters Query Parameter - The alert query parameters.
- Auto
Mitigate 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.
- Evaluation
Frequency int - How often the scheduled query rule is evaluated.
- Failing
Periods string | 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
string | Alert
Rule Status - Indicates whether the alert is in an enabled state.
- Threshold int
- The threshold of the alert.
- Threshold
Operator string | ConditionalOperator - The threshold operator of the alert.
- Window
Size int - The period of time on which the Alert query will be executed.
- action
Groups List<String> - Action Group resource Ids to invoke when the alert fires
- alert
Query List<AlertParameters Query Parameter> - The alert query parameters.
- auto
Mitigate 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.
- evaluation
Frequency Integer - How often the scheduled query rule is evaluated.
- failing
Periods String | ConditionalOperator Operator - The operator for failing periods.
- failing
Periods IntegerTo Alert - The number of failing periods to trigger an alert.
- mute
Actions 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 | Alert
Rule Status - Indicates whether the alert is in an enabled state.
- threshold Integer
- The threshold of the alert.
- threshold
Operator String | ConditionalOperator - The threshold operator of the alert.
- window
Size Integer - The period of time on which the Alert query will be executed.
- action
Groups string[] - Action Group resource Ids to invoke when the alert fires
- alert
Query AlertParameters Query Parameter[] - The alert query parameters.
- auto
Mitigate 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.
- evaluation
Frequency number - How often the scheduled query rule is evaluated.
- failing
Periods string | ConditionalOperator Operator - The operator for failing periods.
- failing
Periods numberTo Alert - The number of failing periods to trigger an alert.
- mute
Actions 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 | Alert
Rule Status - Indicates whether the alert is in an enabled state.
- threshold number
- The threshold of the alert.
- threshold
Operator string | ConditionalOperator - The threshold operator of the alert.
- window
Size 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 | Alert
Rule 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.
- action
Groups List<String> - Action Group resource Ids to invoke when the alert fires
- alert
Query List<Property Map>Parameters - The alert query parameters.
- auto
Mitigate 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.
- evaluation
Frequency Number - How often the scheduled query rule is evaluated.
- failing
Periods String | "LessOperator Than" | "Greater Than" | "Equal" | "Greater Than Or Equal" | "Less Than Or Equal" - The operator for failing periods.
- failing
Periods NumberTo Alert - The number of failing periods to trigger an alert.
- mute
Actions 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.
- threshold
Operator String | "LessThan" | "Greater Than" | "Equal" | "Greater Than Or Equal" | "Less Than Or Equal" - The threshold operator of the alert.
- window
Size Number - The period of time on which the Alert query will be executed.
AlertRulePropertiesResponse, AlertRulePropertiesResponseArgs
- Action
Groups List<string> - Action Group resource Ids to invoke when the alert fires
- Alert
Query List<Pulumi.Parameters Azure Native. Workloads. Inputs. Alert Query Parameter Response> - The alert query parameters.
- Auto
Mitigate 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.
- Evaluation
Frequency int - How often the scheduled query rule is evaluated.
- Failing
Periods stringOperator - 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 string
- Indicates whether the alert is in an enabled state.
- Threshold int
- The threshold of the alert.
- Threshold
Operator string - The threshold operator of the alert.
- Window
Size int - The period of time on which the Alert query will be executed.
- Action
Groups []string - Action Group resource Ids to invoke when the alert fires
- Alert
Query []AlertParameters Query Parameter Response - The alert query parameters.
- Auto
Mitigate 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.
- Evaluation
Frequency int - How often the scheduled query rule is evaluated.
- Failing
Periods stringOperator - 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 string
- Indicates whether the alert is in an enabled state.
- Threshold int
- The threshold of the alert.
- Threshold
Operator string - The threshold operator of the alert.
- Window
Size int - The period of time on which the Alert query will be executed.
- action
Groups List<String> - Action Group resource Ids to invoke when the alert fires
- alert
Query List<AlertParameters Query Parameter Response> - The alert query parameters.
- auto
Mitigate 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.
- evaluation
Frequency Integer - How often the scheduled query rule is evaluated.
- failing
Periods StringOperator - The operator for failing periods.
- failing
Periods IntegerTo Alert - The number of failing periods to trigger an alert.
- mute
Actions 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.
- threshold
Operator String - The threshold operator of the alert.
- window
Size Integer - The period of time on which the Alert query will be executed.
- action
Groups string[] - Action Group resource Ids to invoke when the alert fires
- alert
Query AlertParameters Query Parameter Response[] - The alert query parameters.
- auto
Mitigate 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.
- evaluation
Frequency number - How often the scheduled query rule is evaluated.
- failing
Periods stringOperator - The operator for failing periods.
- failing
Periods numberTo Alert - The number of failing periods to trigger an alert.
- mute
Actions 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.
- threshold
Operator string - The threshold operator of the alert.
- window
Size 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.
- action
Groups List<String> - Action Group resource Ids to invoke when the alert fires
- alert
Query List<Property Map>Parameters - The alert query parameters.
- auto
Mitigate 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.
- evaluation
Frequency Number - How often the scheduled query rule is evaluated.
- failing
Periods StringOperator - The operator for failing periods.
- failing
Periods NumberTo Alert - The number of failing periods to trigger an alert.
- mute
Actions 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.
- threshold
Operator String - The threshold operator of the alert.
- window
Size 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
- Alert
Rule Status Enabled - EnabledThe scheduled query rule is enabled
- Alert
Rule 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
- 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.
- Conditional
Operator Less Than - LessThanThe value is less than the specified value.
- Conditional
Operator Greater Than - GreaterThanThe value is greater than the specified value.
- Conditional
Operator Equal - EqualThe value is equal to the specified value.
- Conditional
Operator Greater Than Or Equal - GreaterThanOrEqualThe value is greater than or equal to the specified value.
- Conditional
Operator Less Than 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.
- 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.
- 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.
- "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.
ErrorAdditionalInfoResponse, ErrorAdditionalInfoResponseArgs
ErrorDetailResponse, ErrorDetailResponseArgs
- Additional
Info 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.
- Additional
Info []ErrorAdditional Info Response - The error additional info.
- Code string
- The error code.
- Details
[]Error
Detail Response - The error details.
- Message string
- The error message.
- Target string
- The error target.
- additional
Info List<ErrorAdditional Info Response> - The error additional info.
- code String
- The error code.
- details
List<Error
Detail Response> - The error details.
- message String
- The error message.
- target String
- The error target.
- additional
Info ErrorAdditional Info Response[] - The error additional info.
- code string
- The error code.
- details
Error
Detail 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[Error
Detail Response] - The error details.
- message str
- The error message.
- target str
- The error target.
- additional
Info 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
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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