This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.workloads.getAlert
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets properties of an alert for the specified subscription, resource group, SAP monitor name, and resource name. Azure REST API version: 2024-02-01-preview.
Using getAlert
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 getAlert(args: GetAlertArgs, opts?: InvokeOptions): Promise<GetAlertResult>
function getAlertOutput(args: GetAlertOutputArgs, opts?: InvokeOptions): Output<GetAlertResult>def get_alert(alert_name: Optional[str] = None,
              monitor_name: Optional[str] = None,
              resource_group_name: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetAlertResult
def get_alert_output(alert_name: Optional[pulumi.Input[str]] = None,
              monitor_name: Optional[pulumi.Input[str]] = None,
              resource_group_name: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetAlertResult]func LookupAlert(ctx *Context, args *LookupAlertArgs, opts ...InvokeOption) (*LookupAlertResult, error)
func LookupAlertOutput(ctx *Context, args *LookupAlertOutputArgs, opts ...InvokeOption) LookupAlertResultOutput> Note: This function is named LookupAlert in the Go SDK.
public static class GetAlert 
{
    public static Task<GetAlertResult> InvokeAsync(GetAlertArgs args, InvokeOptions? opts = null)
    public static Output<GetAlertResult> Invoke(GetAlertInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAlertResult> getAlert(GetAlertArgs args, InvokeOptions options)
public static Output<GetAlertResult> getAlert(GetAlertArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:workloads:getAlert
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AlertName string
- Name of the SAP monitor alert resource.
- MonitorName string
- Name of the SAP monitor resource.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- AlertName string
- Name of the SAP monitor alert resource.
- MonitorName string
- Name of the SAP monitor resource.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- alertName String
- Name of the SAP monitor alert resource.
- monitorName String
- Name of the SAP monitor resource.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- alertName string
- Name of the SAP monitor alert resource.
- monitorName string
- Name of the SAP monitor resource.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- alert_name str
- Name of the SAP monitor alert resource.
- monitor_name str
- Name of the SAP monitor resource.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- alertName String
- Name of the SAP monitor alert resource.
- monitorName String
- Name of the SAP monitor resource.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
getAlert Result
The following output properties are available:
- AlertRule stringResource Id 
- ID of the alert rule resource created.
- Errors
Pulumi.Azure Native. Workloads. Outputs. Error Detail Response 
- Defines the alert instance errors.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- ProvisioningState string
- State of provisioning of the alert instance
- SystemData Pulumi.Azure Native. Workloads. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- AlertRule Pulumi.Properties Azure Native. Workloads. Outputs. Alert Rule Properties Response 
- Describes the properties of an alert.
- ProviderNames List<string>
- Name of provider instances associated with the alert.
- ProviderType string
- The provider type for alert. For example, the value can be SapHana.
- TemplateName string
- Name of the alert template from which it was created.
- AlertRule stringResource Id 
- ID of the alert rule resource created.
- Errors
ErrorDetail Response 
- Defines the alert instance errors.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- ProvisioningState string
- State of provisioning of the alert instance
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- AlertRule AlertProperties Rule Properties Response 
- Describes the properties of an alert.
- ProviderNames []string
- Name of provider instances associated with the alert.
- ProviderType string
- The provider type for alert. For example, the value can be SapHana.
- TemplateName string
- Name of the alert template from which it was created.
- alertRule StringResource Id 
- ID of the alert rule resource created.
- errors
ErrorDetail Response 
- Defines the alert instance errors.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- provisioningState String
- State of provisioning of the alert instance
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- alertRule AlertProperties Rule Properties Response 
- Describes the properties of an alert.
- providerNames List<String>
- Name of provider instances associated with the alert.
- providerType String
- The provider type for alert. For example, the value can be SapHana.
- templateName String
- Name of the alert template from which it was created.
- alertRule stringResource Id 
- ID of the alert rule resource created.
- errors
ErrorDetail Response 
- Defines the alert instance errors.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- provisioningState string
- State of provisioning of the alert instance
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- alertRule AlertProperties Rule Properties Response 
- Describes the properties of an alert.
- providerNames string[]
- Name of provider instances associated with the alert.
- providerType string
- The provider type for alert. For example, the value can be SapHana.
- templateName string
- Name of the alert template from which it was created.
- alert_rule_ strresource_ id 
- ID of the alert rule resource created.
- errors
ErrorDetail Response 
- Defines the alert instance errors.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name str
- The name of the resource
- provisioning_state str
- State of provisioning of the alert instance
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- alert_rule_ Alertproperties Rule Properties Response 
- Describes the properties of an alert.
- provider_names Sequence[str]
- Name of provider instances associated with the alert.
- provider_type str
- The provider type for alert. For example, the value can be SapHana.
- template_name str
- Name of the alert template from which it was created.
- alertRule StringResource Id 
- ID of the alert rule resource created.
- errors Property Map
- Defines the alert instance errors.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- provisioningState String
- State of provisioning of the alert instance
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- alertRule Property MapProperties 
- Describes the properties of an alert.
- providerNames List<String>
- Name of provider instances associated with the alert.
- providerType String
- The provider type for alert. For example, the value can be SapHana.
- templateName String
- Name of the alert template from which it was created.
Supporting Types
AlertQueryParameterResponse   
AlertRulePropertiesResponse   
- ActionGroups List<string>
- Action Group resource Ids to invoke when the alert fires
- AlertQuery List<Pulumi.Parameters Azure Native. Workloads. Inputs. Alert Query Parameter Response> 
- The alert query parameters.
- AutoMitigate string
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- Dimension string
- Evaluation of metric on a particular column.
- EvaluationFrequency int
- How often the scheduled query rule is evaluated.
- FailingPeriods stringOperator 
- The operator for failing periods.
- FailingPeriods intTo Alert 
- The number of failing periods to trigger an alert.
- MuteActions intDuration 
- Mute actions for the chosen period of time after the alert is fired.
- Severity int
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- Status string
- Indicates whether the alert is in an enabled state.
- Threshold int
- The threshold of the alert.
- ThresholdOperator string
- The threshold operator of the alert.
- WindowSize int
- The period of time on which the Alert query will be executed.
- ActionGroups []string
- Action Group resource Ids to invoke when the alert fires
- AlertQuery []AlertParameters Query Parameter Response 
- The alert query parameters.
- AutoMitigate string
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- Dimension string
- Evaluation of metric on a particular column.
- EvaluationFrequency int
- How often the scheduled query rule is evaluated.
- FailingPeriods stringOperator 
- The operator for failing periods.
- FailingPeriods intTo Alert 
- The number of failing periods to trigger an alert.
- MuteActions intDuration 
- Mute actions for the chosen period of time after the alert is fired.
- Severity int
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- Status string
- Indicates whether the alert is in an enabled state.
- Threshold int
- The threshold of the alert.
- ThresholdOperator string
- The threshold operator of the alert.
- WindowSize int
- The period of time on which the Alert query will be executed.
- actionGroups List<String>
- Action Group resource Ids to invoke when the alert fires
- alertQuery List<AlertParameters Query Parameter Response> 
- The alert query parameters.
- autoMitigate String
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension String
- Evaluation of metric on a particular column.
- evaluationFrequency Integer
- How often the scheduled query rule is evaluated.
- failingPeriods StringOperator 
- The operator for failing periods.
- failingPeriods IntegerTo Alert 
- The number of failing periods to trigger an alert.
- muteActions IntegerDuration 
- Mute actions for the chosen period of time after the alert is fired.
- severity Integer
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status String
- Indicates whether the alert is in an enabled state.
- threshold Integer
- The threshold of the alert.
- thresholdOperator String
- The threshold operator of the alert.
- windowSize Integer
- The period of time on which the Alert query will be executed.
- actionGroups string[]
- Action Group resource Ids to invoke when the alert fires
- alertQuery AlertParameters Query Parameter Response[] 
- The alert query parameters.
- autoMitigate string
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension string
- Evaluation of metric on a particular column.
- evaluationFrequency number
- How often the scheduled query rule is evaluated.
- failingPeriods stringOperator 
- The operator for failing periods.
- failingPeriods numberTo Alert 
- The number of failing periods to trigger an alert.
- muteActions numberDuration 
- Mute actions for the chosen period of time after the alert is fired.
- severity number
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status string
- Indicates whether the alert is in an enabled state.
- threshold number
- The threshold of the alert.
- thresholdOperator string
- The threshold operator of the alert.
- windowSize number
- The period of time on which the Alert query will be executed.
- action_groups Sequence[str]
- Action Group resource Ids to invoke when the alert fires
- alert_query_ Sequence[Alertparameters Query Parameter Response] 
- The alert query parameters.
- auto_mitigate str
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension str
- Evaluation of metric on a particular column.
- evaluation_frequency int
- How often the scheduled query rule is evaluated.
- failing_periods_ stroperator 
- The operator for failing periods.
- failing_periods_ intto_ alert 
- The number of failing periods to trigger an alert.
- mute_actions_ intduration 
- Mute actions for the chosen period of time after the alert is fired.
- severity int
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status str
- Indicates whether the alert is in an enabled state.
- threshold int
- The threshold of the alert.
- threshold_operator str
- The threshold operator of the alert.
- window_size int
- The period of time on which the Alert query will be executed.
- actionGroups List<String>
- Action Group resource Ids to invoke when the alert fires
- alertQuery List<Property Map>Parameters 
- The alert query parameters.
- autoMitigate String
- The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
- dimension String
- Evaluation of metric on a particular column.
- evaluationFrequency Number
- How often the scheduled query rule is evaluated.
- failingPeriods StringOperator 
- The operator for failing periods.
- failingPeriods NumberTo Alert 
- The number of failing periods to trigger an alert.
- muteActions NumberDuration 
- Mute actions for the chosen period of time after the alert is fired.
- severity Number
- Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
- status String
- Indicates whether the alert is in an enabled state.
- threshold Number
- The threshold of the alert.
- thresholdOperator String
- The threshold operator of the alert.
- windowSize Number
- The period of time on which the Alert query will be executed.
ErrorAdditionalInfoResponse   
ErrorDetailResponse  
- AdditionalInfo List<Pulumi.Azure Native. Workloads. Inputs. Error Additional Info Response> 
- The error additional info.
- Code string
- The error code.
- Details
List<Pulumi.Azure Native. Workloads. Inputs. Error Detail Response> 
- The error details.
- Message string
- The error message.
- Target string
- The error target.
- AdditionalInfo []ErrorAdditional Info Response 
- The error additional info.
- Code string
- The error code.
- Details
[]ErrorDetail Response 
- The error details.
- Message string
- The error message.
- Target string
- The error target.
- additionalInfo List<ErrorAdditional Info Response> 
- The error additional info.
- code String
- The error code.
- details
List<ErrorDetail Response> 
- The error details.
- message String
- The error message.
- target String
- The error target.
- additionalInfo ErrorAdditional Info Response[] 
- The error additional info.
- code string
- The error code.
- details
ErrorDetail Response[] 
- The error details.
- message string
- The error message.
- target string
- The error target.
- additional_info Sequence[ErrorAdditional Info Response] 
- The error additional info.
- code str
- The error code.
- details
Sequence[ErrorDetail Response] 
- The error details.
- message str
- The error message.
- target str
- The error target.
- additionalInfo List<Property Map>
- The error additional info.
- code String
- The error code.
- details List<Property Map>
- The error details.
- message String
- The error message.
- target String
- The error target.
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
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 v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi