1. Packages
  2. Azure Native
  3. API Docs
  4. alertsmanagement
  5. getSmartDetectorAlertRule
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.alertsmanagement.getSmartDetectorAlertRule

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Get a specific Smart Detector alert rule.

Uses Azure REST API version 2021-04-01.

Other available API versions: 2019-06-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native alertsmanagement [ApiVersion]. See the version guide for details.

Using getSmartDetectorAlertRule

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSmartDetectorAlertRule(args: GetSmartDetectorAlertRuleArgs, opts?: InvokeOptions): Promise<GetSmartDetectorAlertRuleResult>
function getSmartDetectorAlertRuleOutput(args: GetSmartDetectorAlertRuleOutputArgs, opts?: InvokeOptions): Output<GetSmartDetectorAlertRuleResult>
Copy
def get_smart_detector_alert_rule(alert_rule_name: Optional[str] = None,
                                  expand_detector: Optional[bool] = None,
                                  resource_group_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetSmartDetectorAlertRuleResult
def get_smart_detector_alert_rule_output(alert_rule_name: Optional[pulumi.Input[str]] = None,
                                  expand_detector: Optional[pulumi.Input[bool]] = None,
                                  resource_group_name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetSmartDetectorAlertRuleResult]
Copy
func LookupSmartDetectorAlertRule(ctx *Context, args *LookupSmartDetectorAlertRuleArgs, opts ...InvokeOption) (*LookupSmartDetectorAlertRuleResult, error)
func LookupSmartDetectorAlertRuleOutput(ctx *Context, args *LookupSmartDetectorAlertRuleOutputArgs, opts ...InvokeOption) LookupSmartDetectorAlertRuleResultOutput
Copy

> Note: This function is named LookupSmartDetectorAlertRule in the Go SDK.

public static class GetSmartDetectorAlertRule 
{
    public static Task<GetSmartDetectorAlertRuleResult> InvokeAsync(GetSmartDetectorAlertRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetSmartDetectorAlertRuleResult> Invoke(GetSmartDetectorAlertRuleInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSmartDetectorAlertRuleResult> getSmartDetectorAlertRule(GetSmartDetectorAlertRuleArgs args, InvokeOptions options)
public static Output<GetSmartDetectorAlertRuleResult> getSmartDetectorAlertRule(GetSmartDetectorAlertRuleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:alertsmanagement:getSmartDetectorAlertRule
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AlertRuleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the alert rule.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ExpandDetector bool
Indicates if Smart Detector should be expanded.
AlertRuleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the alert rule.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ExpandDetector bool
Indicates if Smart Detector should be expanded.
alertRuleName
This property is required.
Changes to this property will trigger replacement.
String
The name of the alert rule.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
expandDetector Boolean
Indicates if Smart Detector should be expanded.
alertRuleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the alert rule.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
expandDetector boolean
Indicates if Smart Detector should be expanded.
alert_rule_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the alert rule.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
expand_detector bool
Indicates if Smart Detector should be expanded.
alertRuleName
This property is required.
Changes to this property will trigger replacement.
String
The name of the alert rule.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
expandDetector Boolean
Indicates if Smart Detector should be expanded.

getSmartDetectorAlertRule Result

The following output properties are available:

ActionGroups Pulumi.AzureNative.AlertsManagement.Outputs.ActionGroupsInformationResponse
The alert rule actions.
AzureApiVersion string
The Azure API version of the resource.
Detector Pulumi.AzureNative.AlertsManagement.Outputs.DetectorResponse
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.
Id string
The resource ID.
Name string
The resource name.
Scope List<string>
The alert rule resources scope.
Severity string
The alert rule severity.
State string
The alert rule state.
Type string
The resource type.
Description string
The alert rule description.
Location string
The resource location.
Tags Dictionary<string, string>
The resource tags.
Throttling Pulumi.AzureNative.AlertsManagement.Outputs.ThrottlingInformationResponse
The alert rule throttling information.
ActionGroups ActionGroupsInformationResponse
The alert rule actions.
AzureApiVersion string
The Azure API version of the resource.
Detector DetectorResponse
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.
Id string
The resource ID.
Name string
The resource name.
Scope []string
The alert rule resources scope.
Severity string
The alert rule severity.
State string
The alert rule state.
Type string
The resource type.
Description string
The alert rule description.
Location string
The resource location.
Tags map[string]string
The resource tags.
Throttling ThrottlingInformationResponse
The alert rule throttling information.
actionGroups ActionGroupsInformationResponse
The alert rule actions.
azureApiVersion String
The Azure API version of the resource.
detector DetectorResponse
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.
id String
The resource ID.
name String
The resource name.
scope List<String>
The alert rule resources scope.
severity String
The alert rule severity.
state String
The alert rule state.
type String
The resource type.
description String
The alert rule description.
location String
The resource location.
tags Map<String,String>
The resource tags.
throttling ThrottlingInformationResponse
The alert rule throttling information.
actionGroups ActionGroupsInformationResponse
The alert rule actions.
azureApiVersion string
The Azure API version of the resource.
detector DetectorResponse
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.
id string
The resource ID.
name string
The resource name.
scope string[]
The alert rule resources scope.
severity string
The alert rule severity.
state string
The alert rule state.
type string
The resource type.
description string
The alert rule description.
location string
The resource location.
tags {[key: string]: string}
The resource tags.
throttling ThrottlingInformationResponse
The alert rule throttling information.
action_groups ActionGroupsInformationResponse
The alert rule actions.
azure_api_version str
The Azure API version of the resource.
detector DetectorResponse
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.
id str
The resource ID.
name str
The resource name.
scope Sequence[str]
The alert rule resources scope.
severity str
The alert rule severity.
state str
The alert rule state.
type str
The resource type.
description str
The alert rule description.
location str
The resource location.
tags Mapping[str, str]
The resource tags.
throttling ThrottlingInformationResponse
The alert rule throttling information.
actionGroups Property Map
The alert rule actions.
azureApiVersion String
The Azure API version of the resource.
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.
id String
The resource ID.
name String
The resource name.
scope List<String>
The alert rule resources scope.
severity String
The alert rule severity.
state String
The alert rule state.
type String
The resource type.
description String
The alert rule description.
location String
The resource location.
tags Map<String>
The resource tags.
throttling Property Map
The alert rule throttling information.

Supporting Types

ActionGroupsInformationResponse

GroupIds This property is required. List<string>
The Action Group resource IDs.
CustomEmailSubject string
An optional custom email subject to use in email notifications.
CustomWebhookPayload string
An optional custom web-hook payload to use in web-hook notifications.
GroupIds This property is required. []string
The Action Group resource IDs.
CustomEmailSubject string
An optional custom email subject to use in email notifications.
CustomWebhookPayload string
An optional custom web-hook payload to use in web-hook notifications.
groupIds This property is required. List<String>
The Action Group resource IDs.
customEmailSubject String
An optional custom email subject to use in email notifications.
customWebhookPayload String
An optional custom web-hook payload to use in web-hook notifications.
groupIds This property is required. string[]
The Action Group resource IDs.
customEmailSubject string
An optional custom email subject to use in email notifications.
customWebhookPayload string
An optional custom web-hook payload to use in web-hook notifications.
group_ids This property is required. Sequence[str]
The Action Group resource IDs.
custom_email_subject str
An optional custom email subject to use in email notifications.
custom_webhook_payload str
An optional custom web-hook payload to use in web-hook notifications.
groupIds This property is required. List<String>
The Action Group resource IDs.
customEmailSubject String
An optional custom email subject to use in email notifications.
customWebhookPayload String
An optional custom web-hook payload to use in web-hook notifications.

DetectorParameterDefinitionResponse

Description string
The detector parameter description.
DisplayName string
The detector parameter display name.
IsMandatory 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.
DisplayName string
The detector parameter display name.
IsMandatory 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.
displayName String
The detector parameter display name.
isMandatory 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.
displayName string
The detector parameter display name.
isMandatory 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.
displayName String
The detector parameter display name.
isMandatory Boolean
A value indicating whether this detector parameter is mandatory.
name String
The detector parameter name.
type String
The detector parameter type.

DetectorResponse

Description This property is required. string
The Smart Detector description.
Id This property is required. string
The detector id.
ImagePaths This property is required. List<string>
The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
Name This property is required. string
The Smart Detector name.
ParameterDefinitions This property is required. List<Pulumi.AzureNative.AlertsManagement.Inputs.DetectorParameterDefinitionResponse>
The Smart Detector parameters definitions.'
SupportedCadences This property is required. List<int>
The Smart Detector supported cadences.
SupportedResourceTypes This property is required. List<string>
The Smart Detector supported resource types.
Parameters Dictionary<string, object>
The detector's parameters.'
Description This property is required. string
The Smart Detector description.
Id This property is required. string
The detector id.
ImagePaths This property is required. []string
The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
Name This property is required. string
The Smart Detector name.
ParameterDefinitions This property is required. []DetectorParameterDefinitionResponse
The Smart Detector parameters definitions.'
SupportedCadences This property is required. []int
The Smart Detector supported cadences.
SupportedResourceTypes This property is required. []string
The Smart Detector supported resource types.
Parameters map[string]interface{}
The detector's parameters.'
description This property is required. String
The Smart Detector description.
id This property is required. String
The detector id.
imagePaths This property is required. List<String>
The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
name This property is required. String
The Smart Detector name.
parameterDefinitions This property is required. List<DetectorParameterDefinitionResponse>
The Smart Detector parameters definitions.'
supportedCadences This property is required. List<Integer>
The Smart Detector supported cadences.
supportedResourceTypes This property is required. List<String>
The Smart Detector supported resource types.
parameters Map<String,Object>
The detector's parameters.'
description This property is required. string
The Smart Detector description.
id This property is required. string
The detector id.
imagePaths This property is required. string[]
The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
name This property is required. string
The Smart Detector name.
parameterDefinitions This property is required. DetectorParameterDefinitionResponse[]
The Smart Detector parameters definitions.'
supportedCadences This property is required. number[]
The Smart Detector supported cadences.
supportedResourceTypes This property is required. string[]
The Smart Detector supported resource types.
parameters {[key: string]: any}
The detector's parameters.'
description This property is required. str
The Smart Detector description.
id This property is required. str
The detector id.
image_paths This property is required. Sequence[str]
The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
name This property is required. str
The Smart Detector name.
parameter_definitions This property is required. Sequence[DetectorParameterDefinitionResponse]
The Smart Detector parameters definitions.'
supported_cadences This property is required. Sequence[int]
The Smart Detector supported cadences.
supported_resource_types This property is required. Sequence[str]
The Smart Detector supported resource types.
parameters Mapping[str, Any]
The detector's parameters.'
description This property is required. String
The Smart Detector description.
id This property is required. String
The detector id.
imagePaths This property is required. List<String>
The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
name This property is required. String
The Smart Detector name.
parameterDefinitions This property is required. List<Property Map>
The Smart Detector parameters definitions.'
supportedCadences This property is required. List<Number>
The Smart Detector supported cadences.
supportedResourceTypes This property is required. List<String>
The Smart Detector supported resource types.
parameters Map<Any>
The detector's parameters.'

ThrottlingInformationResponse

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

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi