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
title: Next steps for Anomaly Detector quickstarts
3
+
titleSuffix: Azure Cognitive Services
4
+
services: cognitive-services
5
+
author: aahill
6
+
manager: nitinme
7
+
ms.service: cognitive-services
8
+
ms.topic: include
9
+
ms.date: 11/19/2019
10
+
ms.author: aahi
11
+
---
12
+
13
+
## Clean up resources
14
+
15
+
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with the resource group.
[Library reference documentation](https://docs.microsoft.com/dotnet/api/Microsoft.Azure.CognitiveServices.AnomalyDetector?view=azure-dotnet-preview) | [Library source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/cognitiveservices/AnomalyDetector) | [Package (NuGet)](https://www.nuget.org/packages/Microsoft.Azure.CognitiveServices.AnomalyDetector/) | [Find the code on GitHub](https://github.com/Azure-Samples/AnomalyDetector/blob/master/quickstarts/sdk/csharp-sdk-sample.cs)
25
25
26
26
## Prerequisites
27
27
28
28
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/)
29
29
* The current version of [.NET Core](https://dotnet.microsoft.com/download/dotnet-core)
30
+
* An Anomaly detector key and endpoint
30
31
31
32
## Setting up
32
33
@@ -132,18 +133,4 @@ Run the application with the `dotnet run` command from your application director
132
133
dotnet run
133
134
```
134
135
135
-
## Clean up resources
136
-
137
-
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with the resource group.
>[Streaming anomaly detection with Azure Databricks](../tutorials/anomaly-detection-streaming-databricks.md)
146
-
147
-
* What is the [Anomaly Detector API?](../overview.md)
148
-
*[Best practices](../concepts/anomaly-detection-best-practices.md) when using the Anomaly Detector API.
149
-
* The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/AnomalyDetector/blob/master/quickstarts/sdk/csharp-sdk-sample.cs).
Copy file name to clipboardExpand all lines: articles/cognitive-services/Anomaly-Detector/quickstarts/detect-data-anomalies-csharp.md
+14-21Lines changed: 14 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,25 +8,25 @@ manager: nitinme
8
8
ms.service: cognitive-services
9
9
ms.subservice: anomaly-detector
10
10
ms.topic: quickstart
11
-
ms.date: 10/14/2019
11
+
ms.date: 11/19/2019
12
12
ms.author: aahi
13
13
---
14
14
15
15
# Quickstart: Detect anomalies in your time series data using the Anomaly Detector REST API and C#
16
16
17
17
Use this quickstart to start using the Anomaly Detector API's two detection modes to detect anomalies in your time series data. This C# application sends two API requests containing JSON-formatted time series data, and gets the responses.
| Detect anomalies as a batch | The JSON response containing the anomaly status (and other data) for each data point in the time series data, and the positions of any detected anomalies. |
22
-
| Detect the anomaly status of the latest data point | The JSON response containing the anomaly status (and other data) for the latest data point in the time series data. |
22
+
| Detect the anomaly status of the latest data point | The JSON response containing the anomaly status (and other data) for the latest data point in the time series data. |
23
23
24
-
While this application is written in C#, the API is a RESTful web service compatible with most programming languages.
24
+
While this application is written in C#, the API is a RESTful web service compatible with most programming languages. You can find the source code for this quickstart on [GitHub](https://github.com/Azure-Samples/AnomalyDetector/blob/master/quickstarts/csharp-detect-anomalies.cs).
25
25
26
26
## Prerequisites
27
27
28
28
- Any edition of [Visual Studio 2017 or later](https://visualstudio.microsoft.com/downloads/),
29
-
29
+
- An Anomaly detector key and endpoint
30
30
- The [Json.NET](https://www.newtonsoft.com/json) framework, available as a NuGet package. To install Newtonsoft.Json as a NuGet package in Visual Studio:
31
31
32
32
1. Right click your project in **Solution Explorer**.
@@ -50,11 +50,11 @@ Use this quickstart to start using the Anomaly Detector API's two detection mode
50
50
51
51
2. Create variables for your subscription key and your endpoint. Below are the URIs you can use for anomaly detection. These will be appended to your service endpoint later to create the API request URLs.
*[Example latest point detection response](https://github.com/Azure-Samples/anomalydetector/blob/master/example-data/latest-point-response.json)
104
104
105
-
## Next steps
106
-
107
-
> [!div class="nextstepaction"]
108
-
>[Streaming anomaly detection with Azure Databricks](../tutorials/anomaly-detection-streaming-databricks.md)
109
-
110
-
* What is the [Anomaly Detector API?](../overview.md)
111
-
*[Best practices](../concepts/anomaly-detection-best-practices.md) when using the Anomaly Detector API.
112
-
* The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/AnomalyDetector/blob/master/quickstarts/sdk/csharp-sdk-sample.cs).
Copy file name to clipboardExpand all lines: articles/cognitive-services/Anomaly-Detector/quickstarts/detect-data-anomalies-java.md
+8-15Lines changed: 8 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ manager: nitinme
8
8
ms.service: cognitive-services
9
9
ms.subservice: anomaly-detector
10
10
ms.topic: quickstart
11
-
ms.date: 07/26/2019
11
+
ms.date: 11/19/2019
12
12
ms.author: aahi
13
13
---
14
14
@@ -21,12 +21,12 @@ Use this quickstart to start using the Anomaly Detector API's two detection mode
21
21
| Detect anomalies as a batch | The JSON response containing the anomaly status (and other data) for each data point in the time series data, and the positions of any detected anomalies. |
22
22
| Detect the anomaly status of the latest data point | The JSON response containing the anomaly status (and other data) for the latest data point in the time series data. |
23
23
24
-
While this application is written in Java, the API is a RESTful web service compatible with most programming languages.
24
+
While this application is written in Java, the API is a RESTful web service compatible with most programming languages. You can find the source code for this quickstart on [GitHub](https://github.com/Azure-Samples/AnomalyDetector/blob/master/quickstarts/java-detect-anomalies.java).
25
25
26
26
## Prerequisites
27
27
28
28
- The [Java™ Development Kit(JDK) 7](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) or later.
29
-
29
+
- An Anomaly detector key and endpoint
30
30
- Import these libraries from the Maven Repository
31
31
-[JSON in Java](https://mvnrepository.com/artifact/org.json/json) package
@@ -76,11 +76,11 @@ Use this quickstart to start using the Anomaly Detector API's two detection mode
76
76
77
77
3. Otherwise, find the positions of anomalies in the data set. The response's `isAnomaly` field contains a boolean value relating to whether a given data point is an anomaly. Get the JSON array, and iterate through it, printing the index of any `true` values. These values correspond to the index of anomalous data points, if any were found.
78
78
79
-
[!code-java[Method for batch detection](~/samples-anomaly-detector/quickstarts/java-detect-anomalies.java?name=detectBatch)]
79
+
[!code-java[Method for batch detection](~/samples-anomaly-detector/quickstarts/java-detect-anomalies.java?name=detectBatch)]
80
80
81
81
## Detect the anomaly status of the latest data point
82
82
83
-
*Create a method called `detectAnomaliesLatest()` to detect the anomaly status of the last data point in the data set. Call the `sendRequest()` method created above with your endpoint, url, subscription key, and json data. Get the result, and print it to the console.
83
+
Create a method called `detectAnomaliesLatest()` to detect the anomaly status of the last data point in the data set. Call the `sendRequest()` method created above with your endpoint, url, subscription key, and json data. Get the result, and print it to the console.
84
84
85
85
[!code-java[Latest point detection method](~/samples-anomaly-detector/quickstarts/java-detect-anomalies.java?name=detectLatest)]
86
86
@@ -90,19 +90,12 @@ Use this quickstart to start using the Anomaly Detector API's two detection mode
90
90
91
91
2. Call the two anomaly detection functions created above.
*[Example latest point detection response](https://github.com/Azure-Samples/anomalydetector/blob/master/example-data/latest-point-response.json)
100
100
101
-
## Next steps
102
-
103
-
> [!div class="nextstepaction"]
104
-
>[Streaming anomaly detection with Azure Databricks](../tutorials/anomaly-detection-streaming-databricks.md)
105
-
106
-
* What is the [Anomaly Detector API?](../overview.md)
107
-
*[Best practices](../concepts/anomaly-detection-best-practices.md) when using the Anomaly Detector API.
108
-
* The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/AnomalyDetector/blob/master/quickstarts/sdk/csharp-sdk-sample.cs).
[Reference documentation](https://docs.microsoft.com/javascript/api/@azure/cognitiveservices-anomalydetector/?view=azure-node-latest) | [Library source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/cognitiveservices/AnomalyDetector) | [Package (npm)](https://www.npmjs.com/package/@azure/cognitiveservices-anomalydetector) | [Find the code on GitHub](https://github.com/Azure-Samples/cognitive-services-quickstart-code/tree/master/javascript/AnomalyDetector)
25
25
26
26
## Prerequisites
27
27
28
28
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/)
29
29
* The current version of [Node.js](https://nodejs.org/)
30
+
* An Anomaly detector key and endpoint
30
31
31
32
## Setting up
32
33
@@ -122,18 +123,4 @@ Run the application with the `node` command on your quickstart file.
122
123
node index.js
123
124
```
124
125
125
-
## Clean up resources
126
-
127
-
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
>[Streaming anomaly detection with Azure Databricks](../tutorials/anomaly-detection-streaming-databricks.md)
136
-
137
-
* What is the [Anomaly Detector API?](../overview.md)
138
-
*[Best practices](../concepts/anomaly-detection-best-practices.md) when using the Anomaly Detector API.
139
-
* The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/AnomalyDetector/blob/master/quickstarts/sdk/csharp-sdk-sample.cs).
[Library reference documentation](https://docs.microsoft.com/python/api/azure-cognitiveservices-anomalydetector/azure.cognitiveservices.anomalydetector?view=azure-python) | [Library source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cognitiveservices/azure-cognitiveservices-anomalydetector) | [Package (PyPi)](https://pypi.org/project/azure-cognitiveservices-anomalydetector/) | [Find the sample code on GitHub](https://github.com/Azure-Samples/AnomalyDetector/blob/master/quickstarts/sdk/python-sdk-sample.py)
25
25
26
26
## Prerequisites
27
27
28
28
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/)
29
+
* An Anomaly detector key and endpoint
29
30
*[Python 3.x](https://www.python.org/)
30
31
* The [Pandas data analysis library](https://pandas.pydata.org/)
31
32
@@ -109,18 +110,4 @@ Call the Anomaly Detector API to determine if your latest data point is an anoma
109
110
110
111
Run the application with the `python` command and your file name.
111
112
112
-
## Clean up resources
113
-
114
-
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with the resource group.
>[Streaming anomaly detection with Azure Databricks](../tutorials/anomaly-detection-streaming-databricks.md)
123
-
124
-
* What is the [Anomaly Detector API?](../overview.md)
125
-
*[Best practices](../concepts/anomaly-detection-best-practices.md) when using the Anomaly Detector API.
126
-
* The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/AnomalyDetector/blob/master/quickstarts/sdk/csharp-sdk-sample.cs).
0 commit comments