@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Azure Activity Log Alerts API
@base https://management.azure.com
@version 2017-04-01
@auth OAuth2
@endpoints 6
@toc subscriptions(6)

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}
@desc Create a new activity log alert or update an existing one.
@required {activityLogAlertName: any # The name of the activity log alert., activityLogAlert: any # The activity log alert to create or use for the update.}
@returns(200) An existing activity log alert was successfully updated.
@returns(201) A new activity log alert was successfully created.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}
@desc Get an activity log alert.
@required {activityLogAlertName: any # The name of the activity log alert.}
@returns(200) The request succeeded.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}
@desc Delete an activity log alert.
@required {activityLogAlertName: any # The name of the activity log alert.}
@returns(200) The activity log alert was successfully deleted.
@returns(204) The activity log alert does not exist. It may have already been deleted.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}
@desc Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.
@required {activityLogAlertName: any # The name of the activity log alert., activityLogAlertPatch: any # Parameters supplied to the operation.}
@returns(200) An existing activity log alert was successfully updated.

@endpoint GET /subscriptions/{subscriptionId}/providers/microsoft.insights/activityLogAlerts
@desc Get a list of all activity log alerts in a subscription.
@returns(200) The request succeeded.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts
@desc Get a list of all activity log alerts in a resource group.
@returns(200) The request succeeded.

@end
