azure-native.insights.AlertRule
Explore with Pulumi AI
The alert rule resource. Azure REST API version: 2016-03-01. Prior API version in Azure Native 1.x: 2016-03-01.
Example Usage
Create or update an alert rule
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var alertRule = new AzureNative.Insights.AlertRule("alertRule", new()
{
Actions = new[] {},
Condition = new AzureNative.Insights.Inputs.ThresholdRuleConditionArgs
{
DataSource = new AzureNative.Insights.Inputs.RuleMetricDataSourceArgs
{
MetricName = "Requests",
OdataType = "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
ResourceUri = "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
},
OdataType = "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
Operator = AzureNative.Insights.ConditionOperator.GreaterThan,
Threshold = 3,
TimeAggregation = AzureNative.Insights.TimeAggregationOperator.Total,
WindowSize = "PT5M",
},
Description = "Pura Vida",
IsEnabled = true,
Location = "West US",
Name = "chiricutin",
ResourceGroupName = "Rac46PostSwapRG",
RuleName = "chiricutin",
Tags = null,
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewAlertRule(ctx, "alertRule", &insights.AlertRuleArgs{
Actions: pulumi.Array{},
Condition: &insights.ThresholdRuleConditionArgs{
DataSource: insights.RuleMetricDataSource{
MetricName: "Requests",
OdataType: "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
ResourceUri: "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
},
OdataType: pulumi.String("Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition"),
Operator: insights.ConditionOperatorGreaterThan,
Threshold: pulumi.Float64(3),
TimeAggregation: insights.TimeAggregationOperatorTotal,
WindowSize: pulumi.String("PT5M"),
},
Description: pulumi.String("Pura Vida"),
IsEnabled: pulumi.Bool(true),
Location: pulumi.String("West US"),
Name: pulumi.String("chiricutin"),
ResourceGroupName: pulumi.String("Rac46PostSwapRG"),
RuleName: pulumi.String("chiricutin"),
Tags: pulumi.StringMap{},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.AlertRule;
import com.pulumi.azurenative.insights.AlertRuleArgs;
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 alertRule = new AlertRule("alertRule", AlertRuleArgs.builder()
.actions()
.condition(LocationThresholdRuleConditionArgs.builder()
.dataSource(RuleManagementEventDataSourceArgs.builder()
.metricName("Requests")
.odataType("Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource")
.resourceUri("/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest")
.build())
.odataType("Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition")
.operator("GreaterThan")
.threshold(3)
.timeAggregation("Total")
.windowSize("PT5M")
.build())
.description("Pura Vida")
.isEnabled(true)
.location("West US")
.name("chiricutin")
.resourceGroupName("Rac46PostSwapRG")
.ruleName("chiricutin")
.tags()
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
alert_rule = azure_native.insights.AlertRule("alertRule",
actions=[],
condition={
"data_source": {
"metric_name": "Requests",
"odata_type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
"resource_uri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
},
"odata_type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
"operator": azure_native.insights.ConditionOperator.GREATER_THAN,
"threshold": 3,
"time_aggregation": azure_native.insights.TimeAggregationOperator.TOTAL,
"window_size": "PT5M",
},
description="Pura Vida",
is_enabled=True,
location="West US",
name="chiricutin",
resource_group_name="Rac46PostSwapRG",
rule_name="chiricutin",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const alertRule = new azure_native.insights.AlertRule("alertRule", {
actions: [],
condition: {
dataSource: {
metricName: "Requests",
odataType: "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
resourceUri: "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
},
odataType: "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
operator: azure_native.insights.ConditionOperator.GreaterThan,
threshold: 3,
timeAggregation: azure_native.insights.TimeAggregationOperator.Total,
windowSize: "PT5M",
},
description: "Pura Vida",
isEnabled: true,
location: "West US",
name: "chiricutin",
resourceGroupName: "Rac46PostSwapRG",
ruleName: "chiricutin",
tags: {},
});
resources:
alertRule:
type: azure-native:insights:AlertRule
properties:
actions: []
condition:
dataSource:
metricName: Requests
odataType: Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource
resourceUri: /subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest
odataType: Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition
operator: GreaterThan
threshold: 3
timeAggregation: Total
windowSize: PT5M
description: Pura Vida
isEnabled: true
location: West US
name: chiricutin
resourceGroupName: Rac46PostSwapRG
ruleName: chiricutin
tags: {}
Create AlertRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertRule(name: string, args: AlertRuleArgs, opts?: CustomResourceOptions);
@overload
def AlertRule(resource_name: str,
args: AlertRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlertRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
condition: Optional[Union[LocationThresholdRuleConditionArgs, ManagementEventRuleConditionArgs, ThresholdRuleConditionArgs]] = None,
is_enabled: Optional[bool] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
action: Optional[Union[RuleEmailActionArgs, RuleWebhookActionArgs]] = None,
actions: Optional[Sequence[Union[RuleEmailActionArgs, RuleWebhookActionArgs]]] = None,
description: Optional[str] = None,
location: Optional[str] = None,
provisioning_state: Optional[str] = None,
rule_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAlertRule(ctx *Context, name string, args AlertRuleArgs, opts ...ResourceOption) (*AlertRule, error)
public AlertRule(string name, AlertRuleArgs args, CustomResourceOptions? opts = null)
public AlertRule(String name, AlertRuleArgs args)
public AlertRule(String name, AlertRuleArgs args, CustomResourceOptions options)
type: azure-native:insights:AlertRule
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 AlertRuleArgs
- 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 AlertRuleArgs
- 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 AlertRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertRuleArgs
- 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 alertRuleResource = new AzureNative.Insights.AlertRule("alertRuleResource", new()
{
Condition = new AzureNative.Insights.Inputs.LocationThresholdRuleConditionArgs
{
FailedLocationCount = 0,
OdataType = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition",
DataSource = new AzureNative.Insights.Inputs.RuleManagementEventDataSourceArgs
{
OdataType = "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource",
LegacyResourceId = "string",
EventSource = "string",
Claims = new AzureNative.Insights.Inputs.RuleManagementEventClaimsDataSourceArgs
{
EmailAddress = "string",
},
Level = "string",
MetricNamespace = "string",
EventName = "string",
OperationName = "string",
ResourceGroupName = "string",
ResourceLocation = "string",
ResourceProviderName = "string",
ResourceUri = "string",
Status = "string",
SubStatus = "string",
},
WindowSize = "string",
},
IsEnabled = false,
Name = "string",
ResourceGroupName = "string",
Action = new AzureNative.Insights.Inputs.RuleEmailActionArgs
{
OdataType = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction",
CustomEmails = new[]
{
"string",
},
SendToServiceOwners = false,
},
Actions = new[]
{
new AzureNative.Insights.Inputs.RuleEmailActionArgs
{
OdataType = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction",
CustomEmails = new[]
{
"string",
},
SendToServiceOwners = false,
},
},
Description = "string",
Location = "string",
ProvisioningState = "string",
RuleName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := insights.NewAlertRule(ctx, "alertRuleResource", &insights.AlertRuleArgs{
Condition: &insights.LocationThresholdRuleConditionArgs{
FailedLocationCount: pulumi.Int(0),
OdataType: pulumi.String("Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition"),
DataSource: insights.RuleManagementEventDataSource{
OdataType: "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource",
LegacyResourceId: "string",
EventSource: "string",
Claims: insights.RuleManagementEventClaimsDataSource{
EmailAddress: "string",
},
Level: "string",
MetricNamespace: "string",
EventName: "string",
OperationName: "string",
ResourceGroupName: "string",
ResourceLocation: "string",
ResourceProviderName: "string",
ResourceUri: "string",
Status: "string",
SubStatus: "string",
},
WindowSize: pulumi.String("string"),
},
IsEnabled: pulumi.Bool(false),
Name: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Action: &insights.RuleEmailActionArgs{
OdataType: pulumi.String("Microsoft.Azure.Management.Insights.Models.RuleEmailAction"),
CustomEmails: pulumi.StringArray{
pulumi.String("string"),
},
SendToServiceOwners: pulumi.Bool(false),
},
Actions: pulumi.Array{
insights.RuleEmailAction{
OdataType: "Microsoft.Azure.Management.Insights.Models.RuleEmailAction",
CustomEmails: []string{
"string",
},
SendToServiceOwners: false,
},
},
Description: pulumi.String("string"),
Location: pulumi.String("string"),
ProvisioningState: pulumi.String("string"),
RuleName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var alertRuleResource = new AlertRule("alertRuleResource", AlertRuleArgs.builder()
.condition(LocationThresholdRuleConditionArgs.builder()
.failedLocationCount(0)
.odataType("Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition")
.dataSource(RuleManagementEventDataSourceArgs.builder()
.odataType("Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource")
.legacyResourceId("string")
.eventSource("string")
.claims(RuleManagementEventClaimsDataSourceArgs.builder()
.emailAddress("string")
.build())
.level("string")
.metricNamespace("string")
.eventName("string")
.operationName("string")
.resourceGroupName("string")
.resourceLocation("string")
.resourceProviderName("string")
.resourceUri("string")
.status("string")
.subStatus("string")
.build())
.windowSize("string")
.build())
.isEnabled(false)
.name("string")
.resourceGroupName("string")
.action(RuleEmailActionArgs.builder()
.odataType("Microsoft.Azure.Management.Insights.Models.RuleEmailAction")
.customEmails("string")
.sendToServiceOwners(false)
.build())
.actions(RuleEmailActionArgs.builder()
.odataType("Microsoft.Azure.Management.Insights.Models.RuleEmailAction")
.customEmails("string")
.sendToServiceOwners(false)
.build())
.description("string")
.location("string")
.provisioningState("string")
.ruleName("string")
.tags(Map.of("string", "string"))
.build());
alert_rule_resource = azure_native.insights.AlertRule("alertRuleResource",
condition={
"failed_location_count": 0,
"odata_type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition",
"data_source": {
"odata_type": "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource",
"legacy_resource_id": "string",
"event_source": "string",
"claims": {
"email_address": "string",
},
"level": "string",
"metric_namespace": "string",
"event_name": "string",
"operation_name": "string",
"resource_group_name": "string",
"resource_location": "string",
"resource_provider_name": "string",
"resource_uri": "string",
"status": "string",
"sub_status": "string",
},
"window_size": "string",
},
is_enabled=False,
name="string",
resource_group_name="string",
action={
"odata_type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction",
"custom_emails": ["string"],
"send_to_service_owners": False,
},
actions=[{
"odata_type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction",
"custom_emails": ["string"],
"send_to_service_owners": False,
}],
description="string",
location="string",
provisioning_state="string",
rule_name="string",
tags={
"string": "string",
})
const alertRuleResource = new azure_native.insights.AlertRule("alertRuleResource", {
condition: {
failedLocationCount: 0,
odataType: "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition",
dataSource: {
odataType: "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource",
legacyResourceId: "string",
eventSource: "string",
claims: {
emailAddress: "string",
},
level: "string",
metricNamespace: "string",
eventName: "string",
operationName: "string",
resourceGroupName: "string",
resourceLocation: "string",
resourceProviderName: "string",
resourceUri: "string",
status: "string",
subStatus: "string",
},
windowSize: "string",
},
isEnabled: false,
name: "string",
resourceGroupName: "string",
action: {
odataType: "Microsoft.Azure.Management.Insights.Models.RuleEmailAction",
customEmails: ["string"],
sendToServiceOwners: false,
},
actions: [{
odataType: "Microsoft.Azure.Management.Insights.Models.RuleEmailAction",
customEmails: ["string"],
sendToServiceOwners: false,
}],
description: "string",
location: "string",
provisioningState: "string",
ruleName: "string",
tags: {
string: "string",
},
});
type: azure-native:insights:AlertRule
properties:
action:
customEmails:
- string
odataType: Microsoft.Azure.Management.Insights.Models.RuleEmailAction
sendToServiceOwners: false
actions:
- customEmails:
- string
odataType: Microsoft.Azure.Management.Insights.Models.RuleEmailAction
sendToServiceOwners: false
condition:
dataSource:
claims:
emailAddress: string
eventName: string
eventSource: string
legacyResourceId: string
level: string
metricNamespace: string
odataType: Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource
operationName: string
resourceGroupName: string
resourceLocation: string
resourceProviderName: string
resourceUri: string
status: string
subStatus: string
failedLocationCount: 0
odataType: Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition
windowSize: string
description: string
isEnabled: false
location: string
name: string
provisioningState: string
resourceGroupName: string
ruleName: string
tags:
string: string
AlertRule 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 AlertRule resource accepts the following input properties:
- Condition
Pulumi.
Azure | Pulumi.Native. Insights. Inputs. Location Threshold Rule Condition Azure | Pulumi.Native. Insights. Inputs. Management Event Rule Condition Azure Native. Insights. Inputs. Threshold Rule Condition - the condition that results in the alert rule being activated.
- Is
Enabled bool - the flag that indicates whether the alert rule is enabled.
- Name string
- the name of the alert rule.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Action
Pulumi.
Azure | Pulumi.Native. Insights. Inputs. Rule Email Action Azure Native. Insights. Inputs. Rule Webhook Action - action that is performed when the alert rule becomes active, and when an alert condition is resolved.
- Actions
List<Union<Pulumi.
Azure Native. Insights. Inputs. Rule Email Action, Pulumi. Azure Native. Insights. Inputs. Rule Webhook Action Args>> - the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- Description string
- the description of the alert rule that will be included in the alert email.
- Location string
- Resource location
- Provisioning
State string - the provisioning state.
- Rule
Name string - The name of the rule.
- Dictionary<string, string>
- Resource tags
- Condition
Location
Threshold | ManagementRule Condition Args Event | ThresholdRule Condition Args Rule Condition Args - the condition that results in the alert rule being activated.
- Is
Enabled bool - the flag that indicates whether the alert rule is enabled.
- Name string
- the name of the alert rule.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Action
Rule
Email | RuleAction Args Webhook Action Args - action that is performed when the alert rule becomes active, and when an alert condition is resolved.
- Actions []interface{}
- the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- Description string
- the description of the alert rule that will be included in the alert email.
- Location string
- Resource location
- Provisioning
State string - the provisioning state.
- Rule
Name string - The name of the rule.
- map[string]string
- Resource tags
- condition
Location
Threshold | ManagementRule Condition Event | ThresholdRule Condition Rule Condition - the condition that results in the alert rule being activated.
- is
Enabled Boolean - the flag that indicates whether the alert rule is enabled.
- name String
- the name of the alert rule.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- action
Rule
Email | RuleAction Webhook Action - action that is performed when the alert rule becomes active, and when an alert condition is resolved.
- actions
List<Either<Rule
Email Action,Rule Webhook Action Args>> - the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- description String
- the description of the alert rule that will be included in the alert email.
- location String
- Resource location
- provisioning
State String - the provisioning state.
- rule
Name String - The name of the rule.
- Map<String,String>
- Resource tags
- condition
Location
Threshold | ManagementRule Condition Event | ThresholdRule Condition Rule Condition - the condition that results in the alert rule being activated.
- is
Enabled boolean - the flag that indicates whether the alert rule is enabled.
- name string
- the name of the alert rule.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- action
Rule
Email | RuleAction Webhook Action - action that is performed when the alert rule becomes active, and when an alert condition is resolved.
- actions
(Rule
Email Action | Rule Webhook Action Args)[] - the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- description string
- the description of the alert rule that will be included in the alert email.
- location string
- Resource location
- provisioning
State string - the provisioning state.
- rule
Name string - The name of the rule.
- {[key: string]: string}
- Resource tags
- condition
Location
Threshold | ManagementRule Condition Args Event | ThresholdRule Condition Args Rule Condition Args - the condition that results in the alert rule being activated.
- is_
enabled bool - the flag that indicates whether the alert rule is enabled.
- name str
- the name of the alert rule.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- action
Rule
Email | RuleAction Args Webhook Action Args - action that is performed when the alert rule becomes active, and when an alert condition is resolved.
- actions
Sequence[Union[Rule
Email Action Args, Rule Webhook Action Args]] - the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- description str
- the description of the alert rule that will be included in the alert email.
- location str
- Resource location
- provisioning_
state str - the provisioning state.
- rule_
name str - The name of the rule.
- Mapping[str, str]
- Resource tags
- condition Property Map | Property Map | Property Map
- the condition that results in the alert rule being activated.
- is
Enabled Boolean - the flag that indicates whether the alert rule is enabled.
- name String
- the name of the alert rule.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- action Property Map | Property Map
- action that is performed when the alert rule becomes active, and when an alert condition is resolved.
- actions List<Property Map | Property Map>
- the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- description String
- the description of the alert rule that will be included in the alert email.
- location String
- Resource location
- provisioning
State String - the provisioning state.
- rule
Name String - The name of the rule.
- Map<String>
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the AlertRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - Last time the rule was updated in ISO8601 format.
- Type string
- Azure resource type
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - Last time the rule was updated in ISO8601 format.
- Type string
- Azure resource type
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - Last time the rule was updated in ISO8601 format.
- type String
- Azure resource type
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringTime - Last time the rule was updated in ISO8601 format.
- type string
- Azure resource type
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strtime - Last time the rule was updated in ISO8601 format.
- type str
- Azure resource type
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - Last time the rule was updated in ISO8601 format.
- type String
- Azure resource type
Supporting Types
ConditionOperator, ConditionOperatorArgs
- Equals
Value - Equals
- Greater
Than - GreaterThan
- Greater
Than Or Equal - GreaterThanOrEqual
- Less
Than - LessThan
- Less
Than Or Equal - LessThanOrEqual
- Condition
Operator Equals - Equals
- Condition
Operator Greater Than - GreaterThan
- Condition
Operator Greater Than Or Equal - GreaterThanOrEqual
- Condition
Operator Less Than - LessThan
- Condition
Operator Less Than Or Equal - LessThanOrEqual
- Equals
- Equals
- Greater
Than - GreaterThan
- Greater
Than Or Equal - GreaterThanOrEqual
- Less
Than - LessThan
- Less
Than Or Equal - LessThanOrEqual
- Equals
- Equals
- Greater
Than - GreaterThan
- Greater
Than Or Equal - GreaterThanOrEqual
- Less
Than - LessThan
- Less
Than Or Equal - LessThanOrEqual
- EQUALS
- Equals
- GREATER_THAN
- GreaterThan
- GREATER_THAN_OR_EQUAL
- GreaterThanOrEqual
- LESS_THAN
- LessThan
- LESS_THAN_OR_EQUAL
- LessThanOrEqual
- "Equals"
- Equals
- "Greater
Than" - GreaterThan
- "Greater
Than Or Equal" - GreaterThanOrEqual
- "Less
Than" - LessThan
- "Less
Than Or Equal" - LessThanOrEqual
LocationThresholdRuleCondition, LocationThresholdRuleConditionArgs
- Failed
Location intCount - the number of locations that must fail to activate the alert.
- Data
Source Pulumi.Azure | Pulumi.Native. Insights. Inputs. Rule Management Event Data Source Azure Native. Insights. Inputs. Rule Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- Failed
Location intCount - the number of locations that must fail to activate the alert.
- Data
Source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- failed
Location IntegerCount - the number of locations that must fail to activate the alert.
- data
Source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- failed
Location numberCount - the number of locations that must fail to activate the alert.
- data
Source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- failed_
location_ intcount - the number of locations that must fail to activate the alert.
- data_
source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- window_
size str - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- failed
Location NumberCount - the number of locations that must fail to activate the alert.
- data
Source Property Map | Property Map - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
LocationThresholdRuleConditionResponse, LocationThresholdRuleConditionResponseArgs
- Failed
Location intCount - the number of locations that must fail to activate the alert.
- Data
Source Pulumi.Azure | Pulumi.Native. Insights. Inputs. Rule Management Event Data Source Response Azure Native. Insights. Inputs. Rule Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- Failed
Location intCount - the number of locations that must fail to activate the alert.
- Data
Source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- failed
Location IntegerCount - the number of locations that must fail to activate the alert.
- data
Source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- failed
Location numberCount - the number of locations that must fail to activate the alert.
- data
Source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- failed_
location_ intcount - the number of locations that must fail to activate the alert.
- data_
source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- window_
size str - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- failed
Location NumberCount - the number of locations that must fail to activate the alert.
- data
Source Property Map | Property Map - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
ManagementEventAggregationCondition, ManagementEventAggregationConditionArgs
- Operator
Pulumi.
Azure Native. Insights. Condition Operator - the condition operator.
- Threshold double
- The threshold value that activates the alert.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- Operator
Condition
Operator - the condition operator.
- Threshold float64
- The threshold value that activates the alert.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator
Condition
Operator - the condition operator.
- threshold Double
- The threshold value that activates the alert.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator
Condition
Operator - the condition operator.
- threshold number
- The threshold value that activates the alert.
- window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator
Condition
Operator - the condition operator.
- threshold float
- The threshold value that activates the alert.
- window_
size str - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator
"Equals" | "Greater
Than" | "Greater Than Or Equal" | "Less Than" | "Less Than Or Equal" - the condition operator.
- threshold Number
- The threshold value that activates the alert.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
ManagementEventAggregationConditionResponse, ManagementEventAggregationConditionResponseArgs
- Operator string
- the condition operator.
- Threshold double
- The threshold value that activates the alert.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- Operator string
- the condition operator.
- Threshold float64
- The threshold value that activates the alert.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator String
- the condition operator.
- threshold Double
- The threshold value that activates the alert.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator string
- the condition operator.
- threshold number
- The threshold value that activates the alert.
- window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator str
- the condition operator.
- threshold float
- The threshold value that activates the alert.
- window_
size str - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator String
- the condition operator.
- threshold Number
- The threshold value that activates the alert.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
ManagementEventRuleCondition, ManagementEventRuleConditionArgs
- Aggregation
Pulumi.
Azure Native. Insights. Inputs. Management Event Aggregation Condition - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- Data
Source Pulumi.Azure | Pulumi.Native. Insights. Inputs. Rule Management Event Data Source Azure Native. Insights. Inputs. Rule Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- Aggregation
Management
Event Aggregation Condition - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- Data
Source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- aggregation
Management
Event Aggregation Condition - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- data
Source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- aggregation
Management
Event Aggregation Condition - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- data
Source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- aggregation
Management
Event Aggregation Condition - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- data_
source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- aggregation Property Map
- How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- data
Source Property Map | Property Map - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
ManagementEventRuleConditionResponse, ManagementEventRuleConditionResponseArgs
- Aggregation
Pulumi.
Azure Native. Insights. Inputs. Management Event Aggregation Condition Response - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- Data
Source Pulumi.Azure | Pulumi.Native. Insights. Inputs. Rule Management Event Data Source Response Azure Native. Insights. Inputs. Rule Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- Aggregation
Management
Event Aggregation Condition Response - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- Data
Source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- aggregation
Management
Event Aggregation Condition Response - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- data
Source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- aggregation
Management
Event Aggregation Condition Response - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- data
Source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- aggregation
Management
Event Aggregation Condition Response - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- data_
source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- aggregation Property Map
- How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
- data
Source Property Map | Property Map - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
RuleEmailAction, RuleEmailActionArgs
- Custom
Emails List<string> - the list of administrator's custom email addresses to notify of the activation of the alert.
- Send
To boolService Owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
- Custom
Emails []string - the list of administrator's custom email addresses to notify of the activation of the alert.
- Send
To boolService Owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
- custom
Emails List<String> - the list of administrator's custom email addresses to notify of the activation of the alert.
- send
To BooleanService Owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
- custom
Emails string[] - the list of administrator's custom email addresses to notify of the activation of the alert.
- send
To booleanService Owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
- custom_
emails Sequence[str] - the list of administrator's custom email addresses to notify of the activation of the alert.
- send_
to_ boolservice_ owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
- custom
Emails List<String> - the list of administrator's custom email addresses to notify of the activation of the alert.
- send
To BooleanService Owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
RuleEmailActionResponse, RuleEmailActionResponseArgs
- Custom
Emails List<string> - the list of administrator's custom email addresses to notify of the activation of the alert.
- Send
To boolService Owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
- Custom
Emails []string - the list of administrator's custom email addresses to notify of the activation of the alert.
- Send
To boolService Owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
- custom
Emails List<String> - the list of administrator's custom email addresses to notify of the activation of the alert.
- send
To BooleanService Owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
- custom
Emails string[] - the list of administrator's custom email addresses to notify of the activation of the alert.
- send
To booleanService Owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
- custom_
emails Sequence[str] - the list of administrator's custom email addresses to notify of the activation of the alert.
- send_
to_ boolservice_ owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
- custom
Emails List<String> - the list of administrator's custom email addresses to notify of the activation of the alert.
- send
To BooleanService Owners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
RuleManagementEventClaimsDataSource, RuleManagementEventClaimsDataSourceArgs
- Email
Address string - the email address.
- Email
Address string - the email address.
- email
Address String - the email address.
- email
Address string - the email address.
- email_
address str - the email address.
- email
Address String - the email address.
RuleManagementEventClaimsDataSourceResponse, RuleManagementEventClaimsDataSourceResponseArgs
- Email
Address string - the email address.
- Email
Address string - the email address.
- email
Address String - the email address.
- email
Address string - the email address.
- email_
address str - the email address.
- email
Address String - the email address.
RuleManagementEventDataSource, RuleManagementEventDataSourceArgs
- Claims
Pulumi.
Azure Native. Insights. Inputs. Rule Management Event Claims Data Source - the claims.
- Event
Name string - the event name.
- Event
Source string - the event source.
- Legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Level string
- the level.
- Metric
Namespace string - the namespace of the metric.
- Operation
Name string - The name of the operation that should be checked for. If no name is provided, any operation will match.
- Resource
Group stringName - the resource group name.
- Resource
Location string - the location of the resource.
- Resource
Provider stringName - the resource provider name.
- Resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Status string
- The status of the operation that should be checked for. If no status is provided, any status will match.
- Sub
Status string - the substatus.
- Claims
Rule
Management Event Claims Data Source - the claims.
- Event
Name string - the event name.
- Event
Source string - the event source.
- Legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Level string
- the level.
- Metric
Namespace string - the namespace of the metric.
- Operation
Name string - The name of the operation that should be checked for. If no name is provided, any operation will match.
- Resource
Group stringName - the resource group name.
- Resource
Location string - the location of the resource.
- Resource
Provider stringName - the resource provider name.
- Resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Status string
- The status of the operation that should be checked for. If no status is provided, any status will match.
- Sub
Status string - the substatus.
- claims
Rule
Management Event Claims Data Source - the claims.
- event
Name String - the event name.
- event
Source String - the event source.
- legacy
Resource StringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- level String
- the level.
- metric
Namespace String - the namespace of the metric.
- operation
Name String - The name of the operation that should be checked for. If no name is provided, any operation will match.
- resource
Group StringName - the resource group name.
- resource
Location String - the location of the resource.
- resource
Provider StringName - the resource provider name.
- resource
Uri String - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- status String
- The status of the operation that should be checked for. If no status is provided, any status will match.
- sub
Status String - the substatus.
- claims
Rule
Management Event Claims Data Source - the claims.
- event
Name string - the event name.
- event
Source string - the event source.
- legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- level string
- the level.
- metric
Namespace string - the namespace of the metric.
- operation
Name string - The name of the operation that should be checked for. If no name is provided, any operation will match.
- resource
Group stringName - the resource group name.
- resource
Location string - the location of the resource.
- resource
Provider stringName - the resource provider name.
- resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- status string
- The status of the operation that should be checked for. If no status is provided, any status will match.
- sub
Status string - the substatus.
- claims
Rule
Management Event Claims Data Source - the claims.
- event_
name str - the event name.
- event_
source str - the event source.
- legacy_
resource_ strid - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- level str
- the level.
- metric_
namespace str - the namespace of the metric.
- operation_
name str - The name of the operation that should be checked for. If no name is provided, any operation will match.
- resource_
group_ strname - the resource group name.
- resource_
location str - the location of the resource.
- resource_
provider_ strname - the resource provider name.
- resource_
uri str - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- status str
- The status of the operation that should be checked for. If no status is provided, any status will match.
- sub_
status str - the substatus.
- claims Property Map
- the claims.
- event
Name String - the event name.
- event
Source String - the event source.
- legacy
Resource StringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- level String
- the level.
- metric
Namespace String - the namespace of the metric.
- operation
Name String - The name of the operation that should be checked for. If no name is provided, any operation will match.
- resource
Group StringName - the resource group name.
- resource
Location String - the location of the resource.
- resource
Provider StringName - the resource provider name.
- resource
Uri String - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- status String
- The status of the operation that should be checked for. If no status is provided, any status will match.
- sub
Status String - the substatus.
RuleManagementEventDataSourceResponse, RuleManagementEventDataSourceResponseArgs
- Claims
Pulumi.
Azure Native. Insights. Inputs. Rule Management Event Claims Data Source Response - the claims.
- Event
Name string - the event name.
- Event
Source string - the event source.
- Legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Level string
- the level.
- Metric
Namespace string - the namespace of the metric.
- Operation
Name string - The name of the operation that should be checked for. If no name is provided, any operation will match.
- Resource
Group stringName - the resource group name.
- Resource
Location string - the location of the resource.
- Resource
Provider stringName - the resource provider name.
- Resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Status string
- The status of the operation that should be checked for. If no status is provided, any status will match.
- Sub
Status string - the substatus.
- Claims
Rule
Management Event Claims Data Source Response - the claims.
- Event
Name string - the event name.
- Event
Source string - the event source.
- Legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Level string
- the level.
- Metric
Namespace string - the namespace of the metric.
- Operation
Name string - The name of the operation that should be checked for. If no name is provided, any operation will match.
- Resource
Group stringName - the resource group name.
- Resource
Location string - the location of the resource.
- Resource
Provider stringName - the resource provider name.
- Resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Status string
- The status of the operation that should be checked for. If no status is provided, any status will match.
- Sub
Status string - the substatus.
- claims
Rule
Management Event Claims Data Source Response - the claims.
- event
Name String - the event name.
- event
Source String - the event source.
- legacy
Resource StringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- level String
- the level.
- metric
Namespace String - the namespace of the metric.
- operation
Name String - The name of the operation that should be checked for. If no name is provided, any operation will match.
- resource
Group StringName - the resource group name.
- resource
Location String - the location of the resource.
- resource
Provider StringName - the resource provider name.
- resource
Uri String - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- status String
- The status of the operation that should be checked for. If no status is provided, any status will match.
- sub
Status String - the substatus.
- claims
Rule
Management Event Claims Data Source Response - the claims.
- event
Name string - the event name.
- event
Source string - the event source.
- legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- level string
- the level.
- metric
Namespace string - the namespace of the metric.
- operation
Name string - The name of the operation that should be checked for. If no name is provided, any operation will match.
- resource
Group stringName - the resource group name.
- resource
Location string - the location of the resource.
- resource
Provider stringName - the resource provider name.
- resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- status string
- The status of the operation that should be checked for. If no status is provided, any status will match.
- sub
Status string - the substatus.
- claims
Rule
Management Event Claims Data Source Response - the claims.
- event_
name str - the event name.
- event_
source str - the event source.
- legacy_
resource_ strid - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- level str
- the level.
- metric_
namespace str - the namespace of the metric.
- operation_
name str - The name of the operation that should be checked for. If no name is provided, any operation will match.
- resource_
group_ strname - the resource group name.
- resource_
location str - the location of the resource.
- resource_
provider_ strname - the resource provider name.
- resource_
uri str - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- status str
- The status of the operation that should be checked for. If no status is provided, any status will match.
- sub_
status str - the substatus.
- claims Property Map
- the claims.
- event
Name String - the event name.
- event
Source String - the event source.
- legacy
Resource StringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- level String
- the level.
- metric
Namespace String - the namespace of the metric.
- operation
Name String - The name of the operation that should be checked for. If no name is provided, any operation will match.
- resource
Group StringName - the resource group name.
- resource
Location String - the location of the resource.
- resource
Provider StringName - the resource provider name.
- resource
Uri String - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- status String
- The status of the operation that should be checked for. If no status is provided, any status will match.
- sub
Status String - the substatus.
RuleMetricDataSource, RuleMetricDataSourceArgs
- Legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Metric
Name string - the name of the metric that defines what the rule monitors.
- Metric
Namespace string - the namespace of the metric.
- Resource
Location string - the location of the resource.
- Resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Metric
Name string - the name of the metric that defines what the rule monitors.
- Metric
Namespace string - the namespace of the metric.
- Resource
Location string - the location of the resource.
- Resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- legacy
Resource StringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- metric
Name String - the name of the metric that defines what the rule monitors.
- metric
Namespace String - the namespace of the metric.
- resource
Location String - the location of the resource.
- resource
Uri String - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- metric
Name string - the name of the metric that defines what the rule monitors.
- metric
Namespace string - the namespace of the metric.
- resource
Location string - the location of the resource.
- resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- legacy_
resource_ strid - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- metric_
name str - the name of the metric that defines what the rule monitors.
- metric_
namespace str - the namespace of the metric.
- resource_
location str - the location of the resource.
- resource_
uri str - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- legacy
Resource StringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- metric
Name String - the name of the metric that defines what the rule monitors.
- metric
Namespace String - the namespace of the metric.
- resource
Location String - the location of the resource.
- resource
Uri String - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
RuleMetricDataSourceResponse, RuleMetricDataSourceResponseArgs
- Legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Metric
Name string - the name of the metric that defines what the rule monitors.
- Metric
Namespace string - the namespace of the metric.
- Resource
Location string - the location of the resource.
- Resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- Metric
Name string - the name of the metric that defines what the rule monitors.
- Metric
Namespace string - the namespace of the metric.
- Resource
Location string - the location of the resource.
- Resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- legacy
Resource StringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- metric
Name String - the name of the metric that defines what the rule monitors.
- metric
Namespace String - the namespace of the metric.
- resource
Location String - the location of the resource.
- resource
Uri String - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- legacy
Resource stringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- metric
Name string - the name of the metric that defines what the rule monitors.
- metric
Namespace string - the namespace of the metric.
- resource
Location string - the location of the resource.
- resource
Uri string - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- legacy_
resource_ strid - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- metric_
name str - the name of the metric that defines what the rule monitors.
- metric_
namespace str - the namespace of the metric.
- resource_
location str - the location of the resource.
- resource_
uri str - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- legacy
Resource StringId - the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
- metric
Name String - the name of the metric that defines what the rule monitors.
- metric
Namespace String - the namespace of the metric.
- resource
Location String - the location of the resource.
- resource
Uri String - the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.
RuleWebhookAction, RuleWebhookActionArgs
- Properties Dictionary<string, string>
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- Service
Uri string - the service uri to Post the notification when the alert activates or resolves.
- Properties map[string]string
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- Service
Uri string - the service uri to Post the notification when the alert activates or resolves.
- properties Map<String,String>
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- service
Uri String - the service uri to Post the notification when the alert activates or resolves.
- properties {[key: string]: string}
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- service
Uri string - the service uri to Post the notification when the alert activates or resolves.
- properties Mapping[str, str]
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- service_
uri str - the service uri to Post the notification when the alert activates or resolves.
- properties Map<String>
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- service
Uri String - the service uri to Post the notification when the alert activates or resolves.
RuleWebhookActionResponse, RuleWebhookActionResponseArgs
- Properties Dictionary<string, string>
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- Service
Uri string - the service uri to Post the notification when the alert activates or resolves.
- Properties map[string]string
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- Service
Uri string - the service uri to Post the notification when the alert activates or resolves.
- properties Map<String,String>
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- service
Uri String - the service uri to Post the notification when the alert activates or resolves.
- properties {[key: string]: string}
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- service
Uri string - the service uri to Post the notification when the alert activates or resolves.
- properties Mapping[str, str]
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- service_
uri str - the service uri to Post the notification when the alert activates or resolves.
- properties Map<String>
- the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- service
Uri String - the service uri to Post the notification when the alert activates or resolves.
ThresholdRuleCondition, ThresholdRuleConditionArgs
- Operator
Pulumi.
Azure Native. Insights. Condition Operator - the operator used to compare the data and the threshold.
- Threshold double
- the threshold value that activates the alert.
- Data
Source Pulumi.Azure | Pulumi.Native. Insights. Inputs. Rule Management Event Data Source Azure Native. Insights. Inputs. Rule Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- Time
Aggregation Pulumi.Azure Native. Insights. Time Aggregation Operator - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- Operator
Condition
Operator - the operator used to compare the data and the threshold.
- Threshold float64
- the threshold value that activates the alert.
- Data
Source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- Time
Aggregation TimeAggregation Operator - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator
Condition
Operator - the operator used to compare the data and the threshold.
- threshold Double
- the threshold value that activates the alert.
- data
Source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- time
Aggregation TimeAggregation Operator - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator
Condition
Operator - the operator used to compare the data and the threshold.
- threshold number
- the threshold value that activates the alert.
- data
Source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- time
Aggregation TimeAggregation Operator - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator
Condition
Operator - the operator used to compare the data and the threshold.
- threshold float
- the threshold value that activates the alert.
- data_
source RuleManagement | RuleEvent Data Source Metric Data Source - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- time_
aggregation TimeAggregation Operator - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- window_
size str - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator
"Equals" | "Greater
Than" | "Greater Than Or Equal" | "Less Than" | "Less Than Or Equal" - the operator used to compare the data and the threshold.
- threshold Number
- the threshold value that activates the alert.
- data
Source Property Map | Property Map - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- time
Aggregation "Average" | "Minimum" | "Maximum" | "Total" | "Last" - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
ThresholdRuleConditionResponse, ThresholdRuleConditionResponseArgs
- Operator string
- the operator used to compare the data and the threshold.
- Threshold double
- the threshold value that activates the alert.
- Data
Source Pulumi.Azure | Pulumi.Native. Insights. Inputs. Rule Management Event Data Source Response Azure Native. Insights. Inputs. Rule Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- Time
Aggregation string - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- Operator string
- the operator used to compare the data and the threshold.
- Threshold float64
- the threshold value that activates the alert.
- Data
Source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- Time
Aggregation string - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- Window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator String
- the operator used to compare the data and the threshold.
- threshold Double
- the threshold value that activates the alert.
- data
Source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- time
Aggregation String - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator string
- the operator used to compare the data and the threshold.
- threshold number
- the threshold value that activates the alert.
- data
Source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- time
Aggregation string - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- window
Size string - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator str
- the operator used to compare the data and the threshold.
- threshold float
- the threshold value that activates the alert.
- data_
source RuleManagement | RuleEvent Data Source Response Metric Data Source Response - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- time_
aggregation str - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- window_
size str - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
- operator String
- the operator used to compare the data and the threshold.
- threshold Number
- the threshold value that activates the alert.
- data
Source Property Map | Property Map - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
- time
Aggregation String - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
- window
Size String - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
TimeAggregationOperator, TimeAggregationOperatorArgs
- Average
- Average
- Minimum
- Minimum
- Maximum
- Maximum
- Total
- Total
- Last
- Last
- Time
Aggregation Operator Average - Average
- Time
Aggregation Operator Minimum - Minimum
- Time
Aggregation Operator Maximum - Maximum
- Time
Aggregation Operator Total - Total
- Time
Aggregation Operator Last - Last
- Average
- Average
- Minimum
- Minimum
- Maximum
- Maximum
- Total
- Total
- Last
- Last
- Average
- Average
- Minimum
- Minimum
- Maximum
- Maximum
- Total
- Total
- Last
- Last
- AVERAGE
- Average
- MINIMUM
- Minimum
- MAXIMUM
- Maximum
- TOTAL
- Total
- LAST
- Last
- "Average"
- Average
- "Minimum"
- Minimum
- "Maximum"
- Maximum
- "Total"
- Total
- "Last"
- Last
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:AlertRule chiricutin /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0