diff --git a/package-lock.json b/package-lock.json
index ded0b94c33d..e732efaa37e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2233,9 +2233,9 @@
}
},
"node_modules/@typespec/http-client-csharp": {
- "version": "0.1.9-alpha.20240820.5",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20240820.5.tgz",
- "integrity": "sha512-QUGk4LXTSFMWeRKlbC1M/H8La1Kyt+IrhZ2RD/DOJ/YQwwK63ZtidO3U+n/C48j+4PnbeVy/10JJqW7FgoA6Vg==",
+ "version": "0.1.9-alpha.20240822.1",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20240822.1.tgz",
+ "integrity": "sha512-WWeLdPzjJObWcIzX/9WUcNyAIRhZGWDsJ2eCSZc69ePf8Rs4M7KpknJEakuCDjEgey7bAj6RTcH16nhhYJJ4CQ==",
"dev": true,
"dependencies": {
"json-serialize-refs": "0.1.0-0"
@@ -8123,7 +8123,7 @@
"license": "MIT",
"dependencies": {
"@autorest/csharp": "3.0.0-beta.20240625.4",
- "@typespec/http-client-csharp": "0.1.9-alpha.20240820.5",
+ "@typespec/http-client-csharp": "0.1.9-alpha.20240822.1",
"json-serialize-refs": "0.1.0-0"
},
"devDependencies": {
@@ -8476,7 +8476,7 @@
"@types/prettier": "^2.6.3",
"@typespec/compiler": "0.59.0",
"@typespec/http": "0.59.0",
- "@typespec/http-client-csharp": "0.1.9-alpha.20240820.5",
+ "@typespec/http-client-csharp": "0.1.9-alpha.20240822.1",
"@typespec/json-schema": "0.59.0",
"@typespec/library-linter": "0.59.0",
"@typespec/openapi": "0.59.0",
@@ -9665,9 +9665,9 @@
"requires": {}
},
"@typespec/http-client-csharp": {
- "version": "0.1.9-alpha.20240820.5",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20240820.5.tgz",
- "integrity": "sha512-QUGk4LXTSFMWeRKlbC1M/H8La1Kyt+IrhZ2RD/DOJ/YQwwK63ZtidO3U+n/C48j+4PnbeVy/10JJqW7FgoA6Vg==",
+ "version": "0.1.9-alpha.20240822.1",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20240822.1.tgz",
+ "integrity": "sha512-WWeLdPzjJObWcIzX/9WUcNyAIRhZGWDsJ2eCSZc69ePf8Rs4M7KpknJEakuCDjEgey7bAj6RTcH16nhhYJJ4CQ==",
"dev": true,
"requires": {
"json-serialize-refs": "0.1.0-0"
diff --git a/samples/AnomalyDetector/Configuration.json b/samples/AnomalyDetector/Configuration.json
index 5656e97697f..7db97ae5dab 100644
--- a/samples/AnomalyDetector/Configuration.json
+++ b/samples/AnomalyDetector/Configuration.json
@@ -7,5 +7,6 @@
"shared-source-folders": [
"../../../../artifacts/bin/AutoRest.CSharp/Debug/net8.0/Generator.Shared",
"../../../../artifacts/bin/AutoRest.CSharp/Debug/net8.0/Azure.Core.Shared"
- ]
+ ],
+ "examples-dir": "examples"
}
diff --git a/samples/AnomalyDetector/src/examples/v1.1/ChangePointDetect.json b/samples/AnomalyDetector/examples/v1.1/ChangePointDetect.json
similarity index 99%
rename from samples/AnomalyDetector/src/examples/v1.1/ChangePointDetect.json
rename to samples/AnomalyDetector/examples/v1.1/ChangePointDetect.json
index 961b008f896..a045c22e194 100644
--- a/samples/AnomalyDetector/src/examples/v1.1/ChangePointDetect.json
+++ b/samples/AnomalyDetector/examples/v1.1/ChangePointDetect.json
@@ -6,7 +6,7 @@
"ApiVersion": "v1.1",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
- "body": {
+ "options": {
"series": [
{
"timestamp": "2017-01-01T06:45:00Z",
diff --git a/samples/AnomalyDetector/src/examples/v1.1/DeleteModel.json b/samples/AnomalyDetector/examples/v1.1/DeleteModel.json
similarity index 100%
rename from samples/AnomalyDetector/src/examples/v1.1/DeleteModel.json
rename to samples/AnomalyDetector/examples/v1.1/DeleteModel.json
diff --git a/samples/AnomalyDetector/src/examples/v1.1/DetectAnomaly.json b/samples/AnomalyDetector/examples/v1.1/DetectAnomaly.json
similarity index 98%
rename from samples/AnomalyDetector/src/examples/v1.1/DetectAnomaly.json
rename to samples/AnomalyDetector/examples/v1.1/DetectAnomaly.json
index 429c24f8b9d..afeb27183a3 100644
--- a/samples/AnomalyDetector/src/examples/v1.1/DetectAnomaly.json
+++ b/samples/AnomalyDetector/examples/v1.1/DetectAnomaly.json
@@ -7,7 +7,7 @@
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f",
- "body": {
+ "options": {
"dataSource": "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv",
"topContributorCount": 10,
"startTime": "2019-04-01T00:15:00Z",
diff --git a/samples/AnomalyDetector/src/examples/v1.1/EntireDetect.json b/samples/AnomalyDetector/examples/v1.1/EntireDetect.json
similarity index 99%
rename from samples/AnomalyDetector/src/examples/v1.1/EntireDetect.json
rename to samples/AnomalyDetector/examples/v1.1/EntireDetect.json
index 1869ce4b95b..dad2fbe78e7 100644
--- a/samples/AnomalyDetector/src/examples/v1.1/EntireDetect.json
+++ b/samples/AnomalyDetector/examples/v1.1/EntireDetect.json
@@ -6,7 +6,7 @@
"ApiVersion": "v1.1",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
- "body": {
+ "options": {
"series": [
{
"timestamp": "1972-01-01T00:00:00Z",
diff --git a/samples/AnomalyDetector/src/examples/v1.1/GetModel.json b/samples/AnomalyDetector/examples/v1.1/GetModel.json
similarity index 100%
rename from samples/AnomalyDetector/src/examples/v1.1/GetModel.json
rename to samples/AnomalyDetector/examples/v1.1/GetModel.json
diff --git a/samples/AnomalyDetector/src/examples/v1.1/GetResult.json b/samples/AnomalyDetector/examples/v1.1/GetResult.json
similarity index 100%
rename from samples/AnomalyDetector/src/examples/v1.1/GetResult.json
rename to samples/AnomalyDetector/examples/v1.1/GetResult.json
diff --git a/samples/AnomalyDetector/src/examples/v1.1/LastDetect.json b/samples/AnomalyDetector/examples/v1.1/LastDetect.json
similarity index 99%
rename from samples/AnomalyDetector/src/examples/v1.1/LastDetect.json
rename to samples/AnomalyDetector/examples/v1.1/LastDetect.json
index ebc05dca98f..db24b8b570d 100644
--- a/samples/AnomalyDetector/src/examples/v1.1/LastDetect.json
+++ b/samples/AnomalyDetector/examples/v1.1/LastDetect.json
@@ -6,7 +6,7 @@
"ApiVersion": "v1.1",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
- "body": {
+ "options": {
"series": [
{
"timestamp": "1972-01-01T00:00:00Z",
diff --git a/samples/AnomalyDetector/src/examples/v1.1/LastDetectAnomaly.json b/samples/AnomalyDetector/examples/v1.1/LastDetectAnomaly.json
similarity index 99%
rename from samples/AnomalyDetector/src/examples/v1.1/LastDetectAnomaly.json
rename to samples/AnomalyDetector/examples/v1.1/LastDetectAnomaly.json
index 09c4992dd22..f5bb920b59e 100644
--- a/samples/AnomalyDetector/src/examples/v1.1/LastDetectAnomaly.json
+++ b/samples/AnomalyDetector/examples/v1.1/LastDetectAnomaly.json
@@ -7,7 +7,7 @@
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f",
- "body": {
+ "options": {
"variables": [
{
"variable": "Variable_1",
diff --git a/samples/AnomalyDetector/src/examples/v1.1/ListModel.json b/samples/AnomalyDetector/examples/v1.1/ListModel.json
similarity index 100%
rename from samples/AnomalyDetector/src/examples/v1.1/ListModel.json
rename to samples/AnomalyDetector/examples/v1.1/ListModel.json
diff --git a/samples/AnomalyDetector/src/examples/v1.1/TrainModel.json b/samples/AnomalyDetector/examples/v1.1/TrainModel.json
similarity index 98%
rename from samples/AnomalyDetector/src/examples/v1.1/TrainModel.json
rename to samples/AnomalyDetector/examples/v1.1/TrainModel.json
index 234215b723c..eecf82d7174 100644
--- a/samples/AnomalyDetector/src/examples/v1.1/TrainModel.json
+++ b/samples/AnomalyDetector/examples/v1.1/TrainModel.json
@@ -6,7 +6,7 @@
"ApiVersion": "v1.1",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
- "body": {
+ "modelInfo": {
"slidingWindow": 20,
"alignPolicy": {
"alignMode": "Outer",
diff --git a/samples/AnomalyDetector/src/Generated/Docs/Multivariate.xml b/samples/AnomalyDetector/src/Generated/Docs/Multivariate.xml
index 3afe1ab7696..8e1f000fa10 100644
--- a/samples/AnomalyDetector/src/Generated/Docs/Multivariate.xml
+++ b/samples/AnomalyDetector/src/Generated/Docs/Multivariate.xml
@@ -5,190 +5,82 @@
This sample shows how to call GetMultivariateBatchDetectionResultAsync.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"));
-]]>
-This sample shows how to call GetMultivariateBatchDetectionResultAsync with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"));
+Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("663884e6-b117-11ea-b3de-0242ac130004"));
]]>
This sample shows how to call GetMultivariateBatchDetectionResult.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"));
-]]>
-This sample shows how to call GetMultivariateBatchDetectionResult with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"));
+Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("663884e6-b117-11ea-b3de-0242ac130004"));
]]>
This sample shows how to call GetMultivariateBatchDetectionResultAsync and parse the result.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), null);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("resultId").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
-]]>
-This sample shows how to call GetMultivariateBatchDetectionResultAsync with all parameters and parse the result.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), null);
+Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("663884e6-b117-11ea-b3de-0242ac130004"), null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("resultId").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("message").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
]]>
This sample shows how to call GetMultivariateBatchDetectionResult and parse the result.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), null);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("resultId").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
-]]>
-This sample shows how to call GetMultivariateBatchDetectionResult with all parameters and parse the result.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), null);
+Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("663884e6-b117-11ea-b3de-0242ac130004"), null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("resultId").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("message").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
]]>
This sample shows how to call TrainMultivariateModelAsync.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-ModelInfo modelInfo = new ModelInfo("", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
-Response response = await client.TrainMultivariateModelAsync(modelInfo);
-]]>
-This sample shows how to call TrainMultivariateModelAsync with all parameters.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-ModelInfo modelInfo = new ModelInfo("", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))
+ModelInfo modelInfo = new ModelInfo("https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", DateTimeOffset.Parse("2019-04-01T00:00:00Z"), DateTimeOffset.Parse("2019-04-02T00:00:00Z"))
{
DataSchema = DataSchema.OneTable,
- DisplayName = "",
- SlidingWindow = 1234,
+ DisplayName = "Devops-MultiAD",
+ SlidingWindow = 20,
AlignPolicy = new AlignPolicy
{
- AlignMode = AlignMode.Inner,
- FillNAMethod = FillNAMethod.Previous,
- PaddingValue = 123.45F,
- },
- Status = ModelStatus.Created,
- DiagnosticsInfo = new DiagnosticsInfo
- {
- ModelState = new ModelState
- {
- EpochIds = { 1234 },
- TrainLosses = { 123.45F },
- ValidationLosses = { 123.45F },
- LatenciesInSeconds = { 123.45F },
- },
- VariableStates = {new VariableState
- {
- Variable = "",
- FilledNARatio = 123.45F,
- EffectiveCount = 1234,
- FirstTimestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
- LastTimestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
- }},
+ AlignMode = AlignMode.Outer,
+ FillNAMethod = FillNAMethod.Linear,
+ PaddingValue = 0,
},
};
Response response = await client.TrainMultivariateModelAsync(modelInfo);
@@ -198,48 +90,20 @@ Response response = await client.TrainMultivariateModelAs
This sample shows how to call TrainMultivariateModel.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-ModelInfo modelInfo = new ModelInfo("", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
-Response response = client.TrainMultivariateModel(modelInfo);
-]]>
-This sample shows how to call TrainMultivariateModel with all parameters.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-ModelInfo modelInfo = new ModelInfo("", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))
+ModelInfo modelInfo = new ModelInfo("https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", DateTimeOffset.Parse("2019-04-01T00:00:00Z"), DateTimeOffset.Parse("2019-04-02T00:00:00Z"))
{
DataSchema = DataSchema.OneTable,
- DisplayName = "",
- SlidingWindow = 1234,
+ DisplayName = "Devops-MultiAD",
+ SlidingWindow = 20,
AlignPolicy = new AlignPolicy
{
- AlignMode = AlignMode.Inner,
- FillNAMethod = FillNAMethod.Previous,
- PaddingValue = 123.45F,
- },
- Status = ModelStatus.Created,
- DiagnosticsInfo = new DiagnosticsInfo
- {
- ModelState = new ModelState
- {
- EpochIds = { 1234 },
- TrainLosses = { 123.45F },
- ValidationLosses = { 123.45F },
- LatenciesInSeconds = { 123.45F },
- },
- VariableStates = {new VariableState
- {
- Variable = "",
- FilledNARatio = 123.45F,
- EffectiveCount = 1234,
- FirstTimestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
- LastTimestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
- }},
+ AlignMode = AlignMode.Outer,
+ FillNAMethod = FillNAMethod.Linear,
+ PaddingValue = 0,
},
};
Response response = client.TrainMultivariateModel(modelInfo);
@@ -249,77 +113,24 @@ Response response = client.TrainMultivariateModel(modelIn
This sample shows how to call TrainMultivariateModelAsync and parse the result.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
using RequestContent content = RequestContent.Create(new
{
- dataSource = "",
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
-});
-Response response = await client.TrainMultivariateModelAsync(content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("modelId").ToString());
-Console.WriteLine(result.GetProperty("createdTime").ToString());
-Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
-]]>
-This sample shows how to call TrainMultivariateModelAsync with all request content and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- dataSource = "",
- dataSchema = "OneTable",
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
- displayName = "",
- slidingWindow = 1234,
+ slidingWindow = 20,
alignPolicy = new
{
- alignMode = "Inner",
- fillNAMethod = "Previous",
- paddingValue = 123.45F,
- },
- status = "CREATED",
- diagnosticsInfo = new
- {
- modelState = new
- {
- epochIds = new object[]
- {
- 1234
- },
- trainLosses = new object[]
- {
- 123.45F
- },
- validationLosses = new object[]
- {
- 123.45F
- },
- latenciesInSeconds = new object[]
- {
- 123.45F
- },
- },
- variableStates = new object[]
- {
- new
- {
- variable = "",
- filledNARatio = 123.45F,
- effectiveCount = 1234,
- firstTimestamp = "2022-05-10T18:57:31.2311892Z",
- lastTimestamp = "2022-05-10T18:57:31.2311892Z",
- }
- },
+ alignMode = "Outer",
+ fillNAMethod = "Linear",
+ paddingValue = 0,
},
+ dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv",
+ dataSchema = "OneTable",
+ startTime = "2019-04-01T00:00:00Z",
+ endTime = "2019-04-02T00:00:00Z",
+ displayName = "Devops-MultiAD",
});
Response response = await client.TrainMultivariateModelAsync(content);
@@ -327,104 +138,30 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("modelId").ToString());
Console.WriteLine(result.GetProperty("createdTime").ToString());
Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
]]>
This sample shows how to call TrainMultivariateModel and parse the result.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- dataSource = "",
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
-});
-Response response = client.TrainMultivariateModel(content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("modelId").ToString());
-Console.WriteLine(result.GetProperty("createdTime").ToString());
-Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
-]]>
-This sample shows how to call TrainMultivariateModel with all request content and parse the result.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
using RequestContent content = RequestContent.Create(new
{
- dataSource = "",
- dataSchema = "OneTable",
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
- displayName = "",
- slidingWindow = 1234,
+ slidingWindow = 20,
alignPolicy = new
{
- alignMode = "Inner",
- fillNAMethod = "Previous",
- paddingValue = 123.45F,
- },
- status = "CREATED",
- diagnosticsInfo = new
- {
- modelState = new
- {
- epochIds = new object[]
- {
- 1234
- },
- trainLosses = new object[]
- {
- 123.45F
- },
- validationLosses = new object[]
- {
- 123.45F
- },
- latenciesInSeconds = new object[]
- {
- 123.45F
- },
- },
- variableStates = new object[]
- {
- new
- {
- variable = "",
- filledNARatio = 123.45F,
- effectiveCount = 1234,
- firstTimestamp = "2022-05-10T18:57:31.2311892Z",
- lastTimestamp = "2022-05-10T18:57:31.2311892Z",
- }
- },
+ alignMode = "Outer",
+ fillNAMethod = "Linear",
+ paddingValue = 0,
},
+ dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv",
+ dataSchema = "OneTable",
+ startTime = "2019-04-01T00:00:00Z",
+ endTime = "2019-04-02T00:00:00Z",
+ displayName = "Devops-MultiAD",
});
Response response = client.TrainMultivariateModel(content);
@@ -432,48 +169,17 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("modelId").ToString());
Console.WriteLine(result.GetProperty("createdTime").ToString());
Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
]]>
This sample shows how to call DeleteMultivariateModelAsync.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-Response response = await client.DeleteMultivariateModelAsync("");
-
-Console.WriteLine(response.Status);
-]]>
-This sample shows how to call DeleteMultivariateModelAsync with all parameters.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-Response response = await client.DeleteMultivariateModelAsync("");
+Response response = await client.DeleteMultivariateModelAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f");
Console.WriteLine(response.Status);
]]>
@@ -482,21 +188,11 @@ Console.WriteLine(response.Status);
This sample shows how to call DeleteMultivariateModel.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-Response response = client.DeleteMultivariateModel("");
-
-Console.WriteLine(response.Status);
-]]>
-This sample shows how to call DeleteMultivariateModel with all parameters.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-Response response = client.DeleteMultivariateModel("");
+Response response = client.DeleteMultivariateModel("45aad126-aafd-11ea-b8fb-d89ef3400c5f");
Console.WriteLine(response.Status);
]]>
@@ -505,373 +201,173 @@ Console.WriteLine(response.Status);
This sample shows how to call GetMultivariateModelAsync.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-Response response = await client.GetMultivariateModelAsync("");
-]]>
-This sample shows how to call GetMultivariateModelAsync with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-Response response = await client.GetMultivariateModelAsync("");
+Response response = await client.GetMultivariateModelAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f");
]]>
This sample shows how to call GetMultivariateModel.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-Response response = client.GetMultivariateModel("");
-]]>
-This sample shows how to call GetMultivariateModel with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-Response response = client.GetMultivariateModel("");
+Response response = client.GetMultivariateModel("45aad126-aafd-11ea-b8fb-d89ef3400c5f");
]]>
This sample shows how to call GetMultivariateModelAsync and parse the result.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-Response response = await client.GetMultivariateModelAsync("", null);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("modelId").ToString());
-Console.WriteLine(result.GetProperty("createdTime").ToString());
-Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
-]]>
-This sample shows how to call GetMultivariateModelAsync with all parameters and parse the result.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-Response response = await client.GetMultivariateModelAsync("", null);
+Response response = await client.GetMultivariateModelAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f", null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("modelId").ToString());
Console.WriteLine(result.GetProperty("createdTime").ToString());
Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
]]>
This sample shows how to call GetMultivariateModel and parse the result.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-Response response = client.GetMultivariateModel("", null);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("modelId").ToString());
-Console.WriteLine(result.GetProperty("createdTime").ToString());
-Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
-]]>
-This sample shows how to call GetMultivariateModel with all parameters and parse the result.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-Response response = client.GetMultivariateModel("", null);
+Response response = client.GetMultivariateModel("45aad126-aafd-11ea-b8fb-d89ef3400c5f", null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("modelId").ToString());
Console.WriteLine(result.GetProperty("createdTime").ToString());
Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
-Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
]]>
This sample shows how to call DetectMultivariateBatchAnomalyAsync.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), 1234, DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
-Response response = await client.DetectMultivariateBatchAnomalyAsync("", options);
-]]>
-This sample shows how to call DetectMultivariateBatchAnomalyAsync with all parameters.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), 1234, DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
-Response response = await client.DetectMultivariateBatchAnomalyAsync("", options);
+MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv"), 10, DateTimeOffset.Parse("2019-04-01T00:15:00Z"), DateTimeOffset.Parse("2019-04-01T00:40:00Z"));
+Response response = await client.DetectMultivariateBatchAnomalyAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f", options);
]]>
This sample shows how to call DetectMultivariateBatchAnomaly.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), 1234, DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
-Response response = client.DetectMultivariateBatchAnomaly("", options);
-]]>
-This sample shows how to call DetectMultivariateBatchAnomaly with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), 1234, DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
-Response response = client.DetectMultivariateBatchAnomaly("", options);
+MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv"), 10, DateTimeOffset.Parse("2019-04-01T00:15:00Z"), DateTimeOffset.Parse("2019-04-01T00:40:00Z"));
+Response response = client.DetectMultivariateBatchAnomaly("45aad126-aafd-11ea-b8fb-d89ef3400c5f", options);
]]>
This sample shows how to call DetectMultivariateBatchAnomalyAsync and parse the result.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- dataSource = "http://localhost:3000",
- topContributorCount = 1234,
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
-});
-Response response = await client.DetectMultivariateBatchAnomalyAsync("", content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("resultId").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
-]]>
-This sample shows how to call DetectMultivariateBatchAnomalyAsync with all parameters and request content and parse the result.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
using RequestContent content = RequestContent.Create(new
{
- dataSource = "http://localhost:3000",
- topContributorCount = 1234,
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
+ dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv",
+ topContributorCount = 10,
+ startTime = "2019-04-01T00:15:00Z",
+ endTime = "2019-04-01T00:40:00Z",
});
-Response response = await client.DetectMultivariateBatchAnomalyAsync("", content);
+Response response = await client.DetectMultivariateBatchAnomalyAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f", content);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("resultId").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("message").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
]]>
This sample shows how to call DetectMultivariateBatchAnomaly and parse the result.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- dataSource = "http://localhost:3000",
- topContributorCount = 1234,
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
-});
-Response response = client.DetectMultivariateBatchAnomaly("", content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("resultId").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
-]]>
-This sample shows how to call DetectMultivariateBatchAnomaly with all parameters and request content and parse the result.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
using RequestContent content = RequestContent.Create(new
{
- dataSource = "http://localhost:3000",
- topContributorCount = 1234,
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
+ dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv",
+ topContributorCount = 10,
+ startTime = "2019-04-01T00:15:00Z",
+ endTime = "2019-04-01T00:40:00Z",
});
-Response response = client.DetectMultivariateBatchAnomaly("", content);
+Response response = client.DetectMultivariateBatchAnomaly("45aad126-aafd-11ea-b8fb-d89ef3400c5f", content);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("resultId").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("message").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
-Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
]]>
This sample shows how to call DetectMultivariateLastAnomalyAsync.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[]
-{
- new VariableValues("", new string[]{""}, new float[]{123.45F})
-}, 1234);
-Response response = await client.DetectMultivariateLastAnomalyAsync("", options);
-]]>
-This sample shows how to call DetectMultivariateLastAnomalyAsync with all parameters.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[]
{
- new VariableValues("", new string[]{""}, new float[]{123.45F})
-}, 1234);
-Response response = await client.DetectMultivariateLastAnomalyAsync("", options);
+ new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4551378545933972, (float)0.7388603950488748, (float)0.201088255984052, (float)0.7462812245891899, (float)0.07308128850401663, (float)0.33090474587393537, (float)0.7544925268153315, (float)0.987506336316328, (float)0.6665932993421468, (float)0.6308351543168672, (float)0.08083310161466228, (float)0.8414415588668442, (float)0.514583545640453, (float)0.0954489875193526, (float)0.7786793231920507, (float)0.41646133667960994, (float)0.030176187583339287, (float)0.3474214937189324, (float)0.508530173413991, (float)0.42451199127255046, (float)0.2115944222725208, (float)0.24733519545833516, (float)0.8791022110982156, (float)0.9479621899884665, (float)0.26702703121252136, (float)0.6954503497669413, (float)0.1235728391488995, (float)0.8214915473050647, (float)0.11813002444192677, (float)0.8579045951076123}),
+ new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.9617871613964145, (float)0.24903311574778408, (float)0.4920561254118613, (float)0.9895601049618598, (float)0.9171759283128094, (float)0.5754204711105273, (float)0.1811033296265634, (float)0.8852311981742577, (float)0.9543231904644779, (float)0.7088012446094262, (float)0.7843572237149014, (float)0.7664787010700046, (float)0.3699552325387093, (float)0.504519908266789, (float)0.5848930929950164, (float)0.7628913396089576, (float)0.8148405868900065, (float)0.08540458873739332, (float)0.03481976727525682, (float)0.21275099339467762, (float)0.9836175579199806, (float)0.9321441483364282, (float)0.038466608085469534, (float)0.1723138437622782, (float)0.8626383410218382, (float)0.35053229974224254, (float)0.631141662835182, (float)0.0730352607990088, (float)0.08886179043386, (float)0.7488606040971179}),
+ new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4030756879437628, (float)0.15526889968448554, (float)0.36352226408981103, (float)0.6051200637229004, (float)0.8516795018476276, (float)0.2645605735279929, (float)0.6810875830037345, (float)0.9165894221681316, (float)0.700783245230424, (float)0.5624155469940331, (float)0.6277289685127893, (float)0.15992056539730204, (float)0.6020964482827594, (float)0.35937967753105915, (float)0.8731686034848609, (float)0.20301549117588935, (float)0.029261872151168933, (float)0.6261499548828445, (float)0.45850782028563386, (float)0.8275006940083313, (float)0.032760268834037376, (float)0.4485202784055029, (float)0.8915691008748384, (float)0.891669051517807, (float)0.9469979353323046, (float)0.115293087370132, (float)0.08818772518459506, (float)0.7426286620589166, (float)0.32372247468990756, (float)0.936268139507417})
+}, 10);
+Response response = await client.DetectMultivariateLastAnomalyAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f", options);
]]>
This sample shows how to call DetectMultivariateLastAnomaly.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[]
{
- new VariableValues("", new string[]{""}, new float[]{123.45F})
-}, 1234);
-Response response = client.DetectMultivariateLastAnomaly("", options);
-]]>
-This sample shows how to call DetectMultivariateLastAnomaly with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[]
-{
- new VariableValues("", new string[]{""}, new float[]{123.45F})
-}, 1234);
-Response response = client.DetectMultivariateLastAnomaly("", options);
+ new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4551378545933972, (float)0.7388603950488748, (float)0.201088255984052, (float)0.7462812245891899, (float)0.07308128850401663, (float)0.33090474587393537, (float)0.7544925268153315, (float)0.987506336316328, (float)0.6665932993421468, (float)0.6308351543168672, (float)0.08083310161466228, (float)0.8414415588668442, (float)0.514583545640453, (float)0.0954489875193526, (float)0.7786793231920507, (float)0.41646133667960994, (float)0.030176187583339287, (float)0.3474214937189324, (float)0.508530173413991, (float)0.42451199127255046, (float)0.2115944222725208, (float)0.24733519545833516, (float)0.8791022110982156, (float)0.9479621899884665, (float)0.26702703121252136, (float)0.6954503497669413, (float)0.1235728391488995, (float)0.8214915473050647, (float)0.11813002444192677, (float)0.8579045951076123}),
+ new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.9617871613964145, (float)0.24903311574778408, (float)0.4920561254118613, (float)0.9895601049618598, (float)0.9171759283128094, (float)0.5754204711105273, (float)0.1811033296265634, (float)0.8852311981742577, (float)0.9543231904644779, (float)0.7088012446094262, (float)0.7843572237149014, (float)0.7664787010700046, (float)0.3699552325387093, (float)0.504519908266789, (float)0.5848930929950164, (float)0.7628913396089576, (float)0.8148405868900065, (float)0.08540458873739332, (float)0.03481976727525682, (float)0.21275099339467762, (float)0.9836175579199806, (float)0.9321441483364282, (float)0.038466608085469534, (float)0.1723138437622782, (float)0.8626383410218382, (float)0.35053229974224254, (float)0.631141662835182, (float)0.0730352607990088, (float)0.08886179043386, (float)0.7488606040971179}),
+ new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4030756879437628, (float)0.15526889968448554, (float)0.36352226408981103, (float)0.6051200637229004, (float)0.8516795018476276, (float)0.2645605735279929, (float)0.6810875830037345, (float)0.9165894221681316, (float)0.700783245230424, (float)0.5624155469940331, (float)0.6277289685127893, (float)0.15992056539730204, (float)0.6020964482827594, (float)0.35937967753105915, (float)0.8731686034848609, (float)0.20301549117588935, (float)0.029261872151168933, (float)0.6261499548828445, (float)0.45850782028563386, (float)0.8275006940083313, (float)0.032760268834037376, (float)0.4485202784055029, (float)0.8915691008748384, (float)0.891669051517807, (float)0.9469979353323046, (float)0.115293087370132, (float)0.08818772518459506, (float)0.7426286620589166, (float)0.32372247468990756, (float)0.936268139507417})
+}, 10);
+Response response = client.DetectMultivariateLastAnomaly("45aad126-aafd-11ea-b8fb-d89ef3400c5f", options);
]]>
This sample shows how to call DetectMultivariateLastAnomalyAsync and parse the result.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
@@ -881,73 +377,228 @@ using RequestContent content = RequestContent.Create(new
{
new
{
- variable = "",
+ variable = "Variable_1",
timestamps = new object[]
{
- ""
+ "2021-01-01T00:00:00Z",
+ "2021-01-01T00:01:00Z",
+ "2021-01-01T00:02:00Z",
+ "2021-01-01T00:03:00Z",
+ "2021-01-01T00:04:00Z",
+ "2021-01-01T00:05:00Z",
+ "2021-01-01T00:06:00Z",
+ "2021-01-01T00:07:00Z",
+ "2021-01-01T00:08:00Z",
+ "2021-01-01T00:09:00Z",
+ "2021-01-01T00:10:00Z",
+ "2021-01-01T00:11:00Z",
+ "2021-01-01T00:12:00Z",
+ "2021-01-01T00:13:00Z",
+ "2021-01-01T00:14:00Z",
+ "2021-01-01T00:15:00Z",
+ "2021-01-01T00:16:00Z",
+ "2021-01-01T00:17:00Z",
+ "2021-01-01T00:18:00Z",
+ "2021-01-01T00:19:00Z",
+ "2021-01-01T00:20:00Z",
+ "2021-01-01T00:21:00Z",
+ "2021-01-01T00:22:00Z",
+ "2021-01-01T00:23:00Z",
+ "2021-01-01T00:24:00Z",
+ "2021-01-01T00:25:00Z",
+ "2021-01-01T00:26:00Z",
+ "2021-01-01T00:27:00Z",
+ "2021-01-01T00:28:00Z",
+ "2021-01-01T00:29:00Z"
},
values = new object[]
{
- 123.45F
+ 0.4551378545933972,
+ 0.7388603950488748,
+ 0.201088255984052,
+ 0.7462812245891899,
+ 0.07308128850401663,
+ 0.33090474587393537,
+ 0.7544925268153315,
+ 0.987506336316328,
+ 0.6665932993421468,
+ 0.6308351543168672,
+ 0.08083310161466228,
+ 0.8414415588668442,
+ 0.514583545640453,
+ 0.0954489875193526,
+ 0.7786793231920507,
+ 0.41646133667960994,
+ 0.030176187583339287,
+ 0.3474214937189324,
+ 0.508530173413991,
+ 0.42451199127255046,
+ 0.2115944222725208,
+ 0.24733519545833516,
+ 0.8791022110982156,
+ 0.9479621899884665,
+ 0.26702703121252136,
+ 0.6954503497669413,
+ 0.1235728391488995,
+ 0.8214915473050647,
+ 0.11813002444192677,
+ 0.8579045951076123
},
- }
- },
- topContributorCount = 1234,
-});
-Response response = await client.DetectMultivariateLastAnomalyAsync("", content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.ToString());
-]]>
-This sample shows how to call DetectMultivariateLastAnomalyAsync with all parameters and request content and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- variables = new object[]
- {
+ },
+ new
+ {
+ variable = "Variable_2",
+ timestamps = new object[]
+ {
+ "2021-01-01T00:00:00Z",
+ "2021-01-01T00:01:00Z",
+ "2021-01-01T00:02:00Z",
+ "2021-01-01T00:03:00Z",
+ "2021-01-01T00:04:00Z",
+ "2021-01-01T00:05:00Z",
+ "2021-01-01T00:06:00Z",
+ "2021-01-01T00:07:00Z",
+ "2021-01-01T00:08:00Z",
+ "2021-01-01T00:09:00Z",
+ "2021-01-01T00:10:00Z",
+ "2021-01-01T00:11:00Z",
+ "2021-01-01T00:12:00Z",
+ "2021-01-01T00:13:00Z",
+ "2021-01-01T00:14:00Z",
+ "2021-01-01T00:15:00Z",
+ "2021-01-01T00:16:00Z",
+ "2021-01-01T00:17:00Z",
+ "2021-01-01T00:18:00Z",
+ "2021-01-01T00:19:00Z",
+ "2021-01-01T00:20:00Z",
+ "2021-01-01T00:21:00Z",
+ "2021-01-01T00:22:00Z",
+ "2021-01-01T00:23:00Z",
+ "2021-01-01T00:24:00Z",
+ "2021-01-01T00:25:00Z",
+ "2021-01-01T00:26:00Z",
+ "2021-01-01T00:27:00Z",
+ "2021-01-01T00:28:00Z",
+ "2021-01-01T00:29:00Z"
+ },
+ values = new object[]
+ {
+ 0.9617871613964145,
+ 0.24903311574778408,
+ 0.4920561254118613,
+ 0.9895601049618598,
+ 0.9171759283128094,
+ 0.5754204711105273,
+ 0.1811033296265634,
+ 0.8852311981742577,
+ 0.9543231904644779,
+ 0.7088012446094262,
+ 0.7843572237149014,
+ 0.7664787010700046,
+ 0.3699552325387093,
+ 0.504519908266789,
+ 0.5848930929950164,
+ 0.7628913396089576,
+ 0.8148405868900065,
+ 0.08540458873739332,
+ 0.03481976727525682,
+ 0.21275099339467762,
+ 0.9836175579199806,
+ 0.9321441483364282,
+ 0.038466608085469534,
+ 0.1723138437622782,
+ 0.8626383410218382,
+ 0.35053229974224254,
+ 0.631141662835182,
+ 0.0730352607990088,
+ 0.08886179043386,
+ 0.7488606040971179
+ },
+ },
new
{
- variable = "",
+ variable = "Variable_3",
timestamps = new object[]
{
- ""
+ "2021-01-01T00:00:00Z",
+ "2021-01-01T00:01:00Z",
+ "2021-01-01T00:02:00Z",
+ "2021-01-01T00:03:00Z",
+ "2021-01-01T00:04:00Z",
+ "2021-01-01T00:05:00Z",
+ "2021-01-01T00:06:00Z",
+ "2021-01-01T00:07:00Z",
+ "2021-01-01T00:08:00Z",
+ "2021-01-01T00:09:00Z",
+ "2021-01-01T00:10:00Z",
+ "2021-01-01T00:11:00Z",
+ "2021-01-01T00:12:00Z",
+ "2021-01-01T00:13:00Z",
+ "2021-01-01T00:14:00Z",
+ "2021-01-01T00:15:00Z",
+ "2021-01-01T00:16:00Z",
+ "2021-01-01T00:17:00Z",
+ "2021-01-01T00:18:00Z",
+ "2021-01-01T00:19:00Z",
+ "2021-01-01T00:20:00Z",
+ "2021-01-01T00:21:00Z",
+ "2021-01-01T00:22:00Z",
+ "2021-01-01T00:23:00Z",
+ "2021-01-01T00:24:00Z",
+ "2021-01-01T00:25:00Z",
+ "2021-01-01T00:26:00Z",
+ "2021-01-01T00:27:00Z",
+ "2021-01-01T00:28:00Z",
+ "2021-01-01T00:29:00Z"
},
values = new object[]
{
- 123.45F
+ 0.4030756879437628,
+ 0.15526889968448554,
+ 0.36352226408981103,
+ 0.6051200637229004,
+ 0.8516795018476276,
+ 0.2645605735279929,
+ 0.6810875830037345,
+ 0.9165894221681316,
+ 0.700783245230424,
+ 0.5624155469940331,
+ 0.6277289685127893,
+ 0.15992056539730204,
+ 0.6020964482827594,
+ 0.35937967753105915,
+ 0.8731686034848609,
+ 0.20301549117588935,
+ 0.029261872151168933,
+ 0.6261499548828445,
+ 0.45850782028563386,
+ 0.8275006940083313,
+ 0.032760268834037376,
+ 0.4485202784055029,
+ 0.8915691008748384,
+ 0.891669051517807,
+ 0.9469979353323046,
+ 0.115293087370132,
+ 0.08818772518459506,
+ 0.7426286620589166,
+ 0.32372247468990756,
+ 0.936268139507417
},
}
},
- topContributorCount = 1234,
+ topContributorCount = 10,
});
-Response response = await client.DetectMultivariateLastAnomalyAsync("", content);
+Response response = await client.DetectMultivariateLastAnomalyAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f", content);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
-Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
-Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
-Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
+Console.WriteLine(result.ToString());
]]>
This sample shows how to call DetectMultivariateLastAnomaly and parse the result.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
@@ -957,163 +608,263 @@ using RequestContent content = RequestContent.Create(new
{
new
{
- variable = "",
+ variable = "Variable_1",
timestamps = new object[]
{
- ""
+ "2021-01-01T00:00:00Z",
+ "2021-01-01T00:01:00Z",
+ "2021-01-01T00:02:00Z",
+ "2021-01-01T00:03:00Z",
+ "2021-01-01T00:04:00Z",
+ "2021-01-01T00:05:00Z",
+ "2021-01-01T00:06:00Z",
+ "2021-01-01T00:07:00Z",
+ "2021-01-01T00:08:00Z",
+ "2021-01-01T00:09:00Z",
+ "2021-01-01T00:10:00Z",
+ "2021-01-01T00:11:00Z",
+ "2021-01-01T00:12:00Z",
+ "2021-01-01T00:13:00Z",
+ "2021-01-01T00:14:00Z",
+ "2021-01-01T00:15:00Z",
+ "2021-01-01T00:16:00Z",
+ "2021-01-01T00:17:00Z",
+ "2021-01-01T00:18:00Z",
+ "2021-01-01T00:19:00Z",
+ "2021-01-01T00:20:00Z",
+ "2021-01-01T00:21:00Z",
+ "2021-01-01T00:22:00Z",
+ "2021-01-01T00:23:00Z",
+ "2021-01-01T00:24:00Z",
+ "2021-01-01T00:25:00Z",
+ "2021-01-01T00:26:00Z",
+ "2021-01-01T00:27:00Z",
+ "2021-01-01T00:28:00Z",
+ "2021-01-01T00:29:00Z"
},
values = new object[]
{
- 123.45F
+ 0.4551378545933972,
+ 0.7388603950488748,
+ 0.201088255984052,
+ 0.7462812245891899,
+ 0.07308128850401663,
+ 0.33090474587393537,
+ 0.7544925268153315,
+ 0.987506336316328,
+ 0.6665932993421468,
+ 0.6308351543168672,
+ 0.08083310161466228,
+ 0.8414415588668442,
+ 0.514583545640453,
+ 0.0954489875193526,
+ 0.7786793231920507,
+ 0.41646133667960994,
+ 0.030176187583339287,
+ 0.3474214937189324,
+ 0.508530173413991,
+ 0.42451199127255046,
+ 0.2115944222725208,
+ 0.24733519545833516,
+ 0.8791022110982156,
+ 0.9479621899884665,
+ 0.26702703121252136,
+ 0.6954503497669413,
+ 0.1235728391488995,
+ 0.8214915473050647,
+ 0.11813002444192677,
+ 0.8579045951076123
},
- }
- },
- topContributorCount = 1234,
-});
-Response response = client.DetectMultivariateLastAnomaly("", content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.ToString());
-]]>
-This sample shows how to call DetectMultivariateLastAnomaly with all parameters and request content and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- variables = new object[]
- {
+ },
+ new
+ {
+ variable = "Variable_2",
+ timestamps = new object[]
+ {
+ "2021-01-01T00:00:00Z",
+ "2021-01-01T00:01:00Z",
+ "2021-01-01T00:02:00Z",
+ "2021-01-01T00:03:00Z",
+ "2021-01-01T00:04:00Z",
+ "2021-01-01T00:05:00Z",
+ "2021-01-01T00:06:00Z",
+ "2021-01-01T00:07:00Z",
+ "2021-01-01T00:08:00Z",
+ "2021-01-01T00:09:00Z",
+ "2021-01-01T00:10:00Z",
+ "2021-01-01T00:11:00Z",
+ "2021-01-01T00:12:00Z",
+ "2021-01-01T00:13:00Z",
+ "2021-01-01T00:14:00Z",
+ "2021-01-01T00:15:00Z",
+ "2021-01-01T00:16:00Z",
+ "2021-01-01T00:17:00Z",
+ "2021-01-01T00:18:00Z",
+ "2021-01-01T00:19:00Z",
+ "2021-01-01T00:20:00Z",
+ "2021-01-01T00:21:00Z",
+ "2021-01-01T00:22:00Z",
+ "2021-01-01T00:23:00Z",
+ "2021-01-01T00:24:00Z",
+ "2021-01-01T00:25:00Z",
+ "2021-01-01T00:26:00Z",
+ "2021-01-01T00:27:00Z",
+ "2021-01-01T00:28:00Z",
+ "2021-01-01T00:29:00Z"
+ },
+ values = new object[]
+ {
+ 0.9617871613964145,
+ 0.24903311574778408,
+ 0.4920561254118613,
+ 0.9895601049618598,
+ 0.9171759283128094,
+ 0.5754204711105273,
+ 0.1811033296265634,
+ 0.8852311981742577,
+ 0.9543231904644779,
+ 0.7088012446094262,
+ 0.7843572237149014,
+ 0.7664787010700046,
+ 0.3699552325387093,
+ 0.504519908266789,
+ 0.5848930929950164,
+ 0.7628913396089576,
+ 0.8148405868900065,
+ 0.08540458873739332,
+ 0.03481976727525682,
+ 0.21275099339467762,
+ 0.9836175579199806,
+ 0.9321441483364282,
+ 0.038466608085469534,
+ 0.1723138437622782,
+ 0.8626383410218382,
+ 0.35053229974224254,
+ 0.631141662835182,
+ 0.0730352607990088,
+ 0.08886179043386,
+ 0.7488606040971179
+ },
+ },
new
{
- variable = "",
+ variable = "Variable_3",
timestamps = new object[]
{
- ""
+ "2021-01-01T00:00:00Z",
+ "2021-01-01T00:01:00Z",
+ "2021-01-01T00:02:00Z",
+ "2021-01-01T00:03:00Z",
+ "2021-01-01T00:04:00Z",
+ "2021-01-01T00:05:00Z",
+ "2021-01-01T00:06:00Z",
+ "2021-01-01T00:07:00Z",
+ "2021-01-01T00:08:00Z",
+ "2021-01-01T00:09:00Z",
+ "2021-01-01T00:10:00Z",
+ "2021-01-01T00:11:00Z",
+ "2021-01-01T00:12:00Z",
+ "2021-01-01T00:13:00Z",
+ "2021-01-01T00:14:00Z",
+ "2021-01-01T00:15:00Z",
+ "2021-01-01T00:16:00Z",
+ "2021-01-01T00:17:00Z",
+ "2021-01-01T00:18:00Z",
+ "2021-01-01T00:19:00Z",
+ "2021-01-01T00:20:00Z",
+ "2021-01-01T00:21:00Z",
+ "2021-01-01T00:22:00Z",
+ "2021-01-01T00:23:00Z",
+ "2021-01-01T00:24:00Z",
+ "2021-01-01T00:25:00Z",
+ "2021-01-01T00:26:00Z",
+ "2021-01-01T00:27:00Z",
+ "2021-01-01T00:28:00Z",
+ "2021-01-01T00:29:00Z"
},
values = new object[]
{
- 123.45F
+ 0.4030756879437628,
+ 0.15526889968448554,
+ 0.36352226408981103,
+ 0.6051200637229004,
+ 0.8516795018476276,
+ 0.2645605735279929,
+ 0.6810875830037345,
+ 0.9165894221681316,
+ 0.700783245230424,
+ 0.5624155469940331,
+ 0.6277289685127893,
+ 0.15992056539730204,
+ 0.6020964482827594,
+ 0.35937967753105915,
+ 0.8731686034848609,
+ 0.20301549117588935,
+ 0.029261872151168933,
+ 0.6261499548828445,
+ 0.45850782028563386,
+ 0.8275006940083313,
+ 0.032760268834037376,
+ 0.4485202784055029,
+ 0.8915691008748384,
+ 0.891669051517807,
+ 0.9469979353323046,
+ 0.115293087370132,
+ 0.08818772518459506,
+ 0.7426286620589166,
+ 0.32372247468990756,
+ 0.936268139507417
},
}
},
- topContributorCount = 1234,
+ topContributorCount = 10,
});
-Response response = client.DetectMultivariateLastAnomaly("", content);
+Response response = client.DetectMultivariateLastAnomaly("45aad126-aafd-11ea-b8fb-d89ef3400c5f", content);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
-Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
-Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
-Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
-Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
+Console.WriteLine(result.ToString());
]]>
This sample shows how to call GetMultivariateModelsAsync.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
await foreach (AnomalyDetectionModel item in client.GetMultivariateModelsAsync())
{
}
-]]>
-This sample shows how to call GetMultivariateModelsAsync with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-await foreach (AnomalyDetectionModel item in client.GetMultivariateModelsAsync(skip: 1234, maxCount: 1234))
-{
-}
]]>
This sample shows how to call GetMultivariateModels.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
foreach (AnomalyDetectionModel item in client.GetMultivariateModels())
{
}
-]]>
-This sample shows how to call GetMultivariateModels with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-foreach (AnomalyDetectionModel item in client.GetMultivariateModels(skip: 1234, maxCount: 1234))
-{
-}
]]>
This sample shows how to call GetMultivariateModelsAsync and parse the result.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-await foreach (BinaryData item in client.GetMultivariateModelsAsync(null, null, null))
-{
- JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
- Console.WriteLine(result.GetProperty("modelId").ToString());
- Console.WriteLine(result.GetProperty("createdTime").ToString());
- Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
-}
-]]>
-This sample shows how to call GetMultivariateModelsAsync with all parameters and parse the result.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-await foreach (BinaryData item in client.GetMultivariateModelsAsync(1234, 1234, null))
+await foreach (BinaryData item in client.GetMultivariateModelsAsync(0, null, null))
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.GetProperty("modelId").ToString());
Console.WriteLine(result.GetProperty("createdTime").ToString());
Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
}
]]>
@@ -1121,51 +872,16 @@ await foreach (BinaryData item in client.GetMultivariateModelsAsync(1234, 1234,
This sample shows how to call GetMultivariateModels and parse the result.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
-foreach (BinaryData item in client.GetMultivariateModels(null, null, null))
-{
- JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
- Console.WriteLine(result.GetProperty("modelId").ToString());
- Console.WriteLine(result.GetProperty("createdTime").ToString());
- Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
-}
-]]>
-This sample shows how to call GetMultivariateModels with all parameters and parse the result.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-foreach (BinaryData item in client.GetMultivariateModels(1234, 1234, null))
+foreach (BinaryData item in client.GetMultivariateModels(0, null, null))
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.GetProperty("modelId").ToString());
Console.WriteLine(result.GetProperty("createdTime").ToString());
Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
}
]]>
diff --git a/samples/AnomalyDetector/src/Generated/Docs/Univariate.xml b/samples/AnomalyDetector/src/Generated/Docs/Univariate.xml
index 3ea14ded47f..2600f93a812 100644
--- a/samples/AnomalyDetector/src/Generated/Docs/Univariate.xml
+++ b/samples/AnomalyDetector/src/Generated/Docs/Univariate.xml
@@ -5,37 +5,210 @@
This sample shows how to call DetectUnivariateEntireSeriesAsync.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
{
- new TimeSeriesPoint(123.45F)
-});
-Response response = await client.DetectUnivariateEntireSeriesAsync(options);
-]]>
-This sample shows how to call DetectUnivariateEntireSeriesAsync with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
-{
- new TimeSeriesPoint(123.45F)
+ new TimeSeriesPoint(826)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(799)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(890)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(900)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(961)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(935)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(894)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(855)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(809)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(810)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(766)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(805)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(821)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(773)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(883)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(898)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(957)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(924)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(881)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(837)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(784)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(791)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(760)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(802)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(828)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(1030)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(889)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(902)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(969)
{
- Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+ Timestamp = DateTimeOffset.Parse("1974-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(947)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(908)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(867)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(815)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(812)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(773)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(813)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(834)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(782)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(892)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(903)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(966)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(937)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(896)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(858)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(817)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(827)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(797)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(843)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-12-01T00:00:00Z"),
}
})
{
- Granularity = TimeGranularity.Yearly,
- CustomInterval = 1234,
- Period = 1234,
- MaxAnomalyRatio = 123.45F,
- Sensitivity = 1234,
+ Granularity = TimeGranularity.Monthly,
+ MaxAnomalyRatio = (float)0.25,
+ Sensitivity = 95,
ImputeMode = ImputeMode.Auto,
- ImputeFixedValue = 123.45F,
};
Response response = await client.DetectUnivariateEntireSeriesAsync(options);
]]>
@@ -44,37 +217,210 @@ Response response = await client.DetectUnivaria
This sample shows how to call DetectUnivariateEntireSeries.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
-{
- new TimeSeriesPoint(123.45F)
-});
-Response response = client.DetectUnivariateEntireSeries(options);
-]]>
-This sample shows how to call DetectUnivariateEntireSeries with all parameters.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
{
- new TimeSeriesPoint(123.45F)
+ new TimeSeriesPoint(826)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(799)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(890)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(900)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(961)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(935)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(894)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(855)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(809)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(810)
{
- Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+ Timestamp = DateTimeOffset.Parse("1972-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(766)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(805)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(821)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(773)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(883)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(898)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(957)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(924)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(881)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(837)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(784)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(791)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(760)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(802)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(828)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(1030)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(889)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(902)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(969)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(947)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(908)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(867)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(815)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(812)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(773)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(813)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(834)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(782)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(892)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(903)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(966)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(937)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(896)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(858)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(817)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(827)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(797)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(843)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-12-01T00:00:00Z"),
}
})
{
- Granularity = TimeGranularity.Yearly,
- CustomInterval = 1234,
- Period = 1234,
- MaxAnomalyRatio = 123.45F,
- Sensitivity = 1234,
+ Granularity = TimeGranularity.Monthly,
+ MaxAnomalyRatio = (float)0.25,
+ Sensitivity = 95,
ImputeMode = ImputeMode.Auto,
- ImputeFixedValue = 123.45F,
};
Response response = client.DetectUnivariateEntireSeries(options);
]]>
@@ -83,7 +429,7 @@ Response response = client.DetectUnivariateEnti
This sample shows how to call DetectUnivariateEntireSeriesAsync and parse the result.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
@@ -93,77 +439,251 @@ using RequestContent content = RequestContent.Create(new
{
new
{
- value = 123.45F,
- }
- },
-});
-Response response = await client.DetectUnivariateEntireSeriesAsync(content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("period").ToString());
-Console.WriteLine(result.GetProperty("expectedValues")[0].ToString());
-Console.WriteLine(result.GetProperty("upperMargins")[0].ToString());
-Console.WriteLine(result.GetProperty("lowerMargins")[0].ToString());
-Console.WriteLine(result.GetProperty("isAnomaly")[0].ToString());
-Console.WriteLine(result.GetProperty("isNegativeAnomaly")[0].ToString());
-Console.WriteLine(result.GetProperty("isPositiveAnomaly")[0].ToString());
-]]>
-This sample shows how to call DetectUnivariateEntireSeriesAsync with all request content and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- series = new object[]
- {
+ timestamp = "1972-01-01T00:00:00Z",
+ value = 826,
+ },
new
{
- timestamp = "2022-05-10T18:57:31.2311892Z",
- value = 123.45F,
- }
- },
- granularity = "yearly",
- customInterval = 1234,
- period = 1234,
- maxAnomalyRatio = 123.45F,
- sensitivity = 1234,
- imputeMode = "auto",
- imputeFixedValue = 123.45F,
-});
-Response response = await client.DetectUnivariateEntireSeriesAsync(content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("period").ToString());
-Console.WriteLine(result.GetProperty("expectedValues")[0].ToString());
-Console.WriteLine(result.GetProperty("upperMargins")[0].ToString());
-Console.WriteLine(result.GetProperty("lowerMargins")[0].ToString());
-Console.WriteLine(result.GetProperty("isAnomaly")[0].ToString());
-Console.WriteLine(result.GetProperty("isNegativeAnomaly")[0].ToString());
-Console.WriteLine(result.GetProperty("isPositiveAnomaly")[0].ToString());
-Console.WriteLine(result.GetProperty("severity")[0].ToString());
-]]>
-
-
-
-This sample shows how to call DetectUnivariateEntireSeries and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- series = new object[]
- {
+ timestamp = "1972-02-01T00:00:00Z",
+ value = 799,
+ },
new
{
- value = 123.45F,
- }
- },
-});
-Response response = client.DetectUnivariateEntireSeries(content);
+ timestamp = "1972-03-01T00:00:00Z",
+ value = 890,
+ },
+ new
+ {
+ timestamp = "1972-04-01T00:00:00Z",
+ value = 900,
+ },
+ new
+ {
+ timestamp = "1972-05-01T00:00:00Z",
+ value = 961,
+ },
+ new
+ {
+ timestamp = "1972-06-01T00:00:00Z",
+ value = 935,
+ },
+ new
+ {
+ timestamp = "1972-07-01T00:00:00Z",
+ value = 894,
+ },
+ new
+ {
+ timestamp = "1972-08-01T00:00:00Z",
+ value = 855,
+ },
+ new
+ {
+ timestamp = "1972-09-01T00:00:00Z",
+ value = 809,
+ },
+ new
+ {
+ timestamp = "1972-10-01T00:00:00Z",
+ value = 810,
+ },
+ new
+ {
+ timestamp = "1972-11-01T00:00:00Z",
+ value = 766,
+ },
+ new
+ {
+ timestamp = "1972-12-01T00:00:00Z",
+ value = 805,
+ },
+ new
+ {
+ timestamp = "1973-01-01T00:00:00Z",
+ value = 821,
+ },
+ new
+ {
+ timestamp = "1973-02-01T00:00:00Z",
+ value = 773,
+ },
+ new
+ {
+ timestamp = "1973-03-01T00:00:00Z",
+ value = 883,
+ },
+ new
+ {
+ timestamp = "1973-04-01T00:00:00Z",
+ value = 898,
+ },
+ new
+ {
+ timestamp = "1973-05-01T00:00:00Z",
+ value = 957,
+ },
+ new
+ {
+ timestamp = "1973-06-01T00:00:00Z",
+ value = 924,
+ },
+ new
+ {
+ timestamp = "1973-07-01T00:00:00Z",
+ value = 881,
+ },
+ new
+ {
+ timestamp = "1973-08-01T00:00:00Z",
+ value = 837,
+ },
+ new
+ {
+ timestamp = "1973-09-01T00:00:00Z",
+ value = 784,
+ },
+ new
+ {
+ timestamp = "1973-10-01T00:00:00Z",
+ value = 791,
+ },
+ new
+ {
+ timestamp = "1973-11-01T00:00:00Z",
+ value = 760,
+ },
+ new
+ {
+ timestamp = "1973-12-01T00:00:00Z",
+ value = 802,
+ },
+ new
+ {
+ timestamp = "1974-01-01T00:00:00Z",
+ value = 828,
+ },
+ new
+ {
+ timestamp = "1974-02-01T00:00:00Z",
+ value = 1030,
+ },
+ new
+ {
+ timestamp = "1974-03-01T00:00:00Z",
+ value = 889,
+ },
+ new
+ {
+ timestamp = "1974-04-01T00:00:00Z",
+ value = 902,
+ },
+ new
+ {
+ timestamp = "1974-05-01T00:00:00Z",
+ value = 969,
+ },
+ new
+ {
+ timestamp = "1974-06-01T00:00:00Z",
+ value = 947,
+ },
+ new
+ {
+ timestamp = "1974-07-01T00:00:00Z",
+ value = 908,
+ },
+ new
+ {
+ timestamp = "1974-08-01T00:00:00Z",
+ value = 867,
+ },
+ new
+ {
+ timestamp = "1974-09-01T00:00:00Z",
+ value = 815,
+ },
+ new
+ {
+ timestamp = "1974-10-01T00:00:00Z",
+ value = 812,
+ },
+ new
+ {
+ timestamp = "1974-11-01T00:00:00Z",
+ value = 773,
+ },
+ new
+ {
+ timestamp = "1974-12-01T00:00:00Z",
+ value = 813,
+ },
+ new
+ {
+ timestamp = "1975-01-01T00:00:00Z",
+ value = 834,
+ },
+ new
+ {
+ timestamp = "1975-02-01T00:00:00Z",
+ value = 782,
+ },
+ new
+ {
+ timestamp = "1975-03-01T00:00:00Z",
+ value = 892,
+ },
+ new
+ {
+ timestamp = "1975-04-01T00:00:00Z",
+ value = 903,
+ },
+ new
+ {
+ timestamp = "1975-05-01T00:00:00Z",
+ value = 966,
+ },
+ new
+ {
+ timestamp = "1975-06-01T00:00:00Z",
+ value = 937,
+ },
+ new
+ {
+ timestamp = "1975-07-01T00:00:00Z",
+ value = 896,
+ },
+ new
+ {
+ timestamp = "1975-08-01T00:00:00Z",
+ value = 858,
+ },
+ new
+ {
+ timestamp = "1975-09-01T00:00:00Z",
+ value = 817,
+ },
+ new
+ {
+ timestamp = "1975-10-01T00:00:00Z",
+ value = 827,
+ },
+ new
+ {
+ timestamp = "1975-11-01T00:00:00Z",
+ value = 797,
+ },
+ new
+ {
+ timestamp = "1975-12-01T00:00:00Z",
+ value = 843,
+ }
+ },
+ maxAnomalyRatio = 0.25,
+ sensitivity = 95,
+ granularity = "monthly",
+ imputeMode = "auto",
+});
+Response response = await client.DetectUnivariateEntireSeriesAsync(content);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("period").ToString());
@@ -173,10 +693,13 @@ Console.WriteLine(result.GetProperty("lowerMargins")[0].ToString());
Console.WriteLine(result.GetProperty("isAnomaly")[0].ToString());
Console.WriteLine(result.GetProperty("isNegativeAnomaly")[0].ToString());
Console.WriteLine(result.GetProperty("isPositiveAnomaly")[0].ToString());
-]]>
-This sample shows how to call DetectUnivariateEntireSeries with all request content and parse the result.
+]]>
+
+
+
+This sample shows how to call DetectUnivariateEntireSeries and parse the result.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
@@ -186,17 +709,249 @@ using RequestContent content = RequestContent.Create(new
{
new
{
- timestamp = "2022-05-10T18:57:31.2311892Z",
- value = 123.45F,
+ timestamp = "1972-01-01T00:00:00Z",
+ value = 826,
+ },
+ new
+ {
+ timestamp = "1972-02-01T00:00:00Z",
+ value = 799,
+ },
+ new
+ {
+ timestamp = "1972-03-01T00:00:00Z",
+ value = 890,
+ },
+ new
+ {
+ timestamp = "1972-04-01T00:00:00Z",
+ value = 900,
+ },
+ new
+ {
+ timestamp = "1972-05-01T00:00:00Z",
+ value = 961,
+ },
+ new
+ {
+ timestamp = "1972-06-01T00:00:00Z",
+ value = 935,
+ },
+ new
+ {
+ timestamp = "1972-07-01T00:00:00Z",
+ value = 894,
+ },
+ new
+ {
+ timestamp = "1972-08-01T00:00:00Z",
+ value = 855,
+ },
+ new
+ {
+ timestamp = "1972-09-01T00:00:00Z",
+ value = 809,
+ },
+ new
+ {
+ timestamp = "1972-10-01T00:00:00Z",
+ value = 810,
+ },
+ new
+ {
+ timestamp = "1972-11-01T00:00:00Z",
+ value = 766,
+ },
+ new
+ {
+ timestamp = "1972-12-01T00:00:00Z",
+ value = 805,
+ },
+ new
+ {
+ timestamp = "1973-01-01T00:00:00Z",
+ value = 821,
+ },
+ new
+ {
+ timestamp = "1973-02-01T00:00:00Z",
+ value = 773,
+ },
+ new
+ {
+ timestamp = "1973-03-01T00:00:00Z",
+ value = 883,
+ },
+ new
+ {
+ timestamp = "1973-04-01T00:00:00Z",
+ value = 898,
+ },
+ new
+ {
+ timestamp = "1973-05-01T00:00:00Z",
+ value = 957,
+ },
+ new
+ {
+ timestamp = "1973-06-01T00:00:00Z",
+ value = 924,
+ },
+ new
+ {
+ timestamp = "1973-07-01T00:00:00Z",
+ value = 881,
+ },
+ new
+ {
+ timestamp = "1973-08-01T00:00:00Z",
+ value = 837,
+ },
+ new
+ {
+ timestamp = "1973-09-01T00:00:00Z",
+ value = 784,
+ },
+ new
+ {
+ timestamp = "1973-10-01T00:00:00Z",
+ value = 791,
+ },
+ new
+ {
+ timestamp = "1973-11-01T00:00:00Z",
+ value = 760,
+ },
+ new
+ {
+ timestamp = "1973-12-01T00:00:00Z",
+ value = 802,
+ },
+ new
+ {
+ timestamp = "1974-01-01T00:00:00Z",
+ value = 828,
+ },
+ new
+ {
+ timestamp = "1974-02-01T00:00:00Z",
+ value = 1030,
+ },
+ new
+ {
+ timestamp = "1974-03-01T00:00:00Z",
+ value = 889,
+ },
+ new
+ {
+ timestamp = "1974-04-01T00:00:00Z",
+ value = 902,
+ },
+ new
+ {
+ timestamp = "1974-05-01T00:00:00Z",
+ value = 969,
+ },
+ new
+ {
+ timestamp = "1974-06-01T00:00:00Z",
+ value = 947,
+ },
+ new
+ {
+ timestamp = "1974-07-01T00:00:00Z",
+ value = 908,
+ },
+ new
+ {
+ timestamp = "1974-08-01T00:00:00Z",
+ value = 867,
+ },
+ new
+ {
+ timestamp = "1974-09-01T00:00:00Z",
+ value = 815,
+ },
+ new
+ {
+ timestamp = "1974-10-01T00:00:00Z",
+ value = 812,
+ },
+ new
+ {
+ timestamp = "1974-11-01T00:00:00Z",
+ value = 773,
+ },
+ new
+ {
+ timestamp = "1974-12-01T00:00:00Z",
+ value = 813,
+ },
+ new
+ {
+ timestamp = "1975-01-01T00:00:00Z",
+ value = 834,
+ },
+ new
+ {
+ timestamp = "1975-02-01T00:00:00Z",
+ value = 782,
+ },
+ new
+ {
+ timestamp = "1975-03-01T00:00:00Z",
+ value = 892,
+ },
+ new
+ {
+ timestamp = "1975-04-01T00:00:00Z",
+ value = 903,
+ },
+ new
+ {
+ timestamp = "1975-05-01T00:00:00Z",
+ value = 966,
+ },
+ new
+ {
+ timestamp = "1975-06-01T00:00:00Z",
+ value = 937,
+ },
+ new
+ {
+ timestamp = "1975-07-01T00:00:00Z",
+ value = 896,
+ },
+ new
+ {
+ timestamp = "1975-08-01T00:00:00Z",
+ value = 858,
+ },
+ new
+ {
+ timestamp = "1975-09-01T00:00:00Z",
+ value = 817,
+ },
+ new
+ {
+ timestamp = "1975-10-01T00:00:00Z",
+ value = 827,
+ },
+ new
+ {
+ timestamp = "1975-11-01T00:00:00Z",
+ value = 797,
+ },
+ new
+ {
+ timestamp = "1975-12-01T00:00:00Z",
+ value = 843,
}
},
- granularity = "yearly",
- customInterval = 1234,
- period = 1234,
- maxAnomalyRatio = 123.45F,
- sensitivity = 1234,
+ maxAnomalyRatio = 0.25,
+ sensitivity = 95,
+ granularity = "monthly",
imputeMode = "auto",
- imputeFixedValue = 123.45F,
});
Response response = client.DetectUnivariateEntireSeries(content);
@@ -208,378 +963,441 @@ Console.WriteLine(result.GetProperty("lowerMargins")[0].ToString());
Console.WriteLine(result.GetProperty("isAnomaly")[0].ToString());
Console.WriteLine(result.GetProperty("isNegativeAnomaly")[0].ToString());
Console.WriteLine(result.GetProperty("isPositiveAnomaly")[0].ToString());
-Console.WriteLine(result.GetProperty("severity")[0].ToString());
]]>
This sample shows how to call DetectUnivariateLastPointAsync.
");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
-{
- new TimeSeriesPoint(123.45F)
-});
-Response response = await client.DetectUnivariateLastPointAsync(options);
-]]>
-This sample shows how to call DetectUnivariateLastPointAsync with all parameters.
-");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
{
- new TimeSeriesPoint(123.45F)
+ new TimeSeriesPoint(826)
{
- Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
- }
-})
-{
- Granularity = TimeGranularity.Yearly,
- CustomInterval = 1234,
- Period = 1234,
- MaxAnomalyRatio = 123.45F,
- Sensitivity = 1234,
- ImputeMode = ImputeMode.Auto,
- ImputeFixedValue = 123.45F,
-};
-Response response = await client.DetectUnivariateLastPointAsync(options);
-]]>
-
-
-
-This sample shows how to call DetectUnivariateLastPoint.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
-{
- new TimeSeriesPoint(123.45F)
-});
-Response response = client.DetectUnivariateLastPoint(options);
-]]>
-This sample shows how to call DetectUnivariateLastPoint with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
-{
- new TimeSeriesPoint(123.45F)
+ Timestamp = DateTimeOffset.Parse("1972-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(799)
{
- Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
- }
-})
-{
- Granularity = TimeGranularity.Yearly,
- CustomInterval = 1234,
- Period = 1234,
- MaxAnomalyRatio = 123.45F,
- Sensitivity = 1234,
- ImputeMode = ImputeMode.Auto,
- ImputeFixedValue = 123.45F,
-};
-Response response = client.DetectUnivariateLastPoint(options);
-]]>
-
-
-
-This sample shows how to call DetectUnivariateLastPointAsync and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- series = new object[]
+ Timestamp = DateTimeOffset.Parse("1972-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(890)
{
- new
- {
- value = 123.45F,
- }
+ Timestamp = DateTimeOffset.Parse("1972-03-01T00:00:00Z"),
},
-});
-Response response = await client.DetectUnivariateLastPointAsync(content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("period").ToString());
-Console.WriteLine(result.GetProperty("suggestedWindow").ToString());
-Console.WriteLine(result.GetProperty("expectedValue").ToString());
-Console.WriteLine(result.GetProperty("upperMargin").ToString());
-Console.WriteLine(result.GetProperty("lowerMargin").ToString());
-Console.WriteLine(result.GetProperty("isAnomaly").ToString());
-Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString());
-Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString());
-]]>
-This sample shows how to call DetectUnivariateLastPointAsync with all request content and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- series = new object[]
+ new TimeSeriesPoint(900)
{
- new
- {
- timestamp = "2022-05-10T18:57:31.2311892Z",
- value = 123.45F,
- }
+ Timestamp = DateTimeOffset.Parse("1972-04-01T00:00:00Z"),
},
- granularity = "yearly",
- customInterval = 1234,
- period = 1234,
- maxAnomalyRatio = 123.45F,
- sensitivity = 1234,
- imputeMode = "auto",
- imputeFixedValue = 123.45F,
-});
-Response response = await client.DetectUnivariateLastPointAsync(content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("period").ToString());
-Console.WriteLine(result.GetProperty("suggestedWindow").ToString());
-Console.WriteLine(result.GetProperty("expectedValue").ToString());
-Console.WriteLine(result.GetProperty("upperMargin").ToString());
-Console.WriteLine(result.GetProperty("lowerMargin").ToString());
-Console.WriteLine(result.GetProperty("isAnomaly").ToString());
-Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString());
-Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString());
-Console.WriteLine(result.GetProperty("severity").ToString());
-]]>
-
-
-
-This sample shows how to call DetectUnivariateLastPoint and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- series = new object[]
+ new TimeSeriesPoint(961)
{
- new
- {
- value = 123.45F,
- }
+ Timestamp = DateTimeOffset.Parse("1972-05-01T00:00:00Z"),
},
-});
-Response response = client.DetectUnivariateLastPoint(content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("period").ToString());
-Console.WriteLine(result.GetProperty("suggestedWindow").ToString());
-Console.WriteLine(result.GetProperty("expectedValue").ToString());
-Console.WriteLine(result.GetProperty("upperMargin").ToString());
-Console.WriteLine(result.GetProperty("lowerMargin").ToString());
-Console.WriteLine(result.GetProperty("isAnomaly").ToString());
-Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString());
-Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString());
-]]>
-This sample shows how to call DetectUnivariateLastPoint with all request content and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- series = new object[]
+ new TimeSeriesPoint(935)
{
- new
- {
- timestamp = "2022-05-10T18:57:31.2311892Z",
- value = 123.45F,
- }
+ Timestamp = DateTimeOffset.Parse("1972-06-01T00:00:00Z"),
},
- granularity = "yearly",
- customInterval = 1234,
- period = 1234,
- maxAnomalyRatio = 123.45F,
- sensitivity = 1234,
- imputeMode = "auto",
- imputeFixedValue = 123.45F,
-});
-Response response = client.DetectUnivariateLastPoint(content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("period").ToString());
-Console.WriteLine(result.GetProperty("suggestedWindow").ToString());
-Console.WriteLine(result.GetProperty("expectedValue").ToString());
-Console.WriteLine(result.GetProperty("upperMargin").ToString());
-Console.WriteLine(result.GetProperty("lowerMargin").ToString());
-Console.WriteLine(result.GetProperty("isAnomaly").ToString());
-Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString());
-Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString());
-Console.WriteLine(result.GetProperty("severity").ToString());
-]]>
-
-
-
-This sample shows how to call DetectUnivariateChangePointAsync.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[]
-{
- new TimeSeriesPoint(123.45F)
-}, TimeGranularity.Yearly);
-Response response = await client.DetectUnivariateChangePointAsync(options);
-]]>
-This sample shows how to call DetectUnivariateChangePointAsync with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[]
-{
- new TimeSeriesPoint(123.45F)
+ new TimeSeriesPoint(894)
{
- Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
- }
-}, TimeGranularity.Yearly)
-{
- CustomInterval = 1234,
- Period = 1234,
- StableTrendWindow = 1234,
- Threshold = 123.45F,
-};
-Response response = await client.DetectUnivariateChangePointAsync(options);
-]]>
-
-
-
-This sample shows how to call DetectUnivariateChangePoint.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[]
-{
- new TimeSeriesPoint(123.45F)
-}, TimeGranularity.Yearly);
-Response response = client.DetectUnivariateChangePoint(options);
-]]>
-This sample shows how to call DetectUnivariateChangePoint with all parameters.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[]
-{
- new TimeSeriesPoint(123.45F)
+ Timestamp = DateTimeOffset.Parse("1972-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(855)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(809)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(810)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(766)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(805)
{
- Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+ Timestamp = DateTimeOffset.Parse("1972-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(821)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(773)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(883)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(898)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(957)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(924)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(881)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(837)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(784)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(791)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(760)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(802)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(828)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(1030)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(889)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(902)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(969)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(947)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(908)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(867)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(815)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(812)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(773)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(813)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(834)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(782)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(892)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(903)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(966)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(937)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(896)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(858)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(817)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(827)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(797)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(843)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-12-01T00:00:00Z"),
}
-}, TimeGranularity.Yearly)
+})
{
- CustomInterval = 1234,
- Period = 1234,
- StableTrendWindow = 1234,
- Threshold = 123.45F,
+ Granularity = TimeGranularity.Monthly,
+ MaxAnomalyRatio = (float)0.25,
+ Sensitivity = 95,
+ ImputeMode = ImputeMode.Fixed,
+ ImputeFixedValue = 800,
};
-Response response = client.DetectUnivariateChangePoint(options);
+Response response = await client.DetectUnivariateLastPointAsync(options);
]]>
-
+
-This sample shows how to call DetectUnivariateChangePointAsync and parse the result.
+This sample shows how to call DetectUnivariateLastPoint.
");
+Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-using RequestContent content = RequestContent.Create(new
+UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
{
- series = new object[]
+ new TimeSeriesPoint(826)
{
- new
- {
- value = 123.45F,
- }
+ Timestamp = DateTimeOffset.Parse("1972-01-01T00:00:00Z"),
},
- granularity = "yearly",
-});
-Response response = await client.DetectUnivariateChangePointAsync(content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.ToString());
-]]>
-This sample shows how to call DetectUnivariateChangePointAsync with all request content and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- series = new object[]
+ new TimeSeriesPoint(799)
{
- new
- {
- timestamp = "2022-05-10T18:57:31.2311892Z",
- value = 123.45F,
- }
+ Timestamp = DateTimeOffset.Parse("1972-02-01T00:00:00Z"),
},
- granularity = "yearly",
- customInterval = 1234,
- period = 1234,
- stableTrendWindow = 1234,
- threshold = 123.45F,
-});
-Response response = await client.DetectUnivariateChangePointAsync(content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.GetProperty("period").ToString());
-Console.WriteLine(result.GetProperty("isChangePoint")[0].ToString());
-Console.WriteLine(result.GetProperty("confidenceScores")[0].ToString());
-]]>
-
-
-
-This sample shows how to call DetectUnivariateChangePoint and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
-using RequestContent content = RequestContent.Create(new
-{
- series = new object[]
+ new TimeSeriesPoint(890)
{
- new
- {
- value = 123.45F,
- }
+ Timestamp = DateTimeOffset.Parse("1972-03-01T00:00:00Z"),
},
- granularity = "yearly",
-});
-Response response = client.DetectUnivariateChangePoint(content);
-
-JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
-Console.WriteLine(result.ToString());
-]]>
-This sample shows how to call DetectUnivariateChangePoint with all request content and parse the result.
-");
-AzureKeyCredential credential = new AzureKeyCredential("");
-Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
+ new TimeSeriesPoint(900)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(961)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(935)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(894)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(855)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(809)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(810)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(766)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(805)
+ {
+ Timestamp = DateTimeOffset.Parse("1972-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(821)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(773)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(883)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(898)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(957)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(924)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(881)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(837)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(784)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(791)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(760)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(802)
+ {
+ Timestamp = DateTimeOffset.Parse("1973-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(828)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(1030)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(889)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(902)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(969)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(947)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(908)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(867)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(815)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(812)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(773)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(813)
+ {
+ Timestamp = DateTimeOffset.Parse("1974-12-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(834)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-01-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(782)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-02-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(892)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-03-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(903)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-04-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(966)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-05-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(937)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-06-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(896)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-07-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(858)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-08-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(817)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-09-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(827)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-10-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(797)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-11-01T00:00:00Z"),
+ },
+ new TimeSeriesPoint(843)
+ {
+ Timestamp = DateTimeOffset.Parse("1975-12-01T00:00:00Z"),
+ }
+})
+{
+ Granularity = TimeGranularity.Monthly,
+ MaxAnomalyRatio = (float)0.25,
+ Sensitivity = 95,
+ ImputeMode = ImputeMode.Fixed,
+ ImputeFixedValue = 800,
+};
+Response response = client.DetectUnivariateLastPoint(options);
+]]>
+
+
+
+This sample shows how to call DetectUnivariateLastPointAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
using RequestContent content = RequestContent.Create(new
{
@@ -587,22 +1405,5250 @@ using RequestContent content = RequestContent.Create(new
{
new
{
- timestamp = "2022-05-10T18:57:31.2311892Z",
- value = 123.45F,
+ timestamp = "1972-01-01T00:00:00Z",
+ value = 826,
+ },
+ new
+ {
+ timestamp = "1972-02-01T00:00:00Z",
+ value = 799,
+ },
+ new
+ {
+ timestamp = "1972-03-01T00:00:00Z",
+ value = 890,
+ },
+ new
+ {
+ timestamp = "1972-04-01T00:00:00Z",
+ value = 900,
+ },
+ new
+ {
+ timestamp = "1972-05-01T00:00:00Z",
+ value = 961,
+ },
+ new
+ {
+ timestamp = "1972-06-01T00:00:00Z",
+ value = 935,
+ },
+ new
+ {
+ timestamp = "1972-07-01T00:00:00Z",
+ value = 894,
+ },
+ new
+ {
+ timestamp = "1972-08-01T00:00:00Z",
+ value = 855,
+ },
+ new
+ {
+ timestamp = "1972-09-01T00:00:00Z",
+ value = 809,
+ },
+ new
+ {
+ timestamp = "1972-10-01T00:00:00Z",
+ value = 810,
+ },
+ new
+ {
+ timestamp = "1972-11-01T00:00:00Z",
+ value = 766,
+ },
+ new
+ {
+ timestamp = "1972-12-01T00:00:00Z",
+ value = 805,
+ },
+ new
+ {
+ timestamp = "1973-01-01T00:00:00Z",
+ value = 821,
+ },
+ new
+ {
+ timestamp = "1973-02-01T00:00:00Z",
+ value = 773,
+ },
+ new
+ {
+ timestamp = "1973-03-01T00:00:00Z",
+ value = 883,
+ },
+ new
+ {
+ timestamp = "1973-04-01T00:00:00Z",
+ value = 898,
+ },
+ new
+ {
+ timestamp = "1973-05-01T00:00:00Z",
+ value = 957,
+ },
+ new
+ {
+ timestamp = "1973-06-01T00:00:00Z",
+ value = 924,
+ },
+ new
+ {
+ timestamp = "1973-07-01T00:00:00Z",
+ value = 881,
+ },
+ new
+ {
+ timestamp = "1973-08-01T00:00:00Z",
+ value = 837,
+ },
+ new
+ {
+ timestamp = "1973-09-01T00:00:00Z",
+ value = 784,
+ },
+ new
+ {
+ timestamp = "1973-10-01T00:00:00Z",
+ value = 791,
+ },
+ new
+ {
+ timestamp = "1973-11-01T00:00:00Z",
+ value = 760,
+ },
+ new
+ {
+ timestamp = "1973-12-01T00:00:00Z",
+ value = 802,
+ },
+ new
+ {
+ timestamp = "1974-01-01T00:00:00Z",
+ value = 828,
+ },
+ new
+ {
+ timestamp = "1974-02-01T00:00:00Z",
+ value = 1030,
+ },
+ new
+ {
+ timestamp = "1974-03-01T00:00:00Z",
+ value = 889,
+ },
+ new
+ {
+ timestamp = "1974-04-01T00:00:00Z",
+ value = 902,
+ },
+ new
+ {
+ timestamp = "1974-05-01T00:00:00Z",
+ value = 969,
+ },
+ new
+ {
+ timestamp = "1974-06-01T00:00:00Z",
+ value = 947,
+ },
+ new
+ {
+ timestamp = "1974-07-01T00:00:00Z",
+ value = 908,
+ },
+ new
+ {
+ timestamp = "1974-08-01T00:00:00Z",
+ value = 867,
+ },
+ new
+ {
+ timestamp = "1974-09-01T00:00:00Z",
+ value = 815,
+ },
+ new
+ {
+ timestamp = "1974-10-01T00:00:00Z",
+ value = 812,
+ },
+ new
+ {
+ timestamp = "1974-11-01T00:00:00Z",
+ value = 773,
+ },
+ new
+ {
+ timestamp = "1974-12-01T00:00:00Z",
+ value = 813,
+ },
+ new
+ {
+ timestamp = "1975-01-01T00:00:00Z",
+ value = 834,
+ },
+ new
+ {
+ timestamp = "1975-02-01T00:00:00Z",
+ value = 782,
+ },
+ new
+ {
+ timestamp = "1975-03-01T00:00:00Z",
+ value = 892,
+ },
+ new
+ {
+ timestamp = "1975-04-01T00:00:00Z",
+ value = 903,
+ },
+ new
+ {
+ timestamp = "1975-05-01T00:00:00Z",
+ value = 966,
+ },
+ new
+ {
+ timestamp = "1975-06-01T00:00:00Z",
+ value = 937,
+ },
+ new
+ {
+ timestamp = "1975-07-01T00:00:00Z",
+ value = 896,
+ },
+ new
+ {
+ timestamp = "1975-08-01T00:00:00Z",
+ value = 858,
+ },
+ new
+ {
+ timestamp = "1975-09-01T00:00:00Z",
+ value = 817,
+ },
+ new
+ {
+ timestamp = "1975-10-01T00:00:00Z",
+ value = 827,
+ },
+ new
+ {
+ timestamp = "1975-11-01T00:00:00Z",
+ value = 797,
+ },
+ new
+ {
+ timestamp = "1975-12-01T00:00:00Z",
+ value = 843,
}
},
- granularity = "yearly",
- customInterval = 1234,
- period = 1234,
- stableTrendWindow = 1234,
- threshold = 123.45F,
+ maxAnomalyRatio = 0.25,
+ sensitivity = 95,
+ granularity = "monthly",
+ imputeMode = "fixed",
+ imputeFixedValue = 800,
});
-Response response = client.DetectUnivariateChangePoint(content);
+Response response = await client.DetectUnivariateLastPointAsync(content);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("period").ToString());
-Console.WriteLine(result.GetProperty("isChangePoint")[0].ToString());
-Console.WriteLine(result.GetProperty("confidenceScores")[0].ToString());
+Console.WriteLine(result.GetProperty("suggestedWindow").ToString());
+Console.WriteLine(result.GetProperty("expectedValue").ToString());
+Console.WriteLine(result.GetProperty("upperMargin").ToString());
+Console.WriteLine(result.GetProperty("lowerMargin").ToString());
+Console.WriteLine(result.GetProperty("isAnomaly").ToString());
+Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString());
+Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString());
+]]>
+
+
+
+This sample shows how to call DetectUnivariateLastPoint and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
+
+using RequestContent content = RequestContent.Create(new
+{
+ series = new object[]
+ {
+ new
+ {
+ timestamp = "1972-01-01T00:00:00Z",
+ value = 826,
+ },
+ new
+ {
+ timestamp = "1972-02-01T00:00:00Z",
+ value = 799,
+ },
+ new
+ {
+ timestamp = "1972-03-01T00:00:00Z",
+ value = 890,
+ },
+ new
+ {
+ timestamp = "1972-04-01T00:00:00Z",
+ value = 900,
+ },
+ new
+ {
+ timestamp = "1972-05-01T00:00:00Z",
+ value = 961,
+ },
+ new
+ {
+ timestamp = "1972-06-01T00:00:00Z",
+ value = 935,
+ },
+ new
+ {
+ timestamp = "1972-07-01T00:00:00Z",
+ value = 894,
+ },
+ new
+ {
+ timestamp = "1972-08-01T00:00:00Z",
+ value = 855,
+ },
+ new
+ {
+ timestamp = "1972-09-01T00:00:00Z",
+ value = 809,
+ },
+ new
+ {
+ timestamp = "1972-10-01T00:00:00Z",
+ value = 810,
+ },
+ new
+ {
+ timestamp = "1972-11-01T00:00:00Z",
+ value = 766,
+ },
+ new
+ {
+ timestamp = "1972-12-01T00:00:00Z",
+ value = 805,
+ },
+ new
+ {
+ timestamp = "1973-01-01T00:00:00Z",
+ value = 821,
+ },
+ new
+ {
+ timestamp = "1973-02-01T00:00:00Z",
+ value = 773,
+ },
+ new
+ {
+ timestamp = "1973-03-01T00:00:00Z",
+ value = 883,
+ },
+ new
+ {
+ timestamp = "1973-04-01T00:00:00Z",
+ value = 898,
+ },
+ new
+ {
+ timestamp = "1973-05-01T00:00:00Z",
+ value = 957,
+ },
+ new
+ {
+ timestamp = "1973-06-01T00:00:00Z",
+ value = 924,
+ },
+ new
+ {
+ timestamp = "1973-07-01T00:00:00Z",
+ value = 881,
+ },
+ new
+ {
+ timestamp = "1973-08-01T00:00:00Z",
+ value = 837,
+ },
+ new
+ {
+ timestamp = "1973-09-01T00:00:00Z",
+ value = 784,
+ },
+ new
+ {
+ timestamp = "1973-10-01T00:00:00Z",
+ value = 791,
+ },
+ new
+ {
+ timestamp = "1973-11-01T00:00:00Z",
+ value = 760,
+ },
+ new
+ {
+ timestamp = "1973-12-01T00:00:00Z",
+ value = 802,
+ },
+ new
+ {
+ timestamp = "1974-01-01T00:00:00Z",
+ value = 828,
+ },
+ new
+ {
+ timestamp = "1974-02-01T00:00:00Z",
+ value = 1030,
+ },
+ new
+ {
+ timestamp = "1974-03-01T00:00:00Z",
+ value = 889,
+ },
+ new
+ {
+ timestamp = "1974-04-01T00:00:00Z",
+ value = 902,
+ },
+ new
+ {
+ timestamp = "1974-05-01T00:00:00Z",
+ value = 969,
+ },
+ new
+ {
+ timestamp = "1974-06-01T00:00:00Z",
+ value = 947,
+ },
+ new
+ {
+ timestamp = "1974-07-01T00:00:00Z",
+ value = 908,
+ },
+ new
+ {
+ timestamp = "1974-08-01T00:00:00Z",
+ value = 867,
+ },
+ new
+ {
+ timestamp = "1974-09-01T00:00:00Z",
+ value = 815,
+ },
+ new
+ {
+ timestamp = "1974-10-01T00:00:00Z",
+ value = 812,
+ },
+ new
+ {
+ timestamp = "1974-11-01T00:00:00Z",
+ value = 773,
+ },
+ new
+ {
+ timestamp = "1974-12-01T00:00:00Z",
+ value = 813,
+ },
+ new
+ {
+ timestamp = "1975-01-01T00:00:00Z",
+ value = 834,
+ },
+ new
+ {
+ timestamp = "1975-02-01T00:00:00Z",
+ value = 782,
+ },
+ new
+ {
+ timestamp = "1975-03-01T00:00:00Z",
+ value = 892,
+ },
+ new
+ {
+ timestamp = "1975-04-01T00:00:00Z",
+ value = 903,
+ },
+ new
+ {
+ timestamp = "1975-05-01T00:00:00Z",
+ value = 966,
+ },
+ new
+ {
+ timestamp = "1975-06-01T00:00:00Z",
+ value = 937,
+ },
+ new
+ {
+ timestamp = "1975-07-01T00:00:00Z",
+ value = 896,
+ },
+ new
+ {
+ timestamp = "1975-08-01T00:00:00Z",
+ value = 858,
+ },
+ new
+ {
+ timestamp = "1975-09-01T00:00:00Z",
+ value = 817,
+ },
+ new
+ {
+ timestamp = "1975-10-01T00:00:00Z",
+ value = 827,
+ },
+ new
+ {
+ timestamp = "1975-11-01T00:00:00Z",
+ value = 797,
+ },
+ new
+ {
+ timestamp = "1975-12-01T00:00:00Z",
+ value = 843,
+ }
+ },
+ maxAnomalyRatio = 0.25,
+ sensitivity = 95,
+ granularity = "monthly",
+ imputeMode = "fixed",
+ imputeFixedValue = 800,
+});
+Response response = client.DetectUnivariateLastPoint(content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("period").ToString());
+Console.WriteLine(result.GetProperty("suggestedWindow").ToString());
+Console.WriteLine(result.GetProperty("expectedValue").ToString());
+Console.WriteLine(result.GetProperty("upperMargin").ToString());
+Console.WriteLine(result.GetProperty("lowerMargin").ToString());
+Console.WriteLine(result.GetProperty("isAnomaly").ToString());
+Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString());
+Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString());
+]]>
+
+
+
+This sample shows how to call DetectUnivariateChangePointAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
+
+UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[]
+{
+ new TimeSeriesPoint(1639196)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T06:45:00Z"),
+ },
+ new TimeSeriesPoint(1639290)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T06:50:00Z"),
+ },
+ new TimeSeriesPoint(1667293)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T06:55:00Z"),
+ },
+ new TimeSeriesPoint(1703130)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:00:00Z"),
+ },
+ new TimeSeriesPoint(1650912)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:05:00Z"),
+ },
+ new TimeSeriesPoint(1653596)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:10:00Z"),
+ },
+ new TimeSeriesPoint(1653793)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:15:00Z"),
+ },
+ new TimeSeriesPoint(1653795)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:20:00Z"),
+ },
+ new TimeSeriesPoint(1663471)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:25:00Z"),
+ },
+ new TimeSeriesPoint(1662358)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:30:00Z"),
+ },
+ new TimeSeriesPoint(1664320)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:35:00Z"),
+ },
+ new TimeSeriesPoint(1664942)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:40:00Z"),
+ },
+ new TimeSeriesPoint(1664966)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:45:00Z"),
+ },
+ new TimeSeriesPoint(1724271)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:50:00Z"),
+ },
+ new TimeSeriesPoint(1678720)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:55:00Z"),
+ },
+ new TimeSeriesPoint(1672536)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:00:00Z"),
+ },
+ new TimeSeriesPoint(1672544)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:05:00Z"),
+ },
+ new TimeSeriesPoint(1672364)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:10:00Z"),
+ },
+ new TimeSeriesPoint(1672912)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:15:00Z"),
+ },
+ new TimeSeriesPoint(1672736)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:20:00Z"),
+ },
+ new TimeSeriesPoint(1672725)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:25:00Z"),
+ },
+ new TimeSeriesPoint(1673247)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:30:00Z"),
+ },
+ new TimeSeriesPoint(1673109)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:35:00Z"),
+ },
+ new TimeSeriesPoint(1690088)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:40:00Z"),
+ },
+ new TimeSeriesPoint(1703865)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:45:00Z"),
+ },
+ new TimeSeriesPoint(1703865)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:50:00Z"),
+ },
+ new TimeSeriesPoint(1786581)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:55:00Z"),
+ },
+ new TimeSeriesPoint(1800945)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:00:00Z"),
+ },
+ new TimeSeriesPoint(1800957)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:05:00Z"),
+ },
+ new TimeSeriesPoint(1801191)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:10:00Z"),
+ },
+ new TimeSeriesPoint(1801412)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:15:00Z"),
+ },
+ new TimeSeriesPoint(1801621)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:20:00Z"),
+ },
+ new TimeSeriesPoint(1801621)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:25:00Z"),
+ },
+ new TimeSeriesPoint(1801654)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:30:00Z"),
+ },
+ new TimeSeriesPoint(1802105)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:35:00Z"),
+ },
+ new TimeSeriesPoint(1801800)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:40:00Z"),
+ },
+ new TimeSeriesPoint(1803040)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:45:00Z"),
+ },
+ new TimeSeriesPoint(1803672)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:50:00Z"),
+ },
+ new TimeSeriesPoint(1803535)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:55:00Z"),
+ },
+ new TimeSeriesPoint(1803541)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:00:00Z"),
+ },
+ new TimeSeriesPoint(1803545)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:05:00Z"),
+ },
+ new TimeSeriesPoint(1803599)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:10:00Z"),
+ },
+ new TimeSeriesPoint(1803616)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:15:00Z"),
+ },
+ new TimeSeriesPoint(1803619)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:20:00Z"),
+ },
+ new TimeSeriesPoint(1809942)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:25:00Z"),
+ },
+ new TimeSeriesPoint(1802720)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:30:00Z"),
+ },
+ new TimeSeriesPoint(1802720)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:35:00Z"),
+ },
+ new TimeSeriesPoint(1802888)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:40:00Z"),
+ },
+ new TimeSeriesPoint(1809574)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:45:00Z"),
+ },
+ new TimeSeriesPoint(1803896)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:50:00Z"),
+ },
+ new TimeSeriesPoint(1803850)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:55:00Z"),
+ },
+ new TimeSeriesPoint(1803854)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:00:00Z"),
+ },
+ new TimeSeriesPoint(1803854)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:05:00Z"),
+ },
+ new TimeSeriesPoint(1803797)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:10:00Z"),
+ },
+ new TimeSeriesPoint(1803921)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:15:00Z"),
+ },
+ new TimeSeriesPoint(1803933)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:20:00Z"),
+ },
+ new TimeSeriesPoint(1804040)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:25:00Z"),
+ },
+ new TimeSeriesPoint(1804044)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:30:00Z"),
+ },
+ new TimeSeriesPoint(1804070)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:35:00Z"),
+ },
+ new TimeSeriesPoint(1804070)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:40:00Z"),
+ },
+ new TimeSeriesPoint(1804068)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:45:00Z"),
+ },
+ new TimeSeriesPoint(1804073)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:50:00Z"),
+ },
+ new TimeSeriesPoint(1804101)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:55:00Z"),
+ },
+ new TimeSeriesPoint(1804674)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:00:00Z"),
+ },
+ new TimeSeriesPoint(1804714)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:05:00Z"),
+ },
+ new TimeSeriesPoint(1804730)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:10:00Z"),
+ },
+ new TimeSeriesPoint(1804816)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:15:00Z"),
+ },
+ new TimeSeriesPoint(1803996)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:20:00Z"),
+ },
+ new TimeSeriesPoint(1803998)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:25:00Z"),
+ },
+ new TimeSeriesPoint(1804015)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:30:00Z"),
+ },
+ new TimeSeriesPoint(1804047)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:35:00Z"),
+ },
+ new TimeSeriesPoint(1804050)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:40:00Z"),
+ },
+ new TimeSeriesPoint(1804218)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:45:00Z"),
+ },
+ new TimeSeriesPoint(1804217)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:50:00Z"),
+ },
+ new TimeSeriesPoint(1804217)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:55:00Z"),
+ },
+ new TimeSeriesPoint(1804205)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:00:00Z"),
+ },
+ new TimeSeriesPoint(1804728)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:05:00Z"),
+ },
+ new TimeSeriesPoint(1804748)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:10:00Z"),
+ },
+ new TimeSeriesPoint(1805232)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:15:00Z"),
+ },
+ new TimeSeriesPoint(1814121)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:20:00Z"),
+ },
+ new TimeSeriesPoint(1806789)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:25:00Z"),
+ },
+ new TimeSeriesPoint(1806119)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:30:00Z"),
+ },
+ new TimeSeriesPoint(1806329)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:35:00Z"),
+ },
+ new TimeSeriesPoint(1806454)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:40:00Z"),
+ },
+ new TimeSeriesPoint(1806852)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:45:00Z"),
+ },
+ new TimeSeriesPoint(1807347)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:50:00Z"),
+ },
+ new TimeSeriesPoint(1812144)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:55:00Z"),
+ },
+ new TimeSeriesPoint(1807418)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:00:00Z"),
+ },
+ new TimeSeriesPoint(1807418)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:05:00Z"),
+ },
+ new TimeSeriesPoint(1807432)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:10:00Z"),
+ },
+ new TimeSeriesPoint(1808540)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:15:00Z"),
+ },
+ new TimeSeriesPoint(1808541)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:20:00Z"),
+ },
+ new TimeSeriesPoint(1807831)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:25:00Z"),
+ },
+ new TimeSeriesPoint(1807852)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:30:00Z"),
+ },
+ new TimeSeriesPoint(1807811)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:35:00Z"),
+ },
+ new TimeSeriesPoint(2214285)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:40:00Z"),
+ },
+ new TimeSeriesPoint(2215019)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:45:00Z"),
+ },
+ new TimeSeriesPoint(2215329)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:50:00Z"),
+ },
+ new TimeSeriesPoint(2215097)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:55:00Z"),
+ },
+ new TimeSeriesPoint(2215129)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:00:00Z"),
+ },
+ new TimeSeriesPoint(2215120)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:05:00Z"),
+ },
+ new TimeSeriesPoint(2217056)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:10:00Z"),
+ },
+ new TimeSeriesPoint(2217056)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:15:00Z"),
+ },
+ new TimeSeriesPoint(2222126)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:20:00Z"),
+ },
+ new TimeSeriesPoint(2226472)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:25:00Z"),
+ },
+ new TimeSeriesPoint(2226722)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:30:00Z"),
+ },
+ new TimeSeriesPoint(2226729)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:35:00Z"),
+ },
+ new TimeSeriesPoint(2226735)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:40:00Z"),
+ },
+ new TimeSeriesPoint(2226735)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:45:00Z"),
+ },
+ new TimeSeriesPoint(2226735)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:50:00Z"),
+ },
+ new TimeSeriesPoint(2226952)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:55:00Z"),
+ },
+ new TimeSeriesPoint(2226962)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:00:00Z"),
+ },
+ new TimeSeriesPoint(2649337)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:05:00Z"),
+ },
+ new TimeSeriesPoint(2092796)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:10:00Z"),
+ },
+ new TimeSeriesPoint(2092839)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:15:00Z"),
+ },
+ new TimeSeriesPoint(2092940)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:20:00Z"),
+ },
+ new TimeSeriesPoint(2092940)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:25:00Z"),
+ },
+ new TimeSeriesPoint(2092965)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:30:00Z"),
+ },
+ new TimeSeriesPoint(2092979)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:35:00Z"),
+ },
+ new TimeSeriesPoint(2095588)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:40:00Z"),
+ },
+ new TimeSeriesPoint(2099586)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:45:00Z"),
+ },
+ new TimeSeriesPoint(2102981)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:50:00Z"),
+ },
+ new TimeSeriesPoint(2108053)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:55:00Z"),
+ },
+ new TimeSeriesPoint(2107907)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:00:00Z"),
+ },
+ new TimeSeriesPoint(2108241)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:05:00Z"),
+ },
+ new TimeSeriesPoint(2100321)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:10:00Z"),
+ },
+ new TimeSeriesPoint(2100448)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:15:00Z"),
+ },
+ new TimeSeriesPoint(2100483)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:20:00Z"),
+ },
+ new TimeSeriesPoint(2103042)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:25:00Z"),
+ },
+ new TimeSeriesPoint(2103037)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:30:00Z"),
+ },
+ new TimeSeriesPoint(2103040)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:35:00Z"),
+ },
+ new TimeSeriesPoint(2103054)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:40:00Z"),
+ },
+ new TimeSeriesPoint(2103058)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:45:00Z"),
+ },
+ new TimeSeriesPoint(1830757)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:50:00Z"),
+ },
+ new TimeSeriesPoint(1830855)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:55:00Z"),
+ },
+ new TimeSeriesPoint(1831495)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:00:00Z"),
+ },
+ new TimeSeriesPoint(1831463)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:05:00Z"),
+ },
+ new TimeSeriesPoint(1831963)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:10:00Z"),
+ },
+ new TimeSeriesPoint(1832046)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:15:00Z"),
+ },
+ new TimeSeriesPoint(1832070)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:20:00Z"),
+ },
+ new TimeSeriesPoint(1835511)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:25:00Z"),
+ },
+ new TimeSeriesPoint(1835265)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:30:00Z"),
+ },
+ new TimeSeriesPoint(1835481)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:35:00Z"),
+ },
+ new TimeSeriesPoint(1835578)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:40:00Z"),
+ },
+ new TimeSeriesPoint(1835611)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:45:00Z"),
+ },
+ new TimeSeriesPoint(1836314)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:50:00Z"),
+ },
+ new TimeSeriesPoint(1836369)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:55:00Z"),
+ },
+ new TimeSeriesPoint(1837280)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:00:00Z"),
+ },
+ new TimeSeriesPoint(1842939)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:05:00Z"),
+ },
+ new TimeSeriesPoint(1843126)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:10:00Z"),
+ },
+ new TimeSeriesPoint(1845840)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:15:00Z"),
+ },
+ new TimeSeriesPoint(1842444)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:20:00Z"),
+ },
+ new TimeSeriesPoint(1839891)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:25:00Z"),
+ },
+ new TimeSeriesPoint(1839875)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:30:00Z"),
+ },
+ new TimeSeriesPoint(1839870)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:35:00Z"),
+ },
+ new TimeSeriesPoint(1840090)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:40:00Z"),
+ },
+ new TimeSeriesPoint(1840479)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:45:00Z"),
+ },
+ new TimeSeriesPoint(1840479)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:50:00Z"),
+ },
+ new TimeSeriesPoint(1840482)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:55:00Z"),
+ },
+ new TimeSeriesPoint(1841522)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:00:00Z"),
+ },
+ new TimeSeriesPoint(1841836)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:05:00Z"),
+ },
+ new TimeSeriesPoint(1842377)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:10:00Z"),
+ },
+ new TimeSeriesPoint(1842388)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:15:00Z"),
+ },
+ new TimeSeriesPoint(1842489)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:20:00Z"),
+ },
+ new TimeSeriesPoint(1842489)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:25:00Z"),
+ },
+ new TimeSeriesPoint(1842489)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:30:00Z"),
+ },
+ new TimeSeriesPoint(1842496)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:35:00Z"),
+ },
+ new TimeSeriesPoint(1842689)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:40:00Z"),
+ },
+ new TimeSeriesPoint(1843117)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:45:00Z"),
+ },
+ new TimeSeriesPoint(1843116)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:50:00Z"),
+ },
+ new TimeSeriesPoint(1843227)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:55:00Z"),
+ },
+ new TimeSeriesPoint(1843138)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:00:00Z"),
+ },
+ new TimeSeriesPoint(1843141)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:05:00Z"),
+ },
+ new TimeSeriesPoint(1843310)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:10:00Z"),
+ },
+ new TimeSeriesPoint(1843310)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:15:00Z"),
+ },
+ new TimeSeriesPoint(1843507)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:20:00Z"),
+ },
+ new TimeSeriesPoint(1843953)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:25:00Z"),
+ },
+ new TimeSeriesPoint(1844778)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:30:00Z"),
+ },
+ new TimeSeriesPoint(1843918)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:35:00Z"),
+ },
+ new TimeSeriesPoint(1882692)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:40:00Z"),
+ },
+ new TimeSeriesPoint(1974888)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:45:00Z"),
+ },
+ new TimeSeriesPoint(2157136)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:50:00Z"),
+ },
+ new TimeSeriesPoint(2154987)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:55:00Z"),
+ },
+ new TimeSeriesPoint(2155664)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:00:00Z"),
+ },
+ new TimeSeriesPoint(2155660)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:05:00Z"),
+ },
+ new TimeSeriesPoint(2155824)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:10:00Z"),
+ },
+ new TimeSeriesPoint(2155824)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:15:00Z"),
+ },
+ new TimeSeriesPoint(2156329)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:20:00Z"),
+ },
+ new TimeSeriesPoint(2156479)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:25:00Z"),
+ },
+ new TimeSeriesPoint(2165269)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:30:00Z"),
+ },
+ new TimeSeriesPoint(2165433)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:35:00Z"),
+ },
+ new TimeSeriesPoint(2165739)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:40:00Z"),
+ },
+ new TimeSeriesPoint(2165931)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:45:00Z"),
+ },
+ new TimeSeriesPoint(2165928)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:50:00Z"),
+ },
+ new TimeSeriesPoint(2165989)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:55:00Z"),
+ },
+ new TimeSeriesPoint(2228961)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:00:00Z"),
+ },
+ new TimeSeriesPoint(2228961)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:05:00Z"),
+ },
+ new TimeSeriesPoint(2228961)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:10:00Z"),
+ },
+ new TimeSeriesPoint(2485802)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:15:00Z"),
+ },
+ new TimeSeriesPoint(2485802)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:20:00Z"),
+ },
+ new TimeSeriesPoint(2486021)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:25:00Z"),
+ },
+ new TimeSeriesPoint(2485293)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:30:00Z"),
+ },
+ new TimeSeriesPoint(2485293)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:35:00Z"),
+ },
+ new TimeSeriesPoint(2485324)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:40:00Z"),
+ },
+ new TimeSeriesPoint(2489142)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:45:00Z"),
+ },
+ new TimeSeriesPoint(2526312)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:50:00Z"),
+ },
+ new TimeSeriesPoint(2526313)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:55:00Z"),
+ },
+ new TimeSeriesPoint(2526314)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:00:00Z"),
+ },
+ new TimeSeriesPoint(2526324)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:05:00Z"),
+ },
+ new TimeSeriesPoint(2526325)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:10:00Z"),
+ },
+ new TimeSeriesPoint(2526205)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:15:00Z"),
+ },
+ new TimeSeriesPoint(2526226)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:20:00Z"),
+ },
+ new TimeSeriesPoint(2526475)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:25:00Z"),
+ },
+ new TimeSeriesPoint(2526471)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:30:00Z"),
+ },
+ new TimeSeriesPoint(2526471)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:35:00Z"),
+ },
+ new TimeSeriesPoint(2526534)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:40:00Z"),
+ },
+ new TimeSeriesPoint(2526646)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:45:00Z"),
+ },
+ new TimeSeriesPoint(2526646)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:50:00Z"),
+ },
+ new TimeSeriesPoint(2526648)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:55:00Z"),
+ },
+ new TimeSeriesPoint(2526658)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:00:00Z"),
+ },
+ new TimeSeriesPoint(2526771)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:05:00Z"),
+ },
+ new TimeSeriesPoint(2526773)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:10:00Z"),
+ },
+ new TimeSeriesPoint(2526793)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:15:00Z"),
+ },
+ new TimeSeriesPoint(2527010)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:20:00Z"),
+ },
+ new TimeSeriesPoint(2527031)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:25:00Z"),
+ },
+ new TimeSeriesPoint(3178096)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:30:00Z"),
+ },
+ new TimeSeriesPoint(3196305)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:35:00Z"),
+ },
+ new TimeSeriesPoint(3196202)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:40:00Z"),
+ },
+ new TimeSeriesPoint(3196202)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:45:00Z"),
+ },
+ new TimeSeriesPoint(3196205)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:50:00Z"),
+ },
+ new TimeSeriesPoint(3229232)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:55:00Z"),
+ },
+ new TimeSeriesPoint(3230463)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:00:00Z"),
+ },
+ new TimeSeriesPoint(3230468)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:05:00Z"),
+ },
+ new TimeSeriesPoint(3230468)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:10:00Z"),
+ },
+ new TimeSeriesPoint(3230468)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:15:00Z"),
+ },
+ new TimeSeriesPoint(3230470)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:20:00Z"),
+ },
+ new TimeSeriesPoint(3230467)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:25:00Z"),
+ },
+ new TimeSeriesPoint(3230506)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:30:00Z"),
+ },
+ new TimeSeriesPoint(3231536)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:35:00Z"),
+ },
+ new TimeSeriesPoint(3230723)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:40:00Z"),
+ },
+ new TimeSeriesPoint(3230727)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:45:00Z"),
+ },
+ new TimeSeriesPoint(3230727)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:50:00Z"),
+ },
+ new TimeSeriesPoint(3230727)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:55:00Z"),
+ },
+ new TimeSeriesPoint(3231880)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:00:00Z"),
+ },
+ new TimeSeriesPoint(3232283)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:05:00Z"),
+ },
+ new TimeSeriesPoint(3232283)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:10:00Z"),
+ },
+ new TimeSeriesPoint(3232283)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:15:00Z"),
+ },
+ new TimeSeriesPoint(3232325)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:20:00Z"),
+ },
+ new TimeSeriesPoint(3232323)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:25:00Z"),
+ },
+ new TimeSeriesPoint(3232327)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:30:00Z"),
+ },
+ new TimeSeriesPoint(3232340)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:35:00Z"),
+ },
+ new TimeSeriesPoint(3232713)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:40:00Z"),
+ },
+ new TimeSeriesPoint(3232729)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:45:00Z"),
+ },
+ new TimeSeriesPoint(3232756)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:50:00Z"),
+ },
+ new TimeSeriesPoint(3233500)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:55:00Z"),
+ },
+ new TimeSeriesPoint(3233500)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T04:00:00Z"),
+ },
+ new TimeSeriesPoint(3233500)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T04:05:00Z"),
+ }
+}, TimeGranularity.PerMinute)
+{
+ CustomInterval = 5,
+ Period = 0,
+ StableTrendWindow = 10,
+ Threshold = (float)0.99,
+};
+Response response = await client.DetectUnivariateChangePointAsync(options);
+]]>
+
+
+
+This sample shows how to call DetectUnivariateChangePoint.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
+
+UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[]
+{
+ new TimeSeriesPoint(1639196)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T06:45:00Z"),
+ },
+ new TimeSeriesPoint(1639290)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T06:50:00Z"),
+ },
+ new TimeSeriesPoint(1667293)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T06:55:00Z"),
+ },
+ new TimeSeriesPoint(1703130)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:00:00Z"),
+ },
+ new TimeSeriesPoint(1650912)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:05:00Z"),
+ },
+ new TimeSeriesPoint(1653596)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:10:00Z"),
+ },
+ new TimeSeriesPoint(1653793)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:15:00Z"),
+ },
+ new TimeSeriesPoint(1653795)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:20:00Z"),
+ },
+ new TimeSeriesPoint(1663471)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:25:00Z"),
+ },
+ new TimeSeriesPoint(1662358)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:30:00Z"),
+ },
+ new TimeSeriesPoint(1664320)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:35:00Z"),
+ },
+ new TimeSeriesPoint(1664942)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:40:00Z"),
+ },
+ new TimeSeriesPoint(1664966)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:45:00Z"),
+ },
+ new TimeSeriesPoint(1724271)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:50:00Z"),
+ },
+ new TimeSeriesPoint(1678720)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T07:55:00Z"),
+ },
+ new TimeSeriesPoint(1672536)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:00:00Z"),
+ },
+ new TimeSeriesPoint(1672544)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:05:00Z"),
+ },
+ new TimeSeriesPoint(1672364)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:10:00Z"),
+ },
+ new TimeSeriesPoint(1672912)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:15:00Z"),
+ },
+ new TimeSeriesPoint(1672736)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:20:00Z"),
+ },
+ new TimeSeriesPoint(1672725)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:25:00Z"),
+ },
+ new TimeSeriesPoint(1673247)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:30:00Z"),
+ },
+ new TimeSeriesPoint(1673109)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:35:00Z"),
+ },
+ new TimeSeriesPoint(1690088)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:40:00Z"),
+ },
+ new TimeSeriesPoint(1703865)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:45:00Z"),
+ },
+ new TimeSeriesPoint(1703865)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:50:00Z"),
+ },
+ new TimeSeriesPoint(1786581)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T08:55:00Z"),
+ },
+ new TimeSeriesPoint(1800945)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:00:00Z"),
+ },
+ new TimeSeriesPoint(1800957)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:05:00Z"),
+ },
+ new TimeSeriesPoint(1801191)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:10:00Z"),
+ },
+ new TimeSeriesPoint(1801412)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:15:00Z"),
+ },
+ new TimeSeriesPoint(1801621)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:20:00Z"),
+ },
+ new TimeSeriesPoint(1801621)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:25:00Z"),
+ },
+ new TimeSeriesPoint(1801654)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:30:00Z"),
+ },
+ new TimeSeriesPoint(1802105)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:35:00Z"),
+ },
+ new TimeSeriesPoint(1801800)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:40:00Z"),
+ },
+ new TimeSeriesPoint(1803040)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:45:00Z"),
+ },
+ new TimeSeriesPoint(1803672)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:50:00Z"),
+ },
+ new TimeSeriesPoint(1803535)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T09:55:00Z"),
+ },
+ new TimeSeriesPoint(1803541)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:00:00Z"),
+ },
+ new TimeSeriesPoint(1803545)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:05:00Z"),
+ },
+ new TimeSeriesPoint(1803599)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:10:00Z"),
+ },
+ new TimeSeriesPoint(1803616)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:15:00Z"),
+ },
+ new TimeSeriesPoint(1803619)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:20:00Z"),
+ },
+ new TimeSeriesPoint(1809942)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:25:00Z"),
+ },
+ new TimeSeriesPoint(1802720)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:30:00Z"),
+ },
+ new TimeSeriesPoint(1802720)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:35:00Z"),
+ },
+ new TimeSeriesPoint(1802888)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:40:00Z"),
+ },
+ new TimeSeriesPoint(1809574)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:45:00Z"),
+ },
+ new TimeSeriesPoint(1803896)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:50:00Z"),
+ },
+ new TimeSeriesPoint(1803850)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T10:55:00Z"),
+ },
+ new TimeSeriesPoint(1803854)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:00:00Z"),
+ },
+ new TimeSeriesPoint(1803854)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:05:00Z"),
+ },
+ new TimeSeriesPoint(1803797)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:10:00Z"),
+ },
+ new TimeSeriesPoint(1803921)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:15:00Z"),
+ },
+ new TimeSeriesPoint(1803933)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:20:00Z"),
+ },
+ new TimeSeriesPoint(1804040)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:25:00Z"),
+ },
+ new TimeSeriesPoint(1804044)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:30:00Z"),
+ },
+ new TimeSeriesPoint(1804070)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:35:00Z"),
+ },
+ new TimeSeriesPoint(1804070)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:40:00Z"),
+ },
+ new TimeSeriesPoint(1804068)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:45:00Z"),
+ },
+ new TimeSeriesPoint(1804073)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:50:00Z"),
+ },
+ new TimeSeriesPoint(1804101)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T11:55:00Z"),
+ },
+ new TimeSeriesPoint(1804674)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:00:00Z"),
+ },
+ new TimeSeriesPoint(1804714)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:05:00Z"),
+ },
+ new TimeSeriesPoint(1804730)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:10:00Z"),
+ },
+ new TimeSeriesPoint(1804816)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:15:00Z"),
+ },
+ new TimeSeriesPoint(1803996)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:20:00Z"),
+ },
+ new TimeSeriesPoint(1803998)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:25:00Z"),
+ },
+ new TimeSeriesPoint(1804015)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:30:00Z"),
+ },
+ new TimeSeriesPoint(1804047)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:35:00Z"),
+ },
+ new TimeSeriesPoint(1804050)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:40:00Z"),
+ },
+ new TimeSeriesPoint(1804218)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:45:00Z"),
+ },
+ new TimeSeriesPoint(1804217)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:50:00Z"),
+ },
+ new TimeSeriesPoint(1804217)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T12:55:00Z"),
+ },
+ new TimeSeriesPoint(1804205)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:00:00Z"),
+ },
+ new TimeSeriesPoint(1804728)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:05:00Z"),
+ },
+ new TimeSeriesPoint(1804748)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:10:00Z"),
+ },
+ new TimeSeriesPoint(1805232)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:15:00Z"),
+ },
+ new TimeSeriesPoint(1814121)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:20:00Z"),
+ },
+ new TimeSeriesPoint(1806789)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:25:00Z"),
+ },
+ new TimeSeriesPoint(1806119)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:30:00Z"),
+ },
+ new TimeSeriesPoint(1806329)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:35:00Z"),
+ },
+ new TimeSeriesPoint(1806454)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:40:00Z"),
+ },
+ new TimeSeriesPoint(1806852)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:45:00Z"),
+ },
+ new TimeSeriesPoint(1807347)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:50:00Z"),
+ },
+ new TimeSeriesPoint(1812144)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T13:55:00Z"),
+ },
+ new TimeSeriesPoint(1807418)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:00:00Z"),
+ },
+ new TimeSeriesPoint(1807418)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:05:00Z"),
+ },
+ new TimeSeriesPoint(1807432)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:10:00Z"),
+ },
+ new TimeSeriesPoint(1808540)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:15:00Z"),
+ },
+ new TimeSeriesPoint(1808541)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:20:00Z"),
+ },
+ new TimeSeriesPoint(1807831)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:25:00Z"),
+ },
+ new TimeSeriesPoint(1807852)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:30:00Z"),
+ },
+ new TimeSeriesPoint(1807811)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:35:00Z"),
+ },
+ new TimeSeriesPoint(2214285)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:40:00Z"),
+ },
+ new TimeSeriesPoint(2215019)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:45:00Z"),
+ },
+ new TimeSeriesPoint(2215329)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:50:00Z"),
+ },
+ new TimeSeriesPoint(2215097)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T14:55:00Z"),
+ },
+ new TimeSeriesPoint(2215129)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:00:00Z"),
+ },
+ new TimeSeriesPoint(2215120)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:05:00Z"),
+ },
+ new TimeSeriesPoint(2217056)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:10:00Z"),
+ },
+ new TimeSeriesPoint(2217056)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:15:00Z"),
+ },
+ new TimeSeriesPoint(2222126)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:20:00Z"),
+ },
+ new TimeSeriesPoint(2226472)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:25:00Z"),
+ },
+ new TimeSeriesPoint(2226722)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:30:00Z"),
+ },
+ new TimeSeriesPoint(2226729)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:35:00Z"),
+ },
+ new TimeSeriesPoint(2226735)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:40:00Z"),
+ },
+ new TimeSeriesPoint(2226735)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:45:00Z"),
+ },
+ new TimeSeriesPoint(2226735)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:50:00Z"),
+ },
+ new TimeSeriesPoint(2226952)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T15:55:00Z"),
+ },
+ new TimeSeriesPoint(2226962)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:00:00Z"),
+ },
+ new TimeSeriesPoint(2649337)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:05:00Z"),
+ },
+ new TimeSeriesPoint(2092796)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:10:00Z"),
+ },
+ new TimeSeriesPoint(2092839)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:15:00Z"),
+ },
+ new TimeSeriesPoint(2092940)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:20:00Z"),
+ },
+ new TimeSeriesPoint(2092940)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:25:00Z"),
+ },
+ new TimeSeriesPoint(2092965)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:30:00Z"),
+ },
+ new TimeSeriesPoint(2092979)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:35:00Z"),
+ },
+ new TimeSeriesPoint(2095588)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:40:00Z"),
+ },
+ new TimeSeriesPoint(2099586)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:45:00Z"),
+ },
+ new TimeSeriesPoint(2102981)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:50:00Z"),
+ },
+ new TimeSeriesPoint(2108053)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T16:55:00Z"),
+ },
+ new TimeSeriesPoint(2107907)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:00:00Z"),
+ },
+ new TimeSeriesPoint(2108241)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:05:00Z"),
+ },
+ new TimeSeriesPoint(2100321)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:10:00Z"),
+ },
+ new TimeSeriesPoint(2100448)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:15:00Z"),
+ },
+ new TimeSeriesPoint(2100483)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:20:00Z"),
+ },
+ new TimeSeriesPoint(2103042)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:25:00Z"),
+ },
+ new TimeSeriesPoint(2103037)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:30:00Z"),
+ },
+ new TimeSeriesPoint(2103040)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:35:00Z"),
+ },
+ new TimeSeriesPoint(2103054)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:40:00Z"),
+ },
+ new TimeSeriesPoint(2103058)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:45:00Z"),
+ },
+ new TimeSeriesPoint(1830757)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:50:00Z"),
+ },
+ new TimeSeriesPoint(1830855)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T17:55:00Z"),
+ },
+ new TimeSeriesPoint(1831495)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:00:00Z"),
+ },
+ new TimeSeriesPoint(1831463)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:05:00Z"),
+ },
+ new TimeSeriesPoint(1831963)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:10:00Z"),
+ },
+ new TimeSeriesPoint(1832046)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:15:00Z"),
+ },
+ new TimeSeriesPoint(1832070)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:20:00Z"),
+ },
+ new TimeSeriesPoint(1835511)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:25:00Z"),
+ },
+ new TimeSeriesPoint(1835265)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:30:00Z"),
+ },
+ new TimeSeriesPoint(1835481)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:35:00Z"),
+ },
+ new TimeSeriesPoint(1835578)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:40:00Z"),
+ },
+ new TimeSeriesPoint(1835611)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:45:00Z"),
+ },
+ new TimeSeriesPoint(1836314)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:50:00Z"),
+ },
+ new TimeSeriesPoint(1836369)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T18:55:00Z"),
+ },
+ new TimeSeriesPoint(1837280)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:00:00Z"),
+ },
+ new TimeSeriesPoint(1842939)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:05:00Z"),
+ },
+ new TimeSeriesPoint(1843126)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:10:00Z"),
+ },
+ new TimeSeriesPoint(1845840)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:15:00Z"),
+ },
+ new TimeSeriesPoint(1842444)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:20:00Z"),
+ },
+ new TimeSeriesPoint(1839891)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:25:00Z"),
+ },
+ new TimeSeriesPoint(1839875)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:30:00Z"),
+ },
+ new TimeSeriesPoint(1839870)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:35:00Z"),
+ },
+ new TimeSeriesPoint(1840090)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:40:00Z"),
+ },
+ new TimeSeriesPoint(1840479)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:45:00Z"),
+ },
+ new TimeSeriesPoint(1840479)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:50:00Z"),
+ },
+ new TimeSeriesPoint(1840482)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T19:55:00Z"),
+ },
+ new TimeSeriesPoint(1841522)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:00:00Z"),
+ },
+ new TimeSeriesPoint(1841836)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:05:00Z"),
+ },
+ new TimeSeriesPoint(1842377)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:10:00Z"),
+ },
+ new TimeSeriesPoint(1842388)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:15:00Z"),
+ },
+ new TimeSeriesPoint(1842489)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:20:00Z"),
+ },
+ new TimeSeriesPoint(1842489)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:25:00Z"),
+ },
+ new TimeSeriesPoint(1842489)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:30:00Z"),
+ },
+ new TimeSeriesPoint(1842496)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:35:00Z"),
+ },
+ new TimeSeriesPoint(1842689)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:40:00Z"),
+ },
+ new TimeSeriesPoint(1843117)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:45:00Z"),
+ },
+ new TimeSeriesPoint(1843116)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:50:00Z"),
+ },
+ new TimeSeriesPoint(1843227)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T20:55:00Z"),
+ },
+ new TimeSeriesPoint(1843138)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:00:00Z"),
+ },
+ new TimeSeriesPoint(1843141)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:05:00Z"),
+ },
+ new TimeSeriesPoint(1843310)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:10:00Z"),
+ },
+ new TimeSeriesPoint(1843310)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:15:00Z"),
+ },
+ new TimeSeriesPoint(1843507)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:20:00Z"),
+ },
+ new TimeSeriesPoint(1843953)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:25:00Z"),
+ },
+ new TimeSeriesPoint(1844778)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:30:00Z"),
+ },
+ new TimeSeriesPoint(1843918)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:35:00Z"),
+ },
+ new TimeSeriesPoint(1882692)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:40:00Z"),
+ },
+ new TimeSeriesPoint(1974888)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:45:00Z"),
+ },
+ new TimeSeriesPoint(2157136)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:50:00Z"),
+ },
+ new TimeSeriesPoint(2154987)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T21:55:00Z"),
+ },
+ new TimeSeriesPoint(2155664)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:00:00Z"),
+ },
+ new TimeSeriesPoint(2155660)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:05:00Z"),
+ },
+ new TimeSeriesPoint(2155824)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:10:00Z"),
+ },
+ new TimeSeriesPoint(2155824)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:15:00Z"),
+ },
+ new TimeSeriesPoint(2156329)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:20:00Z"),
+ },
+ new TimeSeriesPoint(2156479)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:25:00Z"),
+ },
+ new TimeSeriesPoint(2165269)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:30:00Z"),
+ },
+ new TimeSeriesPoint(2165433)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:35:00Z"),
+ },
+ new TimeSeriesPoint(2165739)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:40:00Z"),
+ },
+ new TimeSeriesPoint(2165931)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:45:00Z"),
+ },
+ new TimeSeriesPoint(2165928)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:50:00Z"),
+ },
+ new TimeSeriesPoint(2165989)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T22:55:00Z"),
+ },
+ new TimeSeriesPoint(2228961)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:00:00Z"),
+ },
+ new TimeSeriesPoint(2228961)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:05:00Z"),
+ },
+ new TimeSeriesPoint(2228961)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:10:00Z"),
+ },
+ new TimeSeriesPoint(2485802)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:15:00Z"),
+ },
+ new TimeSeriesPoint(2485802)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:20:00Z"),
+ },
+ new TimeSeriesPoint(2486021)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:25:00Z"),
+ },
+ new TimeSeriesPoint(2485293)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:30:00Z"),
+ },
+ new TimeSeriesPoint(2485293)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:35:00Z"),
+ },
+ new TimeSeriesPoint(2485324)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:40:00Z"),
+ },
+ new TimeSeriesPoint(2489142)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:45:00Z"),
+ },
+ new TimeSeriesPoint(2526312)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:50:00Z"),
+ },
+ new TimeSeriesPoint(2526313)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-01T23:55:00Z"),
+ },
+ new TimeSeriesPoint(2526314)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:00:00Z"),
+ },
+ new TimeSeriesPoint(2526324)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:05:00Z"),
+ },
+ new TimeSeriesPoint(2526325)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:10:00Z"),
+ },
+ new TimeSeriesPoint(2526205)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:15:00Z"),
+ },
+ new TimeSeriesPoint(2526226)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:20:00Z"),
+ },
+ new TimeSeriesPoint(2526475)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:25:00Z"),
+ },
+ new TimeSeriesPoint(2526471)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:30:00Z"),
+ },
+ new TimeSeriesPoint(2526471)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:35:00Z"),
+ },
+ new TimeSeriesPoint(2526534)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:40:00Z"),
+ },
+ new TimeSeriesPoint(2526646)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:45:00Z"),
+ },
+ new TimeSeriesPoint(2526646)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:50:00Z"),
+ },
+ new TimeSeriesPoint(2526648)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T00:55:00Z"),
+ },
+ new TimeSeriesPoint(2526658)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:00:00Z"),
+ },
+ new TimeSeriesPoint(2526771)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:05:00Z"),
+ },
+ new TimeSeriesPoint(2526773)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:10:00Z"),
+ },
+ new TimeSeriesPoint(2526793)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:15:00Z"),
+ },
+ new TimeSeriesPoint(2527010)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:20:00Z"),
+ },
+ new TimeSeriesPoint(2527031)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:25:00Z"),
+ },
+ new TimeSeriesPoint(3178096)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:30:00Z"),
+ },
+ new TimeSeriesPoint(3196305)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:35:00Z"),
+ },
+ new TimeSeriesPoint(3196202)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:40:00Z"),
+ },
+ new TimeSeriesPoint(3196202)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:45:00Z"),
+ },
+ new TimeSeriesPoint(3196205)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:50:00Z"),
+ },
+ new TimeSeriesPoint(3229232)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T01:55:00Z"),
+ },
+ new TimeSeriesPoint(3230463)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:00:00Z"),
+ },
+ new TimeSeriesPoint(3230468)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:05:00Z"),
+ },
+ new TimeSeriesPoint(3230468)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:10:00Z"),
+ },
+ new TimeSeriesPoint(3230468)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:15:00Z"),
+ },
+ new TimeSeriesPoint(3230470)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:20:00Z"),
+ },
+ new TimeSeriesPoint(3230467)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:25:00Z"),
+ },
+ new TimeSeriesPoint(3230506)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:30:00Z"),
+ },
+ new TimeSeriesPoint(3231536)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:35:00Z"),
+ },
+ new TimeSeriesPoint(3230723)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:40:00Z"),
+ },
+ new TimeSeriesPoint(3230727)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:45:00Z"),
+ },
+ new TimeSeriesPoint(3230727)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:50:00Z"),
+ },
+ new TimeSeriesPoint(3230727)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T02:55:00Z"),
+ },
+ new TimeSeriesPoint(3231880)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:00:00Z"),
+ },
+ new TimeSeriesPoint(3232283)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:05:00Z"),
+ },
+ new TimeSeriesPoint(3232283)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:10:00Z"),
+ },
+ new TimeSeriesPoint(3232283)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:15:00Z"),
+ },
+ new TimeSeriesPoint(3232325)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:20:00Z"),
+ },
+ new TimeSeriesPoint(3232323)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:25:00Z"),
+ },
+ new TimeSeriesPoint(3232327)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:30:00Z"),
+ },
+ new TimeSeriesPoint(3232340)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:35:00Z"),
+ },
+ new TimeSeriesPoint(3232713)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:40:00Z"),
+ },
+ new TimeSeriesPoint(3232729)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:45:00Z"),
+ },
+ new TimeSeriesPoint(3232756)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:50:00Z"),
+ },
+ new TimeSeriesPoint(3233500)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T03:55:00Z"),
+ },
+ new TimeSeriesPoint(3233500)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T04:00:00Z"),
+ },
+ new TimeSeriesPoint(3233500)
+ {
+ Timestamp = DateTimeOffset.Parse("2017-01-02T04:05:00Z"),
+ }
+}, TimeGranularity.PerMinute)
+{
+ CustomInterval = 5,
+ Period = 0,
+ StableTrendWindow = 10,
+ Threshold = (float)0.99,
+};
+Response response = client.DetectUnivariateChangePoint(options);
+]]>
+
+
+
+This sample shows how to call DetectUnivariateChangePointAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
+
+using RequestContent content = RequestContent.Create(new
+{
+ series = new object[]
+ {
+ new
+ {
+ timestamp = "2017-01-01T06:45:00Z",
+ value = 1639196,
+ },
+ new
+ {
+ timestamp = "2017-01-01T06:50:00Z",
+ value = 1639290,
+ },
+ new
+ {
+ timestamp = "2017-01-01T06:55:00Z",
+ value = 1667293,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:00:00Z",
+ value = 1703130,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:05:00Z",
+ value = 1650912,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:10:00Z",
+ value = 1653596,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:15:00Z",
+ value = 1653793,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:20:00Z",
+ value = 1653795,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:25:00Z",
+ value = 1663471,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:30:00Z",
+ value = 1662358,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:35:00Z",
+ value = 1664320,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:40:00Z",
+ value = 1664942,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:45:00Z",
+ value = 1664966,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:50:00Z",
+ value = 1724271,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:55:00Z",
+ value = 1678720,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:00:00Z",
+ value = 1672536,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:05:00Z",
+ value = 1672544,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:10:00Z",
+ value = 1672364,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:15:00Z",
+ value = 1672912,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:20:00Z",
+ value = 1672736,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:25:00Z",
+ value = 1672725,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:30:00Z",
+ value = 1673247,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:35:00Z",
+ value = 1673109,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:40:00Z",
+ value = 1690088,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:45:00Z",
+ value = 1703865,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:50:00Z",
+ value = 1703865,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:55:00Z",
+ value = 1786581,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:00:00Z",
+ value = 1800945,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:05:00Z",
+ value = 1800957,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:10:00Z",
+ value = 1801191,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:15:00Z",
+ value = 1801412,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:20:00Z",
+ value = 1801621,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:25:00Z",
+ value = 1801621,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:30:00Z",
+ value = 1801654,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:35:00Z",
+ value = 1802105,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:40:00Z",
+ value = 1801800,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:45:00Z",
+ value = 1803040,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:50:00Z",
+ value = 1803672,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:55:00Z",
+ value = 1803535,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:00:00Z",
+ value = 1803541,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:05:00Z",
+ value = 1803545,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:10:00Z",
+ value = 1803599,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:15:00Z",
+ value = 1803616,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:20:00Z",
+ value = 1803619,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:25:00Z",
+ value = 1809942,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:30:00Z",
+ value = 1802720,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:35:00Z",
+ value = 1802720,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:40:00Z",
+ value = 1802888,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:45:00Z",
+ value = 1809574,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:50:00Z",
+ value = 1803896,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:55:00Z",
+ value = 1803850,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:00:00Z",
+ value = 1803854,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:05:00Z",
+ value = 1803854,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:10:00Z",
+ value = 1803797,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:15:00Z",
+ value = 1803921,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:20:00Z",
+ value = 1803933,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:25:00Z",
+ value = 1804040,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:30:00Z",
+ value = 1804044,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:35:00Z",
+ value = 1804070,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:40:00Z",
+ value = 1804070,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:45:00Z",
+ value = 1804068,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:50:00Z",
+ value = 1804073,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:55:00Z",
+ value = 1804101,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:00:00Z",
+ value = 1804674,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:05:00Z",
+ value = 1804714,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:10:00Z",
+ value = 1804730,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:15:00Z",
+ value = 1804816,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:20:00Z",
+ value = 1803996,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:25:00Z",
+ value = 1803998,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:30:00Z",
+ value = 1804015,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:35:00Z",
+ value = 1804047,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:40:00Z",
+ value = 1804050,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:45:00Z",
+ value = 1804218,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:50:00Z",
+ value = 1804217,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:55:00Z",
+ value = 1804217,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:00:00Z",
+ value = 1804205,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:05:00Z",
+ value = 1804728,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:10:00Z",
+ value = 1804748,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:15:00Z",
+ value = 1805232,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:20:00Z",
+ value = 1814121,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:25:00Z",
+ value = 1806789,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:30:00Z",
+ value = 1806119,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:35:00Z",
+ value = 1806329,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:40:00Z",
+ value = 1806454,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:45:00Z",
+ value = 1806852,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:50:00Z",
+ value = 1807347,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:55:00Z",
+ value = 1812144,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:00:00Z",
+ value = 1807418,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:05:00Z",
+ value = 1807418,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:10:00Z",
+ value = 1807432,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:15:00Z",
+ value = 1808540,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:20:00Z",
+ value = 1808541,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:25:00Z",
+ value = 1807831,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:30:00Z",
+ value = 1807852,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:35:00Z",
+ value = 1807811,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:40:00Z",
+ value = 2214285,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:45:00Z",
+ value = 2215019,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:50:00Z",
+ value = 2215329,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:55:00Z",
+ value = 2215097,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:00:00Z",
+ value = 2215129,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:05:00Z",
+ value = 2215120,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:10:00Z",
+ value = 2217056,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:15:00Z",
+ value = 2217056,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:20:00Z",
+ value = 2222126,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:25:00Z",
+ value = 2226472,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:30:00Z",
+ value = 2226722,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:35:00Z",
+ value = 2226729,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:40:00Z",
+ value = 2226735,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:45:00Z",
+ value = 2226735,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:50:00Z",
+ value = 2226735,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:55:00Z",
+ value = 2226952,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:00:00Z",
+ value = 2226962,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:05:00Z",
+ value = 2649337,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:10:00Z",
+ value = 2092796,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:15:00Z",
+ value = 2092839,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:20:00Z",
+ value = 2092940,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:25:00Z",
+ value = 2092940,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:30:00Z",
+ value = 2092965,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:35:00Z",
+ value = 2092979,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:40:00Z",
+ value = 2095588,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:45:00Z",
+ value = 2099586,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:50:00Z",
+ value = 2102981,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:55:00Z",
+ value = 2108053,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:00:00Z",
+ value = 2107907,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:05:00Z",
+ value = 2108241,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:10:00Z",
+ value = 2100321,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:15:00Z",
+ value = 2100448,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:20:00Z",
+ value = 2100483,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:25:00Z",
+ value = 2103042,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:30:00Z",
+ value = 2103037,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:35:00Z",
+ value = 2103040,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:40:00Z",
+ value = 2103054,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:45:00Z",
+ value = 2103058,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:50:00Z",
+ value = 1830757,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:55:00Z",
+ value = 1830855,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:00:00Z",
+ value = 1831495,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:05:00Z",
+ value = 1831463,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:10:00Z",
+ value = 1831963,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:15:00Z",
+ value = 1832046,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:20:00Z",
+ value = 1832070,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:25:00Z",
+ value = 1835511,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:30:00Z",
+ value = 1835265,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:35:00Z",
+ value = 1835481,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:40:00Z",
+ value = 1835578,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:45:00Z",
+ value = 1835611,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:50:00Z",
+ value = 1836314,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:55:00Z",
+ value = 1836369,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:00:00Z",
+ value = 1837280,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:05:00Z",
+ value = 1842939,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:10:00Z",
+ value = 1843126,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:15:00Z",
+ value = 1845840,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:20:00Z",
+ value = 1842444,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:25:00Z",
+ value = 1839891,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:30:00Z",
+ value = 1839875,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:35:00Z",
+ value = 1839870,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:40:00Z",
+ value = 1840090,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:45:00Z",
+ value = 1840479,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:50:00Z",
+ value = 1840479,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:55:00Z",
+ value = 1840482,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:00:00Z",
+ value = 1841522,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:05:00Z",
+ value = 1841836,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:10:00Z",
+ value = 1842377,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:15:00Z",
+ value = 1842388,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:20:00Z",
+ value = 1842489,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:25:00Z",
+ value = 1842489,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:30:00Z",
+ value = 1842489,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:35:00Z",
+ value = 1842496,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:40:00Z",
+ value = 1842689,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:45:00Z",
+ value = 1843117,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:50:00Z",
+ value = 1843116,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:55:00Z",
+ value = 1843227,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:00:00Z",
+ value = 1843138,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:05:00Z",
+ value = 1843141,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:10:00Z",
+ value = 1843310,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:15:00Z",
+ value = 1843310,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:20:00Z",
+ value = 1843507,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:25:00Z",
+ value = 1843953,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:30:00Z",
+ value = 1844778,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:35:00Z",
+ value = 1843918,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:40:00Z",
+ value = 1882692,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:45:00Z",
+ value = 1974888,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:50:00Z",
+ value = 2157136,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:55:00Z",
+ value = 2154987,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:00:00Z",
+ value = 2155664,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:05:00Z",
+ value = 2155660,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:10:00Z",
+ value = 2155824,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:15:00Z",
+ value = 2155824,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:20:00Z",
+ value = 2156329,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:25:00Z",
+ value = 2156479,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:30:00Z",
+ value = 2165269,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:35:00Z",
+ value = 2165433,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:40:00Z",
+ value = 2165739,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:45:00Z",
+ value = 2165931,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:50:00Z",
+ value = 2165928,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:55:00Z",
+ value = 2165989,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:00:00Z",
+ value = 2228961,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:05:00Z",
+ value = 2228961,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:10:00Z",
+ value = 2228961,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:15:00Z",
+ value = 2485802,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:20:00Z",
+ value = 2485802,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:25:00Z",
+ value = 2486021,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:30:00Z",
+ value = 2485293,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:35:00Z",
+ value = 2485293,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:40:00Z",
+ value = 2485324,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:45:00Z",
+ value = 2489142,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:50:00Z",
+ value = 2526312,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:55:00Z",
+ value = 2526313,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:00:00Z",
+ value = 2526314,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:05:00Z",
+ value = 2526324,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:10:00Z",
+ value = 2526325,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:15:00Z",
+ value = 2526205,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:20:00Z",
+ value = 2526226,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:25:00Z",
+ value = 2526475,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:30:00Z",
+ value = 2526471,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:35:00Z",
+ value = 2526471,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:40:00Z",
+ value = 2526534,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:45:00Z",
+ value = 2526646,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:50:00Z",
+ value = 2526646,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:55:00Z",
+ value = 2526648,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:00:00Z",
+ value = 2526658,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:05:00Z",
+ value = 2526771,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:10:00Z",
+ value = 2526773,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:15:00Z",
+ value = 2526793,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:20:00Z",
+ value = 2527010,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:25:00Z",
+ value = 2527031,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:30:00Z",
+ value = 3178096,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:35:00Z",
+ value = 3196305,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:40:00Z",
+ value = 3196202,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:45:00Z",
+ value = 3196202,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:50:00Z",
+ value = 3196205,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:55:00Z",
+ value = 3229232,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:00:00Z",
+ value = 3230463,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:05:00Z",
+ value = 3230468,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:10:00Z",
+ value = 3230468,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:15:00Z",
+ value = 3230468,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:20:00Z",
+ value = 3230470,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:25:00Z",
+ value = 3230467,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:30:00Z",
+ value = 3230506,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:35:00Z",
+ value = 3231536,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:40:00Z",
+ value = 3230723,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:45:00Z",
+ value = 3230727,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:50:00Z",
+ value = 3230727,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:55:00Z",
+ value = 3230727,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:00:00Z",
+ value = 3231880,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:05:00Z",
+ value = 3232283,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:10:00Z",
+ value = 3232283,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:15:00Z",
+ value = 3232283,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:20:00Z",
+ value = 3232325,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:25:00Z",
+ value = 3232323,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:30:00Z",
+ value = 3232327,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:35:00Z",
+ value = 3232340,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:40:00Z",
+ value = 3232713,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:45:00Z",
+ value = 3232729,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:50:00Z",
+ value = 3232756,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:55:00Z",
+ value = 3233500,
+ },
+ new
+ {
+ timestamp = "2017-01-02T04:00:00Z",
+ value = 3233500,
+ },
+ new
+ {
+ timestamp = "2017-01-02T04:05:00Z",
+ value = 3233500,
+ }
+ },
+ granularity = "minutely",
+ customInterval = 5,
+ stableTrendWindow = 10,
+ threshold = 0.99,
+ period = 0,
+});
+Response response = await client.DetectUnivariateChangePointAsync(content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.ToString());
+]]>
+
+
+
+This sample shows how to call DetectUnivariateChangePoint and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
+
+using RequestContent content = RequestContent.Create(new
+{
+ series = new object[]
+ {
+ new
+ {
+ timestamp = "2017-01-01T06:45:00Z",
+ value = 1639196,
+ },
+ new
+ {
+ timestamp = "2017-01-01T06:50:00Z",
+ value = 1639290,
+ },
+ new
+ {
+ timestamp = "2017-01-01T06:55:00Z",
+ value = 1667293,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:00:00Z",
+ value = 1703130,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:05:00Z",
+ value = 1650912,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:10:00Z",
+ value = 1653596,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:15:00Z",
+ value = 1653793,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:20:00Z",
+ value = 1653795,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:25:00Z",
+ value = 1663471,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:30:00Z",
+ value = 1662358,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:35:00Z",
+ value = 1664320,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:40:00Z",
+ value = 1664942,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:45:00Z",
+ value = 1664966,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:50:00Z",
+ value = 1724271,
+ },
+ new
+ {
+ timestamp = "2017-01-01T07:55:00Z",
+ value = 1678720,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:00:00Z",
+ value = 1672536,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:05:00Z",
+ value = 1672544,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:10:00Z",
+ value = 1672364,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:15:00Z",
+ value = 1672912,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:20:00Z",
+ value = 1672736,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:25:00Z",
+ value = 1672725,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:30:00Z",
+ value = 1673247,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:35:00Z",
+ value = 1673109,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:40:00Z",
+ value = 1690088,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:45:00Z",
+ value = 1703865,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:50:00Z",
+ value = 1703865,
+ },
+ new
+ {
+ timestamp = "2017-01-01T08:55:00Z",
+ value = 1786581,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:00:00Z",
+ value = 1800945,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:05:00Z",
+ value = 1800957,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:10:00Z",
+ value = 1801191,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:15:00Z",
+ value = 1801412,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:20:00Z",
+ value = 1801621,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:25:00Z",
+ value = 1801621,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:30:00Z",
+ value = 1801654,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:35:00Z",
+ value = 1802105,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:40:00Z",
+ value = 1801800,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:45:00Z",
+ value = 1803040,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:50:00Z",
+ value = 1803672,
+ },
+ new
+ {
+ timestamp = "2017-01-01T09:55:00Z",
+ value = 1803535,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:00:00Z",
+ value = 1803541,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:05:00Z",
+ value = 1803545,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:10:00Z",
+ value = 1803599,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:15:00Z",
+ value = 1803616,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:20:00Z",
+ value = 1803619,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:25:00Z",
+ value = 1809942,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:30:00Z",
+ value = 1802720,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:35:00Z",
+ value = 1802720,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:40:00Z",
+ value = 1802888,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:45:00Z",
+ value = 1809574,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:50:00Z",
+ value = 1803896,
+ },
+ new
+ {
+ timestamp = "2017-01-01T10:55:00Z",
+ value = 1803850,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:00:00Z",
+ value = 1803854,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:05:00Z",
+ value = 1803854,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:10:00Z",
+ value = 1803797,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:15:00Z",
+ value = 1803921,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:20:00Z",
+ value = 1803933,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:25:00Z",
+ value = 1804040,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:30:00Z",
+ value = 1804044,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:35:00Z",
+ value = 1804070,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:40:00Z",
+ value = 1804070,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:45:00Z",
+ value = 1804068,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:50:00Z",
+ value = 1804073,
+ },
+ new
+ {
+ timestamp = "2017-01-01T11:55:00Z",
+ value = 1804101,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:00:00Z",
+ value = 1804674,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:05:00Z",
+ value = 1804714,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:10:00Z",
+ value = 1804730,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:15:00Z",
+ value = 1804816,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:20:00Z",
+ value = 1803996,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:25:00Z",
+ value = 1803998,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:30:00Z",
+ value = 1804015,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:35:00Z",
+ value = 1804047,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:40:00Z",
+ value = 1804050,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:45:00Z",
+ value = 1804218,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:50:00Z",
+ value = 1804217,
+ },
+ new
+ {
+ timestamp = "2017-01-01T12:55:00Z",
+ value = 1804217,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:00:00Z",
+ value = 1804205,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:05:00Z",
+ value = 1804728,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:10:00Z",
+ value = 1804748,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:15:00Z",
+ value = 1805232,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:20:00Z",
+ value = 1814121,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:25:00Z",
+ value = 1806789,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:30:00Z",
+ value = 1806119,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:35:00Z",
+ value = 1806329,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:40:00Z",
+ value = 1806454,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:45:00Z",
+ value = 1806852,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:50:00Z",
+ value = 1807347,
+ },
+ new
+ {
+ timestamp = "2017-01-01T13:55:00Z",
+ value = 1812144,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:00:00Z",
+ value = 1807418,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:05:00Z",
+ value = 1807418,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:10:00Z",
+ value = 1807432,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:15:00Z",
+ value = 1808540,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:20:00Z",
+ value = 1808541,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:25:00Z",
+ value = 1807831,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:30:00Z",
+ value = 1807852,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:35:00Z",
+ value = 1807811,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:40:00Z",
+ value = 2214285,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:45:00Z",
+ value = 2215019,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:50:00Z",
+ value = 2215329,
+ },
+ new
+ {
+ timestamp = "2017-01-01T14:55:00Z",
+ value = 2215097,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:00:00Z",
+ value = 2215129,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:05:00Z",
+ value = 2215120,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:10:00Z",
+ value = 2217056,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:15:00Z",
+ value = 2217056,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:20:00Z",
+ value = 2222126,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:25:00Z",
+ value = 2226472,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:30:00Z",
+ value = 2226722,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:35:00Z",
+ value = 2226729,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:40:00Z",
+ value = 2226735,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:45:00Z",
+ value = 2226735,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:50:00Z",
+ value = 2226735,
+ },
+ new
+ {
+ timestamp = "2017-01-01T15:55:00Z",
+ value = 2226952,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:00:00Z",
+ value = 2226962,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:05:00Z",
+ value = 2649337,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:10:00Z",
+ value = 2092796,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:15:00Z",
+ value = 2092839,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:20:00Z",
+ value = 2092940,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:25:00Z",
+ value = 2092940,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:30:00Z",
+ value = 2092965,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:35:00Z",
+ value = 2092979,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:40:00Z",
+ value = 2095588,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:45:00Z",
+ value = 2099586,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:50:00Z",
+ value = 2102981,
+ },
+ new
+ {
+ timestamp = "2017-01-01T16:55:00Z",
+ value = 2108053,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:00:00Z",
+ value = 2107907,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:05:00Z",
+ value = 2108241,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:10:00Z",
+ value = 2100321,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:15:00Z",
+ value = 2100448,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:20:00Z",
+ value = 2100483,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:25:00Z",
+ value = 2103042,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:30:00Z",
+ value = 2103037,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:35:00Z",
+ value = 2103040,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:40:00Z",
+ value = 2103054,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:45:00Z",
+ value = 2103058,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:50:00Z",
+ value = 1830757,
+ },
+ new
+ {
+ timestamp = "2017-01-01T17:55:00Z",
+ value = 1830855,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:00:00Z",
+ value = 1831495,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:05:00Z",
+ value = 1831463,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:10:00Z",
+ value = 1831963,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:15:00Z",
+ value = 1832046,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:20:00Z",
+ value = 1832070,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:25:00Z",
+ value = 1835511,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:30:00Z",
+ value = 1835265,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:35:00Z",
+ value = 1835481,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:40:00Z",
+ value = 1835578,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:45:00Z",
+ value = 1835611,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:50:00Z",
+ value = 1836314,
+ },
+ new
+ {
+ timestamp = "2017-01-01T18:55:00Z",
+ value = 1836369,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:00:00Z",
+ value = 1837280,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:05:00Z",
+ value = 1842939,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:10:00Z",
+ value = 1843126,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:15:00Z",
+ value = 1845840,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:20:00Z",
+ value = 1842444,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:25:00Z",
+ value = 1839891,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:30:00Z",
+ value = 1839875,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:35:00Z",
+ value = 1839870,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:40:00Z",
+ value = 1840090,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:45:00Z",
+ value = 1840479,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:50:00Z",
+ value = 1840479,
+ },
+ new
+ {
+ timestamp = "2017-01-01T19:55:00Z",
+ value = 1840482,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:00:00Z",
+ value = 1841522,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:05:00Z",
+ value = 1841836,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:10:00Z",
+ value = 1842377,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:15:00Z",
+ value = 1842388,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:20:00Z",
+ value = 1842489,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:25:00Z",
+ value = 1842489,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:30:00Z",
+ value = 1842489,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:35:00Z",
+ value = 1842496,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:40:00Z",
+ value = 1842689,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:45:00Z",
+ value = 1843117,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:50:00Z",
+ value = 1843116,
+ },
+ new
+ {
+ timestamp = "2017-01-01T20:55:00Z",
+ value = 1843227,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:00:00Z",
+ value = 1843138,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:05:00Z",
+ value = 1843141,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:10:00Z",
+ value = 1843310,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:15:00Z",
+ value = 1843310,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:20:00Z",
+ value = 1843507,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:25:00Z",
+ value = 1843953,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:30:00Z",
+ value = 1844778,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:35:00Z",
+ value = 1843918,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:40:00Z",
+ value = 1882692,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:45:00Z",
+ value = 1974888,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:50:00Z",
+ value = 2157136,
+ },
+ new
+ {
+ timestamp = "2017-01-01T21:55:00Z",
+ value = 2154987,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:00:00Z",
+ value = 2155664,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:05:00Z",
+ value = 2155660,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:10:00Z",
+ value = 2155824,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:15:00Z",
+ value = 2155824,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:20:00Z",
+ value = 2156329,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:25:00Z",
+ value = 2156479,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:30:00Z",
+ value = 2165269,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:35:00Z",
+ value = 2165433,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:40:00Z",
+ value = 2165739,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:45:00Z",
+ value = 2165931,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:50:00Z",
+ value = 2165928,
+ },
+ new
+ {
+ timestamp = "2017-01-01T22:55:00Z",
+ value = 2165989,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:00:00Z",
+ value = 2228961,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:05:00Z",
+ value = 2228961,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:10:00Z",
+ value = 2228961,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:15:00Z",
+ value = 2485802,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:20:00Z",
+ value = 2485802,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:25:00Z",
+ value = 2486021,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:30:00Z",
+ value = 2485293,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:35:00Z",
+ value = 2485293,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:40:00Z",
+ value = 2485324,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:45:00Z",
+ value = 2489142,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:50:00Z",
+ value = 2526312,
+ },
+ new
+ {
+ timestamp = "2017-01-01T23:55:00Z",
+ value = 2526313,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:00:00Z",
+ value = 2526314,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:05:00Z",
+ value = 2526324,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:10:00Z",
+ value = 2526325,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:15:00Z",
+ value = 2526205,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:20:00Z",
+ value = 2526226,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:25:00Z",
+ value = 2526475,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:30:00Z",
+ value = 2526471,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:35:00Z",
+ value = 2526471,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:40:00Z",
+ value = 2526534,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:45:00Z",
+ value = 2526646,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:50:00Z",
+ value = 2526646,
+ },
+ new
+ {
+ timestamp = "2017-01-02T00:55:00Z",
+ value = 2526648,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:00:00Z",
+ value = 2526658,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:05:00Z",
+ value = 2526771,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:10:00Z",
+ value = 2526773,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:15:00Z",
+ value = 2526793,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:20:00Z",
+ value = 2527010,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:25:00Z",
+ value = 2527031,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:30:00Z",
+ value = 3178096,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:35:00Z",
+ value = 3196305,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:40:00Z",
+ value = 3196202,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:45:00Z",
+ value = 3196202,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:50:00Z",
+ value = 3196205,
+ },
+ new
+ {
+ timestamp = "2017-01-02T01:55:00Z",
+ value = 3229232,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:00:00Z",
+ value = 3230463,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:05:00Z",
+ value = 3230468,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:10:00Z",
+ value = 3230468,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:15:00Z",
+ value = 3230468,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:20:00Z",
+ value = 3230470,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:25:00Z",
+ value = 3230467,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:30:00Z",
+ value = 3230506,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:35:00Z",
+ value = 3231536,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:40:00Z",
+ value = 3230723,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:45:00Z",
+ value = 3230727,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:50:00Z",
+ value = 3230727,
+ },
+ new
+ {
+ timestamp = "2017-01-02T02:55:00Z",
+ value = 3230727,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:00:00Z",
+ value = 3231880,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:05:00Z",
+ value = 3232283,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:10:00Z",
+ value = 3232283,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:15:00Z",
+ value = 3232283,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:20:00Z",
+ value = 3232325,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:25:00Z",
+ value = 3232323,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:30:00Z",
+ value = 3232327,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:35:00Z",
+ value = 3232340,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:40:00Z",
+ value = 3232713,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:45:00Z",
+ value = 3232729,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:50:00Z",
+ value = 3232756,
+ },
+ new
+ {
+ timestamp = "2017-01-02T03:55:00Z",
+ value = 3233500,
+ },
+ new
+ {
+ timestamp = "2017-01-02T04:00:00Z",
+ value = 3233500,
+ },
+ new
+ {
+ timestamp = "2017-01-02T04:05:00Z",
+ value = 3233500,
+ }
+ },
+ granularity = "minutely",
+ customInterval = 5,
+ stableTrendWindow = 10,
+ threshold = 0.99,
+ period = 0,
+});
+Response response = client.DetectUnivariateChangePoint(content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.ToString());
]]>
diff --git a/samples/AnomalyDetector/tests/Generated/Samples/Samples_Multivariate.cs b/samples/AnomalyDetector/tests/Generated/Samples/Samples_Multivariate.cs
index e4647fa5ca2..e85583b23e6 100644
--- a/samples/AnomalyDetector/tests/Generated/Samples/Samples_Multivariate.cs
+++ b/samples/AnomalyDetector/tests/Generated/Samples/Samples_Multivariate.cs
@@ -20,13 +20,13 @@ public partial class Samples_Multivariate
{
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateBatchDetectionResult_ShortVersion()
+ public void Example_Multivariate_GetMultivariateBatchDetectionResult_GetMultivariateBatchDetectionResult()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), null);
+ Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("663884e6-b117-11ea-b3de-0242ac130004"), null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("resultId").ToString());
@@ -40,13 +40,13 @@ public void Example_Multivariate_GetMultivariateBatchDetectionResult_ShortVersio
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateBatchDetectionResult_ShortVersion_Async()
+ public async Task Example_Multivariate_GetMultivariateBatchDetectionResult_GetMultivariateBatchDetectionResult_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), null);
+ Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("663884e6-b117-11ea-b3de-0242ac130004"), null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("resultId").ToString());
@@ -60,242 +60,48 @@ public async Task Example_Multivariate_GetMultivariateBatchDetectionResult_Short
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateBatchDetectionResult_ShortVersion_Convenience()
+ public void Example_Multivariate_GetMultivariateBatchDetectionResult_GetMultivariateBatchDetectionResult_Convenience()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"));
+ Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("663884e6-b117-11ea-b3de-0242ac130004"));
}
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateBatchDetectionResult_ShortVersion_Convenience_Async()
+ public async Task Example_Multivariate_GetMultivariateBatchDetectionResult_GetMultivariateBatchDetectionResult_Convenience_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"));
+ Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("663884e6-b117-11ea-b3de-0242ac130004"));
}
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateBatchDetectionResult_AllParameters()
+ public void Example_Multivariate_TrainMultivariateModel_CreateAndTrainMultivariateModel()
{
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), null);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("resultId").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateBatchDetectionResult_AllParameters_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), null);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("resultId").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateBatchDetectionResult_AllParameters_Convenience()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"));
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateBatchDetectionResult_AllParameters_Convenience_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"));
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_TrainMultivariateModel_ShortVersion()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- using RequestContent content = RequestContent.Create(new
- {
- dataSource = "",
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
- });
- Response response = client.TrainMultivariateModel(content);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("modelId").ToString());
- Console.WriteLine(result.GetProperty("createdTime").ToString());
- Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_TrainMultivariateModel_ShortVersion_Async()
- {
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
using RequestContent content = RequestContent.Create(new
{
- dataSource = "",
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
- });
- Response response = await client.TrainMultivariateModelAsync(content);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("modelId").ToString());
- Console.WriteLine(result.GetProperty("createdTime").ToString());
- Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_TrainMultivariateModel_ShortVersion_Convenience()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- ModelInfo modelInfo = new ModelInfo("", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
- Response response = client.TrainMultivariateModel(modelInfo);
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_TrainMultivariateModel_ShortVersion_Convenience_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- ModelInfo modelInfo = new ModelInfo("", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
- Response response = await client.TrainMultivariateModelAsync(modelInfo);
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_TrainMultivariateModel_AllParameters()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- using RequestContent content = RequestContent.Create(new
- {
- dataSource = "",
- dataSchema = "OneTable",
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
- displayName = "",
- slidingWindow = 1234,
+ slidingWindow = 20,
alignPolicy = new
{
- alignMode = "Inner",
- fillNAMethod = "Previous",
- paddingValue = 123.45F,
- },
- status = "CREATED",
- diagnosticsInfo = new
- {
- modelState = new
- {
- epochIds = new object[]
- {
-1234
- },
- trainLosses = new object[]
- {
-123.45F
- },
- validationLosses = new object[]
- {
-123.45F
- },
- latenciesInSeconds = new object[]
- {
-123.45F
- },
- },
- variableStates = new object[]
- {
-new
-{
-variable = "",
-filledNARatio = 123.45F,
-effectiveCount = 1234,
-firstTimestamp = "2022-05-10T18:57:31.2311892Z",
-lastTimestamp = "2022-05-10T18:57:31.2311892Z",
-}
- },
+ alignMode = "Outer",
+ fillNAMethod = "Linear",
+ paddingValue = 0,
},
+ dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv",
+ dataSchema = "OneTable",
+ startTime = "2019-04-01T00:00:00Z",
+ endTime = "2019-04-02T00:00:00Z",
+ displayName = "Devops-MultiAD",
});
Response response = client.TrainMultivariateModel(content);
@@ -303,85 +109,30 @@ public void Example_Multivariate_TrainMultivariateModel_AllParameters()
Console.WriteLine(result.GetProperty("modelId").ToString());
Console.WriteLine(result.GetProperty("createdTime").ToString());
Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
}
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_TrainMultivariateModel_AllParameters_Async()
+ public async Task Example_Multivariate_TrainMultivariateModel_CreateAndTrainMultivariateModel_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
using RequestContent content = RequestContent.Create(new
{
- dataSource = "",
- dataSchema = "OneTable",
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
- displayName = "",
- slidingWindow = 1234,
+ slidingWindow = 20,
alignPolicy = new
{
- alignMode = "Inner",
- fillNAMethod = "Previous",
- paddingValue = 123.45F,
- },
- status = "CREATED",
- diagnosticsInfo = new
- {
- modelState = new
- {
- epochIds = new object[]
- {
-1234
- },
- trainLosses = new object[]
- {
-123.45F
- },
- validationLosses = new object[]
- {
-123.45F
- },
- latenciesInSeconds = new object[]
- {
-123.45F
- },
- },
- variableStates = new object[]
- {
-new
-{
-variable = "",
-filledNARatio = 123.45F,
-effectiveCount = 1234,
-firstTimestamp = "2022-05-10T18:57:31.2311892Z",
-lastTimestamp = "2022-05-10T18:57:31.2311892Z",
-}
- },
+ alignMode = "Outer",
+ fillNAMethod = "Linear",
+ paddingValue = 0,
},
+ dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv",
+ dataSchema = "OneTable",
+ startTime = "2019-04-01T00:00:00Z",
+ endTime = "2019-04-02T00:00:00Z",
+ displayName = "Devops-MultiAD",
});
Response response = await client.TrainMultivariateModelAsync(content);
@@ -389,66 +140,26 @@ public async Task Example_Multivariate_TrainMultivariateModel_AllParameters_Asyn
Console.WriteLine(result.GetProperty("modelId").ToString());
Console.WriteLine(result.GetProperty("createdTime").ToString());
Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
}
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_TrainMultivariateModel_AllParameters_Convenience()
+ public void Example_Multivariate_TrainMultivariateModel_CreateAndTrainMultivariateModel_Convenience()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- ModelInfo modelInfo = new ModelInfo("", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))
+ ModelInfo modelInfo = new ModelInfo("https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", DateTimeOffset.Parse("2019-04-01T00:00:00Z"), DateTimeOffset.Parse("2019-04-02T00:00:00Z"))
{
DataSchema = DataSchema.OneTable,
- DisplayName = "",
- SlidingWindow = 1234,
+ DisplayName = "Devops-MultiAD",
+ SlidingWindow = 20,
AlignPolicy = new AlignPolicy
{
- AlignMode = AlignMode.Inner,
- FillNAMethod = FillNAMethod.Previous,
- PaddingValue = 123.45F,
- },
- Status = ModelStatus.Created,
- DiagnosticsInfo = new DiagnosticsInfo
- {
- ModelState = new ModelState
- {
- EpochIds = { 1234 },
- TrainLosses = { 123.45F },
- ValidationLosses = { 123.45F },
- LatenciesInSeconds = { 123.45F },
- },
- VariableStates = {new VariableState
-{
-Variable = "",
-FilledNARatio = 123.45F,
-EffectiveCount = 1234,
-FirstTimestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
-LastTimestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
-}},
+ AlignMode = AlignMode.Outer,
+ FillNAMethod = FillNAMethod.Linear,
+ PaddingValue = 0,
},
};
Response response = client.TrainMultivariateModel(modelInfo);
@@ -456,41 +167,22 @@ public void Example_Multivariate_TrainMultivariateModel_AllParameters_Convenienc
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_TrainMultivariateModel_AllParameters_Convenience_Async()
+ public async Task Example_Multivariate_TrainMultivariateModel_CreateAndTrainMultivariateModel_Convenience_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- ModelInfo modelInfo = new ModelInfo("", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))
+ ModelInfo modelInfo = new ModelInfo("https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", DateTimeOffset.Parse("2019-04-01T00:00:00Z"), DateTimeOffset.Parse("2019-04-02T00:00:00Z"))
{
DataSchema = DataSchema.OneTable,
- DisplayName = "",
- SlidingWindow = 1234,
+ DisplayName = "Devops-MultiAD",
+ SlidingWindow = 20,
AlignPolicy = new AlignPolicy
{
- AlignMode = AlignMode.Inner,
- FillNAMethod = FillNAMethod.Previous,
- PaddingValue = 123.45F,
- },
- Status = ModelStatus.Created,
- DiagnosticsInfo = new DiagnosticsInfo
- {
- ModelState = new ModelState
- {
- EpochIds = { 1234 },
- TrainLosses = { 123.45F },
- ValidationLosses = { 123.45F },
- LatenciesInSeconds = { 123.45F },
- },
- VariableStates = {new VariableState
-{
-Variable = "",
-FilledNARatio = 123.45F,
-EffectiveCount = 1234,
-FirstTimestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
-LastTimestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
-}},
+ AlignMode = AlignMode.Outer,
+ FillNAMethod = FillNAMethod.Linear,
+ PaddingValue = 0,
},
};
Response response = await client.TrainMultivariateModelAsync(modelInfo);
@@ -498,222 +190,100 @@ public async Task Example_Multivariate_TrainMultivariateModel_AllParameters_Conv
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_DeleteMultivariateModel_ShortVersion()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- Response response = client.DeleteMultivariateModel("");
-
- Console.WriteLine(response.Status);
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_DeleteMultivariateModel_ShortVersion_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- Response response = await client.DeleteMultivariateModelAsync("");
-
- Console.WriteLine(response.Status);
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_DeleteMultivariateModel_AllParameters()
+ public void Example_Multivariate_DeleteMultivariateModel_DeleteMultivariateModel()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- Response response = client.DeleteMultivariateModel("");
+ Response response = client.DeleteMultivariateModel("45aad126-aafd-11ea-b8fb-d89ef3400c5f");
Console.WriteLine(response.Status);
}
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_DeleteMultivariateModel_AllParameters_Async()
+ public async Task Example_Multivariate_DeleteMultivariateModel_DeleteMultivariateModel_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- Response response = await client.DeleteMultivariateModelAsync("");
+ Response response = await client.DeleteMultivariateModelAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f");
Console.WriteLine(response.Status);
}
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateModel_ShortVersion()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- Response response = client.GetMultivariateModel("", null);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("modelId").ToString());
- Console.WriteLine(result.GetProperty("createdTime").ToString());
- Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateModel_ShortVersion_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- Response response = await client.GetMultivariateModelAsync("", null);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("modelId").ToString());
- Console.WriteLine(result.GetProperty("createdTime").ToString());
- Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateModel_ShortVersion_Convenience()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- Response response = client.GetMultivariateModel("");
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateModel_ShortVersion_Convenience_Async()
+ public void Example_Multivariate_GetMultivariateModel_GetAMultivariateModel()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- Response response = await client.GetMultivariateModelAsync("");
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateModel_AllParameters()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- Response response = client.GetMultivariateModel("", null);
+ Response response = client.GetMultivariateModel("45aad126-aafd-11ea-b8fb-d89ef3400c5f", null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("modelId").ToString());
Console.WriteLine(result.GetProperty("createdTime").ToString());
Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
}
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateModel_AllParameters_Async()
+ public async Task Example_Multivariate_GetMultivariateModel_GetAMultivariateModel_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- Response response = await client.GetMultivariateModelAsync("", null);
+ Response response = await client.GetMultivariateModelAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f", null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("modelId").ToString());
Console.WriteLine(result.GetProperty("createdTime").ToString());
Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
}
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateModel_AllParameters_Convenience()
+ public void Example_Multivariate_GetMultivariateModel_GetAMultivariateModel_Convenience()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- Response response = client.GetMultivariateModel("");
+ Response response = client.GetMultivariateModel("45aad126-aafd-11ea-b8fb-d89ef3400c5f");
}
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateModel_AllParameters_Convenience_Async()
+ public async Task Example_Multivariate_GetMultivariateModel_GetAMultivariateModel_Convenience_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- Response response = await client.GetMultivariateModelAsync("");
+ Response response = await client.GetMultivariateModelAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f");
}
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_DetectMultivariateBatchAnomaly_ShortVersion()
+ public void Example_Multivariate_DetectMultivariateBatchAnomaly_DetectMultivariateBatchAnomaly()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
using RequestContent content = RequestContent.Create(new
{
- dataSource = "http://localhost:3000",
- topContributorCount = 1234,
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
+ dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv",
+ topContributorCount = 10,
+ startTime = "2019-04-01T00:15:00Z",
+ endTime = "2019-04-01T00:40:00Z",
});
- Response response = client.DetectMultivariateBatchAnomaly("", content);
+ Response response = client.DetectMultivariateBatchAnomaly("45aad126-aafd-11ea-b8fb-d89ef3400c5f", content);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("resultId").ToString());
@@ -727,20 +297,20 @@ public void Example_Multivariate_DetectMultivariateBatchAnomaly_ShortVersion()
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_DetectMultivariateBatchAnomaly_ShortVersion_Async()
+ public async Task Example_Multivariate_DetectMultivariateBatchAnomaly_DetectMultivariateBatchAnomaly_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
using RequestContent content = RequestContent.Create(new
{
- dataSource = "http://localhost:3000",
- topContributorCount = 1234,
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
+ dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv",
+ topContributorCount = 10,
+ startTime = "2019-04-01T00:15:00Z",
+ endTime = "2019-04-01T00:40:00Z",
});
- Response response = await client.DetectMultivariateBatchAnomalyAsync("", content);
+ Response response = await client.DetectMultivariateBatchAnomalyAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f", content);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("resultId").ToString());
@@ -754,141 +324,33 @@ public async Task Example_Multivariate_DetectMultivariateBatchAnomaly_ShortVersi
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_DetectMultivariateBatchAnomaly_ShortVersion_Convenience()
+ public void Example_Multivariate_DetectMultivariateBatchAnomaly_DetectMultivariateBatchAnomaly_Convenience()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), 1234, DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
- Response response = client.DetectMultivariateBatchAnomaly("", options);
+ MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv"), 10, DateTimeOffset.Parse("2019-04-01T00:15:00Z"), DateTimeOffset.Parse("2019-04-01T00:40:00Z"));
+ Response response = client.DetectMultivariateBatchAnomaly("45aad126-aafd-11ea-b8fb-d89ef3400c5f", options);
}
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_DetectMultivariateBatchAnomaly_ShortVersion_Convenience_Async()
+ public async Task Example_Multivariate_DetectMultivariateBatchAnomaly_DetectMultivariateBatchAnomaly_Convenience_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), 1234, DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
- Response response = await client.DetectMultivariateBatchAnomalyAsync("", options);
+ MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv"), 10, DateTimeOffset.Parse("2019-04-01T00:15:00Z"), DateTimeOffset.Parse("2019-04-01T00:40:00Z"));
+ Response response = await client.DetectMultivariateBatchAnomalyAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f", options);
}
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_DetectMultivariateBatchAnomaly_AllParameters()
+ public void Example_Multivariate_DetectMultivariateLastAnomaly_DetectMultivariateLastAnomaly()
{
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- using RequestContent content = RequestContent.Create(new
- {
- dataSource = "http://localhost:3000",
- topContributorCount = 1234,
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
- });
- Response response = client.DetectMultivariateBatchAnomaly("", content);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("resultId").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_DetectMultivariateBatchAnomaly_AllParameters_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- using RequestContent content = RequestContent.Create(new
- {
- dataSource = "http://localhost:3000",
- topContributorCount = 1234,
- startTime = "2022-05-10T18:57:31.2311892Z",
- endTime = "2022-05-10T18:57:31.2311892Z",
- });
- Response response = await client.DetectMultivariateBatchAnomalyAsync("", content);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("resultId").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("topContributorCount").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_DetectMultivariateBatchAnomaly_AllParameters_Convenience()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), 1234, DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
- Response response = client.DetectMultivariateBatchAnomaly("", options);
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_DetectMultivariateBatchAnomaly_AllParameters_Convenience_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), 1234, DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"), DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
- Response response = await client.DetectMultivariateBatchAnomalyAsync("", options);
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_DetectMultivariateLastAnomaly_ShortVersion()
- {
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
@@ -898,53 +360,218 @@ public void Example_Multivariate_DetectMultivariateLastAnomaly_ShortVersion()
{
new
{
-variable = "",
+variable = "Variable_1",
timestamps = new object[]
{
-""
+"2021-01-01T00:00:00Z",
+"2021-01-01T00:01:00Z",
+"2021-01-01T00:02:00Z",
+"2021-01-01T00:03:00Z",
+"2021-01-01T00:04:00Z",
+"2021-01-01T00:05:00Z",
+"2021-01-01T00:06:00Z",
+"2021-01-01T00:07:00Z",
+"2021-01-01T00:08:00Z",
+"2021-01-01T00:09:00Z",
+"2021-01-01T00:10:00Z",
+"2021-01-01T00:11:00Z",
+"2021-01-01T00:12:00Z",
+"2021-01-01T00:13:00Z",
+"2021-01-01T00:14:00Z",
+"2021-01-01T00:15:00Z",
+"2021-01-01T00:16:00Z",
+"2021-01-01T00:17:00Z",
+"2021-01-01T00:18:00Z",
+"2021-01-01T00:19:00Z",
+"2021-01-01T00:20:00Z",
+"2021-01-01T00:21:00Z",
+"2021-01-01T00:22:00Z",
+"2021-01-01T00:23:00Z",
+"2021-01-01T00:24:00Z",
+"2021-01-01T00:25:00Z",
+"2021-01-01T00:26:00Z",
+"2021-01-01T00:27:00Z",
+"2021-01-01T00:28:00Z",
+"2021-01-01T00:29:00Z"
},
values = new object[]
{
-123.45F
+0.4551378545933972,
+0.7388603950488748,
+0.201088255984052,
+0.7462812245891899,
+0.07308128850401663,
+0.33090474587393537,
+0.7544925268153315,
+0.987506336316328,
+0.6665932993421468,
+0.6308351543168672,
+0.08083310161466228,
+0.8414415588668442,
+0.514583545640453,
+0.0954489875193526,
+0.7786793231920507,
+0.41646133667960994,
+0.030176187583339287,
+0.3474214937189324,
+0.508530173413991,
+0.42451199127255046,
+0.2115944222725208,
+0.24733519545833516,
+0.8791022110982156,
+0.9479621899884665,
+0.26702703121252136,
+0.6954503497669413,
+0.1235728391488995,
+0.8214915473050647,
+0.11813002444192677,
+0.8579045951076123
+},
+},
+new
+{
+variable = "Variable_2",
+timestamps = new object[]
+{
+"2021-01-01T00:00:00Z",
+"2021-01-01T00:01:00Z",
+"2021-01-01T00:02:00Z",
+"2021-01-01T00:03:00Z",
+"2021-01-01T00:04:00Z",
+"2021-01-01T00:05:00Z",
+"2021-01-01T00:06:00Z",
+"2021-01-01T00:07:00Z",
+"2021-01-01T00:08:00Z",
+"2021-01-01T00:09:00Z",
+"2021-01-01T00:10:00Z",
+"2021-01-01T00:11:00Z",
+"2021-01-01T00:12:00Z",
+"2021-01-01T00:13:00Z",
+"2021-01-01T00:14:00Z",
+"2021-01-01T00:15:00Z",
+"2021-01-01T00:16:00Z",
+"2021-01-01T00:17:00Z",
+"2021-01-01T00:18:00Z",
+"2021-01-01T00:19:00Z",
+"2021-01-01T00:20:00Z",
+"2021-01-01T00:21:00Z",
+"2021-01-01T00:22:00Z",
+"2021-01-01T00:23:00Z",
+"2021-01-01T00:24:00Z",
+"2021-01-01T00:25:00Z",
+"2021-01-01T00:26:00Z",
+"2021-01-01T00:27:00Z",
+"2021-01-01T00:28:00Z",
+"2021-01-01T00:29:00Z"
+},
+values = new object[]
+{
+0.9617871613964145,
+0.24903311574778408,
+0.4920561254118613,
+0.9895601049618598,
+0.9171759283128094,
+0.5754204711105273,
+0.1811033296265634,
+0.8852311981742577,
+0.9543231904644779,
+0.7088012446094262,
+0.7843572237149014,
+0.7664787010700046,
+0.3699552325387093,
+0.504519908266789,
+0.5848930929950164,
+0.7628913396089576,
+0.8148405868900065,
+0.08540458873739332,
+0.03481976727525682,
+0.21275099339467762,
+0.9836175579199806,
+0.9321441483364282,
+0.038466608085469534,
+0.1723138437622782,
+0.8626383410218382,
+0.35053229974224254,
+0.631141662835182,
+0.0730352607990088,
+0.08886179043386,
+0.7488606040971179
+},
},
-}
- },
- topContributorCount = 1234,
- });
- Response response = client.DetectMultivariateLastAnomaly("", content);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_DetectMultivariateLastAnomaly_ShortVersion_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- using RequestContent content = RequestContent.Create(new
- {
- variables = new object[]
- {
new
{
-variable = "",
+variable = "Variable_3",
timestamps = new object[]
{
-""
+"2021-01-01T00:00:00Z",
+"2021-01-01T00:01:00Z",
+"2021-01-01T00:02:00Z",
+"2021-01-01T00:03:00Z",
+"2021-01-01T00:04:00Z",
+"2021-01-01T00:05:00Z",
+"2021-01-01T00:06:00Z",
+"2021-01-01T00:07:00Z",
+"2021-01-01T00:08:00Z",
+"2021-01-01T00:09:00Z",
+"2021-01-01T00:10:00Z",
+"2021-01-01T00:11:00Z",
+"2021-01-01T00:12:00Z",
+"2021-01-01T00:13:00Z",
+"2021-01-01T00:14:00Z",
+"2021-01-01T00:15:00Z",
+"2021-01-01T00:16:00Z",
+"2021-01-01T00:17:00Z",
+"2021-01-01T00:18:00Z",
+"2021-01-01T00:19:00Z",
+"2021-01-01T00:20:00Z",
+"2021-01-01T00:21:00Z",
+"2021-01-01T00:22:00Z",
+"2021-01-01T00:23:00Z",
+"2021-01-01T00:24:00Z",
+"2021-01-01T00:25:00Z",
+"2021-01-01T00:26:00Z",
+"2021-01-01T00:27:00Z",
+"2021-01-01T00:28:00Z",
+"2021-01-01T00:29:00Z"
},
values = new object[]
{
-123.45F
+0.4030756879437628,
+0.15526889968448554,
+0.36352226408981103,
+0.6051200637229004,
+0.8516795018476276,
+0.2645605735279929,
+0.6810875830037345,
+0.9165894221681316,
+0.700783245230424,
+0.5624155469940331,
+0.6277289685127893,
+0.15992056539730204,
+0.6020964482827594,
+0.35937967753105915,
+0.8731686034848609,
+0.20301549117588935,
+0.029261872151168933,
+0.6261499548828445,
+0.45850782028563386,
+0.8275006940083313,
+0.032760268834037376,
+0.4485202784055029,
+0.8915691008748384,
+0.891669051517807,
+0.9469979353323046,
+0.115293087370132,
+0.08818772518459506,
+0.7426286620589166,
+0.32372247468990756,
+0.936268139507417
},
}
},
- topContributorCount = 1234,
+ topContributorCount = 10,
});
- Response response = await client.DetectMultivariateLastAnomalyAsync("", content);
+ Response response = client.DetectMultivariateLastAnomaly("45aad126-aafd-11ea-b8fb-d89ef3400c5f", content);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.ToString());
@@ -952,39 +579,9 @@ public async Task Example_Multivariate_DetectMultivariateLastAnomaly_ShortVersio
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_DetectMultivariateLastAnomaly_ShortVersion_Convenience()
+ public async Task Example_Multivariate_DetectMultivariateLastAnomaly_DetectMultivariateLastAnomaly_Async()
{
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[]
- {
-new VariableValues("", new string[]{""}, new float[]{123.45F})
- }, 1234);
- Response response = client.DetectMultivariateLastAnomaly("", options);
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_DetectMultivariateLastAnomaly_ShortVersion_Convenience_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[]
- {
-new VariableValues("", new string[]{""}, new float[]{123.45F})
- }, 1234);
- Response response = await client.DetectMultivariateLastAnomalyAsync("", options);
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_DetectMultivariateLastAnomaly_AllParameters()
- {
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
@@ -994,123 +591,266 @@ public void Example_Multivariate_DetectMultivariateLastAnomaly_AllParameters()
{
new
{
-variable = "",
+variable = "Variable_1",
timestamps = new object[]
{
-""
+"2021-01-01T00:00:00Z",
+"2021-01-01T00:01:00Z",
+"2021-01-01T00:02:00Z",
+"2021-01-01T00:03:00Z",
+"2021-01-01T00:04:00Z",
+"2021-01-01T00:05:00Z",
+"2021-01-01T00:06:00Z",
+"2021-01-01T00:07:00Z",
+"2021-01-01T00:08:00Z",
+"2021-01-01T00:09:00Z",
+"2021-01-01T00:10:00Z",
+"2021-01-01T00:11:00Z",
+"2021-01-01T00:12:00Z",
+"2021-01-01T00:13:00Z",
+"2021-01-01T00:14:00Z",
+"2021-01-01T00:15:00Z",
+"2021-01-01T00:16:00Z",
+"2021-01-01T00:17:00Z",
+"2021-01-01T00:18:00Z",
+"2021-01-01T00:19:00Z",
+"2021-01-01T00:20:00Z",
+"2021-01-01T00:21:00Z",
+"2021-01-01T00:22:00Z",
+"2021-01-01T00:23:00Z",
+"2021-01-01T00:24:00Z",
+"2021-01-01T00:25:00Z",
+"2021-01-01T00:26:00Z",
+"2021-01-01T00:27:00Z",
+"2021-01-01T00:28:00Z",
+"2021-01-01T00:29:00Z"
},
values = new object[]
{
-123.45F
+0.4551378545933972,
+0.7388603950488748,
+0.201088255984052,
+0.7462812245891899,
+0.07308128850401663,
+0.33090474587393537,
+0.7544925268153315,
+0.987506336316328,
+0.6665932993421468,
+0.6308351543168672,
+0.08083310161466228,
+0.8414415588668442,
+0.514583545640453,
+0.0954489875193526,
+0.7786793231920507,
+0.41646133667960994,
+0.030176187583339287,
+0.3474214937189324,
+0.508530173413991,
+0.42451199127255046,
+0.2115944222725208,
+0.24733519545833516,
+0.8791022110982156,
+0.9479621899884665,
+0.26702703121252136,
+0.6954503497669413,
+0.1235728391488995,
+0.8214915473050647,
+0.11813002444192677,
+0.8579045951076123
+},
+},
+new
+{
+variable = "Variable_2",
+timestamps = new object[]
+{
+"2021-01-01T00:00:00Z",
+"2021-01-01T00:01:00Z",
+"2021-01-01T00:02:00Z",
+"2021-01-01T00:03:00Z",
+"2021-01-01T00:04:00Z",
+"2021-01-01T00:05:00Z",
+"2021-01-01T00:06:00Z",
+"2021-01-01T00:07:00Z",
+"2021-01-01T00:08:00Z",
+"2021-01-01T00:09:00Z",
+"2021-01-01T00:10:00Z",
+"2021-01-01T00:11:00Z",
+"2021-01-01T00:12:00Z",
+"2021-01-01T00:13:00Z",
+"2021-01-01T00:14:00Z",
+"2021-01-01T00:15:00Z",
+"2021-01-01T00:16:00Z",
+"2021-01-01T00:17:00Z",
+"2021-01-01T00:18:00Z",
+"2021-01-01T00:19:00Z",
+"2021-01-01T00:20:00Z",
+"2021-01-01T00:21:00Z",
+"2021-01-01T00:22:00Z",
+"2021-01-01T00:23:00Z",
+"2021-01-01T00:24:00Z",
+"2021-01-01T00:25:00Z",
+"2021-01-01T00:26:00Z",
+"2021-01-01T00:27:00Z",
+"2021-01-01T00:28:00Z",
+"2021-01-01T00:29:00Z"
+},
+values = new object[]
+{
+0.9617871613964145,
+0.24903311574778408,
+0.4920561254118613,
+0.9895601049618598,
+0.9171759283128094,
+0.5754204711105273,
+0.1811033296265634,
+0.8852311981742577,
+0.9543231904644779,
+0.7088012446094262,
+0.7843572237149014,
+0.7664787010700046,
+0.3699552325387093,
+0.504519908266789,
+0.5848930929950164,
+0.7628913396089576,
+0.8148405868900065,
+0.08540458873739332,
+0.03481976727525682,
+0.21275099339467762,
+0.9836175579199806,
+0.9321441483364282,
+0.038466608085469534,
+0.1723138437622782,
+0.8626383410218382,
+0.35053229974224254,
+0.631141662835182,
+0.0730352607990088,
+0.08886179043386,
+0.7488606040971179
+},
},
-}
- },
- topContributorCount = 1234,
- });
- Response response = client.DetectMultivariateLastAnomaly("", content);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_DetectMultivariateLastAnomaly_AllParameters_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- using RequestContent content = RequestContent.Create(new
- {
- variables = new object[]
- {
new
{
-variable = "",
+variable = "Variable_3",
timestamps = new object[]
{
-""
+"2021-01-01T00:00:00Z",
+"2021-01-01T00:01:00Z",
+"2021-01-01T00:02:00Z",
+"2021-01-01T00:03:00Z",
+"2021-01-01T00:04:00Z",
+"2021-01-01T00:05:00Z",
+"2021-01-01T00:06:00Z",
+"2021-01-01T00:07:00Z",
+"2021-01-01T00:08:00Z",
+"2021-01-01T00:09:00Z",
+"2021-01-01T00:10:00Z",
+"2021-01-01T00:11:00Z",
+"2021-01-01T00:12:00Z",
+"2021-01-01T00:13:00Z",
+"2021-01-01T00:14:00Z",
+"2021-01-01T00:15:00Z",
+"2021-01-01T00:16:00Z",
+"2021-01-01T00:17:00Z",
+"2021-01-01T00:18:00Z",
+"2021-01-01T00:19:00Z",
+"2021-01-01T00:20:00Z",
+"2021-01-01T00:21:00Z",
+"2021-01-01T00:22:00Z",
+"2021-01-01T00:23:00Z",
+"2021-01-01T00:24:00Z",
+"2021-01-01T00:25:00Z",
+"2021-01-01T00:26:00Z",
+"2021-01-01T00:27:00Z",
+"2021-01-01T00:28:00Z",
+"2021-01-01T00:29:00Z"
},
values = new object[]
{
-123.45F
+0.4030756879437628,
+0.15526889968448554,
+0.36352226408981103,
+0.6051200637229004,
+0.8516795018476276,
+0.2645605735279929,
+0.6810875830037345,
+0.9165894221681316,
+0.700783245230424,
+0.5624155469940331,
+0.6277289685127893,
+0.15992056539730204,
+0.6020964482827594,
+0.35937967753105915,
+0.8731686034848609,
+0.20301549117588935,
+0.029261872151168933,
+0.6261499548828445,
+0.45850782028563386,
+0.8275006940083313,
+0.032760268834037376,
+0.4485202784055029,
+0.8915691008748384,
+0.891669051517807,
+0.9469979353323046,
+0.115293087370132,
+0.08818772518459506,
+0.7426286620589166,
+0.32372247468990756,
+0.936268139507417
},
}
},
- topContributorCount = 1234,
+ topContributorCount = 10,
});
- Response response = await client.DetectMultivariateLastAnomalyAsync("", content);
+ Response response = await client.DetectMultivariateLastAnomalyAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f", content);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("isAnomaly").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("severity").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("score").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("contributionScore").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString());
+ Console.WriteLine(result.ToString());
}
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_DetectMultivariateLastAnomaly_AllParameters_Convenience()
+ public void Example_Multivariate_DetectMultivariateLastAnomaly_DetectMultivariateLastAnomaly_Convenience()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[]
{
-new VariableValues("", new string[]{""}, new float[]{123.45F})
- }, 1234);
- Response response = client.DetectMultivariateLastAnomaly("", options);
+new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4551378545933972, (float)0.7388603950488748, (float)0.201088255984052, (float)0.7462812245891899, (float)0.07308128850401663, (float)0.33090474587393537, (float)0.7544925268153315, (float)0.987506336316328, (float)0.6665932993421468, (float)0.6308351543168672, (float)0.08083310161466228, (float)0.8414415588668442, (float)0.514583545640453, (float)0.0954489875193526, (float)0.7786793231920507, (float)0.41646133667960994, (float)0.030176187583339287, (float)0.3474214937189324, (float)0.508530173413991, (float)0.42451199127255046, (float)0.2115944222725208, (float)0.24733519545833516, (float)0.8791022110982156, (float)0.9479621899884665, (float)0.26702703121252136, (float)0.6954503497669413, (float)0.1235728391488995, (float)0.8214915473050647, (float)0.11813002444192677, (float)0.8579045951076123}),
+new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.9617871613964145, (float)0.24903311574778408, (float)0.4920561254118613, (float)0.9895601049618598, (float)0.9171759283128094, (float)0.5754204711105273, (float)0.1811033296265634, (float)0.8852311981742577, (float)0.9543231904644779, (float)0.7088012446094262, (float)0.7843572237149014, (float)0.7664787010700046, (float)0.3699552325387093, (float)0.504519908266789, (float)0.5848930929950164, (float)0.7628913396089576, (float)0.8148405868900065, (float)0.08540458873739332, (float)0.03481976727525682, (float)0.21275099339467762, (float)0.9836175579199806, (float)0.9321441483364282, (float)0.038466608085469534, (float)0.1723138437622782, (float)0.8626383410218382, (float)0.35053229974224254, (float)0.631141662835182, (float)0.0730352607990088, (float)0.08886179043386, (float)0.7488606040971179}),
+new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4030756879437628, (float)0.15526889968448554, (float)0.36352226408981103, (float)0.6051200637229004, (float)0.8516795018476276, (float)0.2645605735279929, (float)0.6810875830037345, (float)0.9165894221681316, (float)0.700783245230424, (float)0.5624155469940331, (float)0.6277289685127893, (float)0.15992056539730204, (float)0.6020964482827594, (float)0.35937967753105915, (float)0.8731686034848609, (float)0.20301549117588935, (float)0.029261872151168933, (float)0.6261499548828445, (float)0.45850782028563386, (float)0.8275006940083313, (float)0.032760268834037376, (float)0.4485202784055029, (float)0.8915691008748384, (float)0.891669051517807, (float)0.9469979353323046, (float)0.115293087370132, (float)0.08818772518459506, (float)0.7426286620589166, (float)0.32372247468990756, (float)0.936268139507417})
+ }, 10);
+ Response response = client.DetectMultivariateLastAnomaly("45aad126-aafd-11ea-b8fb-d89ef3400c5f", options);
}
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_DetectMultivariateLastAnomaly_AllParameters_Convenience_Async()
+ public async Task Example_Multivariate_DetectMultivariateLastAnomaly_DetectMultivariateLastAnomaly_Convenience_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[]
{
-new VariableValues("", new string[]{""}, new float[]{123.45F})
- }, 1234);
- Response response = await client.DetectMultivariateLastAnomalyAsync("", options);
+new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4551378545933972, (float)0.7388603950488748, (float)0.201088255984052, (float)0.7462812245891899, (float)0.07308128850401663, (float)0.33090474587393537, (float)0.7544925268153315, (float)0.987506336316328, (float)0.6665932993421468, (float)0.6308351543168672, (float)0.08083310161466228, (float)0.8414415588668442, (float)0.514583545640453, (float)0.0954489875193526, (float)0.7786793231920507, (float)0.41646133667960994, (float)0.030176187583339287, (float)0.3474214937189324, (float)0.508530173413991, (float)0.42451199127255046, (float)0.2115944222725208, (float)0.24733519545833516, (float)0.8791022110982156, (float)0.9479621899884665, (float)0.26702703121252136, (float)0.6954503497669413, (float)0.1235728391488995, (float)0.8214915473050647, (float)0.11813002444192677, (float)0.8579045951076123}),
+new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.9617871613964145, (float)0.24903311574778408, (float)0.4920561254118613, (float)0.9895601049618598, (float)0.9171759283128094, (float)0.5754204711105273, (float)0.1811033296265634, (float)0.8852311981742577, (float)0.9543231904644779, (float)0.7088012446094262, (float)0.7843572237149014, (float)0.7664787010700046, (float)0.3699552325387093, (float)0.504519908266789, (float)0.5848930929950164, (float)0.7628913396089576, (float)0.8148405868900065, (float)0.08540458873739332, (float)0.03481976727525682, (float)0.21275099339467762, (float)0.9836175579199806, (float)0.9321441483364282, (float)0.038466608085469534, (float)0.1723138437622782, (float)0.8626383410218382, (float)0.35053229974224254, (float)0.631141662835182, (float)0.0730352607990088, (float)0.08886179043386, (float)0.7488606040971179}),
+new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4030756879437628, (float)0.15526889968448554, (float)0.36352226408981103, (float)0.6051200637229004, (float)0.8516795018476276, (float)0.2645605735279929, (float)0.6810875830037345, (float)0.9165894221681316, (float)0.700783245230424, (float)0.5624155469940331, (float)0.6277289685127893, (float)0.15992056539730204, (float)0.6020964482827594, (float)0.35937967753105915, (float)0.8731686034848609, (float)0.20301549117588935, (float)0.029261872151168933, (float)0.6261499548828445, (float)0.45850782028563386, (float)0.8275006940083313, (float)0.032760268834037376, (float)0.4485202784055029, (float)0.8915691008748384, (float)0.891669051517807, (float)0.9469979353323046, (float)0.115293087370132, (float)0.08818772518459506, (float)0.7426286620589166, (float)0.32372247468990756, (float)0.936268139507417})
+ }, 10);
+ Response response = await client.DetectMultivariateLastAnomalyAsync("45aad126-aafd-11ea-b8fb-d89ef3400c5f", options);
}
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateModels_ShortVersion()
+ public void Example_Multivariate_GetMultivariateModels_ListMultivariateModels()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- foreach (BinaryData item in client.GetMultivariateModels(null, null, null))
+ foreach (BinaryData item in client.GetMultivariateModels(0, null, null))
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.GetProperty("modelId").ToString());
@@ -1121,13 +861,13 @@ public void Example_Multivariate_GetMultivariateModels_ShortVersion()
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateModels_ShortVersion_Async()
+ public async Task Example_Multivariate_GetMultivariateModels_ListMultivariateModels_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
- await foreach (BinaryData item in client.GetMultivariateModelsAsync(null, null, null))
+ await foreach (BinaryData item in client.GetMultivariateModelsAsync(0, null, null))
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.GetProperty("modelId").ToString());
@@ -1138,9 +878,9 @@ public async Task Example_Multivariate_GetMultivariateModels_ShortVersion_Async(
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateModels_ShortVersion_Convenience()
+ public void Example_Multivariate_GetMultivariateModels_ListMultivariateModels_Convenience()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
@@ -1151,9 +891,9 @@ public void Example_Multivariate_GetMultivariateModels_ShortVersion_Convenience(
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateModels_ShortVersion_Convenience_Async()
+ public async Task Example_Multivariate_GetMultivariateModels_ListMultivariateModels_Convenience_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
@@ -1161,107 +901,5 @@ public async Task Example_Multivariate_GetMultivariateModels_ShortVersion_Conven
{
}
}
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateModels_AllParameters()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- foreach (BinaryData item in client.GetMultivariateModels(1234, 1234, null))
- {
- JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
- Console.WriteLine(result.GetProperty("modelId").ToString());
- Console.WriteLine(result.GetProperty("createdTime").ToString());
- Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
- }
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateModels_AllParameters_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- await foreach (BinaryData item in client.GetMultivariateModelsAsync(1234, 1234, null))
- {
- JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
- Console.WriteLine(result.GetProperty("modelId").ToString());
- Console.WriteLine(result.GetProperty("createdTime").ToString());
- Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSource").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("dataSchema").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("startTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("endTime").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("displayName").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("slidingWindow").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("alignMode").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("fillNAMethod").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("alignPolicy").GetProperty("paddingValue").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("status").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("code").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("errors")[0].GetProperty("message").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("epochIds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("trainLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("validationLosses")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("modelState").GetProperty("latenciesInSeconds")[0].ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("variable").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("filledNARatio").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString());
- Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString());
- }
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Multivariate_GetMultivariateModels_AllParameters_Convenience()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- foreach (AnomalyDetectionModel item in client.GetMultivariateModels(skip: 1234, maxCount: 1234))
- {
- }
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Multivariate_GetMultivariateModels_AllParameters_Convenience_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultivariateClient();
-
- await foreach (AnomalyDetectionModel item in client.GetMultivariateModelsAsync(skip: 1234, maxCount: 1234))
- {
- }
- }
}
}
diff --git a/samples/AnomalyDetector/tests/Generated/Samples/Samples_Univariate.cs b/samples/AnomalyDetector/tests/Generated/Samples/Samples_Univariate.cs
index ae81655054e..2d5cd6bc7b0 100644
--- a/samples/AnomalyDetector/tests/Generated/Samples/Samples_Univariate.cs
+++ b/samples/AnomalyDetector/tests/Generated/Samples/Samples_Univariate.cs
@@ -20,9 +20,9 @@ public partial class Samples_Univariate
{
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Univariate_DetectUnivariateEntireSeries_ShortVersion()
+ public void Example_Univariate_DetectUnivariateEntireSeries_UnivariateDetectEntireSeries()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
@@ -32,9 +32,249 @@ public void Example_Univariate_DetectUnivariateEntireSeries_ShortVersion()
{
new
{
-value = 123.45F,
+timestamp = "1972-01-01T00:00:00Z",
+value = 826,
+},
+new
+{
+timestamp = "1972-02-01T00:00:00Z",
+value = 799,
+},
+new
+{
+timestamp = "1972-03-01T00:00:00Z",
+value = 890,
+},
+new
+{
+timestamp = "1972-04-01T00:00:00Z",
+value = 900,
+},
+new
+{
+timestamp = "1972-05-01T00:00:00Z",
+value = 961,
+},
+new
+{
+timestamp = "1972-06-01T00:00:00Z",
+value = 935,
+},
+new
+{
+timestamp = "1972-07-01T00:00:00Z",
+value = 894,
+},
+new
+{
+timestamp = "1972-08-01T00:00:00Z",
+value = 855,
+},
+new
+{
+timestamp = "1972-09-01T00:00:00Z",
+value = 809,
+},
+new
+{
+timestamp = "1972-10-01T00:00:00Z",
+value = 810,
+},
+new
+{
+timestamp = "1972-11-01T00:00:00Z",
+value = 766,
+},
+new
+{
+timestamp = "1972-12-01T00:00:00Z",
+value = 805,
+},
+new
+{
+timestamp = "1973-01-01T00:00:00Z",
+value = 821,
+},
+new
+{
+timestamp = "1973-02-01T00:00:00Z",
+value = 773,
+},
+new
+{
+timestamp = "1973-03-01T00:00:00Z",
+value = 883,
+},
+new
+{
+timestamp = "1973-04-01T00:00:00Z",
+value = 898,
+},
+new
+{
+timestamp = "1973-05-01T00:00:00Z",
+value = 957,
+},
+new
+{
+timestamp = "1973-06-01T00:00:00Z",
+value = 924,
+},
+new
+{
+timestamp = "1973-07-01T00:00:00Z",
+value = 881,
+},
+new
+{
+timestamp = "1973-08-01T00:00:00Z",
+value = 837,
+},
+new
+{
+timestamp = "1973-09-01T00:00:00Z",
+value = 784,
+},
+new
+{
+timestamp = "1973-10-01T00:00:00Z",
+value = 791,
+},
+new
+{
+timestamp = "1973-11-01T00:00:00Z",
+value = 760,
+},
+new
+{
+timestamp = "1973-12-01T00:00:00Z",
+value = 802,
+},
+new
+{
+timestamp = "1974-01-01T00:00:00Z",
+value = 828,
+},
+new
+{
+timestamp = "1974-02-01T00:00:00Z",
+value = 1030,
+},
+new
+{
+timestamp = "1974-03-01T00:00:00Z",
+value = 889,
+},
+new
+{
+timestamp = "1974-04-01T00:00:00Z",
+value = 902,
+},
+new
+{
+timestamp = "1974-05-01T00:00:00Z",
+value = 969,
+},
+new
+{
+timestamp = "1974-06-01T00:00:00Z",
+value = 947,
+},
+new
+{
+timestamp = "1974-07-01T00:00:00Z",
+value = 908,
+},
+new
+{
+timestamp = "1974-08-01T00:00:00Z",
+value = 867,
+},
+new
+{
+timestamp = "1974-09-01T00:00:00Z",
+value = 815,
+},
+new
+{
+timestamp = "1974-10-01T00:00:00Z",
+value = 812,
+},
+new
+{
+timestamp = "1974-11-01T00:00:00Z",
+value = 773,
+},
+new
+{
+timestamp = "1974-12-01T00:00:00Z",
+value = 813,
+},
+new
+{
+timestamp = "1975-01-01T00:00:00Z",
+value = 834,
+},
+new
+{
+timestamp = "1975-02-01T00:00:00Z",
+value = 782,
+},
+new
+{
+timestamp = "1975-03-01T00:00:00Z",
+value = 892,
+},
+new
+{
+timestamp = "1975-04-01T00:00:00Z",
+value = 903,
+},
+new
+{
+timestamp = "1975-05-01T00:00:00Z",
+value = 966,
+},
+new
+{
+timestamp = "1975-06-01T00:00:00Z",
+value = 937,
+},
+new
+{
+timestamp = "1975-07-01T00:00:00Z",
+value = 896,
+},
+new
+{
+timestamp = "1975-08-01T00:00:00Z",
+value = 858,
+},
+new
+{
+timestamp = "1975-09-01T00:00:00Z",
+value = 817,
+},
+new
+{
+timestamp = "1975-10-01T00:00:00Z",
+value = 827,
+},
+new
+{
+timestamp = "1975-11-01T00:00:00Z",
+value = 797,
+},
+new
+{
+timestamp = "1975-12-01T00:00:00Z",
+value = 843,
}
},
+ maxAnomalyRatio = 0.25,
+ sensitivity = 95,
+ granularity = "monthly",
+ imputeMode = "auto",
});
Response response = client.DetectUnivariateEntireSeries(content);
@@ -50,9 +290,9 @@ public void Example_Univariate_DetectUnivariateEntireSeries_ShortVersion()
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Univariate_DetectUnivariateEntireSeries_ShortVersion_Async()
+ public async Task Example_Univariate_DetectUnivariateEntireSeries_UnivariateDetectEntireSeries_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
@@ -62,9 +302,249 @@ public async Task Example_Univariate_DetectUnivariateEntireSeries_ShortVersion_A
{
new
{
-value = 123.45F,
+timestamp = "1972-01-01T00:00:00Z",
+value = 826,
+},
+new
+{
+timestamp = "1972-02-01T00:00:00Z",
+value = 799,
+},
+new
+{
+timestamp = "1972-03-01T00:00:00Z",
+value = 890,
+},
+new
+{
+timestamp = "1972-04-01T00:00:00Z",
+value = 900,
+},
+new
+{
+timestamp = "1972-05-01T00:00:00Z",
+value = 961,
+},
+new
+{
+timestamp = "1972-06-01T00:00:00Z",
+value = 935,
+},
+new
+{
+timestamp = "1972-07-01T00:00:00Z",
+value = 894,
+},
+new
+{
+timestamp = "1972-08-01T00:00:00Z",
+value = 855,
+},
+new
+{
+timestamp = "1972-09-01T00:00:00Z",
+value = 809,
+},
+new
+{
+timestamp = "1972-10-01T00:00:00Z",
+value = 810,
+},
+new
+{
+timestamp = "1972-11-01T00:00:00Z",
+value = 766,
+},
+new
+{
+timestamp = "1972-12-01T00:00:00Z",
+value = 805,
+},
+new
+{
+timestamp = "1973-01-01T00:00:00Z",
+value = 821,
+},
+new
+{
+timestamp = "1973-02-01T00:00:00Z",
+value = 773,
+},
+new
+{
+timestamp = "1973-03-01T00:00:00Z",
+value = 883,
+},
+new
+{
+timestamp = "1973-04-01T00:00:00Z",
+value = 898,
+},
+new
+{
+timestamp = "1973-05-01T00:00:00Z",
+value = 957,
+},
+new
+{
+timestamp = "1973-06-01T00:00:00Z",
+value = 924,
+},
+new
+{
+timestamp = "1973-07-01T00:00:00Z",
+value = 881,
+},
+new
+{
+timestamp = "1973-08-01T00:00:00Z",
+value = 837,
+},
+new
+{
+timestamp = "1973-09-01T00:00:00Z",
+value = 784,
+},
+new
+{
+timestamp = "1973-10-01T00:00:00Z",
+value = 791,
+},
+new
+{
+timestamp = "1973-11-01T00:00:00Z",
+value = 760,
+},
+new
+{
+timestamp = "1973-12-01T00:00:00Z",
+value = 802,
+},
+new
+{
+timestamp = "1974-01-01T00:00:00Z",
+value = 828,
+},
+new
+{
+timestamp = "1974-02-01T00:00:00Z",
+value = 1030,
+},
+new
+{
+timestamp = "1974-03-01T00:00:00Z",
+value = 889,
+},
+new
+{
+timestamp = "1974-04-01T00:00:00Z",
+value = 902,
+},
+new
+{
+timestamp = "1974-05-01T00:00:00Z",
+value = 969,
+},
+new
+{
+timestamp = "1974-06-01T00:00:00Z",
+value = 947,
+},
+new
+{
+timestamp = "1974-07-01T00:00:00Z",
+value = 908,
+},
+new
+{
+timestamp = "1974-08-01T00:00:00Z",
+value = 867,
+},
+new
+{
+timestamp = "1974-09-01T00:00:00Z",
+value = 815,
+},
+new
+{
+timestamp = "1974-10-01T00:00:00Z",
+value = 812,
+},
+new
+{
+timestamp = "1974-11-01T00:00:00Z",
+value = 773,
+},
+new
+{
+timestamp = "1974-12-01T00:00:00Z",
+value = 813,
+},
+new
+{
+timestamp = "1975-01-01T00:00:00Z",
+value = 834,
+},
+new
+{
+timestamp = "1975-02-01T00:00:00Z",
+value = 782,
+},
+new
+{
+timestamp = "1975-03-01T00:00:00Z",
+value = 892,
+},
+new
+{
+timestamp = "1975-04-01T00:00:00Z",
+value = 903,
+},
+new
+{
+timestamp = "1975-05-01T00:00:00Z",
+value = 966,
+},
+new
+{
+timestamp = "1975-06-01T00:00:00Z",
+value = 937,
+},
+new
+{
+timestamp = "1975-07-01T00:00:00Z",
+value = 896,
+},
+new
+{
+timestamp = "1975-08-01T00:00:00Z",
+value = 858,
+},
+new
+{
+timestamp = "1975-09-01T00:00:00Z",
+value = 817,
+},
+new
+{
+timestamp = "1975-10-01T00:00:00Z",
+value = 827,
+},
+new
+{
+timestamp = "1975-11-01T00:00:00Z",
+value = 797,
+},
+new
+{
+timestamp = "1975-12-01T00:00:00Z",
+value = 843,
}
},
+ maxAnomalyRatio = 0.25,
+ sensitivity = 95,
+ granularity = "monthly",
+ imputeMode = "auto",
});
Response response = await client.DetectUnivariateEntireSeriesAsync(content);
@@ -80,171 +560,433 @@ public async Task Example_Univariate_DetectUnivariateEntireSeries_ShortVersion_A
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Univariate_DetectUnivariateEntireSeries_ShortVersion_Convenience()
+ public void Example_Univariate_DetectUnivariateEntireSeries_UnivariateDetectEntireSeries_Convenience()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
{
-new TimeSeriesPoint(123.45F)
- });
+new TimeSeriesPoint(826)
+{
+Timestamp = DateTimeOffset.Parse("1972-01-01T00:00:00Z"),
+},
+new TimeSeriesPoint(799)
+{
+Timestamp = DateTimeOffset.Parse("1972-02-01T00:00:00Z"),
+},
+new TimeSeriesPoint(890)
+{
+Timestamp = DateTimeOffset.Parse("1972-03-01T00:00:00Z"),
+},
+new TimeSeriesPoint(900)
+{
+Timestamp = DateTimeOffset.Parse("1972-04-01T00:00:00Z"),
+},
+new TimeSeriesPoint(961)
+{
+Timestamp = DateTimeOffset.Parse("1972-05-01T00:00:00Z"),
+},
+new TimeSeriesPoint(935)
+{
+Timestamp = DateTimeOffset.Parse("1972-06-01T00:00:00Z"),
+},
+new TimeSeriesPoint(894)
+{
+Timestamp = DateTimeOffset.Parse("1972-07-01T00:00:00Z"),
+},
+new TimeSeriesPoint(855)
+{
+Timestamp = DateTimeOffset.Parse("1972-08-01T00:00:00Z"),
+},
+new TimeSeriesPoint(809)
+{
+Timestamp = DateTimeOffset.Parse("1972-09-01T00:00:00Z"),
+},
+new TimeSeriesPoint(810)
+{
+Timestamp = DateTimeOffset.Parse("1972-10-01T00:00:00Z"),
+},
+new TimeSeriesPoint(766)
+{
+Timestamp = DateTimeOffset.Parse("1972-11-01T00:00:00Z"),
+},
+new TimeSeriesPoint(805)
+{
+Timestamp = DateTimeOffset.Parse("1972-12-01T00:00:00Z"),
+},
+new TimeSeriesPoint(821)
+{
+Timestamp = DateTimeOffset.Parse("1973-01-01T00:00:00Z"),
+},
+new TimeSeriesPoint(773)
+{
+Timestamp = DateTimeOffset.Parse("1973-02-01T00:00:00Z"),
+},
+new TimeSeriesPoint(883)
+{
+Timestamp = DateTimeOffset.Parse("1973-03-01T00:00:00Z"),
+},
+new TimeSeriesPoint(898)
+{
+Timestamp = DateTimeOffset.Parse("1973-04-01T00:00:00Z"),
+},
+new TimeSeriesPoint(957)
+{
+Timestamp = DateTimeOffset.Parse("1973-05-01T00:00:00Z"),
+},
+new TimeSeriesPoint(924)
+{
+Timestamp = DateTimeOffset.Parse("1973-06-01T00:00:00Z"),
+},
+new TimeSeriesPoint(881)
+{
+Timestamp = DateTimeOffset.Parse("1973-07-01T00:00:00Z"),
+},
+new TimeSeriesPoint(837)
+{
+Timestamp = DateTimeOffset.Parse("1973-08-01T00:00:00Z"),
+},
+new TimeSeriesPoint(784)
+{
+Timestamp = DateTimeOffset.Parse("1973-09-01T00:00:00Z"),
+},
+new TimeSeriesPoint(791)
+{
+Timestamp = DateTimeOffset.Parse("1973-10-01T00:00:00Z"),
+},
+new TimeSeriesPoint(760)
+{
+Timestamp = DateTimeOffset.Parse("1973-11-01T00:00:00Z"),
+},
+new TimeSeriesPoint(802)
+{
+Timestamp = DateTimeOffset.Parse("1973-12-01T00:00:00Z"),
+},
+new TimeSeriesPoint(828)
+{
+Timestamp = DateTimeOffset.Parse("1974-01-01T00:00:00Z"),
+},
+new TimeSeriesPoint(1030)
+{
+Timestamp = DateTimeOffset.Parse("1974-02-01T00:00:00Z"),
+},
+new TimeSeriesPoint(889)
+{
+Timestamp = DateTimeOffset.Parse("1974-03-01T00:00:00Z"),
+},
+new TimeSeriesPoint(902)
+{
+Timestamp = DateTimeOffset.Parse("1974-04-01T00:00:00Z"),
+},
+new TimeSeriesPoint(969)
+{
+Timestamp = DateTimeOffset.Parse("1974-05-01T00:00:00Z"),
+},
+new TimeSeriesPoint(947)
+{
+Timestamp = DateTimeOffset.Parse("1974-06-01T00:00:00Z"),
+},
+new TimeSeriesPoint(908)
+{
+Timestamp = DateTimeOffset.Parse("1974-07-01T00:00:00Z"),
+},
+new TimeSeriesPoint(867)
+{
+Timestamp = DateTimeOffset.Parse("1974-08-01T00:00:00Z"),
+},
+new TimeSeriesPoint(815)
+{
+Timestamp = DateTimeOffset.Parse("1974-09-01T00:00:00Z"),
+},
+new TimeSeriesPoint(812)
+{
+Timestamp = DateTimeOffset.Parse("1974-10-01T00:00:00Z"),
+},
+new TimeSeriesPoint(773)
+{
+Timestamp = DateTimeOffset.Parse("1974-11-01T00:00:00Z"),
+},
+new TimeSeriesPoint(813)
+{
+Timestamp = DateTimeOffset.Parse("1974-12-01T00:00:00Z"),
+},
+new TimeSeriesPoint(834)
+{
+Timestamp = DateTimeOffset.Parse("1975-01-01T00:00:00Z"),
+},
+new TimeSeriesPoint(782)
+{
+Timestamp = DateTimeOffset.Parse("1975-02-01T00:00:00Z"),
+},
+new TimeSeriesPoint(892)
+{
+Timestamp = DateTimeOffset.Parse("1975-03-01T00:00:00Z"),
+},
+new TimeSeriesPoint(903)
+{
+Timestamp = DateTimeOffset.Parse("1975-04-01T00:00:00Z"),
+},
+new TimeSeriesPoint(966)
+{
+Timestamp = DateTimeOffset.Parse("1975-05-01T00:00:00Z"),
+},
+new TimeSeriesPoint(937)
+{
+Timestamp = DateTimeOffset.Parse("1975-06-01T00:00:00Z"),
+},
+new TimeSeriesPoint(896)
+{
+Timestamp = DateTimeOffset.Parse("1975-07-01T00:00:00Z"),
+},
+new TimeSeriesPoint(858)
+{
+Timestamp = DateTimeOffset.Parse("1975-08-01T00:00:00Z"),
+},
+new TimeSeriesPoint(817)
+{
+Timestamp = DateTimeOffset.Parse("1975-09-01T00:00:00Z"),
+},
+new TimeSeriesPoint(827)
+{
+Timestamp = DateTimeOffset.Parse("1975-10-01T00:00:00Z"),
+},
+new TimeSeriesPoint(797)
+{
+Timestamp = DateTimeOffset.Parse("1975-11-01T00:00:00Z"),
+},
+new TimeSeriesPoint(843)
+{
+Timestamp = DateTimeOffset.Parse("1975-12-01T00:00:00Z"),
+}
+ })
+ {
+ Granularity = TimeGranularity.Monthly,
+ MaxAnomalyRatio = (float)0.25,
+ Sensitivity = 95,
+ ImputeMode = ImputeMode.Auto,
+ };
Response response = client.DetectUnivariateEntireSeries(options);
}
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Univariate_DetectUnivariateEntireSeries_ShortVersion_Convenience_Async()
+ public async Task Example_Univariate_DetectUnivariateEntireSeries_UnivariateDetectEntireSeries_Convenience_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
{
-new TimeSeriesPoint(123.45F)
- });
- Response response = await client.DetectUnivariateEntireSeriesAsync(options);
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Univariate_DetectUnivariateEntireSeries_AllParameters()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
- using RequestContent content = RequestContent.Create(new
- {
- series = new object[]
- {
-new
+new TimeSeriesPoint(826)
{
-timestamp = "2022-05-10T18:57:31.2311892Z",
-value = 123.45F,
-}
- },
- granularity = "yearly",
- customInterval = 1234,
- period = 1234,
- maxAnomalyRatio = 123.45F,
- sensitivity = 1234,
- imputeMode = "auto",
- imputeFixedValue = 123.45F,
- });
- Response response = client.DetectUnivariateEntireSeries(content);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("period").ToString());
- Console.WriteLine(result.GetProperty("expectedValues")[0].ToString());
- Console.WriteLine(result.GetProperty("upperMargins")[0].ToString());
- Console.WriteLine(result.GetProperty("lowerMargins")[0].ToString());
- Console.WriteLine(result.GetProperty("isAnomaly")[0].ToString());
- Console.WriteLine(result.GetProperty("isNegativeAnomaly")[0].ToString());
- Console.WriteLine(result.GetProperty("isPositiveAnomaly")[0].ToString());
- Console.WriteLine(result.GetProperty("severity")[0].ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Univariate_DetectUnivariateEntireSeries_AllParameters_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
- using RequestContent content = RequestContent.Create(new
- {
- series = new object[]
- {
-new
+Timestamp = DateTimeOffset.Parse("1972-01-01T00:00:00Z"),
+},
+new TimeSeriesPoint(799)
{
-timestamp = "2022-05-10T18:57:31.2311892Z",
-value = 123.45F,
-}
- },
- granularity = "yearly",
- customInterval = 1234,
- period = 1234,
- maxAnomalyRatio = 123.45F,
- sensitivity = 1234,
- imputeMode = "auto",
- imputeFixedValue = 123.45F,
- });
- Response response = await client.DetectUnivariateEntireSeriesAsync(content);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("period").ToString());
- Console.WriteLine(result.GetProperty("expectedValues")[0].ToString());
- Console.WriteLine(result.GetProperty("upperMargins")[0].ToString());
- Console.WriteLine(result.GetProperty("lowerMargins")[0].ToString());
- Console.WriteLine(result.GetProperty("isAnomaly")[0].ToString());
- Console.WriteLine(result.GetProperty("isNegativeAnomaly")[0].ToString());
- Console.WriteLine(result.GetProperty("isPositiveAnomaly")[0].ToString());
- Console.WriteLine(result.GetProperty("severity")[0].ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Univariate_DetectUnivariateEntireSeries_AllParameters_Convenience()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
- UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
- {
-new TimeSeriesPoint(123.45F)
+Timestamp = DateTimeOffset.Parse("1972-02-01T00:00:00Z"),
+},
+new TimeSeriesPoint(890)
{
-Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
-}
- })
- {
- Granularity = TimeGranularity.Yearly,
- CustomInterval = 1234,
- Period = 1234,
- MaxAnomalyRatio = 123.45F,
- Sensitivity = 1234,
- ImputeMode = ImputeMode.Auto,
- ImputeFixedValue = 123.45F,
- };
- Response response = client.DetectUnivariateEntireSeries(options);
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Univariate_DetectUnivariateEntireSeries_AllParameters_Convenience_Async()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
- UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
- {
-new TimeSeriesPoint(123.45F)
+Timestamp = DateTimeOffset.Parse("1972-03-01T00:00:00Z"),
+},
+new TimeSeriesPoint(900)
+{
+Timestamp = DateTimeOffset.Parse("1972-04-01T00:00:00Z"),
+},
+new TimeSeriesPoint(961)
+{
+Timestamp = DateTimeOffset.Parse("1972-05-01T00:00:00Z"),
+},
+new TimeSeriesPoint(935)
+{
+Timestamp = DateTimeOffset.Parse("1972-06-01T00:00:00Z"),
+},
+new TimeSeriesPoint(894)
+{
+Timestamp = DateTimeOffset.Parse("1972-07-01T00:00:00Z"),
+},
+new TimeSeriesPoint(855)
+{
+Timestamp = DateTimeOffset.Parse("1972-08-01T00:00:00Z"),
+},
+new TimeSeriesPoint(809)
+{
+Timestamp = DateTimeOffset.Parse("1972-09-01T00:00:00Z"),
+},
+new TimeSeriesPoint(810)
+{
+Timestamp = DateTimeOffset.Parse("1972-10-01T00:00:00Z"),
+},
+new TimeSeriesPoint(766)
+{
+Timestamp = DateTimeOffset.Parse("1972-11-01T00:00:00Z"),
+},
+new TimeSeriesPoint(805)
+{
+Timestamp = DateTimeOffset.Parse("1972-12-01T00:00:00Z"),
+},
+new TimeSeriesPoint(821)
+{
+Timestamp = DateTimeOffset.Parse("1973-01-01T00:00:00Z"),
+},
+new TimeSeriesPoint(773)
+{
+Timestamp = DateTimeOffset.Parse("1973-02-01T00:00:00Z"),
+},
+new TimeSeriesPoint(883)
+{
+Timestamp = DateTimeOffset.Parse("1973-03-01T00:00:00Z"),
+},
+new TimeSeriesPoint(898)
+{
+Timestamp = DateTimeOffset.Parse("1973-04-01T00:00:00Z"),
+},
+new TimeSeriesPoint(957)
+{
+Timestamp = DateTimeOffset.Parse("1973-05-01T00:00:00Z"),
+},
+new TimeSeriesPoint(924)
+{
+Timestamp = DateTimeOffset.Parse("1973-06-01T00:00:00Z"),
+},
+new TimeSeriesPoint(881)
+{
+Timestamp = DateTimeOffset.Parse("1973-07-01T00:00:00Z"),
+},
+new TimeSeriesPoint(837)
+{
+Timestamp = DateTimeOffset.Parse("1973-08-01T00:00:00Z"),
+},
+new TimeSeriesPoint(784)
+{
+Timestamp = DateTimeOffset.Parse("1973-09-01T00:00:00Z"),
+},
+new TimeSeriesPoint(791)
+{
+Timestamp = DateTimeOffset.Parse("1973-10-01T00:00:00Z"),
+},
+new TimeSeriesPoint(760)
+{
+Timestamp = DateTimeOffset.Parse("1973-11-01T00:00:00Z"),
+},
+new TimeSeriesPoint(802)
+{
+Timestamp = DateTimeOffset.Parse("1973-12-01T00:00:00Z"),
+},
+new TimeSeriesPoint(828)
+{
+Timestamp = DateTimeOffset.Parse("1974-01-01T00:00:00Z"),
+},
+new TimeSeriesPoint(1030)
+{
+Timestamp = DateTimeOffset.Parse("1974-02-01T00:00:00Z"),
+},
+new TimeSeriesPoint(889)
+{
+Timestamp = DateTimeOffset.Parse("1974-03-01T00:00:00Z"),
+},
+new TimeSeriesPoint(902)
+{
+Timestamp = DateTimeOffset.Parse("1974-04-01T00:00:00Z"),
+},
+new TimeSeriesPoint(969)
+{
+Timestamp = DateTimeOffset.Parse("1974-05-01T00:00:00Z"),
+},
+new TimeSeriesPoint(947)
{
-Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+Timestamp = DateTimeOffset.Parse("1974-06-01T00:00:00Z"),
+},
+new TimeSeriesPoint(908)
+{
+Timestamp = DateTimeOffset.Parse("1974-07-01T00:00:00Z"),
+},
+new TimeSeriesPoint(867)
+{
+Timestamp = DateTimeOffset.Parse("1974-08-01T00:00:00Z"),
+},
+new TimeSeriesPoint(815)
+{
+Timestamp = DateTimeOffset.Parse("1974-09-01T00:00:00Z"),
+},
+new TimeSeriesPoint(812)
+{
+Timestamp = DateTimeOffset.Parse("1974-10-01T00:00:00Z"),
+},
+new TimeSeriesPoint(773)
+{
+Timestamp = DateTimeOffset.Parse("1974-11-01T00:00:00Z"),
+},
+new TimeSeriesPoint(813)
+{
+Timestamp = DateTimeOffset.Parse("1974-12-01T00:00:00Z"),
+},
+new TimeSeriesPoint(834)
+{
+Timestamp = DateTimeOffset.Parse("1975-01-01T00:00:00Z"),
+},
+new TimeSeriesPoint(782)
+{
+Timestamp = DateTimeOffset.Parse("1975-02-01T00:00:00Z"),
+},
+new TimeSeriesPoint(892)
+{
+Timestamp = DateTimeOffset.Parse("1975-03-01T00:00:00Z"),
+},
+new TimeSeriesPoint(903)
+{
+Timestamp = DateTimeOffset.Parse("1975-04-01T00:00:00Z"),
+},
+new TimeSeriesPoint(966)
+{
+Timestamp = DateTimeOffset.Parse("1975-05-01T00:00:00Z"),
+},
+new TimeSeriesPoint(937)
+{
+Timestamp = DateTimeOffset.Parse("1975-06-01T00:00:00Z"),
+},
+new TimeSeriesPoint(896)
+{
+Timestamp = DateTimeOffset.Parse("1975-07-01T00:00:00Z"),
+},
+new TimeSeriesPoint(858)
+{
+Timestamp = DateTimeOffset.Parse("1975-08-01T00:00:00Z"),
+},
+new TimeSeriesPoint(817)
+{
+Timestamp = DateTimeOffset.Parse("1975-09-01T00:00:00Z"),
+},
+new TimeSeriesPoint(827)
+{
+Timestamp = DateTimeOffset.Parse("1975-10-01T00:00:00Z"),
+},
+new TimeSeriesPoint(797)
+{
+Timestamp = DateTimeOffset.Parse("1975-11-01T00:00:00Z"),
+},
+new TimeSeriesPoint(843)
+{
+Timestamp = DateTimeOffset.Parse("1975-12-01T00:00:00Z"),
}
})
{
- Granularity = TimeGranularity.Yearly,
- CustomInterval = 1234,
- Period = 1234,
- MaxAnomalyRatio = 123.45F,
- Sensitivity = 1234,
+ Granularity = TimeGranularity.Monthly,
+ MaxAnomalyRatio = (float)0.25,
+ Sensitivity = 95,
ImputeMode = ImputeMode.Auto,
- ImputeFixedValue = 123.45F,
};
Response response = await client.DetectUnivariateEntireSeriesAsync(options);
}
[Test]
[Ignore("Only validating compilation of examples")]
- public void Example_Univariate_DetectUnivariateLastPoint_ShortVersion()
+ public void Example_Univariate_DetectUnivariateLastPoint_DetectUnivariateLastPoint()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
@@ -254,9 +996,250 @@ public void Example_Univariate_DetectUnivariateLastPoint_ShortVersion()
{
new
{
-value = 123.45F,
+timestamp = "1972-01-01T00:00:00Z",
+value = 826,
+},
+new
+{
+timestamp = "1972-02-01T00:00:00Z",
+value = 799,
+},
+new
+{
+timestamp = "1972-03-01T00:00:00Z",
+value = 890,
+},
+new
+{
+timestamp = "1972-04-01T00:00:00Z",
+value = 900,
+},
+new
+{
+timestamp = "1972-05-01T00:00:00Z",
+value = 961,
+},
+new
+{
+timestamp = "1972-06-01T00:00:00Z",
+value = 935,
+},
+new
+{
+timestamp = "1972-07-01T00:00:00Z",
+value = 894,
+},
+new
+{
+timestamp = "1972-08-01T00:00:00Z",
+value = 855,
+},
+new
+{
+timestamp = "1972-09-01T00:00:00Z",
+value = 809,
+},
+new
+{
+timestamp = "1972-10-01T00:00:00Z",
+value = 810,
+},
+new
+{
+timestamp = "1972-11-01T00:00:00Z",
+value = 766,
+},
+new
+{
+timestamp = "1972-12-01T00:00:00Z",
+value = 805,
+},
+new
+{
+timestamp = "1973-01-01T00:00:00Z",
+value = 821,
+},
+new
+{
+timestamp = "1973-02-01T00:00:00Z",
+value = 773,
+},
+new
+{
+timestamp = "1973-03-01T00:00:00Z",
+value = 883,
+},
+new
+{
+timestamp = "1973-04-01T00:00:00Z",
+value = 898,
+},
+new
+{
+timestamp = "1973-05-01T00:00:00Z",
+value = 957,
+},
+new
+{
+timestamp = "1973-06-01T00:00:00Z",
+value = 924,
+},
+new
+{
+timestamp = "1973-07-01T00:00:00Z",
+value = 881,
+},
+new
+{
+timestamp = "1973-08-01T00:00:00Z",
+value = 837,
+},
+new
+{
+timestamp = "1973-09-01T00:00:00Z",
+value = 784,
+},
+new
+{
+timestamp = "1973-10-01T00:00:00Z",
+value = 791,
+},
+new
+{
+timestamp = "1973-11-01T00:00:00Z",
+value = 760,
+},
+new
+{
+timestamp = "1973-12-01T00:00:00Z",
+value = 802,
+},
+new
+{
+timestamp = "1974-01-01T00:00:00Z",
+value = 828,
+},
+new
+{
+timestamp = "1974-02-01T00:00:00Z",
+value = 1030,
+},
+new
+{
+timestamp = "1974-03-01T00:00:00Z",
+value = 889,
+},
+new
+{
+timestamp = "1974-04-01T00:00:00Z",
+value = 902,
+},
+new
+{
+timestamp = "1974-05-01T00:00:00Z",
+value = 969,
+},
+new
+{
+timestamp = "1974-06-01T00:00:00Z",
+value = 947,
+},
+new
+{
+timestamp = "1974-07-01T00:00:00Z",
+value = 908,
+},
+new
+{
+timestamp = "1974-08-01T00:00:00Z",
+value = 867,
+},
+new
+{
+timestamp = "1974-09-01T00:00:00Z",
+value = 815,
+},
+new
+{
+timestamp = "1974-10-01T00:00:00Z",
+value = 812,
+},
+new
+{
+timestamp = "1974-11-01T00:00:00Z",
+value = 773,
+},
+new
+{
+timestamp = "1974-12-01T00:00:00Z",
+value = 813,
+},
+new
+{
+timestamp = "1975-01-01T00:00:00Z",
+value = 834,
+},
+new
+{
+timestamp = "1975-02-01T00:00:00Z",
+value = 782,
+},
+new
+{
+timestamp = "1975-03-01T00:00:00Z",
+value = 892,
+},
+new
+{
+timestamp = "1975-04-01T00:00:00Z",
+value = 903,
+},
+new
+{
+timestamp = "1975-05-01T00:00:00Z",
+value = 966,
+},
+new
+{
+timestamp = "1975-06-01T00:00:00Z",
+value = 937,
+},
+new
+{
+timestamp = "1975-07-01T00:00:00Z",
+value = 896,
+},
+new
+{
+timestamp = "1975-08-01T00:00:00Z",
+value = 858,
+},
+new
+{
+timestamp = "1975-09-01T00:00:00Z",
+value = 817,
+},
+new
+{
+timestamp = "1975-10-01T00:00:00Z",
+value = 827,
+},
+new
+{
+timestamp = "1975-11-01T00:00:00Z",
+value = 797,
+},
+new
+{
+timestamp = "1975-12-01T00:00:00Z",
+value = 843,
}
},
+ maxAnomalyRatio = 0.25,
+ sensitivity = 95,
+ granularity = "monthly",
+ imputeMode = "fixed",
+ imputeFixedValue = 800,
});
Response response = client.DetectUnivariateLastPoint(content);
@@ -273,9 +1256,9 @@ public void Example_Univariate_DetectUnivariateLastPoint_ShortVersion()
[Test]
[Ignore("Only validating compilation of examples")]
- public async Task Example_Univariate_DetectUnivariateLastPoint_ShortVersion_Async()
+ public async Task Example_Univariate_DetectUnivariateLastPoint_DetectUnivariateLastPoint_Async()
{
- Uri endpoint = new Uri("");
+ Uri endpoint = new Uri("");
AzureKeyCredential credential = new AzureKeyCredential("");
Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
@@ -285,118 +1268,250 @@ public async Task Example_Univariate_DetectUnivariateLastPoint_ShortVersion_Asyn
{
new
{
-value = 123.45F,
-}
- },
- });
- Response response = await client.DetectUnivariateLastPointAsync(content);
-
- JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
- Console.WriteLine(result.GetProperty("period").ToString());
- Console.WriteLine(result.GetProperty("suggestedWindow").ToString());
- Console.WriteLine(result.GetProperty("expectedValue").ToString());
- Console.WriteLine(result.GetProperty("upperMargin").ToString());
- Console.WriteLine(result.GetProperty("lowerMargin").ToString());
- Console.WriteLine(result.GetProperty("isAnomaly").ToString());
- Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString());
- Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString());
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public void Example_Univariate_DetectUnivariateLastPoint_ShortVersion_Convenience()
- {
- Uri endpoint = new Uri("");
- AzureKeyCredential credential = new AzureKeyCredential("");
- Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient();
-
- UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[]
- {
-new TimeSeriesPoint(123.45F)
- });
- Response response = client.DetectUnivariateLastPoint(options);
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task Example_Univariate_DetectUnivariateLastPoint_ShortVersion_Convenience_Async()
- {
- Uri endpoint = new Uri("