@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Azure Alerts Management Service Resource Provider
@base https://management.azure.com
@version 2019-06-01
@auth OAuth2
@common_fields {subscriptionId: any # The ID of the target subscription., api-version: any # Client Api Version.}
@endpoints 6
@toc subscriptions(6)

@endpoint GET /subscriptions/{subscriptionId}/providers/microsoft.alertsManagement/smartDetectorAlertRules
@desc List all the existing Smart Detector alert rules within the subscription.
@optional {expandDetector: any # Indicates if Smart Detector should be expanded.}
@returns(200) Successful request to list Smart Detector alert rules.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules
@desc List all the existing Smart Detector alert rules within the subscription and resource group.
@required {resourceGroupName: any # The name of the resource group.}
@optional {expandDetector: any # Indicates if Smart Detector should be expanded.}
@returns(200) Successful request to list Smart Detector alert rules.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}
@desc Get a specific Smart Detector alert rule.
@required {resourceGroupName: any # The name of the resource group., alertRuleName: any # The name of the alert rule.}
@optional {expandDetector: any # Indicates if Smart Detector should be expanded.}
@returns(200) Successful request to get Smart Detector alert rule.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}
@desc Create or update a Smart Detector alert rule.
@required {resourceGroupName: any # The name of the resource group., alertRuleName: any # The name of the alert rule., parameters: any # Parameters supplied to the operation.}
@returns(200) Successful request to update a Smart Detector alert rule.
@returns(201) Successful request to create a Smart Detector alert rule.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}
@desc Patch a specific Smart Detector alert rule.
@required {resourceGroupName: any # The name of the resource group., alertRuleName: any # The name of the alert rule., parameters: any # Parameters supplied to the operation.}
@returns(200) Successful request to patch Smart Detector alert rule.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}
@desc Delete an existing Smart Detector alert rule.
@required {resourceGroupName: any # The name of the resource group., alertRuleName: any # The name of the alert rule.}
@returns(200) Successful request to delete a Smart Detector alert rule.
@returns(204) The Smart Detector alert rule does not exist. It may have already been deleted.

@end
