azure-native.alertsmanagement.SmartDetectorAlertRule
Explore with Pulumi AI
The alert rule information Azure REST API version: 2021-04-01. Prior API version in Azure Native 1.x: 2019-06-01.
Example Usage
Create or update a Smart Detector alert rule
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var smartDetectorAlertRule = new AzureNative.AlertsManagement.SmartDetectorAlertRule("smartDetectorAlertRule", new()
{
ActionGroups = new AzureNative.AlertsManagement.Inputs.ActionGroupsInformationArgs
{
CustomEmailSubject = "My custom email subject",
CustomWebhookPayload = "{\"AlertRuleName\":\"#alertrulename\"}",
GroupIds = new[]
{
"/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup",
},
},
AlertRuleName = "MyAlertRule",
Description = "Sample smart detector alert rule description",
Detector = new AzureNative.AlertsManagement.Inputs.DetectorArgs
{
Id = "VMMemoryLeak",
},
Frequency = "PT5M",
ResourceGroupName = "MyAlertRules",
Scope = new[]
{
"/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1",
},
Severity = AzureNative.AlertsManagement.Severity.Sev3,
State = AzureNative.AlertsManagement.AlertRuleState.Enabled,
Throttling = new AzureNative.AlertsManagement.Inputs.ThrottlingInformationArgs
{
Duration = "PT20M",
},
});
});
package main
import (
alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alertsmanagement.NewSmartDetectorAlertRule(ctx, "smartDetectorAlertRule", &alertsmanagement.SmartDetectorAlertRuleArgs{
ActionGroups: &alertsmanagement.ActionGroupsInformationArgs{
CustomEmailSubject: pulumi.String("My custom email subject"),
CustomWebhookPayload: pulumi.String("{\"AlertRuleName\":\"#alertrulename\"}"),
GroupIds: pulumi.StringArray{
pulumi.String("/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup"),
},
},
AlertRuleName: pulumi.String("MyAlertRule"),
Description: pulumi.String("Sample smart detector alert rule description"),
Detector: &alertsmanagement.DetectorArgs{
Id: pulumi.String("VMMemoryLeak"),
},
Frequency: pulumi.String("PT5M"),
ResourceGroupName: pulumi.String("MyAlertRules"),
Scope: pulumi.StringArray{
pulumi.String("/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1"),
},
Severity: pulumi.String(alertsmanagement.SeveritySev3),
State: pulumi.String(alertsmanagement.AlertRuleStateEnabled),
Throttling: &alertsmanagement.ThrottlingInformationArgs{
Duration: pulumi.String("PT20M"),
},
})
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.alertsmanagement.SmartDetectorAlertRule;
import com.pulumi.azurenative.alertsmanagement.SmartDetectorAlertRuleArgs;
import com.pulumi.azurenative.alertsmanagement.inputs.ActionGroupsInformationArgs;
import com.pulumi.azurenative.alertsmanagement.inputs.DetectorArgs;
import com.pulumi.azurenative.alertsmanagement.inputs.ThrottlingInformationArgs;
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 smartDetectorAlertRule = new SmartDetectorAlertRule("smartDetectorAlertRule", SmartDetectorAlertRuleArgs.builder()
.actionGroups(ActionGroupsInformationArgs.builder()
.customEmailSubject("My custom email subject")
.customWebhookPayload("{\"AlertRuleName\":\"#alertrulename\"}")
.groupIds("/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup")
.build())
.alertRuleName("MyAlertRule")
.description("Sample smart detector alert rule description")
.detector(DetectorArgs.builder()
.id("VMMemoryLeak")
.build())
.frequency("PT5M")
.resourceGroupName("MyAlertRules")
.scope("/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1")
.severity("Sev3")
.state("Enabled")
.throttling(ThrottlingInformationArgs.builder()
.duration("PT20M")
.build())
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
smart_detector_alert_rule = azure_native.alertsmanagement.SmartDetectorAlertRule("smartDetectorAlertRule",
action_groups=azure_native.alertsmanagement.ActionGroupsInformationArgs(
custom_email_subject="My custom email subject",
custom_webhook_payload="{\"AlertRuleName\":\"#alertrulename\"}",
group_ids=["/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup"],
),
alert_rule_name="MyAlertRule",
description="Sample smart detector alert rule description",
detector=azure_native.alertsmanagement.DetectorArgs(
id="VMMemoryLeak",
),
frequency="PT5M",
resource_group_name="MyAlertRules",
scope=["/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1"],
severity=azure_native.alertsmanagement.Severity.SEV3,
state=azure_native.alertsmanagement.AlertRuleState.ENABLED,
throttling=azure_native.alertsmanagement.ThrottlingInformationArgs(
duration="PT20M",
))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const smartDetectorAlertRule = new azure_native.alertsmanagement.SmartDetectorAlertRule("smartDetectorAlertRule", {
actionGroups: {
customEmailSubject: "My custom email subject",
customWebhookPayload: "{\"AlertRuleName\":\"#alertrulename\"}",
groupIds: ["/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup"],
},
alertRuleName: "MyAlertRule",
description: "Sample smart detector alert rule description",
detector: {
id: "VMMemoryLeak",
},
frequency: "PT5M",
resourceGroupName: "MyAlertRules",
scope: ["/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1"],
severity: azure_native.alertsmanagement.Severity.Sev3,
state: azure_native.alertsmanagement.AlertRuleState.Enabled,
throttling: {
duration: "PT20M",
},
});
resources:
smartDetectorAlertRule:
type: azure-native:alertsmanagement:SmartDetectorAlertRule
properties:
actionGroups:
customEmailSubject: My custom email subject
customWebhookPayload: '{"AlertRuleName":"#alertrulename"}'
groupIds:
- /subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup
alertRuleName: MyAlertRule
description: Sample smart detector alert rule description
detector:
id: VMMemoryLeak
frequency: PT5M
resourceGroupName: MyAlertRules
scope:
- /subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1
severity: Sev3
state: Enabled
throttling:
duration: PT20M
Create SmartDetectorAlertRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmartDetectorAlertRule(name: string, args: SmartDetectorAlertRuleArgs, opts?: CustomResourceOptions);
@overload
def SmartDetectorAlertRule(resource_name: str,
args: SmartDetectorAlertRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SmartDetectorAlertRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
action_groups: Optional[ActionGroupsInformationArgs] = None,
detector: Optional[DetectorArgs] = None,
frequency: Optional[str] = None,
resource_group_name: Optional[str] = None,
scope: Optional[Sequence[str]] = None,
severity: Optional[Union[str, Severity]] = None,
state: Optional[Union[str, AlertRuleState]] = None,
alert_rule_name: Optional[str] = None,
description: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
throttling: Optional[ThrottlingInformationArgs] = None)
func NewSmartDetectorAlertRule(ctx *Context, name string, args SmartDetectorAlertRuleArgs, opts ...ResourceOption) (*SmartDetectorAlertRule, error)
public SmartDetectorAlertRule(string name, SmartDetectorAlertRuleArgs args, CustomResourceOptions? opts = null)
public SmartDetectorAlertRule(String name, SmartDetectorAlertRuleArgs args)
public SmartDetectorAlertRule(String name, SmartDetectorAlertRuleArgs args, CustomResourceOptions options)
type: azure-native:alertsmanagement:SmartDetectorAlertRule
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 SmartDetectorAlertRuleArgs
- 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 SmartDetectorAlertRuleArgs
- 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 SmartDetectorAlertRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmartDetectorAlertRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmartDetectorAlertRuleArgs
- 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 smartDetectorAlertRuleResource = new AzureNative.AlertsManagement.SmartDetectorAlertRule("smartDetectorAlertRuleResource", new()
{
ActionGroups = new AzureNative.AlertsManagement.Inputs.ActionGroupsInformationArgs
{
GroupIds = new[]
{
"string",
},
CustomEmailSubject = "string",
CustomWebhookPayload = "string",
},
Detector = new AzureNative.AlertsManagement.Inputs.DetectorArgs
{
Id = "string",
Parameters =
{
{ "string", "any" },
},
},
Frequency = "string",
ResourceGroupName = "string",
Scope = new[]
{
"string",
},
Severity = "string",
State = "string",
AlertRuleName = "string",
Description = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
Throttling = new AzureNative.AlertsManagement.Inputs.ThrottlingInformationArgs
{
Duration = "string",
},
});
example, err := alertsmanagement.NewSmartDetectorAlertRule(ctx, "smartDetectorAlertRuleResource", &alertsmanagement.SmartDetectorAlertRuleArgs{
ActionGroups: &alertsmanagement.ActionGroupsInformationArgs{
GroupIds: pulumi.StringArray{
pulumi.String("string"),
},
CustomEmailSubject: pulumi.String("string"),
CustomWebhookPayload: pulumi.String("string"),
},
Detector: &alertsmanagement.DetectorArgs{
Id: pulumi.String("string"),
Parameters: pulumi.Map{
"string": pulumi.Any("any"),
},
},
Frequency: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Scope: pulumi.StringArray{
pulumi.String("string"),
},
Severity: pulumi.String("string"),
State: pulumi.String("string"),
AlertRuleName: pulumi.String("string"),
Description: pulumi.String("string"),
Location: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Throttling: &alertsmanagement.ThrottlingInformationArgs{
Duration: pulumi.String("string"),
},
})
var smartDetectorAlertRuleResource = new SmartDetectorAlertRule("smartDetectorAlertRuleResource", SmartDetectorAlertRuleArgs.builder()
.actionGroups(ActionGroupsInformationArgs.builder()
.groupIds("string")
.customEmailSubject("string")
.customWebhookPayload("string")
.build())
.detector(DetectorArgs.builder()
.id("string")
.parameters(Map.of("string", "any"))
.build())
.frequency("string")
.resourceGroupName("string")
.scope("string")
.severity("string")
.state("string")
.alertRuleName("string")
.description("string")
.location("string")
.tags(Map.of("string", "string"))
.throttling(ThrottlingInformationArgs.builder()
.duration("string")
.build())
.build());
smart_detector_alert_rule_resource = azure_native.alertsmanagement.SmartDetectorAlertRule("smartDetectorAlertRuleResource",
action_groups=azure_native.alertsmanagement.ActionGroupsInformationArgs(
group_ids=["string"],
custom_email_subject="string",
custom_webhook_payload="string",
),
detector=azure_native.alertsmanagement.DetectorArgs(
id="string",
parameters={
"string": "any",
},
),
frequency="string",
resource_group_name="string",
scope=["string"],
severity="string",
state="string",
alert_rule_name="string",
description="string",
location="string",
tags={
"string": "string",
},
throttling=azure_native.alertsmanagement.ThrottlingInformationArgs(
duration="string",
))
const smartDetectorAlertRuleResource = new azure_native.alertsmanagement.SmartDetectorAlertRule("smartDetectorAlertRuleResource", {
actionGroups: {
groupIds: ["string"],
customEmailSubject: "string",
customWebhookPayload: "string",
},
detector: {
id: "string",
parameters: {
string: "any",
},
},
frequency: "string",
resourceGroupName: "string",
scope: ["string"],
severity: "string",
state: "string",
alertRuleName: "string",
description: "string",
location: "string",
tags: {
string: "string",
},
throttling: {
duration: "string",
},
});
type: azure-native:alertsmanagement:SmartDetectorAlertRule
properties:
actionGroups:
customEmailSubject: string
customWebhookPayload: string
groupIds:
- string
alertRuleName: string
description: string
detector:
id: string
parameters:
string: any
frequency: string
location: string
resourceGroupName: string
scope:
- string
severity: string
state: string
tags:
string: string
throttling:
duration: string
SmartDetectorAlertRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SmartDetectorAlertRule resource accepts the following input properties:
- Action
Groups Pulumi.Azure Native. Alerts Management. Inputs. Action Groups Information - The alert rule actions.
- Detector
Pulumi.
Azure Native. Alerts Management. Inputs. Detector - The alert rule's detector.
- Frequency string
- The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 1 minute, depending on the detector.
- Resource
Group stringName - The name of the resource group.
- Scope List<string>
- The alert rule resources scope.
- Severity
string | Pulumi.
Azure Native. Alerts Management. Severity - The alert rule severity.
- State
string | Pulumi.
Azure Native. Alerts Management. Alert Rule State - The alert rule state.
- Alert
Rule stringName - The name of the alert rule.
- Description string
- The alert rule description.
- Location string
- The resource location.
- Dictionary<string, string>
- The resource tags.
- Throttling
Pulumi.
Azure Native. Alerts Management. Inputs. Throttling Information - The alert rule throttling information.
- Action
Groups ActionGroups Information Args - The alert rule actions.
- Detector
Detector
Args - The alert rule's detector.
- Frequency string
- The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 1 minute, depending on the detector.
- Resource
Group stringName - The name of the resource group.
- Scope []string
- The alert rule resources scope.
- Severity string | Severity
- The alert rule severity.
- State
string | Alert
Rule State - The alert rule state.
- Alert
Rule stringName - The name of the alert rule.
- Description string
- The alert rule description.
- Location string
- The resource location.
- map[string]string
- The resource tags.
- Throttling
Throttling
Information Args - The alert rule throttling information.
- action
Groups ActionGroups Information - The alert rule actions.
- detector Detector
- The alert rule's detector.
- frequency String
- The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 1 minute, depending on the detector.
- resource
Group StringName - The name of the resource group.
- scope List<String>
- The alert rule resources scope.
- severity String | Severity
- The alert rule severity.
- state
String | Alert
Rule State - The alert rule state.
- alert
Rule StringName - The name of the alert rule.
- description String
- The alert rule description.
- location String
- The resource location.
- Map<String,String>
- The resource tags.
- throttling
Throttling
Information - The alert rule throttling information.
- action
Groups ActionGroups Information - The alert rule actions.
- detector Detector
- The alert rule's detector.
- frequency string
- The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 1 minute, depending on the detector.
- resource
Group stringName - The name of the resource group.
- scope string[]
- The alert rule resources scope.
- severity string | Severity
- The alert rule severity.
- state
string | Alert
Rule State - The alert rule state.
- alert
Rule stringName - The name of the alert rule.
- description string
- The alert rule description.
- location string
- The resource location.
- {[key: string]: string}
- The resource tags.
- throttling
Throttling
Information - The alert rule throttling information.
- action_
groups ActionGroups Information Args - The alert rule actions.
- detector
Detector
Args - The alert rule's detector.
- frequency str
- The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 1 minute, depending on the detector.
- resource_
group_ strname - The name of the resource group.
- scope Sequence[str]
- The alert rule resources scope.
- severity str | Severity
- The alert rule severity.
- state
str | Alert
Rule State - The alert rule state.
- alert_
rule_ strname - The name of the alert rule.
- description str
- The alert rule description.
- location str
- The resource location.
- Mapping[str, str]
- The resource tags.
- throttling
Throttling
Information Args - The alert rule throttling information.
- action
Groups Property Map - The alert rule actions.
- detector Property Map
- The alert rule's detector.
- frequency String
- The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 1 minute, depending on the detector.
- resource
Group StringName - The name of the resource group.
- scope List<String>
- The alert rule resources scope.
- severity String | "Sev0" | "Sev1" | "Sev2" | "Sev3" | "Sev4"
- The alert rule severity.
- state String | "Enabled" | "Disabled"
- The alert rule state.
- alert
Rule StringName - The name of the alert rule.
- description String
- The alert rule description.
- location String
- The resource location.
- Map<String>
- The resource tags.
- throttling Property Map
- The alert rule throttling information.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmartDetectorAlertRule resource produces the following output properties:
Supporting Types
ActionGroupsInformation, ActionGroupsInformationArgs
- Group
Ids List<string> - The Action Group resource IDs.
- Custom
Email stringSubject - An optional custom email subject to use in email notifications.
- Custom
Webhook stringPayload - An optional custom web-hook payload to use in web-hook notifications.
- Group
Ids []string - The Action Group resource IDs.
- Custom
Email stringSubject - An optional custom email subject to use in email notifications.
- Custom
Webhook stringPayload - An optional custom web-hook payload to use in web-hook notifications.
- group
Ids List<String> - The Action Group resource IDs.
- custom
Email StringSubject - An optional custom email subject to use in email notifications.
- custom
Webhook StringPayload - An optional custom web-hook payload to use in web-hook notifications.
- group
Ids string[] - The Action Group resource IDs.
- custom
Email stringSubject - An optional custom email subject to use in email notifications.
- custom
Webhook stringPayload - An optional custom web-hook payload to use in web-hook notifications.
- group_
ids Sequence[str] - The Action Group resource IDs.
- custom_
email_ strsubject - An optional custom email subject to use in email notifications.
- custom_
webhook_ strpayload - An optional custom web-hook payload to use in web-hook notifications.
- group
Ids List<String> - The Action Group resource IDs.
- custom
Email StringSubject - An optional custom email subject to use in email notifications.
- custom
Webhook StringPayload - An optional custom web-hook payload to use in web-hook notifications.
ActionGroupsInformationResponse, ActionGroupsInformationResponseArgs
- Group
Ids List<string> - The Action Group resource IDs.
- Custom
Email stringSubject - An optional custom email subject to use in email notifications.
- Custom
Webhook stringPayload - An optional custom web-hook payload to use in web-hook notifications.
- Group
Ids []string - The Action Group resource IDs.
- Custom
Email stringSubject - An optional custom email subject to use in email notifications.
- Custom
Webhook stringPayload - An optional custom web-hook payload to use in web-hook notifications.
- group
Ids List<String> - The Action Group resource IDs.
- custom
Email StringSubject - An optional custom email subject to use in email notifications.
- custom
Webhook StringPayload - An optional custom web-hook payload to use in web-hook notifications.
- group
Ids string[] - The Action Group resource IDs.
- custom
Email stringSubject - An optional custom email subject to use in email notifications.
- custom
Webhook stringPayload - An optional custom web-hook payload to use in web-hook notifications.
- group_
ids Sequence[str] - The Action Group resource IDs.
- custom_
email_ strsubject - An optional custom email subject to use in email notifications.
- custom_
webhook_ strpayload - An optional custom web-hook payload to use in web-hook notifications.
- group
Ids List<String> - The Action Group resource IDs.
- custom
Email StringSubject - An optional custom email subject to use in email notifications.
- custom
Webhook StringPayload - An optional custom web-hook payload to use in web-hook notifications.
AlertRuleState, AlertRuleStateArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Alert
Rule State Enabled - Enabled
- Alert
Rule State Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
Detector, DetectorArgs
- Id string
- The detector id.
- Parameters Dictionary<string, object>
- The detector's parameters.'
- Id string
- The detector id.
- Parameters map[string]interface{}
- The detector's parameters.'
- id String
- The detector id.
- parameters Map<String,Object>
- The detector's parameters.'
- id string
- The detector id.
- parameters {[key: string]: any}
- The detector's parameters.'
- id str
- The detector id.
- parameters Mapping[str, Any]
- The detector's parameters.'
- id String
- The detector id.
- parameters Map<Any>
- The detector's parameters.'
DetectorParameterDefinitionResponse, DetectorParameterDefinitionResponseArgs
- Description string
- The detector parameter description.
- Display
Name string - The detector parameter display name.
- Is
Mandatory bool - A value indicating whether this detector parameter is mandatory.
- Name string
- The detector parameter name.
- Type string
- The detector parameter type.
- Description string
- The detector parameter description.
- Display
Name string - The detector parameter display name.
- Is
Mandatory bool - A value indicating whether this detector parameter is mandatory.
- Name string
- The detector parameter name.
- Type string
- The detector parameter type.
- description String
- The detector parameter description.
- display
Name String - The detector parameter display name.
- is
Mandatory Boolean - A value indicating whether this detector parameter is mandatory.
- name String
- The detector parameter name.
- type String
- The detector parameter type.
- description string
- The detector parameter description.
- display
Name string - The detector parameter display name.
- is
Mandatory boolean - A value indicating whether this detector parameter is mandatory.
- name string
- The detector parameter name.
- type string
- The detector parameter type.
- description str
- The detector parameter description.
- display_
name str - The detector parameter display name.
- is_
mandatory bool - A value indicating whether this detector parameter is mandatory.
- name str
- The detector parameter name.
- type str
- The detector parameter type.
- description String
- The detector parameter description.
- display
Name String - The detector parameter display name.
- is
Mandatory Boolean - A value indicating whether this detector parameter is mandatory.
- name String
- The detector parameter name.
- type String
- The detector parameter type.
DetectorResponse, DetectorResponseArgs
- Description string
- The Smart Detector description.
- Id string
- The detector id.
- Image
Paths List<string> - The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
- Name string
- The Smart Detector name.
- Parameter
Definitions List<Pulumi.Azure Native. Alerts Management. Inputs. Detector Parameter Definition Response> - The Smart Detector parameters definitions.'
- Supported
Cadences List<int> - The Smart Detector supported cadences.
- Supported
Resource List<string>Types - The Smart Detector supported resource types.
- Parameters Dictionary<string, object>
- The detector's parameters.'
- Description string
- The Smart Detector description.
- Id string
- The detector id.
- Image
Paths []string - The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
- Name string
- The Smart Detector name.
- Parameter
Definitions []DetectorParameter Definition Response - The Smart Detector parameters definitions.'
- Supported
Cadences []int - The Smart Detector supported cadences.
- Supported
Resource []stringTypes - The Smart Detector supported resource types.
- Parameters map[string]interface{}
- The detector's parameters.'
- description String
- The Smart Detector description.
- id String
- The detector id.
- image
Paths List<String> - The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
- name String
- The Smart Detector name.
- parameter
Definitions List<DetectorParameter Definition Response> - The Smart Detector parameters definitions.'
- supported
Cadences List<Integer> - The Smart Detector supported cadences.
- supported
Resource List<String>Types - The Smart Detector supported resource types.
- parameters Map<String,Object>
- The detector's parameters.'
- description string
- The Smart Detector description.
- id string
- The detector id.
- image
Paths string[] - The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
- name string
- The Smart Detector name.
- parameter
Definitions DetectorParameter Definition Response[] - The Smart Detector parameters definitions.'
- supported
Cadences number[] - The Smart Detector supported cadences.
- supported
Resource string[]Types - The Smart Detector supported resource types.
- parameters {[key: string]: any}
- The detector's parameters.'
- description str
- The Smart Detector description.
- id str
- The detector id.
- image_
paths Sequence[str] - The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
- name str
- The Smart Detector name.
- parameter_
definitions Sequence[DetectorParameter Definition Response] - The Smart Detector parameters definitions.'
- supported_
cadences Sequence[int] - The Smart Detector supported cadences.
- supported_
resource_ Sequence[str]types - The Smart Detector supported resource types.
- parameters Mapping[str, Any]
- The detector's parameters.'
- description String
- The Smart Detector description.
- id String
- The detector id.
- image
Paths List<String> - The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
- name String
- The Smart Detector name.
- parameter
Definitions List<Property Map> - The Smart Detector parameters definitions.'
- supported
Cadences List<Number> - The Smart Detector supported cadences.
- supported
Resource List<String>Types - The Smart Detector supported resource types.
- parameters Map<Any>
- The detector's parameters.'
Severity, SeverityArgs
- Sev0
- Sev0
- Sev1
- Sev1
- Sev2
- Sev2
- Sev3
- Sev3
- Sev4
- Sev4
- Severity
Sev0 - Sev0
- Severity
Sev1 - Sev1
- Severity
Sev2 - Sev2
- Severity
Sev3 - Sev3
- Severity
Sev4 - Sev4
- Sev0
- Sev0
- Sev1
- Sev1
- Sev2
- Sev2
- Sev3
- Sev3
- Sev4
- Sev4
- Sev0
- Sev0
- Sev1
- Sev1
- Sev2
- Sev2
- Sev3
- Sev3
- Sev4
- Sev4
- SEV0
- Sev0
- SEV1
- Sev1
- SEV2
- Sev2
- SEV3
- Sev3
- SEV4
- Sev4
- "Sev0"
- Sev0
- "Sev1"
- Sev1
- "Sev2"
- Sev2
- "Sev3"
- Sev3
- "Sev4"
- Sev4
ThrottlingInformation, ThrottlingInformationArgs
- Duration string
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
- Duration string
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
- duration String
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
- duration string
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
- duration str
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
- duration String
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
ThrottlingInformationResponse, ThrottlingInformationResponseArgs
- Duration string
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
- Duration string
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
- duration String
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
- duration string
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
- duration str
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
- duration String
- The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:alertsmanagement:SmartDetectorAlertRule MyAlertRule /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0