@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Microsoft Insights API
@base https://management.azure.com
@version 2018-04-16
@auth OAuth2
@endpoints 6
@toc subscriptions(6)

@endpoint PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}
@desc Creates or updates an log search 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 Log Search rule
@returns(201) Created alert rule

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

@endpoint PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}
@desc Update log search Rule.
@required {ruleName: any # The name of the rule., parameters: map # The parameters of the rule to update.}
@returns(200) Successful request to update an Log Search rule

@endpoint DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}
@desc Deletes a Log Search rule
@required {ruleName: any # The name of the rule.}
@returns(200) Successful request to delete a  Log Search rule
@returns(204) No Content. Resource not found

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules
@desc List the Log Search rules within a subscription group.
@optional {$filter: any # The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx}
@returns(200) Successful request for a list of alert rules

@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules
@desc List the Log Search rules within a resource group.
@optional {$filter: any # The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx}
@returns(200) Successful request for a list of alert rules

@end
