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: sdk/metricsadvisor/Azure.AI.MetricsAdvisor/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@
5
5
### Breaking Changes
6
6
- In `MetricsAdvisorClient`, changed return types of sync and async methods `GetIncidentRootCauses`, `GetMetricEnrichedSeriesData`, and `GetMetricSeriesData` to pageables.
7
7
- In `MetricsAdvisorAdministrationClient`, changed return types of sync and async methods `GetAnomalyAlertConfigurations` and `GetMetricAnomalyDetectionConfigurations` to pageables.
8
+
- In `MetricsAdvisorAdministrationClient`, renamed parameter `alertConfigurationId` to `detectionConfigurationId` in sync and async `GetAnomalyAlertConfigurations` methods.
9
+
- In `MetricEnrichedSeriesData`, made elements of `ExpectedValues`, `Periods`, `IsAnomaly`, `LowerBoundaries` and `UpperBoundaries` nullables.
Copy file name to clipboardExpand all lines: sdk/metricsadvisor/Azure.AI.MetricsAdvisor/README.md
+80-43Lines changed: 80 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,7 @@ The following section provides several code snippets illustrating common pattern
154
154
155
155
Metrics Advisor supports multiple types of data sources. In this sample we'll illustrate how to create a [`DataFeed`](#data-feed) that extracts data from a SQL server.
// Only the ID of the data feed is known at this point. You can perform another service
191
-
// call to get more information, such as status, created time, the list of administrators,
192
-
// or the metric IDs.
191
+
Note that only the ID of the data feed is known at this point. You can performa another service call to `GetDataFeedAsync` or `GetDataFeed` to get more information, such as status, created time, the list of administrators, or the metric IDs.
Metrics Advisor supports the [`EmailHook` and `WebHook`](#alerting-hook) classes as means of subscribing to [alerts](#anomaly-alert) notifications. In this example we'll illustrate how to create an `EmailHook`. Note that you need to pass the hook to an anomaly alert configuration to start getting notifications. See the sample [Create an anomaly alert configuration](#create-an-anomaly-alert-configuration) below for more information.
281
286
282
-
```C# Snippet:CreateHookForReceivingAnomalyAlerts
287
+
```C# Snippet:CreateHookAsync
283
288
stringhookName="Sample hook";
284
289
varemailsToAlert=newList<string>()
285
290
{
@@ -289,7 +294,7 @@ var emailsToAlert = new List<string>()
Look through the [alerts](#anomaly-alert) created by a given anomaly alert configuration, and list the [anomalies](#data-anomaly) that triggered these alerts.
332
+
Look through the [alerts](#anomaly-alert) created by a given anomaly alert configuration.
@@ -422,12 +451,16 @@ To learn more about other logging mechanisms see [Diagnostics Samples][logging].
422
451
423
452
Samples showing how to use the Cognitive Services Metrics Advisor library are available in this GitHub repository. Samples are provided for each main functional area:
424
453
425
-
-[Create a data feed from a data source][metricsadv-sample1]
426
-
-[Check the ingestion status of a data feed][metricsadv-sample2]
427
-
-[Create an anomaly detection configuration][metricsadv-sample3]
428
-
-[Create a hook for receiving anomaly alerts][metricsadv-sample4]
429
-
-[Create an anomaly alert configuration][metricsadv-sample5]
430
-
-[Query detected anomalies and triggered alerts][metricsadv-sample6]
0 commit comments