You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: articles/log-analytics/log-analytics-api-alerts.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
---
1
+
---
2
2
title: Log Analytics Alert REST API
3
3
description: The Log Analytics Alert REST API allows you to create and manage alerts in Operations Management Suite (OMS). This article provides details of the API and several examples for performing different operations.
4
4
services: log-analytics
@@ -13,7 +13,7 @@ ms.devlang: na
13
13
ms.topic: article
14
14
ms.tgt_pltfrm: na
15
15
ms.workload: infrastructure-services
16
-
ms.date: 10/18/2016
16
+
ms.date: 11/18/2016
17
17
ms.author: bwren
18
18
19
19
---
@@ -59,13 +59,13 @@ Following is a sample response for a schedule.
59
59
### Creating a schedule
60
60
Use the Put method with a unique schedule ID to create a new schedule. Note that two schedules cannot have the same ID even if they are associated with different saved searches. When you create a schedule in the OMS console, a GUID is created for the schedule ID.
armclient put /subscriptions/{Subscription ID}/resourceGroups/OI-Default-East-US/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/mynewschedule?api-version=2015-03-20 $scheduleJson
64
64
65
65
### Editing a schedule
66
66
Use the Put method with an existing schedule ID for the same saved search to modify that schedule. The body of the request must include the etag of the schedule.
armclient put /subscriptions/{Subscription ID}/resourceGroups/OI-Default-East-US/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/mynewschedule?api-version=2015-03-20 $scheduleJson
70
70
71
71
@@ -184,12 +184,12 @@ Following is a sample response for an email notification action with a threshold
184
184
Use the Put method with a unique action ID to create a new e-mail action for a schedule. The following example creates an email notification with a threshold so the mail is sent when the results of the saved search exceed the threshold.
armclient put /subscriptions/{Subscription ID}/resourceGroups/OI-Default-East-US/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/myemailaction?api-version=2015-03-20 $emailJson
192
+
armclient put /subscriptions/{Subscription ID}/resourceGroups/OI-Default-East-US/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/myemailaction?api-version=2015-03-20 $emailJson
193
193
194
194
#### Remediation actions
195
195
Remediations start a runbook in Azure Automation that attempts to correct the problem identified by the alert. You must create a webhook for the runbook used in a remediation action and then specify the URI in the WebhookUri property. When you create this action using the OMS console, a new webhook is automatically created for the runbook.
0 commit comments