@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api MonitorManagementClient
@base https://management.azure.com
@version 2016-03-01
@auth OAuth2
@endpoints 6
@toc subscriptions(6)

@endpoint PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
@desc Creates or updates a classic metric alert rule.
@required {ruleName: any # The name of the rule., parameters: map # The parameters of the rule to create or update.}
@returns(200) Successful request to update an alert rule
@returns(201) Created alert rule

@endpoint DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
@desc Deletes a classic metric alert rule
@required {ruleName: any # The name of the rule.}
@returns(200) Successful request to delete an alert rule
@returns(204) No content: the request was successful, but the response is empty

@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
@desc Gets a classic metric alert rule
@required {ruleName: any # The name of the rule.}
@returns(200) Successful request to get an alert rule

@endpoint PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
@desc Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.
@required {ruleName: any # The name of the rule., alertRulesResource: any # Parameters supplied to the operation.}
@returns(200) Successful request to update an alert rule
@returns(201) Successful request to update an alert rule that resulted in a creation of the alert rule

@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules
@desc List the classic metric alert rules within a resource group.
@returns(200) Successful request for a list of alert rules

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules
@desc List the classic metric alert rules within a subscription.
@returns(200) Successful request for a list of alert rules

@end
