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(""); - 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); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_Univariate_DetectUnivariateLastPoint_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[] - { +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 = 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()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_Univariate_DetectUnivariateLastPoint_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[] - { +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 = "2022-05-10T18:57:31.2311892Z", -value = 123.45F, +timestamp = "1975-12-01T00:00:00Z", +value = 843, } }, - granularity = "yearly", - customInterval = 1234, - period = 1234, - maxAnomalyRatio = 123.45F, - sensitivity = 1234, - imputeMode = "auto", - imputeFixedValue = 123.45F, + maxAnomalyRatio = 0.25, + sensitivity = 95, + granularity = "monthly", + imputeMode = "fixed", + imputeFixedValue = 800, }); Response response = await client.DetectUnivariateLastPointAsync(content); @@ -409,68 +1524,439 @@ public async Task Example_Univariate_DetectUnivariateLastPoint_AllParameters_Asy Console.WriteLine(result.GetProperty("isAnomaly").ToString()); Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString()); Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString()); - Console.WriteLine(result.GetProperty("severity").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_Univariate_DetectUnivariateLastPoint_AllParameters_Convenience() + public void Example_Univariate_DetectUnivariateLastPoint_DetectUnivariateLastPoint_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("2022-05-10T18:57:31.2311892Z"), +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.Yearly, - CustomInterval = 1234, - Period = 1234, - MaxAnomalyRatio = 123.45F, - Sensitivity = 1234, - ImputeMode = ImputeMode.Auto, - ImputeFixedValue = 123.45F, + Granularity = TimeGranularity.Monthly, + MaxAnomalyRatio = (float)0.25, + Sensitivity = 95, + ImputeMode = ImputeMode.Fixed, + ImputeFixedValue = 800, }; Response response = client.DetectUnivariateLastPoint(options); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Univariate_DetectUnivariateLastPoint_AllParameters_Convenience_Async() + public async Task Example_Univariate_DetectUnivariateLastPoint_DetectUnivariateLastPoint_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) +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("2022-05-10T18:57:31.2311892Z"), +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, - ImputeMode = ImputeMode.Auto, - ImputeFixedValue = 123.45F, + Granularity = TimeGranularity.Monthly, + MaxAnomalyRatio = (float)0.25, + Sensitivity = 95, + ImputeMode = ImputeMode.Fixed, + ImputeFixedValue = 800, }; Response response = await client.DetectUnivariateLastPointAsync(options); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_Univariate_DetectUnivariateChangePoint_ShortVersion() + public void Example_Univariate_DetectUnivariateChangePoint_UnivariateDetectionOfAChangePoint() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient(); @@ -480,77 +1966,1307 @@ public void Example_Univariate_DetectUnivariateChangePoint_ShortVersion() { new { -value = 123.45F, -} - }, - granularity = "yearly", - }); - Response response = client.DetectUnivariateChangePoint(content); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_Univariate_DetectUnivariateChangePoint_ShortVersion_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[] - { +timestamp = "2017-01-01T06:45:00Z", +value = 1639196, +}, new { -value = 123.45F, -} - }, - granularity = "yearly", - }); - Response response = await client.DetectUnivariateChangePointAsync(content); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_Univariate_DetectUnivariateChangePoint_ShortVersion_Convenience() - { - Uri endpoint = new Uri(""); - 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); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_Univariate_DetectUnivariateChangePoint_ShortVersion_Convenience_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient(); +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); - UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[] - { -new TimeSeriesPoint(123.45F) - }, TimeGranularity.Yearly); - Response response = await client.DetectUnivariateChangePointAsync(options); + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_Univariate_DetectUnivariateChangePoint_AllParameters() + public async Task Example_Univariate_DetectUnivariateChangePoint_UnivariateDetectionOfAChangePoint_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient(); @@ -560,100 +3276,3394 @@ public void Example_Univariate_DetectUnivariateChangePoint_AllParameters() { new { -timestamp = "2022-05-10T18:57:31.2311892Z", -value = 123.45F, -} - }, - granularity = "yearly", - customInterval = 1234, - period = 1234, - stableTrendWindow = 1234, - threshold = 123.45F, - }); - Response response = client.DetectUnivariateChangePoint(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()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_Univariate_DetectUnivariateChangePoint_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[] - { +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 = "2022-05-10T18:57:31.2311892Z", -value = 123.45F, +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 = "yearly", - customInterval = 1234, - period = 1234, - stableTrendWindow = 1234, - threshold = 123.45F, + 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.GetProperty("period").ToString()); - Console.WriteLine(result.GetProperty("isChangePoint")[0].ToString()); - Console.WriteLine(result.GetProperty("confidenceScores")[0].ToString()); + Console.WriteLine(result.ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_Univariate_DetectUnivariateChangePoint_AllParameters_Convenience() + public void Example_Univariate_DetectUnivariateChangePoint_UnivariateDetectionOfAChangePoint_Convenience() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient(); UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[] { -new TimeSeriesPoint(123.45F) +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("2022-05-10T18:57:31.2311892Z"), +Timestamp = DateTimeOffset.Parse("2017-01-02T04:05:00Z"), } - }, TimeGranularity.Yearly) + }, TimeGranularity.PerMinute) { - CustomInterval = 1234, - Period = 1234, - StableTrendWindow = 1234, - Threshold = 123.45F, + CustomInterval = 5, + Period = 0, + StableTrendWindow = 10, + Threshold = (float)0.99, }; Response response = client.DetectUnivariateChangePoint(options); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Univariate_DetectUnivariateChangePoint_AllParameters_Convenience_Async() + public async Task Example_Univariate_DetectUnivariateChangePoint_UnivariateDetectionOfAChangePoint_Convenience_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariateClient(); UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[] { -new TimeSeriesPoint(123.45F) +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("2022-05-10T18:57:31.2311892Z"), +Timestamp = DateTimeOffset.Parse("2017-01-02T04:05:00Z"), } - }, TimeGranularity.Yearly) + }, TimeGranularity.PerMinute) { - CustomInterval = 1234, - Period = 1234, - StableTrendWindow = 1234, - Threshold = 123.45F, + CustomInterval = 5, + Period = 0, + StableTrendWindow = 10, + Threshold = (float)0.99, }; Response response = await client.DetectUnivariateChangePointAsync(options); } diff --git a/samples/AnomalyDetector/tspCodeModel.json b/samples/AnomalyDetector/tspCodeModel.json index 8ccc6a1047c..5716489515a 100644 --- a/samples/AnomalyDetector/tspCodeModel.json +++ b/samples/AnomalyDetector/tspCodeModel.json @@ -2757,180 +2757,3727 @@ "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, "CrossLanguageDefinitionId": "AnomalyDetector.Univariate.DetectUnivariateEntireSeries", - "Decorators": [] - }, - { - "$id": "327", - "Name": "DetectUnivariateLastPoint", - "ResourceName": "Univariate", - "Summary": "Detect anomaly status of the latest point in time series.", - "Description": "This operation generates a model using the points that you sent into the API,\nand based on all data to determine whether the last point is anomalous.", - "Accessibility": "public", - "Parameters": [ - { - "$ref": "314" - }, - { - "$ref": "316" - }, - { - "$id": "328", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Description": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "329", - "Kind": "constant", - "ValueType": { - "$id": "330", - "Kind": "string", - "Name": "string", - "CrossLanguageDefinitionId": "TypeSpec.string", - "Decorators": [] - }, - "Value": "application/json", - "Decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [] - }, - { - "$id": "331", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "332", - "Kind": "constant", - "ValueType": { - "$id": "333", - "Kind": "string", - "Name": "string", - "CrossLanguageDefinitionId": "TypeSpec.string", - "Decorators": [] - }, - "Value": "application/json", - "Decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [] - }, - { - "$id": "334", - "Name": "options", - "NameInRequest": "options", - "Description": "Method of univariate anomaly detection.", - "Type": { - "$ref": "216" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [] - } - ], - "Responses": [ - { - "$id": "335", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "265" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{Endpoint}/anomalydetector/{ApiVersion}", - "Path": "/timeseries/last/detect", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "AnomalyDetector.Univariate.DetectUnivariateLastPoint", - "Decorators": [] - }, - { - "$id": "336", - "Name": "DetectUnivariateChangePoint", - "ResourceName": "Univariate", - "Summary": "Detect change point for the entire series", - "Description": "Evaluate change point score of every series point", - "Accessibility": "public", - "Parameters": [ - { - "$ref": "314" - }, - { - "$ref": "316" - }, - { - "$id": "337", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Description": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "338", - "Kind": "constant", - "ValueType": { - "$id": "339", - "Kind": "string", - "Name": "string", - "CrossLanguageDefinitionId": "TypeSpec.string", - "Decorators": [] - }, - "Value": "application/json", - "Decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [] - }, + "Decorators": [], + "Examples": [ { - "$id": "340", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "341", - "Kind": "constant", - "ValueType": { - "$id": "342", - "Kind": "string", - "Name": "string", - "CrossLanguageDefinitionId": "TypeSpec.string", - "Decorators": [] + "$id": "327", + "kind": "http", + "name": "Univariate detect entire series", + "description": "Univariate detect entire series", + "filePath": "v1.1/EntireDetect.json", + "rawExample": { + "$id": "328", + "operationId": "Univariate_DetectUnivariateEntireSeries", + "title": "Univariate detect entire series", + "parameters": { + "$id": "329", + "Endpoint": "{Endpoint}", + "ApiVersion": "v1.1", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "{API key}", + "options": { + "$id": "330", + "series": [ + { + "$id": "331", + "timestamp": "1972-01-01T00:00:00Z", + "value": 826 + }, + { + "$id": "332", + "timestamp": "1972-02-01T00:00:00Z", + "value": 799 + }, + { + "$id": "333", + "timestamp": "1972-03-01T00:00:00Z", + "value": 890 + }, + { + "$id": "334", + "timestamp": "1972-04-01T00:00:00Z", + "value": 900 + }, + { + "$id": "335", + "timestamp": "1972-05-01T00:00:00Z", + "value": 961 + }, + { + "$id": "336", + "timestamp": "1972-06-01T00:00:00Z", + "value": 935 + }, + { + "$id": "337", + "timestamp": "1972-07-01T00:00:00Z", + "value": 894 + }, + { + "$id": "338", + "timestamp": "1972-08-01T00:00:00Z", + "value": 855 + }, + { + "$id": "339", + "timestamp": "1972-09-01T00:00:00Z", + "value": 809 + }, + { + "$id": "340", + "timestamp": "1972-10-01T00:00:00Z", + "value": 810 + }, + { + "$id": "341", + "timestamp": "1972-11-01T00:00:00Z", + "value": 766 + }, + { + "$id": "342", + "timestamp": "1972-12-01T00:00:00Z", + "value": 805 + }, + { + "$id": "343", + "timestamp": "1973-01-01T00:00:00Z", + "value": 821 + }, + { + "$id": "344", + "timestamp": "1973-02-01T00:00:00Z", + "value": 773 + }, + { + "$id": "345", + "timestamp": "1973-03-01T00:00:00Z", + "value": 883 + }, + { + "$id": "346", + "timestamp": "1973-04-01T00:00:00Z", + "value": 898 + }, + { + "$id": "347", + "timestamp": "1973-05-01T00:00:00Z", + "value": 957 + }, + { + "$id": "348", + "timestamp": "1973-06-01T00:00:00Z", + "value": 924 + }, + { + "$id": "349", + "timestamp": "1973-07-01T00:00:00Z", + "value": 881 + }, + { + "$id": "350", + "timestamp": "1973-08-01T00:00:00Z", + "value": 837 + }, + { + "$id": "351", + "timestamp": "1973-09-01T00:00:00Z", + "value": 784 + }, + { + "$id": "352", + "timestamp": "1973-10-01T00:00:00Z", + "value": 791 + }, + { + "$id": "353", + "timestamp": "1973-11-01T00:00:00Z", + "value": 760 + }, + { + "$id": "354", + "timestamp": "1973-12-01T00:00:00Z", + "value": 802 + }, + { + "$id": "355", + "timestamp": "1974-01-01T00:00:00Z", + "value": 828 + }, + { + "$id": "356", + "timestamp": "1974-02-01T00:00:00Z", + "value": 1030 + }, + { + "$id": "357", + "timestamp": "1974-03-01T00:00:00Z", + "value": 889 + }, + { + "$id": "358", + "timestamp": "1974-04-01T00:00:00Z", + "value": 902 + }, + { + "$id": "359", + "timestamp": "1974-05-01T00:00:00Z", + "value": 969 + }, + { + "$id": "360", + "timestamp": "1974-06-01T00:00:00Z", + "value": 947 + }, + { + "$id": "361", + "timestamp": "1974-07-01T00:00:00Z", + "value": 908 + }, + { + "$id": "362", + "timestamp": "1974-08-01T00:00:00Z", + "value": 867 + }, + { + "$id": "363", + "timestamp": "1974-09-01T00:00:00Z", + "value": 815 + }, + { + "$id": "364", + "timestamp": "1974-10-01T00:00:00Z", + "value": 812 + }, + { + "$id": "365", + "timestamp": "1974-11-01T00:00:00Z", + "value": 773 + }, + { + "$id": "366", + "timestamp": "1974-12-01T00:00:00Z", + "value": 813 + }, + { + "$id": "367", + "timestamp": "1975-01-01T00:00:00Z", + "value": 834 + }, + { + "$id": "368", + "timestamp": "1975-02-01T00:00:00Z", + "value": 782 + }, + { + "$id": "369", + "timestamp": "1975-03-01T00:00:00Z", + "value": 892 + }, + { + "$id": "370", + "timestamp": "1975-04-01T00:00:00Z", + "value": 903 + }, + { + "$id": "371", + "timestamp": "1975-05-01T00:00:00Z", + "value": 966 + }, + { + "$id": "372", + "timestamp": "1975-06-01T00:00:00Z", + "value": 937 + }, + { + "$id": "373", + "timestamp": "1975-07-01T00:00:00Z", + "value": 896 + }, + { + "$id": "374", + "timestamp": "1975-08-01T00:00:00Z", + "value": 858 + }, + { + "$id": "375", + "timestamp": "1975-09-01T00:00:00Z", + "value": 817 + }, + { + "$id": "376", + "timestamp": "1975-10-01T00:00:00Z", + "value": 827 + }, + { + "$id": "377", + "timestamp": "1975-11-01T00:00:00Z", + "value": 797 + }, + { + "$id": "378", + "timestamp": "1975-12-01T00:00:00Z", + "value": 843 + } + ], + "maxAnomalyRatio": 0.25, + "sensitivity": 95, + "granularity": "monthly", + "imputeMode": "auto" + } }, - "Value": "application/json", - "Decorators": [] + "responses": { + "200": { + "$id": "380", + "body": { + "$id": "381", + "isNegativeAnomaly": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "expectedValues": [ + 827.7940908243968, + 798.9133774671927, + 888.6058431807189, + 900.5606407986661, + 962.8389426378304, + 933.2591606306954, + 891.0784104799666, + 856.1781601363697, + 809.8987227908941, + 807.375129007505, + 764.3196682448518, + 803.933498594564, + 823.5900620883058, + 794.0905641334288, + 883.164245249282, + 894.8419000690953, + 956.8430591101258, + 927.6285055190114, + 885.812983784303, + 851.6424797402517, + 806.0927886943216, + 804.6826815312029, + 762.74070738882, + 804.0251702513732, + 825.3523662579559, + 798.0404188724976, + 889.3016505577698, + 902.4226124345937, + 965.867078532635, + 937.3200495736695, + 896.1720524711102, + 862.0087368413656, + 816.4662342097423, + 814.4297745524709, + 771.8614479159354, + 811.859271346729, + 831.8998279215521, + 802.947544797165, + 892.5684407435083, + 904.5488214533809, + 966.8527063844707, + 937.3168391003043, + 895.180003672544, + 860.3649596356635, + 814.1707285969043, + 811.9054862686213, + 769.1083769610742, + 809.2328084659704 + ], + "isPositiveAnomaly": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "lowerMargins": [ + 41.389704541219835, + 39.94566887335964, + 44.43029215903594, + 45.02803203993331, + 48.14194713189152, + 46.66295803153477, + 44.55392052399833, + 42.808908006818484, + 40.494936139544706, + 40.36875645037525, + 38.215983412242586, + 40.196674929728196, + 41.17950310441529, + 39.70452820667144, + 44.1582122624641, + 44.74209500345477, + 47.84215295550629, + 46.38142527595057, + 44.290649189215145, + 42.58212398701258, + 40.30463943471608, + 40.234134076560146, + 38.137035369441, + 40.201258512568664, + 41.267618312897795, + 39.90202094362488, + 44.46508252788849, + 45.121130621729684, + 48.29335392663175, + 46.86600247868348, + 44.80860262355551, + 43.100436842068284, + 40.82331171048711, + 40.721488727623544, + 38.593072395796774, + 40.59296356733645, + 41.5949913960776, + 40.14737723985825, + 44.62842203717541, + 45.227441072669045, + 48.34263531922354, + 46.86584195501521, + 44.759000183627194, + 43.01824798178317, + 40.70853642984521, + 40.59527431343106, + 38.45541884805371, + 40.46164042329852 + ], + "period": 12, + "upperMargins": [ + 41.389704541219835, + 39.94566887335964, + 44.43029215903594, + 45.02803203993331, + 48.14194713189152, + 46.66295803153477, + 44.55392052399833, + 42.808908006818484, + 40.494936139544706, + 40.36875645037525, + 38.215983412242586, + 40.196674929728196, + 41.17950310441529, + 39.70452820667144, + 44.1582122624641, + 44.74209500345477, + 47.84215295550629, + 46.38142527595057, + 44.290649189215145, + 42.58212398701258, + 40.30463943471608, + 40.234134076560146, + 38.137035369441, + 40.201258512568664, + 41.267618312897795, + 39.90202094362488, + 44.46508252788849, + 45.121130621729684, + 48.29335392663175, + 46.86600247868348, + 44.80860262355551, + 43.100436842068284, + 40.82331171048711, + 40.721488727623544, + 38.593072395796774, + 40.59296356733645, + 41.5949913960776, + 40.14737723985825, + 44.62842203717541, + 45.227441072669045, + 48.34263531922354, + 46.86584195501521, + 44.759000183627194, + 43.01824798178317, + 40.70853642984521, + 40.59527431343106, + 38.45541884805371, + 40.46164042329852 + ], + "isAnomaly": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "severity": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0.2906614447614368, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + } + }, + "$id": "379" + } + }, + "parameters": [ + { + "$id": "382", + "parameter": { + "$ref": "325" + }, + "value": { + "$id": "383", + "kind": "model", + "type": { + "$ref": "216" + }, + "value": { + "$id": "384", + "series": { + "$id": "385", + "kind": "array", + "type": { + "$ref": "218" + }, + "value": [ + { + "$id": "386", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "387", + "timestamp": { + "$id": "388", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-01-01T00:00:00Z" + }, + "value": { + "$id": "389", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 826 + } + } + }, + { + "$id": "390", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "391", + "timestamp": { + "$id": "392", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-02-01T00:00:00Z" + }, + "value": { + "$id": "393", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 799 + } + } + }, + { + "$id": "394", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "395", + "timestamp": { + "$id": "396", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-03-01T00:00:00Z" + }, + "value": { + "$id": "397", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 890 + } + } + }, + { + "$id": "398", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "399", + "timestamp": { + "$id": "400", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-04-01T00:00:00Z" + }, + "value": { + "$id": "401", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 900 + } + } + }, + { + "$id": "402", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "403", + "timestamp": { + "$id": "404", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-05-01T00:00:00Z" + }, + "value": { + "$id": "405", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 961 + } + } + }, + { + "$id": "406", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "407", + "timestamp": { + "$id": "408", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-06-01T00:00:00Z" + }, + "value": { + "$id": "409", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 935 + } + } + }, + { + "$id": "410", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "411", + "timestamp": { + "$id": "412", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-07-01T00:00:00Z" + }, + "value": { + "$id": "413", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 894 + } + } + }, + { + "$id": "414", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "415", + "timestamp": { + "$id": "416", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-08-01T00:00:00Z" + }, + "value": { + "$id": "417", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 855 + } + } + }, + { + "$id": "418", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "419", + "timestamp": { + "$id": "420", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-09-01T00:00:00Z" + }, + "value": { + "$id": "421", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 809 + } + } + }, + { + "$id": "422", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "423", + "timestamp": { + "$id": "424", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-10-01T00:00:00Z" + }, + "value": { + "$id": "425", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 810 + } + } + }, + { + "$id": "426", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "427", + "timestamp": { + "$id": "428", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-11-01T00:00:00Z" + }, + "value": { + "$id": "429", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 766 + } + } + }, + { + "$id": "430", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "431", + "timestamp": { + "$id": "432", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-12-01T00:00:00Z" + }, + "value": { + "$id": "433", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 805 + } + } + }, + { + "$id": "434", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "435", + "timestamp": { + "$id": "436", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-01-01T00:00:00Z" + }, + "value": { + "$id": "437", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 821 + } + } + }, + { + "$id": "438", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "439", + "timestamp": { + "$id": "440", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-02-01T00:00:00Z" + }, + "value": { + "$id": "441", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 773 + } + } + }, + { + "$id": "442", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "443", + "timestamp": { + "$id": "444", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-03-01T00:00:00Z" + }, + "value": { + "$id": "445", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 883 + } + } + }, + { + "$id": "446", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "447", + "timestamp": { + "$id": "448", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-04-01T00:00:00Z" + }, + "value": { + "$id": "449", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 898 + } + } + }, + { + "$id": "450", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "451", + "timestamp": { + "$id": "452", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-05-01T00:00:00Z" + }, + "value": { + "$id": "453", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 957 + } + } + }, + { + "$id": "454", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "455", + "timestamp": { + "$id": "456", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-06-01T00:00:00Z" + }, + "value": { + "$id": "457", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 924 + } + } + }, + { + "$id": "458", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "459", + "timestamp": { + "$id": "460", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-07-01T00:00:00Z" + }, + "value": { + "$id": "461", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 881 + } + } + }, + { + "$id": "462", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "463", + "timestamp": { + "$id": "464", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-08-01T00:00:00Z" + }, + "value": { + "$id": "465", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 837 + } + } + }, + { + "$id": "466", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "467", + "timestamp": { + "$id": "468", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-09-01T00:00:00Z" + }, + "value": { + "$id": "469", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 784 + } + } + }, + { + "$id": "470", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "471", + "timestamp": { + "$id": "472", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-10-01T00:00:00Z" + }, + "value": { + "$id": "473", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 791 + } + } + }, + { + "$id": "474", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "475", + "timestamp": { + "$id": "476", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-11-01T00:00:00Z" + }, + "value": { + "$id": "477", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 760 + } + } + }, + { + "$id": "478", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "479", + "timestamp": { + "$id": "480", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-12-01T00:00:00Z" + }, + "value": { + "$id": "481", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 802 + } + } + }, + { + "$id": "482", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "483", + "timestamp": { + "$id": "484", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-01-01T00:00:00Z" + }, + "value": { + "$id": "485", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 828 + } + } + }, + { + "$id": "486", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "487", + "timestamp": { + "$id": "488", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-02-01T00:00:00Z" + }, + "value": { + "$id": "489", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1030 + } + } + }, + { + "$id": "490", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "491", + "timestamp": { + "$id": "492", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-03-01T00:00:00Z" + }, + "value": { + "$id": "493", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 889 + } + } + }, + { + "$id": "494", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "495", + "timestamp": { + "$id": "496", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-04-01T00:00:00Z" + }, + "value": { + "$id": "497", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 902 + } + } + }, + { + "$id": "498", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "499", + "timestamp": { + "$id": "500", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-05-01T00:00:00Z" + }, + "value": { + "$id": "501", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 969 + } + } + }, + { + "$id": "502", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "503", + "timestamp": { + "$id": "504", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-06-01T00:00:00Z" + }, + "value": { + "$id": "505", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 947 + } + } + }, + { + "$id": "506", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "507", + "timestamp": { + "$id": "508", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-07-01T00:00:00Z" + }, + "value": { + "$id": "509", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 908 + } + } + }, + { + "$id": "510", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "511", + "timestamp": { + "$id": "512", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-08-01T00:00:00Z" + }, + "value": { + "$id": "513", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 867 + } + } + }, + { + "$id": "514", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "515", + "timestamp": { + "$id": "516", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-09-01T00:00:00Z" + }, + "value": { + "$id": "517", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 815 + } + } + }, + { + "$id": "518", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "519", + "timestamp": { + "$id": "520", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-10-01T00:00:00Z" + }, + "value": { + "$id": "521", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 812 + } + } + }, + { + "$id": "522", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "523", + "timestamp": { + "$id": "524", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-11-01T00:00:00Z" + }, + "value": { + "$id": "525", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 773 + } + } + }, + { + "$id": "526", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "527", + "timestamp": { + "$id": "528", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-12-01T00:00:00Z" + }, + "value": { + "$id": "529", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 813 + } + } + }, + { + "$id": "530", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "531", + "timestamp": { + "$id": "532", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-01-01T00:00:00Z" + }, + "value": { + "$id": "533", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 834 + } + } + }, + { + "$id": "534", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "535", + "timestamp": { + "$id": "536", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-02-01T00:00:00Z" + }, + "value": { + "$id": "537", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 782 + } + } + }, + { + "$id": "538", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "539", + "timestamp": { + "$id": "540", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-03-01T00:00:00Z" + }, + "value": { + "$id": "541", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 892 + } + } + }, + { + "$id": "542", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "543", + "timestamp": { + "$id": "544", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-04-01T00:00:00Z" + }, + "value": { + "$id": "545", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 903 + } + } + }, + { + "$id": "546", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "547", + "timestamp": { + "$id": "548", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-05-01T00:00:00Z" + }, + "value": { + "$id": "549", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 966 + } + } + }, + { + "$id": "550", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "551", + "timestamp": { + "$id": "552", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-06-01T00:00:00Z" + }, + "value": { + "$id": "553", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 937 + } + } + }, + { + "$id": "554", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "555", + "timestamp": { + "$id": "556", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-07-01T00:00:00Z" + }, + "value": { + "$id": "557", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 896 + } + } + }, + { + "$id": "558", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "559", + "timestamp": { + "$id": "560", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-08-01T00:00:00Z" + }, + "value": { + "$id": "561", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 858 + } + } + }, + { + "$id": "562", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "563", + "timestamp": { + "$id": "564", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-09-01T00:00:00Z" + }, + "value": { + "$id": "565", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 817 + } + } + }, + { + "$id": "566", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "567", + "timestamp": { + "$id": "568", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-10-01T00:00:00Z" + }, + "value": { + "$id": "569", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 827 + } + } + }, + { + "$id": "570", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "571", + "timestamp": { + "$id": "572", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-11-01T00:00:00Z" + }, + "value": { + "$id": "573", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 797 + } + } + }, + { + "$id": "574", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "575", + "timestamp": { + "$id": "576", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-12-01T00:00:00Z" + }, + "value": { + "$id": "577", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 843 + } + } + } + ] + }, + "maxAnomalyRatio": { + "$id": "578", + "kind": "number", + "type": { + "$ref": "231" + }, + "value": 0.25 + }, + "sensitivity": { + "$id": "579", + "kind": "number", + "type": { + "$ref": "233" + }, + "value": 95 + }, + "granularity": { + "$id": "580", + "kind": "string", + "type": { + "$ref": "29" + }, + "value": "monthly" + }, + "imputeMode": { + "$id": "581", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "auto" + } + } + } + } + ], + "responses": { + "$id": "582" + } + } + ] + }, + { + "$id": "583", + "Name": "DetectUnivariateLastPoint", + "ResourceName": "Univariate", + "Summary": "Detect anomaly status of the latest point in time series.", + "Description": "This operation generates a model using the points that you sent into the API,\nand based on all data to determine whether the last point is anomalous.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "314" + }, + { + "$ref": "316" + }, + { + "$id": "584", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Description": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "585", + "Kind": "constant", + "ValueType": { + "$id": "586", + "Kind": "string", + "Name": "string", + "CrossLanguageDefinitionId": "TypeSpec.string", + "Decorators": [] + }, + "Value": "application/json", + "Decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [] + }, + { + "$id": "587", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "588", + "Kind": "constant", + "ValueType": { + "$id": "589", + "Kind": "string", + "Name": "string", + "CrossLanguageDefinitionId": "TypeSpec.string", + "Decorators": [] + }, + "Value": "application/json", + "Decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [] + }, + { + "$id": "590", + "Name": "options", + "NameInRequest": "options", + "Description": "Method of univariate anomaly detection.", + "Type": { + "$ref": "216" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [] + } + ], + "Responses": [ + { + "$id": "591", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "265" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{Endpoint}/anomalydetector/{ApiVersion}", + "Path": "/timeseries/last/detect", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AnomalyDetector.Univariate.DetectUnivariateLastPoint", + "Decorators": [], + "Examples": [ + { + "$id": "592", + "kind": "http", + "name": "Detect univariate last point", + "description": "Detect univariate last point", + "filePath": "v1.1/LastDetect.json", + "rawExample": { + "$id": "593", + "operationId": "Univariate_DetectUnivariateLastPoint", + "title": "Detect univariate last point", + "parameters": { + "$id": "594", + "Endpoint": "{Endpoint}", + "ApiVersion": "v1.1", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "{API key}", + "options": { + "$id": "595", + "series": [ + { + "$id": "596", + "timestamp": "1972-01-01T00:00:00Z", + "value": 826 + }, + { + "$id": "597", + "timestamp": "1972-02-01T00:00:00Z", + "value": 799 + }, + { + "$id": "598", + "timestamp": "1972-03-01T00:00:00Z", + "value": 890 + }, + { + "$id": "599", + "timestamp": "1972-04-01T00:00:00Z", + "value": 900 + }, + { + "$id": "600", + "timestamp": "1972-05-01T00:00:00Z", + "value": 961 + }, + { + "$id": "601", + "timestamp": "1972-06-01T00:00:00Z", + "value": 935 + }, + { + "$id": "602", + "timestamp": "1972-07-01T00:00:00Z", + "value": 894 + }, + { + "$id": "603", + "timestamp": "1972-08-01T00:00:00Z", + "value": 855 + }, + { + "$id": "604", + "timestamp": "1972-09-01T00:00:00Z", + "value": 809 + }, + { + "$id": "605", + "timestamp": "1972-10-01T00:00:00Z", + "value": 810 + }, + { + "$id": "606", + "timestamp": "1972-11-01T00:00:00Z", + "value": 766 + }, + { + "$id": "607", + "timestamp": "1972-12-01T00:00:00Z", + "value": 805 + }, + { + "$id": "608", + "timestamp": "1973-01-01T00:00:00Z", + "value": 821 + }, + { + "$id": "609", + "timestamp": "1973-02-01T00:00:00Z", + "value": 773 + }, + { + "$id": "610", + "timestamp": "1973-03-01T00:00:00Z", + "value": 883 + }, + { + "$id": "611", + "timestamp": "1973-04-01T00:00:00Z", + "value": 898 + }, + { + "$id": "612", + "timestamp": "1973-05-01T00:00:00Z", + "value": 957 + }, + { + "$id": "613", + "timestamp": "1973-06-01T00:00:00Z", + "value": 924 + }, + { + "$id": "614", + "timestamp": "1973-07-01T00:00:00Z", + "value": 881 + }, + { + "$id": "615", + "timestamp": "1973-08-01T00:00:00Z", + "value": 837 + }, + { + "$id": "616", + "timestamp": "1973-09-01T00:00:00Z", + "value": 784 + }, + { + "$id": "617", + "timestamp": "1973-10-01T00:00:00Z", + "value": 791 + }, + { + "$id": "618", + "timestamp": "1973-11-01T00:00:00Z", + "value": 760 + }, + { + "$id": "619", + "timestamp": "1973-12-01T00:00:00Z", + "value": 802 + }, + { + "$id": "620", + "timestamp": "1974-01-01T00:00:00Z", + "value": 828 + }, + { + "$id": "621", + "timestamp": "1974-02-01T00:00:00Z", + "value": 1030 + }, + { + "$id": "622", + "timestamp": "1974-03-01T00:00:00Z", + "value": 889 + }, + { + "$id": "623", + "timestamp": "1974-04-01T00:00:00Z", + "value": 902 + }, + { + "$id": "624", + "timestamp": "1974-05-01T00:00:00Z", + "value": 969 + }, + { + "$id": "625", + "timestamp": "1974-06-01T00:00:00Z", + "value": 947 + }, + { + "$id": "626", + "timestamp": "1974-07-01T00:00:00Z", + "value": 908 + }, + { + "$id": "627", + "timestamp": "1974-08-01T00:00:00Z", + "value": 867 + }, + { + "$id": "628", + "timestamp": "1974-09-01T00:00:00Z", + "value": 815 + }, + { + "$id": "629", + "timestamp": "1974-10-01T00:00:00Z", + "value": 812 + }, + { + "$id": "630", + "timestamp": "1974-11-01T00:00:00Z", + "value": 773 + }, + { + "$id": "631", + "timestamp": "1974-12-01T00:00:00Z", + "value": 813 + }, + { + "$id": "632", + "timestamp": "1975-01-01T00:00:00Z", + "value": 834 + }, + { + "$id": "633", + "timestamp": "1975-02-01T00:00:00Z", + "value": 782 + }, + { + "$id": "634", + "timestamp": "1975-03-01T00:00:00Z", + "value": 892 + }, + { + "$id": "635", + "timestamp": "1975-04-01T00:00:00Z", + "value": 903 + }, + { + "$id": "636", + "timestamp": "1975-05-01T00:00:00Z", + "value": 966 + }, + { + "$id": "637", + "timestamp": "1975-06-01T00:00:00Z", + "value": 937 + }, + { + "$id": "638", + "timestamp": "1975-07-01T00:00:00Z", + "value": 896 + }, + { + "$id": "639", + "timestamp": "1975-08-01T00:00:00Z", + "value": 858 + }, + { + "$id": "640", + "timestamp": "1975-09-01T00:00:00Z", + "value": 817 + }, + { + "$id": "641", + "timestamp": "1975-10-01T00:00:00Z", + "value": 827 + }, + { + "$id": "642", + "timestamp": "1975-11-01T00:00:00Z", + "value": 797 + }, + { + "$id": "643", + "timestamp": "1975-12-01T00:00:00Z", + "value": 843 + } + ], + "maxAnomalyRatio": 0.25, + "sensitivity": 95, + "granularity": "monthly", + "imputeMode": "fixed", + "imputeFixedValue": 800 + } + }, + "responses": { + "200": { + "$id": "645", + "body": { + "$id": "646", + "isAnomaly": false, + "isPositiveAnomaly": false, + "isNegativeAnomaly": false, + "period": 12, + "expectedValue": 809.2328084659704, + "upperMargin": 40.46164042329852, + "lowerMargin": 40.46164042329852, + "suggestedWindow": 49, + "severity": 0 + } + }, + "$id": "644" + } + }, + "parameters": [ + { + "$id": "647", + "parameter": { + "$ref": "590" + }, + "value": { + "$id": "648", + "kind": "model", + "type": { + "$ref": "216" + }, + "value": { + "$id": "649", + "series": { + "$id": "650", + "kind": "array", + "type": { + "$ref": "218" + }, + "value": [ + { + "$id": "651", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "652", + "timestamp": { + "$id": "653", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-01-01T00:00:00Z" + }, + "value": { + "$id": "654", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 826 + } + } + }, + { + "$id": "655", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "656", + "timestamp": { + "$id": "657", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-02-01T00:00:00Z" + }, + "value": { + "$id": "658", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 799 + } + } + }, + { + "$id": "659", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "660", + "timestamp": { + "$id": "661", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-03-01T00:00:00Z" + }, + "value": { + "$id": "662", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 890 + } + } + }, + { + "$id": "663", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "664", + "timestamp": { + "$id": "665", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-04-01T00:00:00Z" + }, + "value": { + "$id": "666", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 900 + } + } + }, + { + "$id": "667", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "668", + "timestamp": { + "$id": "669", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-05-01T00:00:00Z" + }, + "value": { + "$id": "670", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 961 + } + } + }, + { + "$id": "671", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "672", + "timestamp": { + "$id": "673", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-06-01T00:00:00Z" + }, + "value": { + "$id": "674", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 935 + } + } + }, + { + "$id": "675", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "676", + "timestamp": { + "$id": "677", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-07-01T00:00:00Z" + }, + "value": { + "$id": "678", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 894 + } + } + }, + { + "$id": "679", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "680", + "timestamp": { + "$id": "681", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-08-01T00:00:00Z" + }, + "value": { + "$id": "682", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 855 + } + } + }, + { + "$id": "683", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "684", + "timestamp": { + "$id": "685", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-09-01T00:00:00Z" + }, + "value": { + "$id": "686", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 809 + } + } + }, + { + "$id": "687", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "688", + "timestamp": { + "$id": "689", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-10-01T00:00:00Z" + }, + "value": { + "$id": "690", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 810 + } + } + }, + { + "$id": "691", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "692", + "timestamp": { + "$id": "693", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-11-01T00:00:00Z" + }, + "value": { + "$id": "694", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 766 + } + } + }, + { + "$id": "695", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "696", + "timestamp": { + "$id": "697", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1972-12-01T00:00:00Z" + }, + "value": { + "$id": "698", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 805 + } + } + }, + { + "$id": "699", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "700", + "timestamp": { + "$id": "701", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-01-01T00:00:00Z" + }, + "value": { + "$id": "702", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 821 + } + } + }, + { + "$id": "703", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "704", + "timestamp": { + "$id": "705", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-02-01T00:00:00Z" + }, + "value": { + "$id": "706", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 773 + } + } + }, + { + "$id": "707", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "708", + "timestamp": { + "$id": "709", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-03-01T00:00:00Z" + }, + "value": { + "$id": "710", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 883 + } + } + }, + { + "$id": "711", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "712", + "timestamp": { + "$id": "713", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-04-01T00:00:00Z" + }, + "value": { + "$id": "714", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 898 + } + } + }, + { + "$id": "715", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "716", + "timestamp": { + "$id": "717", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-05-01T00:00:00Z" + }, + "value": { + "$id": "718", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 957 + } + } + }, + { + "$id": "719", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "720", + "timestamp": { + "$id": "721", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-06-01T00:00:00Z" + }, + "value": { + "$id": "722", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 924 + } + } + }, + { + "$id": "723", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "724", + "timestamp": { + "$id": "725", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-07-01T00:00:00Z" + }, + "value": { + "$id": "726", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 881 + } + } + }, + { + "$id": "727", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "728", + "timestamp": { + "$id": "729", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-08-01T00:00:00Z" + }, + "value": { + "$id": "730", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 837 + } + } + }, + { + "$id": "731", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "732", + "timestamp": { + "$id": "733", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-09-01T00:00:00Z" + }, + "value": { + "$id": "734", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 784 + } + } + }, + { + "$id": "735", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "736", + "timestamp": { + "$id": "737", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-10-01T00:00:00Z" + }, + "value": { + "$id": "738", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 791 + } + } + }, + { + "$id": "739", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "740", + "timestamp": { + "$id": "741", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-11-01T00:00:00Z" + }, + "value": { + "$id": "742", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 760 + } + } + }, + { + "$id": "743", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "744", + "timestamp": { + "$id": "745", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1973-12-01T00:00:00Z" + }, + "value": { + "$id": "746", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 802 + } + } + }, + { + "$id": "747", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "748", + "timestamp": { + "$id": "749", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-01-01T00:00:00Z" + }, + "value": { + "$id": "750", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 828 + } + } + }, + { + "$id": "751", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "752", + "timestamp": { + "$id": "753", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-02-01T00:00:00Z" + }, + "value": { + "$id": "754", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1030 + } + } + }, + { + "$id": "755", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "756", + "timestamp": { + "$id": "757", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-03-01T00:00:00Z" + }, + "value": { + "$id": "758", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 889 + } + } + }, + { + "$id": "759", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "760", + "timestamp": { + "$id": "761", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-04-01T00:00:00Z" + }, + "value": { + "$id": "762", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 902 + } + } + }, + { + "$id": "763", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "764", + "timestamp": { + "$id": "765", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-05-01T00:00:00Z" + }, + "value": { + "$id": "766", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 969 + } + } + }, + { + "$id": "767", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "768", + "timestamp": { + "$id": "769", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-06-01T00:00:00Z" + }, + "value": { + "$id": "770", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 947 + } + } + }, + { + "$id": "771", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "772", + "timestamp": { + "$id": "773", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-07-01T00:00:00Z" + }, + "value": { + "$id": "774", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 908 + } + } + }, + { + "$id": "775", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "776", + "timestamp": { + "$id": "777", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-08-01T00:00:00Z" + }, + "value": { + "$id": "778", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 867 + } + } + }, + { + "$id": "779", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "780", + "timestamp": { + "$id": "781", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-09-01T00:00:00Z" + }, + "value": { + "$id": "782", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 815 + } + } + }, + { + "$id": "783", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "784", + "timestamp": { + "$id": "785", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-10-01T00:00:00Z" + }, + "value": { + "$id": "786", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 812 + } + } + }, + { + "$id": "787", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "788", + "timestamp": { + "$id": "789", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-11-01T00:00:00Z" + }, + "value": { + "$id": "790", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 773 + } + } + }, + { + "$id": "791", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "792", + "timestamp": { + "$id": "793", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1974-12-01T00:00:00Z" + }, + "value": { + "$id": "794", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 813 + } + } + }, + { + "$id": "795", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "796", + "timestamp": { + "$id": "797", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-01-01T00:00:00Z" + }, + "value": { + "$id": "798", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 834 + } + } + }, + { + "$id": "799", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "800", + "timestamp": { + "$id": "801", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-02-01T00:00:00Z" + }, + "value": { + "$id": "802", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 782 + } + } + }, + { + "$id": "803", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "804", + "timestamp": { + "$id": "805", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-03-01T00:00:00Z" + }, + "value": { + "$id": "806", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 892 + } + } + }, + { + "$id": "807", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "808", + "timestamp": { + "$id": "809", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-04-01T00:00:00Z" + }, + "value": { + "$id": "810", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 903 + } + } + }, + { + "$id": "811", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "812", + "timestamp": { + "$id": "813", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-05-01T00:00:00Z" + }, + "value": { + "$id": "814", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 966 + } + } + }, + { + "$id": "815", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "816", + "timestamp": { + "$id": "817", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-06-01T00:00:00Z" + }, + "value": { + "$id": "818", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 937 + } + } + }, + { + "$id": "819", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "820", + "timestamp": { + "$id": "821", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-07-01T00:00:00Z" + }, + "value": { + "$id": "822", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 896 + } + } + }, + { + "$id": "823", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "824", + "timestamp": { + "$id": "825", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-08-01T00:00:00Z" + }, + "value": { + "$id": "826", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 858 + } + } + }, + { + "$id": "827", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "828", + "timestamp": { + "$id": "829", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-09-01T00:00:00Z" + }, + "value": { + "$id": "830", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 817 + } + } + }, + { + "$id": "831", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "832", + "timestamp": { + "$id": "833", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-10-01T00:00:00Z" + }, + "value": { + "$id": "834", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 827 + } + } + }, + { + "$id": "835", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "836", + "timestamp": { + "$id": "837", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-11-01T00:00:00Z" + }, + "value": { + "$id": "838", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 797 + } + } + }, + { + "$id": "839", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "840", + "timestamp": { + "$id": "841", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "1975-12-01T00:00:00Z" + }, + "value": { + "$id": "842", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 843 + } + } + } + ] + }, + "maxAnomalyRatio": { + "$id": "843", + "kind": "number", + "type": { + "$ref": "231" + }, + "value": 0.25 + }, + "sensitivity": { + "$id": "844", + "kind": "number", + "type": { + "$ref": "233" + }, + "value": 95 + }, + "granularity": { + "$id": "845", + "kind": "string", + "type": { + "$ref": "29" + }, + "value": "monthly" + }, + "imputeMode": { + "$id": "846", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "fixed" + }, + "imputeFixedValue": { + "$id": "847", + "kind": "number", + "type": { + "$ref": "236" + }, + "value": 800 + } + } + } + } + ], + "responses": { + "$id": "848" + } + } + ] + }, + { + "$id": "849", + "Name": "DetectUnivariateChangePoint", + "ResourceName": "Univariate", + "Summary": "Detect change point for the entire series", + "Description": "Evaluate change point score of every series point", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "314" + }, + { + "$ref": "316" + }, + { + "$id": "850", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Description": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "851", + "Kind": "constant", + "ValueType": { + "$id": "852", + "Kind": "string", + "Name": "string", + "CrossLanguageDefinitionId": "TypeSpec.string", + "Decorators": [] + }, + "Value": "application/json", + "Decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [] + }, + { + "$id": "853", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "854", + "Kind": "constant", + "ValueType": { + "$id": "855", + "Kind": "string", + "Name": "string", + "CrossLanguageDefinitionId": "TypeSpec.string", + "Decorators": [] + }, + "Value": "application/json", + "Decorators": [] }, "Location": "Header", "IsApiVersion": false, @@ -2942,7 +6489,7 @@ "Decorators": [] }, { - "$id": "343", + "$id": "856", "Name": "options", "NameInRequest": "options", "Description": "Method of univariate anomaly detection.", @@ -2961,37 +6508,8633 @@ ], "Responses": [ { - "$id": "344", + "$id": "857", "StatusCodes": [ 200 ], "BodyType": { "$ref": "296" }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{Endpoint}/anomalydetector/{ApiVersion}", - "Path": "/timeseries/changepoint/detect", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "AnomalyDetector.Univariate.DetectUnivariateChangePoint", - "Decorators": [] + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{Endpoint}/anomalydetector/{ApiVersion}", + "Path": "/timeseries/changepoint/detect", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AnomalyDetector.Univariate.DetectUnivariateChangePoint", + "Decorators": [], + "Examples": [ + { + "$id": "858", + "kind": "http", + "name": "Univariate detection of a change point", + "description": "Univariate detection of a change point", + "filePath": "v1.1/ChangePointDetect.json", + "rawExample": { + "$id": "859", + "operationId": "Univariate_DetectUnivariateChangePoint", + "title": "Univariate detection of a change point", + "parameters": { + "$id": "860", + "Endpoint": "{Endpoint}", + "ApiVersion": "v1.1", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "{API key}", + "options": { + "$id": "861", + "series": [ + { + "$id": "862", + "timestamp": "2017-01-01T06:45:00Z", + "value": 1639196 + }, + { + "$id": "863", + "timestamp": "2017-01-01T06:50:00Z", + "value": 1639290 + }, + { + "$id": "864", + "timestamp": "2017-01-01T06:55:00Z", + "value": 1667293 + }, + { + "$id": "865", + "timestamp": "2017-01-01T07:00:00Z", + "value": 1703130 + }, + { + "$id": "866", + "timestamp": "2017-01-01T07:05:00Z", + "value": 1650912 + }, + { + "$id": "867", + "timestamp": "2017-01-01T07:10:00Z", + "value": 1653596 + }, + { + "$id": "868", + "timestamp": "2017-01-01T07:15:00Z", + "value": 1653793 + }, + { + "$id": "869", + "timestamp": "2017-01-01T07:20:00Z", + "value": 1653795 + }, + { + "$id": "870", + "timestamp": "2017-01-01T07:25:00Z", + "value": 1663471 + }, + { + "$id": "871", + "timestamp": "2017-01-01T07:30:00Z", + "value": 1662358 + }, + { + "$id": "872", + "timestamp": "2017-01-01T07:35:00Z", + "value": 1664320 + }, + { + "$id": "873", + "timestamp": "2017-01-01T07:40:00Z", + "value": 1664942 + }, + { + "$id": "874", + "timestamp": "2017-01-01T07:45:00Z", + "value": 1664966 + }, + { + "$id": "875", + "timestamp": "2017-01-01T07:50:00Z", + "value": 1724271 + }, + { + "$id": "876", + "timestamp": "2017-01-01T07:55:00Z", + "value": 1678720 + }, + { + "$id": "877", + "timestamp": "2017-01-01T08:00:00Z", + "value": 1672536 + }, + { + "$id": "878", + "timestamp": "2017-01-01T08:05:00Z", + "value": 1672544 + }, + { + "$id": "879", + "timestamp": "2017-01-01T08:10:00Z", + "value": 1672364 + }, + { + "$id": "880", + "timestamp": "2017-01-01T08:15:00Z", + "value": 1672912 + }, + { + "$id": "881", + "timestamp": "2017-01-01T08:20:00Z", + "value": 1672736 + }, + { + "$id": "882", + "timestamp": "2017-01-01T08:25:00Z", + "value": 1672725 + }, + { + "$id": "883", + "timestamp": "2017-01-01T08:30:00Z", + "value": 1673247 + }, + { + "$id": "884", + "timestamp": "2017-01-01T08:35:00Z", + "value": 1673109 + }, + { + "$id": "885", + "timestamp": "2017-01-01T08:40:00Z", + "value": 1690088 + }, + { + "$id": "886", + "timestamp": "2017-01-01T08:45:00Z", + "value": 1703865 + }, + { + "$id": "887", + "timestamp": "2017-01-01T08:50:00Z", + "value": 1703865 + }, + { + "$id": "888", + "timestamp": "2017-01-01T08:55:00Z", + "value": 1786581 + }, + { + "$id": "889", + "timestamp": "2017-01-01T09:00:00Z", + "value": 1800945 + }, + { + "$id": "890", + "timestamp": "2017-01-01T09:05:00Z", + "value": 1800957 + }, + { + "$id": "891", + "timestamp": "2017-01-01T09:10:00Z", + "value": 1801191 + }, + { + "$id": "892", + "timestamp": "2017-01-01T09:15:00Z", + "value": 1801412 + }, + { + "$id": "893", + "timestamp": "2017-01-01T09:20:00Z", + "value": 1801621 + }, + { + "$id": "894", + "timestamp": "2017-01-01T09:25:00Z", + "value": 1801621 + }, + { + "$id": "895", + "timestamp": "2017-01-01T09:30:00Z", + "value": 1801654 + }, + { + "$id": "896", + "timestamp": "2017-01-01T09:35:00Z", + "value": 1802105 + }, + { + "$id": "897", + "timestamp": "2017-01-01T09:40:00Z", + "value": 1801800 + }, + { + "$id": "898", + "timestamp": "2017-01-01T09:45:00Z", + "value": 1803040 + }, + { + "$id": "899", + "timestamp": "2017-01-01T09:50:00Z", + "value": 1803672 + }, + { + "$id": "900", + "timestamp": "2017-01-01T09:55:00Z", + "value": 1803535 + }, + { + "$id": "901", + "timestamp": "2017-01-01T10:00:00Z", + "value": 1803541 + }, + { + "$id": "902", + "timestamp": "2017-01-01T10:05:00Z", + "value": 1803545 + }, + { + "$id": "903", + "timestamp": "2017-01-01T10:10:00Z", + "value": 1803599 + }, + { + "$id": "904", + "timestamp": "2017-01-01T10:15:00Z", + "value": 1803616 + }, + { + "$id": "905", + "timestamp": "2017-01-01T10:20:00Z", + "value": 1803619 + }, + { + "$id": "906", + "timestamp": "2017-01-01T10:25:00Z", + "value": 1809942 + }, + { + "$id": "907", + "timestamp": "2017-01-01T10:30:00Z", + "value": 1802720 + }, + { + "$id": "908", + "timestamp": "2017-01-01T10:35:00Z", + "value": 1802720 + }, + { + "$id": "909", + "timestamp": "2017-01-01T10:40:00Z", + "value": 1802888 + }, + { + "$id": "910", + "timestamp": "2017-01-01T10:45:00Z", + "value": 1809574 + }, + { + "$id": "911", + "timestamp": "2017-01-01T10:50:00Z", + "value": 1803896 + }, + { + "$id": "912", + "timestamp": "2017-01-01T10:55:00Z", + "value": 1803850 + }, + { + "$id": "913", + "timestamp": "2017-01-01T11:00:00Z", + "value": 1803854 + }, + { + "$id": "914", + "timestamp": "2017-01-01T11:05:00Z", + "value": 1803854 + }, + { + "$id": "915", + "timestamp": "2017-01-01T11:10:00Z", + "value": 1803797 + }, + { + "$id": "916", + "timestamp": "2017-01-01T11:15:00Z", + "value": 1803921 + }, + { + "$id": "917", + "timestamp": "2017-01-01T11:20:00Z", + "value": 1803933 + }, + { + "$id": "918", + "timestamp": "2017-01-01T11:25:00Z", + "value": 1804040 + }, + { + "$id": "919", + "timestamp": "2017-01-01T11:30:00Z", + "value": 1804044 + }, + { + "$id": "920", + "timestamp": "2017-01-01T11:35:00Z", + "value": 1804070 + }, + { + "$id": "921", + "timestamp": "2017-01-01T11:40:00Z", + "value": 1804070 + }, + { + "$id": "922", + "timestamp": "2017-01-01T11:45:00Z", + "value": 1804068 + }, + { + "$id": "923", + "timestamp": "2017-01-01T11:50:00Z", + "value": 1804073 + }, + { + "$id": "924", + "timestamp": "2017-01-01T11:55:00Z", + "value": 1804101 + }, + { + "$id": "925", + "timestamp": "2017-01-01T12:00:00Z", + "value": 1804674 + }, + { + "$id": "926", + "timestamp": "2017-01-01T12:05:00Z", + "value": 1804714 + }, + { + "$id": "927", + "timestamp": "2017-01-01T12:10:00Z", + "value": 1804730 + }, + { + "$id": "928", + "timestamp": "2017-01-01T12:15:00Z", + "value": 1804816 + }, + { + "$id": "929", + "timestamp": "2017-01-01T12:20:00Z", + "value": 1803996 + }, + { + "$id": "930", + "timestamp": "2017-01-01T12:25:00Z", + "value": 1803998 + }, + { + "$id": "931", + "timestamp": "2017-01-01T12:30:00Z", + "value": 1804015 + }, + { + "$id": "932", + "timestamp": "2017-01-01T12:35:00Z", + "value": 1804047 + }, + { + "$id": "933", + "timestamp": "2017-01-01T12:40:00Z", + "value": 1804050 + }, + { + "$id": "934", + "timestamp": "2017-01-01T12:45:00Z", + "value": 1804218 + }, + { + "$id": "935", + "timestamp": "2017-01-01T12:50:00Z", + "value": 1804217 + }, + { + "$id": "936", + "timestamp": "2017-01-01T12:55:00Z", + "value": 1804217 + }, + { + "$id": "937", + "timestamp": "2017-01-01T13:00:00Z", + "value": 1804205 + }, + { + "$id": "938", + "timestamp": "2017-01-01T13:05:00Z", + "value": 1804728 + }, + { + "$id": "939", + "timestamp": "2017-01-01T13:10:00Z", + "value": 1804748 + }, + { + "$id": "940", + "timestamp": "2017-01-01T13:15:00Z", + "value": 1805232 + }, + { + "$id": "941", + "timestamp": "2017-01-01T13:20:00Z", + "value": 1814121 + }, + { + "$id": "942", + "timestamp": "2017-01-01T13:25:00Z", + "value": 1806789 + }, + { + "$id": "943", + "timestamp": "2017-01-01T13:30:00Z", + "value": 1806119 + }, + { + "$id": "944", + "timestamp": "2017-01-01T13:35:00Z", + "value": 1806329 + }, + { + "$id": "945", + "timestamp": "2017-01-01T13:40:00Z", + "value": 1806454 + }, + { + "$id": "946", + "timestamp": "2017-01-01T13:45:00Z", + "value": 1806852 + }, + { + "$id": "947", + "timestamp": "2017-01-01T13:50:00Z", + "value": 1807347 + }, + { + "$id": "948", + "timestamp": "2017-01-01T13:55:00Z", + "value": 1812144 + }, + { + "$id": "949", + "timestamp": "2017-01-01T14:00:00Z", + "value": 1807418 + }, + { + "$id": "950", + "timestamp": "2017-01-01T14:05:00Z", + "value": 1807418 + }, + { + "$id": "951", + "timestamp": "2017-01-01T14:10:00Z", + "value": 1807432 + }, + { + "$id": "952", + "timestamp": "2017-01-01T14:15:00Z", + "value": 1808540 + }, + { + "$id": "953", + "timestamp": "2017-01-01T14:20:00Z", + "value": 1808541 + }, + { + "$id": "954", + "timestamp": "2017-01-01T14:25:00Z", + "value": 1807831 + }, + { + "$id": "955", + "timestamp": "2017-01-01T14:30:00Z", + "value": 1807852 + }, + { + "$id": "956", + "timestamp": "2017-01-01T14:35:00Z", + "value": 1807811 + }, + { + "$id": "957", + "timestamp": "2017-01-01T14:40:00Z", + "value": 2214285 + }, + { + "$id": "958", + "timestamp": "2017-01-01T14:45:00Z", + "value": 2215019 + }, + { + "$id": "959", + "timestamp": "2017-01-01T14:50:00Z", + "value": 2215329 + }, + { + "$id": "960", + "timestamp": "2017-01-01T14:55:00Z", + "value": 2215097 + }, + { + "$id": "961", + "timestamp": "2017-01-01T15:00:00Z", + "value": 2215129 + }, + { + "$id": "962", + "timestamp": "2017-01-01T15:05:00Z", + "value": 2215120 + }, + { + "$id": "963", + "timestamp": "2017-01-01T15:10:00Z", + "value": 2217056 + }, + { + "$id": "964", + "timestamp": "2017-01-01T15:15:00Z", + "value": 2217056 + }, + { + "$id": "965", + "timestamp": "2017-01-01T15:20:00Z", + "value": 2222126 + }, + { + "$id": "966", + "timestamp": "2017-01-01T15:25:00Z", + "value": 2226472 + }, + { + "$id": "967", + "timestamp": "2017-01-01T15:30:00Z", + "value": 2226722 + }, + { + "$id": "968", + "timestamp": "2017-01-01T15:35:00Z", + "value": 2226729 + }, + { + "$id": "969", + "timestamp": "2017-01-01T15:40:00Z", + "value": 2226735 + }, + { + "$id": "970", + "timestamp": "2017-01-01T15:45:00Z", + "value": 2226735 + }, + { + "$id": "971", + "timestamp": "2017-01-01T15:50:00Z", + "value": 2226735 + }, + { + "$id": "972", + "timestamp": "2017-01-01T15:55:00Z", + "value": 2226952 + }, + { + "$id": "973", + "timestamp": "2017-01-01T16:00:00Z", + "value": 2226962 + }, + { + "$id": "974", + "timestamp": "2017-01-01T16:05:00Z", + "value": 2649337 + }, + { + "$id": "975", + "timestamp": "2017-01-01T16:10:00Z", + "value": 2092796 + }, + { + "$id": "976", + "timestamp": "2017-01-01T16:15:00Z", + "value": 2092839 + }, + { + "$id": "977", + "timestamp": "2017-01-01T16:20:00Z", + "value": 2092940 + }, + { + "$id": "978", + "timestamp": "2017-01-01T16:25:00Z", + "value": 2092940 + }, + { + "$id": "979", + "timestamp": "2017-01-01T16:30:00Z", + "value": 2092965 + }, + { + "$id": "980", + "timestamp": "2017-01-01T16:35:00Z", + "value": 2092979 + }, + { + "$id": "981", + "timestamp": "2017-01-01T16:40:00Z", + "value": 2095588 + }, + { + "$id": "982", + "timestamp": "2017-01-01T16:45:00Z", + "value": 2099586 + }, + { + "$id": "983", + "timestamp": "2017-01-01T16:50:00Z", + "value": 2102981 + }, + { + "$id": "984", + "timestamp": "2017-01-01T16:55:00Z", + "value": 2108053 + }, + { + "$id": "985", + "timestamp": "2017-01-01T17:00:00Z", + "value": 2107907 + }, + { + "$id": "986", + "timestamp": "2017-01-01T17:05:00Z", + "value": 2108241 + }, + { + "$id": "987", + "timestamp": "2017-01-01T17:10:00Z", + "value": 2100321 + }, + { + "$id": "988", + "timestamp": "2017-01-01T17:15:00Z", + "value": 2100448 + }, + { + "$id": "989", + "timestamp": "2017-01-01T17:20:00Z", + "value": 2100483 + }, + { + "$id": "990", + "timestamp": "2017-01-01T17:25:00Z", + "value": 2103042 + }, + { + "$id": "991", + "timestamp": "2017-01-01T17:30:00Z", + "value": 2103037 + }, + { + "$id": "992", + "timestamp": "2017-01-01T17:35:00Z", + "value": 2103040 + }, + { + "$id": "993", + "timestamp": "2017-01-01T17:40:00Z", + "value": 2103054 + }, + { + "$id": "994", + "timestamp": "2017-01-01T17:45:00Z", + "value": 2103058 + }, + { + "$id": "995", + "timestamp": "2017-01-01T17:50:00Z", + "value": 1830757 + }, + { + "$id": "996", + "timestamp": "2017-01-01T17:55:00Z", + "value": 1830855 + }, + { + "$id": "997", + "timestamp": "2017-01-01T18:00:00Z", + "value": 1831495 + }, + { + "$id": "998", + "timestamp": "2017-01-01T18:05:00Z", + "value": 1831463 + }, + { + "$id": "999", + "timestamp": "2017-01-01T18:10:00Z", + "value": 1831963 + }, + { + "$id": "1000", + "timestamp": "2017-01-01T18:15:00Z", + "value": 1832046 + }, + { + "$id": "1001", + "timestamp": "2017-01-01T18:20:00Z", + "value": 1832070 + }, + { + "$id": "1002", + "timestamp": "2017-01-01T18:25:00Z", + "value": 1835511 + }, + { + "$id": "1003", + "timestamp": "2017-01-01T18:30:00Z", + "value": 1835265 + }, + { + "$id": "1004", + "timestamp": "2017-01-01T18:35:00Z", + "value": 1835481 + }, + { + "$id": "1005", + "timestamp": "2017-01-01T18:40:00Z", + "value": 1835578 + }, + { + "$id": "1006", + "timestamp": "2017-01-01T18:45:00Z", + "value": 1835611 + }, + { + "$id": "1007", + "timestamp": "2017-01-01T18:50:00Z", + "value": 1836314 + }, + { + "$id": "1008", + "timestamp": "2017-01-01T18:55:00Z", + "value": 1836369 + }, + { + "$id": "1009", + "timestamp": "2017-01-01T19:00:00Z", + "value": 1837280 + }, + { + "$id": "1010", + "timestamp": "2017-01-01T19:05:00Z", + "value": 1842939 + }, + { + "$id": "1011", + "timestamp": "2017-01-01T19:10:00Z", + "value": 1843126 + }, + { + "$id": "1012", + "timestamp": "2017-01-01T19:15:00Z", + "value": 1845840 + }, + { + "$id": "1013", + "timestamp": "2017-01-01T19:20:00Z", + "value": 1842444 + }, + { + "$id": "1014", + "timestamp": "2017-01-01T19:25:00Z", + "value": 1839891 + }, + { + "$id": "1015", + "timestamp": "2017-01-01T19:30:00Z", + "value": 1839875 + }, + { + "$id": "1016", + "timestamp": "2017-01-01T19:35:00Z", + "value": 1839870 + }, + { + "$id": "1017", + "timestamp": "2017-01-01T19:40:00Z", + "value": 1840090 + }, + { + "$id": "1018", + "timestamp": "2017-01-01T19:45:00Z", + "value": 1840479 + }, + { + "$id": "1019", + "timestamp": "2017-01-01T19:50:00Z", + "value": 1840479 + }, + { + "$id": "1020", + "timestamp": "2017-01-01T19:55:00Z", + "value": 1840482 + }, + { + "$id": "1021", + "timestamp": "2017-01-01T20:00:00Z", + "value": 1841522 + }, + { + "$id": "1022", + "timestamp": "2017-01-01T20:05:00Z", + "value": 1841836 + }, + { + "$id": "1023", + "timestamp": "2017-01-01T20:10:00Z", + "value": 1842377 + }, + { + "$id": "1024", + "timestamp": "2017-01-01T20:15:00Z", + "value": 1842388 + }, + { + "$id": "1025", + "timestamp": "2017-01-01T20:20:00Z", + "value": 1842489 + }, + { + "$id": "1026", + "timestamp": "2017-01-01T20:25:00Z", + "value": 1842489 + }, + { + "$id": "1027", + "timestamp": "2017-01-01T20:30:00Z", + "value": 1842489 + }, + { + "$id": "1028", + "timestamp": "2017-01-01T20:35:00Z", + "value": 1842496 + }, + { + "$id": "1029", + "timestamp": "2017-01-01T20:40:00Z", + "value": 1842689 + }, + { + "$id": "1030", + "timestamp": "2017-01-01T20:45:00Z", + "value": 1843117 + }, + { + "$id": "1031", + "timestamp": "2017-01-01T20:50:00Z", + "value": 1843116 + }, + { + "$id": "1032", + "timestamp": "2017-01-01T20:55:00Z", + "value": 1843227 + }, + { + "$id": "1033", + "timestamp": "2017-01-01T21:00:00Z", + "value": 1843138 + }, + { + "$id": "1034", + "timestamp": "2017-01-01T21:05:00Z", + "value": 1843141 + }, + { + "$id": "1035", + "timestamp": "2017-01-01T21:10:00Z", + "value": 1843310 + }, + { + "$id": "1036", + "timestamp": "2017-01-01T21:15:00Z", + "value": 1843310 + }, + { + "$id": "1037", + "timestamp": "2017-01-01T21:20:00Z", + "value": 1843507 + }, + { + "$id": "1038", + "timestamp": "2017-01-01T21:25:00Z", + "value": 1843953 + }, + { + "$id": "1039", + "timestamp": "2017-01-01T21:30:00Z", + "value": 1844778 + }, + { + "$id": "1040", + "timestamp": "2017-01-01T21:35:00Z", + "value": 1843918 + }, + { + "$id": "1041", + "timestamp": "2017-01-01T21:40:00Z", + "value": 1882692 + }, + { + "$id": "1042", + "timestamp": "2017-01-01T21:45:00Z", + "value": 1974888 + }, + { + "$id": "1043", + "timestamp": "2017-01-01T21:50:00Z", + "value": 2157136 + }, + { + "$id": "1044", + "timestamp": "2017-01-01T21:55:00Z", + "value": 2154987 + }, + { + "$id": "1045", + "timestamp": "2017-01-01T22:00:00Z", + "value": 2155664 + }, + { + "$id": "1046", + "timestamp": "2017-01-01T22:05:00Z", + "value": 2155660 + }, + { + "$id": "1047", + "timestamp": "2017-01-01T22:10:00Z", + "value": 2155824 + }, + { + "$id": "1048", + "timestamp": "2017-01-01T22:15:00Z", + "value": 2155824 + }, + { + "$id": "1049", + "timestamp": "2017-01-01T22:20:00Z", + "value": 2156329 + }, + { + "$id": "1050", + "timestamp": "2017-01-01T22:25:00Z", + "value": 2156479 + }, + { + "$id": "1051", + "timestamp": "2017-01-01T22:30:00Z", + "value": 2165269 + }, + { + "$id": "1052", + "timestamp": "2017-01-01T22:35:00Z", + "value": 2165433 + }, + { + "$id": "1053", + "timestamp": "2017-01-01T22:40:00Z", + "value": 2165739 + }, + { + "$id": "1054", + "timestamp": "2017-01-01T22:45:00Z", + "value": 2165931 + }, + { + "$id": "1055", + "timestamp": "2017-01-01T22:50:00Z", + "value": 2165928 + }, + { + "$id": "1056", + "timestamp": "2017-01-01T22:55:00Z", + "value": 2165989 + }, + { + "$id": "1057", + "timestamp": "2017-01-01T23:00:00Z", + "value": 2228961 + }, + { + "$id": "1058", + "timestamp": "2017-01-01T23:05:00Z", + "value": 2228961 + }, + { + "$id": "1059", + "timestamp": "2017-01-01T23:10:00Z", + "value": 2228961 + }, + { + "$id": "1060", + "timestamp": "2017-01-01T23:15:00Z", + "value": 2485802 + }, + { + "$id": "1061", + "timestamp": "2017-01-01T23:20:00Z", + "value": 2485802 + }, + { + "$id": "1062", + "timestamp": "2017-01-01T23:25:00Z", + "value": 2486021 + }, + { + "$id": "1063", + "timestamp": "2017-01-01T23:30:00Z", + "value": 2485293 + }, + { + "$id": "1064", + "timestamp": "2017-01-01T23:35:00Z", + "value": 2485293 + }, + { + "$id": "1065", + "timestamp": "2017-01-01T23:40:00Z", + "value": 2485324 + }, + { + "$id": "1066", + "timestamp": "2017-01-01T23:45:00Z", + "value": 2489142 + }, + { + "$id": "1067", + "timestamp": "2017-01-01T23:50:00Z", + "value": 2526312 + }, + { + "$id": "1068", + "timestamp": "2017-01-01T23:55:00Z", + "value": 2526313 + }, + { + "$id": "1069", + "timestamp": "2017-01-02T00:00:00Z", + "value": 2526314 + }, + { + "$id": "1070", + "timestamp": "2017-01-02T00:05:00Z", + "value": 2526324 + }, + { + "$id": "1071", + "timestamp": "2017-01-02T00:10:00Z", + "value": 2526325 + }, + { + "$id": "1072", + "timestamp": "2017-01-02T00:15:00Z", + "value": 2526205 + }, + { + "$id": "1073", + "timestamp": "2017-01-02T00:20:00Z", + "value": 2526226 + }, + { + "$id": "1074", + "timestamp": "2017-01-02T00:25:00Z", + "value": 2526475 + }, + { + "$id": "1075", + "timestamp": "2017-01-02T00:30:00Z", + "value": 2526471 + }, + { + "$id": "1076", + "timestamp": "2017-01-02T00:35:00Z", + "value": 2526471 + }, + { + "$id": "1077", + "timestamp": "2017-01-02T00:40:00Z", + "value": 2526534 + }, + { + "$id": "1078", + "timestamp": "2017-01-02T00:45:00Z", + "value": 2526646 + }, + { + "$id": "1079", + "timestamp": "2017-01-02T00:50:00Z", + "value": 2526646 + }, + { + "$id": "1080", + "timestamp": "2017-01-02T00:55:00Z", + "value": 2526648 + }, + { + "$id": "1081", + "timestamp": "2017-01-02T01:00:00Z", + "value": 2526658 + }, + { + "$id": "1082", + "timestamp": "2017-01-02T01:05:00Z", + "value": 2526771 + }, + { + "$id": "1083", + "timestamp": "2017-01-02T01:10:00Z", + "value": 2526773 + }, + { + "$id": "1084", + "timestamp": "2017-01-02T01:15:00Z", + "value": 2526793 + }, + { + "$id": "1085", + "timestamp": "2017-01-02T01:20:00Z", + "value": 2527010 + }, + { + "$id": "1086", + "timestamp": "2017-01-02T01:25:00Z", + "value": 2527031 + }, + { + "$id": "1087", + "timestamp": "2017-01-02T01:30:00Z", + "value": 3178096 + }, + { + "$id": "1088", + "timestamp": "2017-01-02T01:35:00Z", + "value": 3196305 + }, + { + "$id": "1089", + "timestamp": "2017-01-02T01:40:00Z", + "value": 3196202 + }, + { + "$id": "1090", + "timestamp": "2017-01-02T01:45:00Z", + "value": 3196202 + }, + { + "$id": "1091", + "timestamp": "2017-01-02T01:50:00Z", + "value": 3196205 + }, + { + "$id": "1092", + "timestamp": "2017-01-02T01:55:00Z", + "value": 3229232 + }, + { + "$id": "1093", + "timestamp": "2017-01-02T02:00:00Z", + "value": 3230463 + }, + { + "$id": "1094", + "timestamp": "2017-01-02T02:05:00Z", + "value": 3230468 + }, + { + "$id": "1095", + "timestamp": "2017-01-02T02:10:00Z", + "value": 3230468 + }, + { + "$id": "1096", + "timestamp": "2017-01-02T02:15:00Z", + "value": 3230468 + }, + { + "$id": "1097", + "timestamp": "2017-01-02T02:20:00Z", + "value": 3230470 + }, + { + "$id": "1098", + "timestamp": "2017-01-02T02:25:00Z", + "value": 3230467 + }, + { + "$id": "1099", + "timestamp": "2017-01-02T02:30:00Z", + "value": 3230506 + }, + { + "$id": "1100", + "timestamp": "2017-01-02T02:35:00Z", + "value": 3231536 + }, + { + "$id": "1101", + "timestamp": "2017-01-02T02:40:00Z", + "value": 3230723 + }, + { + "$id": "1102", + "timestamp": "2017-01-02T02:45:00Z", + "value": 3230727 + }, + { + "$id": "1103", + "timestamp": "2017-01-02T02:50:00Z", + "value": 3230727 + }, + { + "$id": "1104", + "timestamp": "2017-01-02T02:55:00Z", + "value": 3230727 + }, + { + "$id": "1105", + "timestamp": "2017-01-02T03:00:00Z", + "value": 3231880 + }, + { + "$id": "1106", + "timestamp": "2017-01-02T03:05:00Z", + "value": 3232283 + }, + { + "$id": "1107", + "timestamp": "2017-01-02T03:10:00Z", + "value": 3232283 + }, + { + "$id": "1108", + "timestamp": "2017-01-02T03:15:00Z", + "value": 3232283 + }, + { + "$id": "1109", + "timestamp": "2017-01-02T03:20:00Z", + "value": 3232325 + }, + { + "$id": "1110", + "timestamp": "2017-01-02T03:25:00Z", + "value": 3232323 + }, + { + "$id": "1111", + "timestamp": "2017-01-02T03:30:00Z", + "value": 3232327 + }, + { + "$id": "1112", + "timestamp": "2017-01-02T03:35:00Z", + "value": 3232340 + }, + { + "$id": "1113", + "timestamp": "2017-01-02T03:40:00Z", + "value": 3232713 + }, + { + "$id": "1114", + "timestamp": "2017-01-02T03:45:00Z", + "value": 3232729 + }, + { + "$id": "1115", + "timestamp": "2017-01-02T03:50:00Z", + "value": 3232756 + }, + { + "$id": "1116", + "timestamp": "2017-01-02T03:55:00Z", + "value": 3233500 + }, + { + "$id": "1117", + "timestamp": "2017-01-02T04:00:00Z", + "value": 3233500 + }, + { + "$id": "1118", + "timestamp": "2017-01-02T04:05:00Z", + "value": 3233500 + } + ], + "granularity": "minutely", + "customInterval": 5, + "stableTrendWindow": 10, + "threshold": 0.99, + "period": 0 + } + }, + "responses": { + "200": { + "$id": "1120", + "body": { + "$id": "1121", + "period": 0, + "confidenceScores": [ + 0.11841763735063232, + 0.014857199927548581, + 0.0887032374955278, + 0.07430314751946857, + 0.059903057543409355, + 0.04132288981790399, + 0.022742722092391268, + 0.0005683208474757854, + 0.0216060803974397, + 0.053248991089971616, + 0.08489190178249614, + 0.04322511558132514, + 0.085336620199234, + 0.05876047041512903, + 0.02673755265447302, + 0.005032027060762012, + 0.031323171543775764, + 0.06299774949197792, + 0.08944723025337244, + 0.11523169864554421, + 0.14288453512268834, + 0.001592562559717675, + 0.32637788222282893, + 0, + 7.37310752217245e-15, + 2.211932256651735e-14, + 1, + 0.015697015891758138, + 0.01242773215043403, + 0.016188579169534697, + 0.019537751864826272, + 0.022506917491993753, + 0.01885762668253081, + 0.016253355310429398, + 0.017227483829906676, + 0.023236706002118527, + 0.03906277743439327, + 0.0354134866249377, + 0.037084294769315296, + 0.038248426822850935, + 0.050274427573818385, + 0.046815140298421175, + 0.043292518511668716, + 0.041353259508804745, + 0.038242312045861385, + 0.0346880230034313, + 0.032717096744889713, + 0.033026212895129546, + 0.031055286636580585, + 0.0275326648498355, + 0.023883374040372555, + 0.021564107969369743, + 0.018706498551854727, + 0.01543721481052325, + 0.015176320358565887, + 0.011527029549110314, + 0.008004407762357859, + 0.004355116952902286, + 0.0007058261434393403, + 0.0030701336887340946, + 0.006592755475479178, + 0.010147044517909256, + 0.013701333560339335, + 0.016780613767597707, + 0.020366570065705403, + 0.024015860875168354, + 0.02757014991759106, + 0.03033275756808058, + 0.03068865378707081, + 0.03395793752839492, + 0.03760722833785786, + 0.04122485189164318, + 0.030433874112103007, + 0.032816474694461056, + 0.03602242392443729, + 0.03960838022253762, + 0.04268766042980336, + 0.04633695123926631, + 0.0346592903007527, + 0.010219725324164698, + 0.007218892441326965, + 0.006909776291079754, + 0.000049463551460760754, + 0.0016047901503119819, + 0.01042121060065547, + 0.009020294944303705, + 0.005371004134840759, + 0.0021650549048718984, + 0.010517653997227793, + 0.0075017083013172925, + 0.00385241749186172, + 0.0008681390516288423, + 0.019005920148370017, + 0.015388296594592068, + 0.12583612799160215, + 1, + 0.005055878353042495, + 0.007613932468790628, + 0.011913685646822731, + 0.0166567804043268, + 0.015351429327405014, + 0.034309821169245976, + 0.0292817211106433, + 0.02425362105202589, + 0.019225520993423218, + 0.01419742093482055, + 0.00916932087621788, + 0.004141220817600464, + 0.0008868792410022057, + 0.0059149792996048755, + 0.010943079358207547, + 0.015971179416810213, + 0.02099927947542763, + 1, + 0.11533376425564247, + 0.1207645081246342, + 0.025174230145423273, + 0.09422487163021387, + 0.08417070843230404, + 0.07411654523437947, + 0.06406238203646963, + 0.0540082188385598, + 0.04395405564064997, + 0.03500824639144218, + 0.024954083193532338, + 0.014899919995622513, + 0.004845756797712681, + 0.005208406400211895, + 0.015262569598121728, + 0.025316732796031558, + 0.03537089599394139, + 0.045425059191865964, + 0.05145748091871777, + 1, + 0.011663506282381296, + 0.0043856580970499884, + 0.002892190088273945, + 0.01017003827359788, + 0.01744788645892181, + 0.024725734644253115, + 0.03200358282957705, + 0.03928143101490098, + 0.046559279200224915, + 0.05383712738555622, + 0.060069956133518614, + 0.0450857235774741, + 0.050621872700536176, + 0.029050850963546225, + 0.045689493056171517, + 0.0385699811492357, + 0.03179880905474635, + 0.03082274474926925, + 0.03586345902254038, + 0.028585610837209074, + 0.021402764418918006, + 0.04705886213832124, + 0.049724532235770696, + 0.05957866937203304, + 0.052649160999162954, + 0.045371312813839014, + 0.03809346462851508, + 0.030815616443183775, + 0.023537768257859845, + 0.01945831289597576, + 0.012180464710644455, + 0.00490261652532052, + 0.002153560870260057, + 0.0033196287098028916, + 0.0029244412792105113, + 0.0043217396504358, + 0.010934575466529664, + 0.018117421884820732, + 0.02267188608187652, + 0.027321352045957807, + 0.03459920023128174, + 0.03563859904812146, + 0.02990120514994264, + 0.03607069938654979, + 0.017223061637835352, + 7.37310752217245e-15, + 1.47462150443449e-14, + 1, + 0.046440552438977135, + 0.012233652454378385, + 0.017033155644526038, + 0.05136672465183527, + 0.06970832954194527, + 0.09929181019761117, + 0.11281999222473732, + 0.11039622919405537, + 0.08125609011787617, + 0.05661270134791935, + 0.028264243663680723, + 0.005974323576610399, + 0.038471191754617544, + 0, + 0, + 0, + 0.020288532128574968, + 0.005041879493223223, + 0.009223088216122232, + 0.009332792637570532, + 0.024579445272937026, + 0.03289096891488949, + 0.050695883419617865, + 1, + 0.000748013913075547, + 0.002186373999917361, + 0.0009330173541465358, + 0.00032033929162428933, + 0.0012886906362965138, + 0.002542047282052593, + 0.0007963481454318109, + 0.0004886757560166365, + 0.0016470306347398486, + 0.001063686451208582, + 0.0011980222832366648, + 0.00008700161821178273, + 0.0013086910082902394, + 0.0022770423529624643, + 0.000016333637160404937, + 0.0012053557529180517, + 0.0018570345408140537, + 0.0037297360397815314, + 0.003109724507563151, + 0.22869458705263188, + 0.2293374323429407, + 0.1140021204394844, + 0.0012381896969537412, + 0.11340677603264777, + 1, + 0.011793249472519423, + 0.008293225072094536, + 0.00469819890465153, + 0.0010715054815308995, + 0.0025551879416044767, + 0.006118546853369862, + 0.008605219072110835, + 0.0053601180131874334, + 0.008860142413597574, + 0.01248683583673295, + 0.01611352925985358, + 0.005878587160222206, + 0.013145429690188892, + 0.022280640305150038, + 0.01865394688201466, + 0.015027253458894031, + 0.012033905149325846, + 0.009040556839742916, + 0.005445530672299909, + 0.0018505045048569009, + 0.001744521662600853, + 0.005339547830043862, + 0.008760404091259945, + 0.012181260352490777, + 0.009902010591734853, + 0.007622760830993676 + ], + "isChangePoint": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + } + }, + "$id": "1119" + } + }, + "parameters": [ + { + "$id": "1122", + "parameter": { + "$ref": "856" + }, + "value": { + "$id": "1123", + "kind": "model", + "type": { + "$ref": "284" + }, + "value": { + "$id": "1124", + "series": { + "$id": "1125", + "kind": "array", + "type": { + "$ref": "286" + }, + "value": [ + { + "$id": "1126", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1127", + "timestamp": { + "$id": "1128", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T06:45:00Z" + }, + "value": { + "$id": "1129", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1639196 + } + } + }, + { + "$id": "1130", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1131", + "timestamp": { + "$id": "1132", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T06:50:00Z" + }, + "value": { + "$id": "1133", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1639290 + } + } + }, + { + "$id": "1134", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1135", + "timestamp": { + "$id": "1136", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T06:55:00Z" + }, + "value": { + "$id": "1137", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1667293 + } + } + }, + { + "$id": "1138", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1139", + "timestamp": { + "$id": "1140", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:00:00Z" + }, + "value": { + "$id": "1141", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1703130 + } + } + }, + { + "$id": "1142", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1143", + "timestamp": { + "$id": "1144", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:05:00Z" + }, + "value": { + "$id": "1145", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1650912 + } + } + }, + { + "$id": "1146", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1147", + "timestamp": { + "$id": "1148", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:10:00Z" + }, + "value": { + "$id": "1149", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1653596 + } + } + }, + { + "$id": "1150", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1151", + "timestamp": { + "$id": "1152", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:15:00Z" + }, + "value": { + "$id": "1153", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1653793 + } + } + }, + { + "$id": "1154", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1155", + "timestamp": { + "$id": "1156", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:20:00Z" + }, + "value": { + "$id": "1157", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1653795 + } + } + }, + { + "$id": "1158", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1159", + "timestamp": { + "$id": "1160", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:25:00Z" + }, + "value": { + "$id": "1161", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1663471 + } + } + }, + { + "$id": "1162", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1163", + "timestamp": { + "$id": "1164", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:30:00Z" + }, + "value": { + "$id": "1165", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1662358 + } + } + }, + { + "$id": "1166", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1167", + "timestamp": { + "$id": "1168", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:35:00Z" + }, + "value": { + "$id": "1169", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1664320 + } + } + }, + { + "$id": "1170", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1171", + "timestamp": { + "$id": "1172", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:40:00Z" + }, + "value": { + "$id": "1173", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1664942 + } + } + }, + { + "$id": "1174", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1175", + "timestamp": { + "$id": "1176", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:45:00Z" + }, + "value": { + "$id": "1177", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1664966 + } + } + }, + { + "$id": "1178", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1179", + "timestamp": { + "$id": "1180", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:50:00Z" + }, + "value": { + "$id": "1181", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1724271 + } + } + }, + { + "$id": "1182", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1183", + "timestamp": { + "$id": "1184", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T07:55:00Z" + }, + "value": { + "$id": "1185", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1678720 + } + } + }, + { + "$id": "1186", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1187", + "timestamp": { + "$id": "1188", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:00:00Z" + }, + "value": { + "$id": "1189", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1672536 + } + } + }, + { + "$id": "1190", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1191", + "timestamp": { + "$id": "1192", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:05:00Z" + }, + "value": { + "$id": "1193", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1672544 + } + } + }, + { + "$id": "1194", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1195", + "timestamp": { + "$id": "1196", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:10:00Z" + }, + "value": { + "$id": "1197", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1672364 + } + } + }, + { + "$id": "1198", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1199", + "timestamp": { + "$id": "1200", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:15:00Z" + }, + "value": { + "$id": "1201", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1672912 + } + } + }, + { + "$id": "1202", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1203", + "timestamp": { + "$id": "1204", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:20:00Z" + }, + "value": { + "$id": "1205", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1672736 + } + } + }, + { + "$id": "1206", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1207", + "timestamp": { + "$id": "1208", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:25:00Z" + }, + "value": { + "$id": "1209", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1672725 + } + } + }, + { + "$id": "1210", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1211", + "timestamp": { + "$id": "1212", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:30:00Z" + }, + "value": { + "$id": "1213", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1673247 + } + } + }, + { + "$id": "1214", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1215", + "timestamp": { + "$id": "1216", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:35:00Z" + }, + "value": { + "$id": "1217", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1673109 + } + } + }, + { + "$id": "1218", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1219", + "timestamp": { + "$id": "1220", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:40:00Z" + }, + "value": { + "$id": "1221", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1690088 + } + } + }, + { + "$id": "1222", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1223", + "timestamp": { + "$id": "1224", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:45:00Z" + }, + "value": { + "$id": "1225", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1703865 + } + } + }, + { + "$id": "1226", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1227", + "timestamp": { + "$id": "1228", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:50:00Z" + }, + "value": { + "$id": "1229", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1703865 + } + } + }, + { + "$id": "1230", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1231", + "timestamp": { + "$id": "1232", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T08:55:00Z" + }, + "value": { + "$id": "1233", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1786581 + } + } + }, + { + "$id": "1234", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1235", + "timestamp": { + "$id": "1236", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:00:00Z" + }, + "value": { + "$id": "1237", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1800945 + } + } + }, + { + "$id": "1238", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1239", + "timestamp": { + "$id": "1240", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:05:00Z" + }, + "value": { + "$id": "1241", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1800957 + } + } + }, + { + "$id": "1242", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1243", + "timestamp": { + "$id": "1244", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:10:00Z" + }, + "value": { + "$id": "1245", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1801191 + } + } + }, + { + "$id": "1246", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1247", + "timestamp": { + "$id": "1248", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:15:00Z" + }, + "value": { + "$id": "1249", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1801412 + } + } + }, + { + "$id": "1250", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1251", + "timestamp": { + "$id": "1252", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:20:00Z" + }, + "value": { + "$id": "1253", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1801621 + } + } + }, + { + "$id": "1254", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1255", + "timestamp": { + "$id": "1256", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:25:00Z" + }, + "value": { + "$id": "1257", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1801621 + } + } + }, + { + "$id": "1258", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1259", + "timestamp": { + "$id": "1260", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:30:00Z" + }, + "value": { + "$id": "1261", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1801654 + } + } + }, + { + "$id": "1262", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1263", + "timestamp": { + "$id": "1264", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:35:00Z" + }, + "value": { + "$id": "1265", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1802105 + } + } + }, + { + "$id": "1266", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1267", + "timestamp": { + "$id": "1268", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:40:00Z" + }, + "value": { + "$id": "1269", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1801800 + } + } + }, + { + "$id": "1270", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1271", + "timestamp": { + "$id": "1272", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:45:00Z" + }, + "value": { + "$id": "1273", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803040 + } + } + }, + { + "$id": "1274", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1275", + "timestamp": { + "$id": "1276", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:50:00Z" + }, + "value": { + "$id": "1277", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803672 + } + } + }, + { + "$id": "1278", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1279", + "timestamp": { + "$id": "1280", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T09:55:00Z" + }, + "value": { + "$id": "1281", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803535 + } + } + }, + { + "$id": "1282", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1283", + "timestamp": { + "$id": "1284", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:00:00Z" + }, + "value": { + "$id": "1285", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803541 + } + } + }, + { + "$id": "1286", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1287", + "timestamp": { + "$id": "1288", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:05:00Z" + }, + "value": { + "$id": "1289", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803545 + } + } + }, + { + "$id": "1290", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1291", + "timestamp": { + "$id": "1292", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:10:00Z" + }, + "value": { + "$id": "1293", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803599 + } + } + }, + { + "$id": "1294", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1295", + "timestamp": { + "$id": "1296", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:15:00Z" + }, + "value": { + "$id": "1297", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803616 + } + } + }, + { + "$id": "1298", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1299", + "timestamp": { + "$id": "1300", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:20:00Z" + }, + "value": { + "$id": "1301", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803619 + } + } + }, + { + "$id": "1302", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1303", + "timestamp": { + "$id": "1304", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:25:00Z" + }, + "value": { + "$id": "1305", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1809942 + } + } + }, + { + "$id": "1306", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1307", + "timestamp": { + "$id": "1308", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:30:00Z" + }, + "value": { + "$id": "1309", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1802720 + } + } + }, + { + "$id": "1310", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1311", + "timestamp": { + "$id": "1312", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:35:00Z" + }, + "value": { + "$id": "1313", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1802720 + } + } + }, + { + "$id": "1314", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1315", + "timestamp": { + "$id": "1316", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:40:00Z" + }, + "value": { + "$id": "1317", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1802888 + } + } + }, + { + "$id": "1318", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1319", + "timestamp": { + "$id": "1320", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:45:00Z" + }, + "value": { + "$id": "1321", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1809574 + } + } + }, + { + "$id": "1322", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1323", + "timestamp": { + "$id": "1324", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:50:00Z" + }, + "value": { + "$id": "1325", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803896 + } + } + }, + { + "$id": "1326", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1327", + "timestamp": { + "$id": "1328", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T10:55:00Z" + }, + "value": { + "$id": "1329", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803850 + } + } + }, + { + "$id": "1330", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1331", + "timestamp": { + "$id": "1332", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:00:00Z" + }, + "value": { + "$id": "1333", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803854 + } + } + }, + { + "$id": "1334", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1335", + "timestamp": { + "$id": "1336", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:05:00Z" + }, + "value": { + "$id": "1337", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803854 + } + } + }, + { + "$id": "1338", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1339", + "timestamp": { + "$id": "1340", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:10:00Z" + }, + "value": { + "$id": "1341", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803797 + } + } + }, + { + "$id": "1342", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1343", + "timestamp": { + "$id": "1344", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:15:00Z" + }, + "value": { + "$id": "1345", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803921 + } + } + }, + { + "$id": "1346", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1347", + "timestamp": { + "$id": "1348", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:20:00Z" + }, + "value": { + "$id": "1349", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803933 + } + } + }, + { + "$id": "1350", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1351", + "timestamp": { + "$id": "1352", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:25:00Z" + }, + "value": { + "$id": "1353", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804040 + } + } + }, + { + "$id": "1354", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1355", + "timestamp": { + "$id": "1356", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:30:00Z" + }, + "value": { + "$id": "1357", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804044 + } + } + }, + { + "$id": "1358", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1359", + "timestamp": { + "$id": "1360", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:35:00Z" + }, + "value": { + "$id": "1361", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804070 + } + } + }, + { + "$id": "1362", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1363", + "timestamp": { + "$id": "1364", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:40:00Z" + }, + "value": { + "$id": "1365", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804070 + } + } + }, + { + "$id": "1366", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1367", + "timestamp": { + "$id": "1368", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:45:00Z" + }, + "value": { + "$id": "1369", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804068 + } + } + }, + { + "$id": "1370", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1371", + "timestamp": { + "$id": "1372", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:50:00Z" + }, + "value": { + "$id": "1373", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804073 + } + } + }, + { + "$id": "1374", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1375", + "timestamp": { + "$id": "1376", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T11:55:00Z" + }, + "value": { + "$id": "1377", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804101 + } + } + }, + { + "$id": "1378", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1379", + "timestamp": { + "$id": "1380", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:00:00Z" + }, + "value": { + "$id": "1381", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804674 + } + } + }, + { + "$id": "1382", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1383", + "timestamp": { + "$id": "1384", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:05:00Z" + }, + "value": { + "$id": "1385", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804714 + } + } + }, + { + "$id": "1386", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1387", + "timestamp": { + "$id": "1388", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:10:00Z" + }, + "value": { + "$id": "1389", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804730 + } + } + }, + { + "$id": "1390", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1391", + "timestamp": { + "$id": "1392", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:15:00Z" + }, + "value": { + "$id": "1393", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804816 + } + } + }, + { + "$id": "1394", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1395", + "timestamp": { + "$id": "1396", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:20:00Z" + }, + "value": { + "$id": "1397", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803996 + } + } + }, + { + "$id": "1398", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1399", + "timestamp": { + "$id": "1400", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:25:00Z" + }, + "value": { + "$id": "1401", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1803998 + } + } + }, + { + "$id": "1402", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1403", + "timestamp": { + "$id": "1404", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:30:00Z" + }, + "value": { + "$id": "1405", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804015 + } + } + }, + { + "$id": "1406", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1407", + "timestamp": { + "$id": "1408", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:35:00Z" + }, + "value": { + "$id": "1409", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804047 + } + } + }, + { + "$id": "1410", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1411", + "timestamp": { + "$id": "1412", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:40:00Z" + }, + "value": { + "$id": "1413", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804050 + } + } + }, + { + "$id": "1414", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1415", + "timestamp": { + "$id": "1416", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:45:00Z" + }, + "value": { + "$id": "1417", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804218 + } + } + }, + { + "$id": "1418", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1419", + "timestamp": { + "$id": "1420", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:50:00Z" + }, + "value": { + "$id": "1421", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804217 + } + } + }, + { + "$id": "1422", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1423", + "timestamp": { + "$id": "1424", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T12:55:00Z" + }, + "value": { + "$id": "1425", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804217 + } + } + }, + { + "$id": "1426", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1427", + "timestamp": { + "$id": "1428", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:00:00Z" + }, + "value": { + "$id": "1429", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804205 + } + } + }, + { + "$id": "1430", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1431", + "timestamp": { + "$id": "1432", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:05:00Z" + }, + "value": { + "$id": "1433", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804728 + } + } + }, + { + "$id": "1434", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1435", + "timestamp": { + "$id": "1436", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:10:00Z" + }, + "value": { + "$id": "1437", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1804748 + } + } + }, + { + "$id": "1438", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1439", + "timestamp": { + "$id": "1440", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:15:00Z" + }, + "value": { + "$id": "1441", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1805232 + } + } + }, + { + "$id": "1442", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1443", + "timestamp": { + "$id": "1444", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:20:00Z" + }, + "value": { + "$id": "1445", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1814121 + } + } + }, + { + "$id": "1446", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1447", + "timestamp": { + "$id": "1448", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:25:00Z" + }, + "value": { + "$id": "1449", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1806789 + } + } + }, + { + "$id": "1450", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1451", + "timestamp": { + "$id": "1452", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:30:00Z" + }, + "value": { + "$id": "1453", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1806119 + } + } + }, + { + "$id": "1454", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1455", + "timestamp": { + "$id": "1456", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:35:00Z" + }, + "value": { + "$id": "1457", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1806329 + } + } + }, + { + "$id": "1458", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1459", + "timestamp": { + "$id": "1460", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:40:00Z" + }, + "value": { + "$id": "1461", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1806454 + } + } + }, + { + "$id": "1462", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1463", + "timestamp": { + "$id": "1464", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:45:00Z" + }, + "value": { + "$id": "1465", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1806852 + } + } + }, + { + "$id": "1466", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1467", + "timestamp": { + "$id": "1468", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:50:00Z" + }, + "value": { + "$id": "1469", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1807347 + } + } + }, + { + "$id": "1470", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1471", + "timestamp": { + "$id": "1472", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T13:55:00Z" + }, + "value": { + "$id": "1473", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1812144 + } + } + }, + { + "$id": "1474", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1475", + "timestamp": { + "$id": "1476", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:00:00Z" + }, + "value": { + "$id": "1477", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1807418 + } + } + }, + { + "$id": "1478", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1479", + "timestamp": { + "$id": "1480", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:05:00Z" + }, + "value": { + "$id": "1481", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1807418 + } + } + }, + { + "$id": "1482", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1483", + "timestamp": { + "$id": "1484", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:10:00Z" + }, + "value": { + "$id": "1485", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1807432 + } + } + }, + { + "$id": "1486", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1487", + "timestamp": { + "$id": "1488", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:15:00Z" + }, + "value": { + "$id": "1489", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1808540 + } + } + }, + { + "$id": "1490", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1491", + "timestamp": { + "$id": "1492", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:20:00Z" + }, + "value": { + "$id": "1493", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1808541 + } + } + }, + { + "$id": "1494", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1495", + "timestamp": { + "$id": "1496", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:25:00Z" + }, + "value": { + "$id": "1497", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1807831 + } + } + }, + { + "$id": "1498", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1499", + "timestamp": { + "$id": "1500", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:30:00Z" + }, + "value": { + "$id": "1501", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1807852 + } + } + }, + { + "$id": "1502", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1503", + "timestamp": { + "$id": "1504", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:35:00Z" + }, + "value": { + "$id": "1505", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1807811 + } + } + }, + { + "$id": "1506", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1507", + "timestamp": { + "$id": "1508", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:40:00Z" + }, + "value": { + "$id": "1509", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2214285 + } + } + }, + { + "$id": "1510", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1511", + "timestamp": { + "$id": "1512", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:45:00Z" + }, + "value": { + "$id": "1513", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2215019 + } + } + }, + { + "$id": "1514", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1515", + "timestamp": { + "$id": "1516", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:50:00Z" + }, + "value": { + "$id": "1517", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2215329 + } + } + }, + { + "$id": "1518", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1519", + "timestamp": { + "$id": "1520", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T14:55:00Z" + }, + "value": { + "$id": "1521", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2215097 + } + } + }, + { + "$id": "1522", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1523", + "timestamp": { + "$id": "1524", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:00:00Z" + }, + "value": { + "$id": "1525", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2215129 + } + } + }, + { + "$id": "1526", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1527", + "timestamp": { + "$id": "1528", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:05:00Z" + }, + "value": { + "$id": "1529", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2215120 + } + } + }, + { + "$id": "1530", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1531", + "timestamp": { + "$id": "1532", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:10:00Z" + }, + "value": { + "$id": "1533", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2217056 + } + } + }, + { + "$id": "1534", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1535", + "timestamp": { + "$id": "1536", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:15:00Z" + }, + "value": { + "$id": "1537", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2217056 + } + } + }, + { + "$id": "1538", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1539", + "timestamp": { + "$id": "1540", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:20:00Z" + }, + "value": { + "$id": "1541", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2222126 + } + } + }, + { + "$id": "1542", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1543", + "timestamp": { + "$id": "1544", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:25:00Z" + }, + "value": { + "$id": "1545", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2226472 + } + } + }, + { + "$id": "1546", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1547", + "timestamp": { + "$id": "1548", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:30:00Z" + }, + "value": { + "$id": "1549", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2226722 + } + } + }, + { + "$id": "1550", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1551", + "timestamp": { + "$id": "1552", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:35:00Z" + }, + "value": { + "$id": "1553", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2226729 + } + } + }, + { + "$id": "1554", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1555", + "timestamp": { + "$id": "1556", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:40:00Z" + }, + "value": { + "$id": "1557", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2226735 + } + } + }, + { + "$id": "1558", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1559", + "timestamp": { + "$id": "1560", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:45:00Z" + }, + "value": { + "$id": "1561", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2226735 + } + } + }, + { + "$id": "1562", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1563", + "timestamp": { + "$id": "1564", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:50:00Z" + }, + "value": { + "$id": "1565", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2226735 + } + } + }, + { + "$id": "1566", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1567", + "timestamp": { + "$id": "1568", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T15:55:00Z" + }, + "value": { + "$id": "1569", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2226952 + } + } + }, + { + "$id": "1570", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1571", + "timestamp": { + "$id": "1572", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:00:00Z" + }, + "value": { + "$id": "1573", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2226962 + } + } + }, + { + "$id": "1574", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1575", + "timestamp": { + "$id": "1576", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:05:00Z" + }, + "value": { + "$id": "1577", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2649337 + } + } + }, + { + "$id": "1578", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1579", + "timestamp": { + "$id": "1580", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:10:00Z" + }, + "value": { + "$id": "1581", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2092796 + } + } + }, + { + "$id": "1582", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1583", + "timestamp": { + "$id": "1584", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:15:00Z" + }, + "value": { + "$id": "1585", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2092839 + } + } + }, + { + "$id": "1586", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1587", + "timestamp": { + "$id": "1588", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:20:00Z" + }, + "value": { + "$id": "1589", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2092940 + } + } + }, + { + "$id": "1590", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1591", + "timestamp": { + "$id": "1592", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:25:00Z" + }, + "value": { + "$id": "1593", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2092940 + } + } + }, + { + "$id": "1594", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1595", + "timestamp": { + "$id": "1596", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:30:00Z" + }, + "value": { + "$id": "1597", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2092965 + } + } + }, + { + "$id": "1598", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1599", + "timestamp": { + "$id": "1600", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:35:00Z" + }, + "value": { + "$id": "1601", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2092979 + } + } + }, + { + "$id": "1602", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1603", + "timestamp": { + "$id": "1604", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:40:00Z" + }, + "value": { + "$id": "1605", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2095588 + } + } + }, + { + "$id": "1606", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1607", + "timestamp": { + "$id": "1608", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:45:00Z" + }, + "value": { + "$id": "1609", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2099586 + } + } + }, + { + "$id": "1610", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1611", + "timestamp": { + "$id": "1612", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:50:00Z" + }, + "value": { + "$id": "1613", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2102981 + } + } + }, + { + "$id": "1614", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1615", + "timestamp": { + "$id": "1616", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T16:55:00Z" + }, + "value": { + "$id": "1617", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2108053 + } + } + }, + { + "$id": "1618", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1619", + "timestamp": { + "$id": "1620", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:00:00Z" + }, + "value": { + "$id": "1621", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2107907 + } + } + }, + { + "$id": "1622", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1623", + "timestamp": { + "$id": "1624", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:05:00Z" + }, + "value": { + "$id": "1625", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2108241 + } + } + }, + { + "$id": "1626", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1627", + "timestamp": { + "$id": "1628", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:10:00Z" + }, + "value": { + "$id": "1629", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2100321 + } + } + }, + { + "$id": "1630", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1631", + "timestamp": { + "$id": "1632", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:15:00Z" + }, + "value": { + "$id": "1633", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2100448 + } + } + }, + { + "$id": "1634", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1635", + "timestamp": { + "$id": "1636", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:20:00Z" + }, + "value": { + "$id": "1637", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2100483 + } + } + }, + { + "$id": "1638", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1639", + "timestamp": { + "$id": "1640", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:25:00Z" + }, + "value": { + "$id": "1641", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2103042 + } + } + }, + { + "$id": "1642", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1643", + "timestamp": { + "$id": "1644", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:30:00Z" + }, + "value": { + "$id": "1645", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2103037 + } + } + }, + { + "$id": "1646", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1647", + "timestamp": { + "$id": "1648", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:35:00Z" + }, + "value": { + "$id": "1649", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2103040 + } + } + }, + { + "$id": "1650", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1651", + "timestamp": { + "$id": "1652", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:40:00Z" + }, + "value": { + "$id": "1653", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2103054 + } + } + }, + { + "$id": "1654", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1655", + "timestamp": { + "$id": "1656", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:45:00Z" + }, + "value": { + "$id": "1657", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2103058 + } + } + }, + { + "$id": "1658", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1659", + "timestamp": { + "$id": "1660", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:50:00Z" + }, + "value": { + "$id": "1661", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1830757 + } + } + }, + { + "$id": "1662", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1663", + "timestamp": { + "$id": "1664", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T17:55:00Z" + }, + "value": { + "$id": "1665", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1830855 + } + } + }, + { + "$id": "1666", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1667", + "timestamp": { + "$id": "1668", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:00:00Z" + }, + "value": { + "$id": "1669", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1831495 + } + } + }, + { + "$id": "1670", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1671", + "timestamp": { + "$id": "1672", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:05:00Z" + }, + "value": { + "$id": "1673", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1831463 + } + } + }, + { + "$id": "1674", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1675", + "timestamp": { + "$id": "1676", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:10:00Z" + }, + "value": { + "$id": "1677", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1831963 + } + } + }, + { + "$id": "1678", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1679", + "timestamp": { + "$id": "1680", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:15:00Z" + }, + "value": { + "$id": "1681", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1832046 + } + } + }, + { + "$id": "1682", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1683", + "timestamp": { + "$id": "1684", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:20:00Z" + }, + "value": { + "$id": "1685", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1832070 + } + } + }, + { + "$id": "1686", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1687", + "timestamp": { + "$id": "1688", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:25:00Z" + }, + "value": { + "$id": "1689", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1835511 + } + } + }, + { + "$id": "1690", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1691", + "timestamp": { + "$id": "1692", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:30:00Z" + }, + "value": { + "$id": "1693", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1835265 + } + } + }, + { + "$id": "1694", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1695", + "timestamp": { + "$id": "1696", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:35:00Z" + }, + "value": { + "$id": "1697", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1835481 + } + } + }, + { + "$id": "1698", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1699", + "timestamp": { + "$id": "1700", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:40:00Z" + }, + "value": { + "$id": "1701", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1835578 + } + } + }, + { + "$id": "1702", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1703", + "timestamp": { + "$id": "1704", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:45:00Z" + }, + "value": { + "$id": "1705", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1835611 + } + } + }, + { + "$id": "1706", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1707", + "timestamp": { + "$id": "1708", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:50:00Z" + }, + "value": { + "$id": "1709", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1836314 + } + } + }, + { + "$id": "1710", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1711", + "timestamp": { + "$id": "1712", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T18:55:00Z" + }, + "value": { + "$id": "1713", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1836369 + } + } + }, + { + "$id": "1714", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1715", + "timestamp": { + "$id": "1716", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:00:00Z" + }, + "value": { + "$id": "1717", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1837280 + } + } + }, + { + "$id": "1718", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1719", + "timestamp": { + "$id": "1720", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:05:00Z" + }, + "value": { + "$id": "1721", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1842939 + } + } + }, + { + "$id": "1722", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1723", + "timestamp": { + "$id": "1724", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:10:00Z" + }, + "value": { + "$id": "1725", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1843126 + } + } + }, + { + "$id": "1726", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1727", + "timestamp": { + "$id": "1728", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:15:00Z" + }, + "value": { + "$id": "1729", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1845840 + } + } + }, + { + "$id": "1730", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1731", + "timestamp": { + "$id": "1732", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:20:00Z" + }, + "value": { + "$id": "1733", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1842444 + } + } + }, + { + "$id": "1734", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1735", + "timestamp": { + "$id": "1736", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:25:00Z" + }, + "value": { + "$id": "1737", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1839891 + } + } + }, + { + "$id": "1738", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1739", + "timestamp": { + "$id": "1740", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:30:00Z" + }, + "value": { + "$id": "1741", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1839875 + } + } + }, + { + "$id": "1742", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1743", + "timestamp": { + "$id": "1744", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:35:00Z" + }, + "value": { + "$id": "1745", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1839870 + } + } + }, + { + "$id": "1746", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1747", + "timestamp": { + "$id": "1748", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:40:00Z" + }, + "value": { + "$id": "1749", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1840090 + } + } + }, + { + "$id": "1750", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1751", + "timestamp": { + "$id": "1752", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:45:00Z" + }, + "value": { + "$id": "1753", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1840479 + } + } + }, + { + "$id": "1754", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1755", + "timestamp": { + "$id": "1756", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:50:00Z" + }, + "value": { + "$id": "1757", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1840479 + } + } + }, + { + "$id": "1758", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1759", + "timestamp": { + "$id": "1760", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T19:55:00Z" + }, + "value": { + "$id": "1761", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1840482 + } + } + }, + { + "$id": "1762", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1763", + "timestamp": { + "$id": "1764", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:00:00Z" + }, + "value": { + "$id": "1765", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1841522 + } + } + }, + { + "$id": "1766", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1767", + "timestamp": { + "$id": "1768", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:05:00Z" + }, + "value": { + "$id": "1769", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1841836 + } + } + }, + { + "$id": "1770", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1771", + "timestamp": { + "$id": "1772", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:10:00Z" + }, + "value": { + "$id": "1773", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1842377 + } + } + }, + { + "$id": "1774", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1775", + "timestamp": { + "$id": "1776", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:15:00Z" + }, + "value": { + "$id": "1777", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1842388 + } + } + }, + { + "$id": "1778", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1779", + "timestamp": { + "$id": "1780", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:20:00Z" + }, + "value": { + "$id": "1781", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1842489 + } + } + }, + { + "$id": "1782", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1783", + "timestamp": { + "$id": "1784", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:25:00Z" + }, + "value": { + "$id": "1785", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1842489 + } + } + }, + { + "$id": "1786", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1787", + "timestamp": { + "$id": "1788", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:30:00Z" + }, + "value": { + "$id": "1789", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1842489 + } + } + }, + { + "$id": "1790", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1791", + "timestamp": { + "$id": "1792", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:35:00Z" + }, + "value": { + "$id": "1793", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1842496 + } + } + }, + { + "$id": "1794", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1795", + "timestamp": { + "$id": "1796", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:40:00Z" + }, + "value": { + "$id": "1797", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1842689 + } + } + }, + { + "$id": "1798", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1799", + "timestamp": { + "$id": "1800", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:45:00Z" + }, + "value": { + "$id": "1801", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1843117 + } + } + }, + { + "$id": "1802", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1803", + "timestamp": { + "$id": "1804", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:50:00Z" + }, + "value": { + "$id": "1805", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1843116 + } + } + }, + { + "$id": "1806", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1807", + "timestamp": { + "$id": "1808", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T20:55:00Z" + }, + "value": { + "$id": "1809", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1843227 + } + } + }, + { + "$id": "1810", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1811", + "timestamp": { + "$id": "1812", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:00:00Z" + }, + "value": { + "$id": "1813", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1843138 + } + } + }, + { + "$id": "1814", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1815", + "timestamp": { + "$id": "1816", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:05:00Z" + }, + "value": { + "$id": "1817", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1843141 + } + } + }, + { + "$id": "1818", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1819", + "timestamp": { + "$id": "1820", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:10:00Z" + }, + "value": { + "$id": "1821", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1843310 + } + } + }, + { + "$id": "1822", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1823", + "timestamp": { + "$id": "1824", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:15:00Z" + }, + "value": { + "$id": "1825", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1843310 + } + } + }, + { + "$id": "1826", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1827", + "timestamp": { + "$id": "1828", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:20:00Z" + }, + "value": { + "$id": "1829", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1843507 + } + } + }, + { + "$id": "1830", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1831", + "timestamp": { + "$id": "1832", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:25:00Z" + }, + "value": { + "$id": "1833", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1843953 + } + } + }, + { + "$id": "1834", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1835", + "timestamp": { + "$id": "1836", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:30:00Z" + }, + "value": { + "$id": "1837", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1844778 + } + } + }, + { + "$id": "1838", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1839", + "timestamp": { + "$id": "1840", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:35:00Z" + }, + "value": { + "$id": "1841", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1843918 + } + } + }, + { + "$id": "1842", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1843", + "timestamp": { + "$id": "1844", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:40:00Z" + }, + "value": { + "$id": "1845", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1882692 + } + } + }, + { + "$id": "1846", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1847", + "timestamp": { + "$id": "1848", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:45:00Z" + }, + "value": { + "$id": "1849", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 1974888 + } + } + }, + { + "$id": "1850", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1851", + "timestamp": { + "$id": "1852", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:50:00Z" + }, + "value": { + "$id": "1853", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2157136 + } + } + }, + { + "$id": "1854", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1855", + "timestamp": { + "$id": "1856", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T21:55:00Z" + }, + "value": { + "$id": "1857", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2154987 + } + } + }, + { + "$id": "1858", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1859", + "timestamp": { + "$id": "1860", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:00:00Z" + }, + "value": { + "$id": "1861", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2155664 + } + } + }, + { + "$id": "1862", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1863", + "timestamp": { + "$id": "1864", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:05:00Z" + }, + "value": { + "$id": "1865", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2155660 + } + } + }, + { + "$id": "1866", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1867", + "timestamp": { + "$id": "1868", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:10:00Z" + }, + "value": { + "$id": "1869", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2155824 + } + } + }, + { + "$id": "1870", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1871", + "timestamp": { + "$id": "1872", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:15:00Z" + }, + "value": { + "$id": "1873", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2155824 + } + } + }, + { + "$id": "1874", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1875", + "timestamp": { + "$id": "1876", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:20:00Z" + }, + "value": { + "$id": "1877", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2156329 + } + } + }, + { + "$id": "1878", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1879", + "timestamp": { + "$id": "1880", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:25:00Z" + }, + "value": { + "$id": "1881", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2156479 + } + } + }, + { + "$id": "1882", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1883", + "timestamp": { + "$id": "1884", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:30:00Z" + }, + "value": { + "$id": "1885", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2165269 + } + } + }, + { + "$id": "1886", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1887", + "timestamp": { + "$id": "1888", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:35:00Z" + }, + "value": { + "$id": "1889", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2165433 + } + } + }, + { + "$id": "1890", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1891", + "timestamp": { + "$id": "1892", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:40:00Z" + }, + "value": { + "$id": "1893", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2165739 + } + } + }, + { + "$id": "1894", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1895", + "timestamp": { + "$id": "1896", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:45:00Z" + }, + "value": { + "$id": "1897", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2165931 + } + } + }, + { + "$id": "1898", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1899", + "timestamp": { + "$id": "1900", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:50:00Z" + }, + "value": { + "$id": "1901", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2165928 + } + } + }, + { + "$id": "1902", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1903", + "timestamp": { + "$id": "1904", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T22:55:00Z" + }, + "value": { + "$id": "1905", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2165989 + } + } + }, + { + "$id": "1906", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1907", + "timestamp": { + "$id": "1908", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:00:00Z" + }, + "value": { + "$id": "1909", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2228961 + } + } + }, + { + "$id": "1910", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1911", + "timestamp": { + "$id": "1912", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:05:00Z" + }, + "value": { + "$id": "1913", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2228961 + } + } + }, + { + "$id": "1914", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1915", + "timestamp": { + "$id": "1916", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:10:00Z" + }, + "value": { + "$id": "1917", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2228961 + } + } + }, + { + "$id": "1918", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1919", + "timestamp": { + "$id": "1920", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:15:00Z" + }, + "value": { + "$id": "1921", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2485802 + } + } + }, + { + "$id": "1922", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1923", + "timestamp": { + "$id": "1924", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:20:00Z" + }, + "value": { + "$id": "1925", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2485802 + } + } + }, + { + "$id": "1926", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1927", + "timestamp": { + "$id": "1928", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:25:00Z" + }, + "value": { + "$id": "1929", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2486021 + } + } + }, + { + "$id": "1930", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1931", + "timestamp": { + "$id": "1932", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:30:00Z" + }, + "value": { + "$id": "1933", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2485293 + } + } + }, + { + "$id": "1934", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1935", + "timestamp": { + "$id": "1936", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:35:00Z" + }, + "value": { + "$id": "1937", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2485293 + } + } + }, + { + "$id": "1938", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1939", + "timestamp": { + "$id": "1940", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:40:00Z" + }, + "value": { + "$id": "1941", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2485324 + } + } + }, + { + "$id": "1942", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1943", + "timestamp": { + "$id": "1944", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:45:00Z" + }, + "value": { + "$id": "1945", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2489142 + } + } + }, + { + "$id": "1946", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1947", + "timestamp": { + "$id": "1948", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:50:00Z" + }, + "value": { + "$id": "1949", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526312 + } + } + }, + { + "$id": "1950", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1951", + "timestamp": { + "$id": "1952", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-01T23:55:00Z" + }, + "value": { + "$id": "1953", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526313 + } + } + }, + { + "$id": "1954", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1955", + "timestamp": { + "$id": "1956", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:00:00Z" + }, + "value": { + "$id": "1957", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526314 + } + } + }, + { + "$id": "1958", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1959", + "timestamp": { + "$id": "1960", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:05:00Z" + }, + "value": { + "$id": "1961", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526324 + } + } + }, + { + "$id": "1962", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1963", + "timestamp": { + "$id": "1964", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:10:00Z" + }, + "value": { + "$id": "1965", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526325 + } + } + }, + { + "$id": "1966", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1967", + "timestamp": { + "$id": "1968", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:15:00Z" + }, + "value": { + "$id": "1969", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526205 + } + } + }, + { + "$id": "1970", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1971", + "timestamp": { + "$id": "1972", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:20:00Z" + }, + "value": { + "$id": "1973", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526226 + } + } + }, + { + "$id": "1974", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1975", + "timestamp": { + "$id": "1976", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:25:00Z" + }, + "value": { + "$id": "1977", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526475 + } + } + }, + { + "$id": "1978", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1979", + "timestamp": { + "$id": "1980", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:30:00Z" + }, + "value": { + "$id": "1981", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526471 + } + } + }, + { + "$id": "1982", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1983", + "timestamp": { + "$id": "1984", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:35:00Z" + }, + "value": { + "$id": "1985", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526471 + } + } + }, + { + "$id": "1986", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1987", + "timestamp": { + "$id": "1988", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:40:00Z" + }, + "value": { + "$id": "1989", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526534 + } + } + }, + { + "$id": "1990", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1991", + "timestamp": { + "$id": "1992", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:45:00Z" + }, + "value": { + "$id": "1993", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526646 + } + } + }, + { + "$id": "1994", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1995", + "timestamp": { + "$id": "1996", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:50:00Z" + }, + "value": { + "$id": "1997", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526646 + } + } + }, + { + "$id": "1998", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1999", + "timestamp": { + "$id": "2000", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T00:55:00Z" + }, + "value": { + "$id": "2001", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526648 + } + } + }, + { + "$id": "2002", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2003", + "timestamp": { + "$id": "2004", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:00:00Z" + }, + "value": { + "$id": "2005", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526658 + } + } + }, + { + "$id": "2006", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2007", + "timestamp": { + "$id": "2008", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:05:00Z" + }, + "value": { + "$id": "2009", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526771 + } + } + }, + { + "$id": "2010", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2011", + "timestamp": { + "$id": "2012", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:10:00Z" + }, + "value": { + "$id": "2013", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526773 + } + } + }, + { + "$id": "2014", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2015", + "timestamp": { + "$id": "2016", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:15:00Z" + }, + "value": { + "$id": "2017", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2526793 + } + } + }, + { + "$id": "2018", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2019", + "timestamp": { + "$id": "2020", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:20:00Z" + }, + "value": { + "$id": "2021", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2527010 + } + } + }, + { + "$id": "2022", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2023", + "timestamp": { + "$id": "2024", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:25:00Z" + }, + "value": { + "$id": "2025", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 2527031 + } + } + }, + { + "$id": "2026", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2027", + "timestamp": { + "$id": "2028", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:30:00Z" + }, + "value": { + "$id": "2029", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3178096 + } + } + }, + { + "$id": "2030", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2031", + "timestamp": { + "$id": "2032", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:35:00Z" + }, + "value": { + "$id": "2033", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3196305 + } + } + }, + { + "$id": "2034", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2035", + "timestamp": { + "$id": "2036", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:40:00Z" + }, + "value": { + "$id": "2037", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3196202 + } + } + }, + { + "$id": "2038", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2039", + "timestamp": { + "$id": "2040", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:45:00Z" + }, + "value": { + "$id": "2041", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3196202 + } + } + }, + { + "$id": "2042", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2043", + "timestamp": { + "$id": "2044", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:50:00Z" + }, + "value": { + "$id": "2045", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3196205 + } + } + }, + { + "$id": "2046", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2047", + "timestamp": { + "$id": "2048", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T01:55:00Z" + }, + "value": { + "$id": "2049", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3229232 + } + } + }, + { + "$id": "2050", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2051", + "timestamp": { + "$id": "2052", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:00:00Z" + }, + "value": { + "$id": "2053", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3230463 + } + } + }, + { + "$id": "2054", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2055", + "timestamp": { + "$id": "2056", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:05:00Z" + }, + "value": { + "$id": "2057", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3230468 + } + } + }, + { + "$id": "2058", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2059", + "timestamp": { + "$id": "2060", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:10:00Z" + }, + "value": { + "$id": "2061", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3230468 + } + } + }, + { + "$id": "2062", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2063", + "timestamp": { + "$id": "2064", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:15:00Z" + }, + "value": { + "$id": "2065", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3230468 + } + } + }, + { + "$id": "2066", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2067", + "timestamp": { + "$id": "2068", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:20:00Z" + }, + "value": { + "$id": "2069", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3230470 + } + } + }, + { + "$id": "2070", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2071", + "timestamp": { + "$id": "2072", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:25:00Z" + }, + "value": { + "$id": "2073", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3230467 + } + } + }, + { + "$id": "2074", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2075", + "timestamp": { + "$id": "2076", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:30:00Z" + }, + "value": { + "$id": "2077", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3230506 + } + } + }, + { + "$id": "2078", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2079", + "timestamp": { + "$id": "2080", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:35:00Z" + }, + "value": { + "$id": "2081", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3231536 + } + } + }, + { + "$id": "2082", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2083", + "timestamp": { + "$id": "2084", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:40:00Z" + }, + "value": { + "$id": "2085", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3230723 + } + } + }, + { + "$id": "2086", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2087", + "timestamp": { + "$id": "2088", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:45:00Z" + }, + "value": { + "$id": "2089", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3230727 + } + } + }, + { + "$id": "2090", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2091", + "timestamp": { + "$id": "2092", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:50:00Z" + }, + "value": { + "$id": "2093", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3230727 + } + } + }, + { + "$id": "2094", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2095", + "timestamp": { + "$id": "2096", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T02:55:00Z" + }, + "value": { + "$id": "2097", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3230727 + } + } + }, + { + "$id": "2098", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2099", + "timestamp": { + "$id": "2100", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:00:00Z" + }, + "value": { + "$id": "2101", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3231880 + } + } + }, + { + "$id": "2102", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2103", + "timestamp": { + "$id": "2104", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:05:00Z" + }, + "value": { + "$id": "2105", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3232283 + } + } + }, + { + "$id": "2106", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2107", + "timestamp": { + "$id": "2108", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:10:00Z" + }, + "value": { + "$id": "2109", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3232283 + } + } + }, + { + "$id": "2110", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2111", + "timestamp": { + "$id": "2112", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:15:00Z" + }, + "value": { + "$id": "2113", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3232283 + } + } + }, + { + "$id": "2114", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2115", + "timestamp": { + "$id": "2116", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:20:00Z" + }, + "value": { + "$id": "2117", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3232325 + } + } + }, + { + "$id": "2118", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2119", + "timestamp": { + "$id": "2120", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:25:00Z" + }, + "value": { + "$id": "2121", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3232323 + } + } + }, + { + "$id": "2122", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2123", + "timestamp": { + "$id": "2124", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:30:00Z" + }, + "value": { + "$id": "2125", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3232327 + } + } + }, + { + "$id": "2126", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2127", + "timestamp": { + "$id": "2128", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:35:00Z" + }, + "value": { + "$id": "2129", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3232340 + } + } + }, + { + "$id": "2130", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2131", + "timestamp": { + "$id": "2132", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:40:00Z" + }, + "value": { + "$id": "2133", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3232713 + } + } + }, + { + "$id": "2134", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2135", + "timestamp": { + "$id": "2136", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:45:00Z" + }, + "value": { + "$id": "2137", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3232729 + } + } + }, + { + "$id": "2138", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2139", + "timestamp": { + "$id": "2140", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:50:00Z" + }, + "value": { + "$id": "2141", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3232756 + } + } + }, + { + "$id": "2142", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2143", + "timestamp": { + "$id": "2144", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T03:55:00Z" + }, + "value": { + "$id": "2145", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3233500 + } + } + }, + { + "$id": "2146", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2147", + "timestamp": { + "$id": "2148", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T04:00:00Z" + }, + "value": { + "$id": "2149", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3233500 + } + } + }, + { + "$id": "2150", + "kind": "model", + "type": { + "$ref": "219" + }, + "value": { + "$id": "2151", + "timestamp": { + "$id": "2152", + "kind": "string", + "type": { + "$ref": "221" + }, + "value": "2017-01-02T04:05:00Z" + }, + "value": { + "$id": "2153", + "kind": "number", + "type": { + "$ref": "224" + }, + "value": 3233500 + } + } + } + ] + }, + "granularity": { + "$id": "2154", + "kind": "string", + "type": { + "$ref": "29" + }, + "value": "minutely" + }, + "customInterval": { + "$id": "2155", + "kind": "number", + "type": { + "$ref": "289" + }, + "value": 5 + }, + "stableTrendWindow": { + "$id": "2156", + "kind": "number", + "type": { + "$ref": "293" + }, + "value": 10 + }, + "threshold": { + "$id": "2157", + "kind": "number", + "type": { + "$ref": "295" + }, + "value": 0.99 + }, + "period": { + "$id": "2158", + "kind": "number", + "type": { + "$ref": "291" + }, + "value": 0 + } + } + } + } + ], + "responses": { + "$id": "2159" + } + } + ] } ], "Protocol": { - "$id": "345" + "$id": "2160" }, "Parent": "AnomalyDetectorClient", "Parameters": [ @@ -3005,11 +15148,11 @@ "Decorators": [] }, { - "$id": "346", + "$id": "2161", "Name": "Multivariate", "Operations": [ { - "$id": "347", + "$id": "2162", "Name": "GetMultivariateBatchDetectionResult", "ResourceName": "Multivariate", "Summary": "Get Multivariate Anomaly Detection Result", @@ -3017,12 +15160,12 @@ "Accessibility": "public", "Parameters": [ { - "$id": "348", + "$id": "2163", "Name": "Endpoint", "NameInRequest": "Endpoint", "Description": "Supported Cognitive Services endpoints (protocol and hostname, for example:\nhttps://westus2.api.cognitive.microsoft.com).", "Type": { - "$id": "349", + "$id": "2164", "Kind": "url", "Name": "url", "CrossLanguageDefinitionId": "TypeSpec.url" @@ -3038,7 +15181,7 @@ "Kind": "Client" }, { - "$id": "350", + "$id": "2165", "Name": "ApiVersion", "NameInRequest": "ApiVersion", "Description": "Api Version", @@ -3055,9 +15198,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "351", + "$id": "2166", "Type": { - "$id": "352", + "$id": "2167", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string" @@ -3066,17 +15209,17 @@ } }, { - "$id": "353", + "$id": "2168", "Name": "resultId", "NameInRequest": "resultId", "Description": "ID of a batch detection result.", "Type": { - "$id": "354", + "$id": "2169", "Kind": "string", "Name": "uuid", "CrossLanguageDefinitionId": "Azure.Core.uuid", "BaseType": { - "$id": "355", + "$id": "2170", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3094,14 +15237,14 @@ "Decorators": [] }, { - "$id": "356", + "$id": "2171", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "357", + "$id": "2172", "Kind": "constant", "ValueType": { - "$id": "358", + "$id": "2173", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3122,7 +15265,7 @@ ], "Responses": [ { - "$id": "359", + "$id": "2174", "StatusCodes": [ 200 ], @@ -3145,10 +15288,172 @@ "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, "CrossLanguageDefinitionId": "AnomalyDetector.Multivariate.GetMultivariateBatchDetectionResult", - "Decorators": [] + "Decorators": [], + "Examples": [ + { + "$id": "2175", + "kind": "http", + "name": "Get multivariate batch detection result", + "description": "Get multivariate batch detection result", + "filePath": "v1.1/GetResult.json", + "rawExample": { + "$id": "2176", + "operationId": "Multivariate_GetMultivariateBatchDetectionResult", + "title": "Get multivariate batch detection result", + "parameters": { + "$id": "2177", + "Endpoint": "{Endpoint}", + "ApiVersion": "v1.1", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "{API key}", + "resultId": "663884e6-b117-11ea-b3de-0242ac130004", + "body": { + "$id": "2178" + } + }, + "responses": { + "200": { + "$id": "2180", + "body": { + "$id": "2181", + "resultId": "663884e6-b117-11ea-b3de-0242ac130004", + "summary": { + "$id": "2182", + "status": "READY", + "errors": [], + "variableStates": [ + { + "$id": "2183", + "variable": "variable_1", + "filledNARatio": 0, + "effectiveCount": 30, + "firstTimestamp": "2021-01-01T00:00:00Z", + "lastTimestamp": "2021-01-01T00:29:00Z" + }, + { + "$id": "2184", + "variable": "variable_2", + "filledNARatio": 0, + "effectiveCount": 30, + "firstTimestamp": "2021-01-01T00:00:00Z", + "lastTimestamp": "2021-01-01T00:29:00Z" + }, + { + "$id": "2185", + "variable": "variable_3", + "filledNARatio": 0, + "effectiveCount": 30, + "firstTimestamp": "2021-01-01T00:00:00Z", + "lastTimestamp": "2021-01-01T00:29:00Z" + } + ], + "setupInfo": { + "$id": "2186", + "dataSource": "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", + "topContributorCount": 10, + "startTime": "2021-01-01T00:00:00Z", + "endTime": "2021-01-01T00:29:00Z" + } + }, + "results": [ + { + "$id": "2187", + "timestamp": "2021-01-01T00:28:00Z", + "value": { + "$id": "2188", + "isAnomaly": false, + "severity": 0, + "score": 0.6928471326828003 + }, + "errors": [] + }, + { + "$id": "2189", + "timestamp": "2021-01-01T00:29:00Z", + "value": { + "$id": "2190", + "isAnomaly": true, + "severity": 0.5337404608726501, + "score": 0.9171165823936462, + "interpretation": [ + { + "$id": "2191", + "variable": "variable_2", + "contributionScore": 0.5371576215, + "correlationChanges": { + "$id": "2192", + "changedVariables": [ + "variable_1", + "variable_3" + ] + } + }, + { + "$id": "2193", + "variable": "variable_3", + "contributionScore": 0.3324159383, + "correlationChanges": { + "$id": "2194", + "changedVariables": [ + "variable_2" + ] + } + }, + { + "$id": "2195", + "variable": "variable_1", + "contributionScore": 0.1304264402, + "correlationChanges": { + "$id": "2196", + "changedVariables": [] + } + } + ] + } + } + ] + } + }, + "$id": "2179", + "default": { + "$id": "2197", + "headers": { + "$id": "2198", + "Content-Type": "application/json", + "x-ms-error-code": "Error Code" + }, + "body": { + "$id": "2199", + "code": "Error Code", + "message": "Error Message" + } + } + } + }, + "parameters": [ + { + "$id": "2200", + "parameter": { + "$ref": "2168" + }, + "value": { + "$id": "2201", + "kind": "string", + "type": { + "$ref": "2169" + }, + "value": "663884e6-b117-11ea-b3de-0242ac130004" + } + } + ], + "responses": { + "$id": "2202" + } + } + ] }, { - "$id": "360", + "$id": "2203", "Name": "TrainMultivariateModel", "ResourceName": "Multivariate", "Summary": "Train a Multivariate Anomaly Detection Model", @@ -3156,21 +15461,21 @@ "Accessibility": "public", "Parameters": [ { - "$ref": "348" + "$ref": "2163" }, { - "$ref": "350" + "$ref": "2165" }, { - "$id": "361", + "$id": "2204", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "362", + "$id": "2205", "Kind": "constant", "ValueType": { - "$id": "363", + "$id": "2206", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3189,14 +15494,14 @@ "Decorators": [] }, { - "$id": "364", + "$id": "2207", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "365", + "$id": "2208", "Kind": "constant", "ValueType": { - "$id": "366", + "$id": "2209", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3215,7 +15520,7 @@ "Decorators": [] }, { - "$id": "367", + "$id": "2210", "Name": "modelInfo", "NameInRequest": "modelInfo", "Description": "Model information.", @@ -3234,7 +15539,7 @@ ], "Responses": [ { - "$id": "368", + "$id": "2211", "StatusCodes": [ 201 ], @@ -3244,12 +15549,12 @@ "BodyMediaType": "Json", "Headers": [ { - "$id": "369", + "$id": "2212", "Name": "Location", "NameInResponse": "location", "Description": "Location and ID of the model.", "Type": { - "$id": "370", + "$id": "2213", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3274,10 +15579,195 @@ "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, "CrossLanguageDefinitionId": "AnomalyDetector.Multivariate.TrainMultivariateModel", - "Decorators": [] + "Decorators": [], + "Examples": [ + { + "$id": "2214", + "kind": "http", + "name": "Create and train multivariate model", + "description": "Create and train multivariate model", + "filePath": "v1.1/TrainModel.json", + "rawExample": { + "$id": "2215", + "operationId": "Multivariate_TrainMultivariateModel", + "title": "Create and train multivariate model", + "parameters": { + "$id": "2216", + "Endpoint": "{Endpoint}", + "ApiVersion": "v1.1", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "{API key}", + "modelInfo": { + "$id": "2217", + "slidingWindow": 20, + "alignPolicy": { + "$id": "2218", + "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" + } + }, + "responses": { + "201": { + "$id": "2220", + "headers": { + "$id": "2221", + "Location": "{Endpoint}/anomalydetector/v1.1/multivariate/models/{modelId}" + }, + "body": { + "$id": "2222", + "modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f", + "createdTime": "2020-06-30T00:00:00Z", + "lastUpdatedTime": "2020-06-30T00:00:00Z", + "modelInfo": { + "$id": "2223", + "slidingWindow": 20, + "alignPolicy": { + "$id": "2224", + "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", + "status": "CREATED", + "errors": [] + } + } + }, + "$id": "2219", + "default": { + "$id": "2225", + "headers": { + "$id": "2226", + "Content-Type": "application/json", + "x-ms-error-code": "Error Code" + }, + "body": { + "$id": "2227", + "code": "Error Code", + "message": "Error Message" + } + } + } + }, + "parameters": [ + { + "$id": "2228", + "parameter": { + "$ref": "2210" + }, + "value": { + "$id": "2229", + "kind": "model", + "type": { + "$ref": "136" + }, + "value": { + "$id": "2230", + "slidingWindow": { + "$id": "2231", + "kind": "number", + "type": { + "$ref": "149" + }, + "value": 20 + }, + "alignPolicy": { + "$id": "2232", + "kind": "model", + "type": { + "$ref": "151" + }, + "value": { + "$id": "2233", + "alignMode": { + "$id": "2234", + "kind": "string", + "type": { + "$ref": "12" + }, + "value": "Outer" + }, + "fillNAMethod": { + "$id": "2235", + "kind": "string", + "type": { + "$ref": "16" + }, + "value": "Linear" + }, + "paddingValue": { + "$id": "2236", + "kind": "number", + "type": { + "$ref": "155" + }, + "value": 0 + } + } + }, + "dataSource": { + "$id": "2237", + "kind": "string", + "type": { + "$ref": "138" + }, + "value": "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv" + }, + "dataSchema": { + "$id": "2238", + "kind": "string", + "type": { + "$ref": "8" + }, + "value": "OneTable" + }, + "startTime": { + "$id": "2239", + "kind": "string", + "type": { + "$ref": "141" + }, + "value": "2019-04-01T00:00:00Z" + }, + "endTime": { + "$id": "2240", + "kind": "string", + "type": { + "$ref": "144" + }, + "value": "2019-04-02T00:00:00Z" + }, + "displayName": { + "$id": "2241", + "kind": "string", + "type": { + "$ref": "147" + }, + "value": "Devops-MultiAD" + } + } + } + } + ], + "responses": { + "$id": "2242" + } + } + ] }, { - "$id": "371", + "$id": "2243", "Name": "ListMultivariateModels", "ResourceName": "Multivariate", "Summary": "List Multivariate Models", @@ -3285,18 +15775,18 @@ "Accessibility": "public", "Parameters": [ { - "$ref": "348" + "$ref": "2163" }, { - "$ref": "350" + "$ref": "2165" }, { - "$id": "372", + "$id": "2244", "Name": "skip", "NameInRequest": "skip", "Description": "Skip indicates how many models will be skipped.", "Type": { - "$id": "373", + "$id": "2245", "Kind": "int32", "Name": "int32", "CrossLanguageDefinitionId": "TypeSpec.int32", @@ -3312,12 +15802,12 @@ "Decorators": [] }, { - "$id": "374", + "$id": "2246", "Name": "top", "NameInRequest": "top", "Description": "Top indicates how many models will be fetched.", "Type": { - "$id": "375", + "$id": "2247", "Kind": "int32", "Name": "int32", "CrossLanguageDefinitionId": "TypeSpec.int32", @@ -3333,14 +15823,14 @@ "Decorators": [] }, { - "$id": "376", + "$id": "2248", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "377", + "$id": "2249", "Kind": "constant", "ValueType": { - "$id": "378", + "$id": "2250", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3361,7 +15851,7 @@ ], "Responses": [ { - "$id": "379", + "$id": "2251", "StatusCodes": [ 200 ], @@ -3382,17 +15872,254 @@ "Path": "/multivariate/models", "BufferResponse": true, "Paging": { - "$id": "380", + "$id": "2252", "ItemName": "models", "NextLinkName": "nextLink" }, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, "CrossLanguageDefinitionId": "AnomalyDetector.Multivariate.ListMultivariateModels", - "Decorators": [] + "Decorators": [], + "Examples": [ + { + "$id": "2253", + "kind": "http", + "name": "List multivariate models", + "description": "List multivariate models", + "filePath": "v1.1/ListModel.json", + "rawExample": { + "$id": "2254", + "operationId": "Multivariate_ListMultivariateModels", + "title": "List multivariate models", + "parameters": { + "$id": "2255", + "Endpoint": "{Endpoint}", + "ApiVersion": "v1.1", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "{API key}", + "skip": 0, + "top": 10, + "body": { + "$id": "2256" + } + }, + "responses": { + "200": { + "$id": "2258", + "body": { + "$id": "2259", + "models": [ + { + "$id": "2260", + "modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f", + "createdTime": "2020-06-30T00:00:00Z", + "lastUpdatedTime": "2020-06-30T00:00:00Z", + "modelInfo": { + "$id": "2261", + "slidingWindow": 20, + "alignPolicy": { + "$id": "2262", + "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", + "status": "READY", + "errors": [], + "diagnosticsInfo": { + "$id": "2263", + "modelState": { + "$id": "2264", + "epochIds": [ + 10, + 20, + 30, + 40, + 50, + 60, + 70, + 80, + 90, + 100 + ], + "trainLosses": [ + 0.6291328072547913, + 0.1671326905488968, + 0.12354248017072678, + 0.10259664058685303, + 0.09584927558898926, + 0.09069952368736267, + 0.08686016499996185, + 0.08603022992610931, + 0.08287354558706284, + 0.08235538005828857 + ], + "validationLosses": [ + 1.9232804775238037, + 1.0645641088485718, + 0.6031560301780701, + 0.5302737951278687, + 0.46980252861976624, + 0.4395163357257843, + 0.41829314827919006, + 0.40579143166542053, + 0.405649870634079, + 0.38492488861083984 + ], + "latenciesInSeconds": [ + 0.3398594856262207, + 0.3659665584564209, + 0.37360644340515137, + 0.35134077072143555, + 0.33703041076660156, + 0.31876277923583984, + 0.32833099365234375, + 0.3503587245941162, + 0.3080024719238281, + 0.3327946662902832 + ] + }, + "variableStates": [ + { + "$id": "2265", + "variable": "ad_input", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2266", + "variable": "ad_ontimer_output", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2267", + "variable": "ingestion", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2268", + "variable": "data_in_speed", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2269", + "variable": "cpu", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2270", + "variable": "ad_series_init", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2271", + "variable": "flink_last_ckpt_duration", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2272", + "variable": "data_out_speed", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2273", + "variable": "ad_output", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + } + ] + } + } + } + ], + "currentCount": 1, + "maxCount": 20, + "nextLink": "" + } + }, + "$id": "2257", + "default": { + "$id": "2274", + "headers": { + "$id": "2275", + "Content-Type": "application/json", + "x-ms-error-code": "Error Code" + }, + "body": { + "$id": "2276", + "code": "Error Code", + "message": "Error Message" + } + } + } + }, + "parameters": [ + { + "$id": "2277", + "parameter": { + "$ref": "2244" + }, + "value": { + "$id": "2278", + "kind": "number", + "type": { + "$ref": "2245" + }, + "value": 0 + } + }, + { + "$id": "2279", + "parameter": { + "$ref": "2246" + }, + "value": { + "$id": "2280", + "kind": "number", + "type": { + "$ref": "2247" + }, + "value": 10 + } + } + ], + "responses": { + "$id": "2281" + } + } + ] }, { - "$id": "381", + "$id": "2282", "Name": "DeleteMultivariateModel", "ResourceName": "Multivariate", "Summary": "Delete Multivariate Model", @@ -3400,18 +16127,18 @@ "Accessibility": "public", "Parameters": [ { - "$ref": "348" + "$ref": "2163" }, { - "$ref": "350" + "$ref": "2165" }, { - "$id": "382", + "$id": "2283", "Name": "modelId", "NameInRequest": "modelId", "Description": "Model identifier.", "Type": { - "$id": "383", + "$id": "2284", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3427,14 +16154,14 @@ "Decorators": [] }, { - "$id": "384", + "$id": "2285", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "385", + "$id": "2286", "Kind": "constant", "ValueType": { - "$id": "386", + "$id": "2287", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3455,7 +16182,7 @@ ], "Responses": [ { - "$id": "387", + "$id": "2288", "StatusCodes": [ 204 ], @@ -3472,10 +16199,73 @@ "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, "CrossLanguageDefinitionId": "AnomalyDetector.Multivariate.DeleteMultivariateModel", - "Decorators": [] + "Decorators": [], + "Examples": [ + { + "$id": "2289", + "kind": "http", + "name": "Delete multivariate model", + "description": "Delete multivariate model", + "filePath": "v1.1/DeleteModel.json", + "rawExample": { + "$id": "2290", + "operationId": "Multivariate_DeleteMultivariateModel", + "title": "Delete multivariate model", + "parameters": { + "$id": "2291", + "Endpoint": "{Endpoint}", + "ApiVersion": "v1.1", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "{API key}", + "modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f", + "body": { + "$id": "2292" + } + }, + "responses": { + "204": { + "$id": "2294" + }, + "$id": "2293", + "default": { + "$id": "2295", + "headers": { + "$id": "2296", + "Content-Type": "application/json", + "x-ms-error-code": "Error Code" + }, + "body": { + "$id": "2297", + "code": "Error Code", + "message": "Error Message" + } + } + } + }, + "parameters": [ + { + "$id": "2298", + "parameter": { + "$ref": "2283" + }, + "value": { + "$id": "2299", + "kind": "string", + "type": { + "$ref": "2284" + }, + "value": "45aad126-aafd-11ea-b8fb-d89ef3400c5f" + } + } + ], + "responses": { + "$id": "2300" + } + } + ] }, { - "$id": "388", + "$id": "2301", "Name": "GetMultivariateModel", "ResourceName": "Multivariate", "Summary": "Get Multivariate Model", @@ -3483,18 +16273,18 @@ "Accessibility": "public", "Parameters": [ { - "$ref": "348" + "$ref": "2163" }, { - "$ref": "350" + "$ref": "2165" }, { - "$id": "389", + "$id": "2302", "Name": "modelId", "NameInRequest": "modelId", "Description": "Model identifier.", "Type": { - "$id": "390", + "$id": "2303", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3510,14 +16300,14 @@ "Decorators": [] }, { - "$id": "391", + "$id": "2304", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "392", + "$id": "2305", "Kind": "constant", "ValueType": { - "$id": "393", + "$id": "2306", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3538,7 +16328,7 @@ ], "Responses": [ { - "$id": "394", + "$id": "2307", "StatusCodes": [ 200 ], @@ -3561,10 +16351,224 @@ "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, "CrossLanguageDefinitionId": "AnomalyDetector.Multivariate.GetMultivariateModel", - "Decorators": [] + "Decorators": [], + "Examples": [ + { + "$id": "2308", + "kind": "http", + "name": "Get a multivariate model", + "description": "Get a multivariate model", + "filePath": "v1.1/GetModel.json", + "rawExample": { + "$id": "2309", + "operationId": "Multivariate_GetMultivariateModel", + "title": "Get a multivariate model", + "parameters": { + "$id": "2310", + "Endpoint": "{Endpoint}", + "ApiVersion": "v1.1", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "{API key}", + "modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f", + "body": { + "$id": "2311" + } + }, + "responses": { + "200": { + "$id": "2313", + "body": { + "$id": "2314", + "modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f", + "createdTime": "2020-06-30T00:00:00Z", + "lastUpdatedTime": "2020-06-30T00:00:00Z", + "modelInfo": { + "$id": "2315", + "slidingWindow": 20, + "alignPolicy": { + "$id": "2316", + "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", + "status": "READY", + "errors": [], + "diagnosticsInfo": { + "$id": "2317", + "modelState": { + "$id": "2318", + "epochIds": [ + 10, + 20, + 30, + 40, + 50, + 60, + 70, + 80, + 90, + 100 + ], + "trainLosses": [ + 0.6291328072547913, + 0.1671326905488968, + 0.12354248017072678, + 0.10259664058685303, + 0.09584927558898926, + 0.09069952368736267, + 0.08686016499996185, + 0.08603022992610931, + 0.08287354558706284, + 0.08235538005828857 + ], + "validationLosses": [ + 1.9232804775238037, + 1.0645641088485718, + 0.6031560301780701, + 0.5302737951278687, + 0.46980252861976624, + 0.4395163357257843, + 0.41829314827919006, + 0.40579143166542053, + 0.405649870634079, + 0.38492488861083984 + ], + "latenciesInSeconds": [ + 0.3398594856262207, + 0.3659665584564209, + 0.37360644340515137, + 0.35134077072143555, + 0.33703041076660156, + 0.31876277923583984, + 0.32833099365234375, + 0.3503587245941162, + 0.3080024719238281, + 0.3327946662902832 + ] + }, + "variableStates": [ + { + "$id": "2319", + "variable": "ad_input", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2320", + "variable": "ad_ontimer_output", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2321", + "variable": "ingestion", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2322", + "variable": "data_in_speed", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2323", + "variable": "cpu", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2324", + "variable": "ad_series_init", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2325", + "variable": "flink_last_ckpt_duration", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2326", + "variable": "data_out_speed", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + }, + { + "$id": "2327", + "variable": "ad_output", + "filledNARatio": 0, + "effectiveCount": 1441, + "firstTimestamp": "2019-04-01T00:00:00Z", + "lastTimestamp": "2019-04-02T00:00:00Z" + } + ] + } + } + } + }, + "$id": "2312", + "default": { + "$id": "2328", + "headers": { + "$id": "2329", + "Content-Type": "application/json", + "x-ms-error-code": "Error Code" + }, + "body": { + "$id": "2330", + "code": "Error Code", + "message": "Error Message" + } + } + } + }, + "parameters": [ + { + "$id": "2331", + "parameter": { + "$ref": "2302" + }, + "value": { + "$id": "2332", + "kind": "string", + "type": { + "$ref": "2303" + }, + "value": "45aad126-aafd-11ea-b8fb-d89ef3400c5f" + } + } + ], + "responses": { + "$id": "2333" + } + } + ] }, { - "$id": "395", + "$id": "2334", "Name": "DetectMultivariateBatchAnomaly", "ResourceName": "Multivariate", "Summary": "Detect Multivariate Anomaly", @@ -3572,18 +16576,18 @@ "Accessibility": "public", "Parameters": [ { - "$ref": "348" + "$ref": "2163" }, { - "$ref": "350" + "$ref": "2165" }, { - "$id": "396", + "$id": "2335", "Name": "modelId", "NameInRequest": "modelId", "Description": "Model identifier.", "Type": { - "$id": "397", + "$id": "2336", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3599,15 +16603,15 @@ "Decorators": [] }, { - "$id": "398", + "$id": "2337", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "399", + "$id": "2338", "Kind": "constant", "ValueType": { - "$id": "400", + "$id": "2339", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3626,14 +16630,14 @@ "Decorators": [] }, { - "$id": "401", + "$id": "2340", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "402", + "$id": "2341", "Kind": "constant", "ValueType": { - "$id": "403", + "$id": "2342", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3652,7 +16656,7 @@ "Decorators": [] }, { - "$id": "404", + "$id": "2343", "Name": "options", "NameInRequest": "options", "Description": "Request of multivariate anomaly detection.", @@ -3671,7 +16675,7 @@ ], "Responses": [ { - "$id": "405", + "$id": "2344", "StatusCodes": [ 202 ], @@ -3681,12 +16685,12 @@ "BodyMediaType": "Json", "Headers": [ { - "$id": "406", + "$id": "2345", "Name": "Operation-Id", "NameInResponse": "operation-id", "Description": "Id of the detection result.", "Type": { - "$id": "407", + "$id": "2346", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3694,12 +16698,12 @@ } }, { - "$id": "408", + "$id": "2347", "Name": "Operation-Location", "NameInResponse": "operation-location", "Description": "Location of the detection result.", "Type": { - "$id": "409", + "$id": "2348", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3724,10 +16728,147 @@ "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, "CrossLanguageDefinitionId": "AnomalyDetector.Multivariate.DetectMultivariateBatchAnomaly", - "Decorators": [] + "Decorators": [], + "Examples": [ + { + "$id": "2349", + "kind": "http", + "name": "Detect multivariate batch anomaly", + "description": "Detect multivariate batch anomaly", + "filePath": "v1.1/DetectAnomaly.json", + "rawExample": { + "$id": "2350", + "operationId": "Multivariate_DetectMultivariateBatchAnomaly", + "title": "Detect multivariate batch anomaly", + "parameters": { + "$id": "2351", + "Endpoint": "{Endpoint}", + "ApiVersion": "v1.1", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "{API key}", + "modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f", + "options": { + "$id": "2352", + "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" + } + }, + "responses": { + "202": { + "$id": "2354", + "headers": { + "$id": "2355", + "Operation-Location": "{Endpoint}/anomalydetector/v1.1/multivariate/detect-batch/", + "Operation-Id": "663884e6-b117-11ea-b3de-0242ac130004" + }, + "body": { + "$id": "2356", + "resultId": "663884e6-b117-11ea-b3de-0242ac130004", + "summary": { + "$id": "2357", + "status": "CREATED", + "errors": [], + "setupInfo": { + "$id": "2358", + "dataSource": "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", + "topContributorCount": 10, + "startTime": "2021-01-01T00:00:00Z", + "endTime": "2021-01-01T00:29:00Z" + } + }, + "results": [] + } + }, + "$id": "2353", + "default": { + "$id": "2359", + "headers": { + "$id": "2360", + "Content-Type": "application/json", + "x-ms-error-code": "Error Code" + }, + "body": { + "$id": "2361", + "code": "Error Code", + "message": "Error Message" + } + } + } + }, + "parameters": [ + { + "$id": "2362", + "parameter": { + "$ref": "2335" + }, + "value": { + "$id": "2363", + "kind": "string", + "type": { + "$ref": "2336" + }, + "value": "45aad126-aafd-11ea-b8fb-d89ef3400c5f" + } + }, + { + "$id": "2364", + "parameter": { + "$ref": "2343" + }, + "value": { + "$id": "2365", + "kind": "model", + "type": { + "$ref": "97" + }, + "value": { + "$id": "2366", + "dataSource": { + "$id": "2367", + "kind": "string", + "type": { + "$ref": "99" + }, + "value": "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv" + }, + "topContributorCount": { + "$id": "2368", + "kind": "number", + "type": { + "$ref": "101" + }, + "value": 10 + }, + "startTime": { + "$id": "2369", + "kind": "string", + "type": { + "$ref": "103" + }, + "value": "2019-04-01T00:15:00Z" + }, + "endTime": { + "$id": "2370", + "kind": "string", + "type": { + "$ref": "106" + }, + "value": "2019-04-01T00:40:00Z" + } + } + } + } + ], + "responses": { + "$id": "2371" + } + } + ] }, { - "$id": "410", + "$id": "2372", "Name": "DetectMultivariateLastAnomaly", "ResourceName": "Multivariate", "Summary": "Detect anomalies in the last point of the request body", @@ -3735,18 +16876,18 @@ "Accessibility": "public", "Parameters": [ { - "$ref": "348" + "$ref": "2163" }, { - "$ref": "350" + "$ref": "2165" }, { - "$id": "411", + "$id": "2373", "Name": "modelId", "NameInRequest": "modelId", "Description": "Model identifier.", "Type": { - "$id": "412", + "$id": "2374", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3762,15 +16903,15 @@ "Decorators": [] }, { - "$id": "413", + "$id": "2375", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "414", + "$id": "2376", "Kind": "constant", "ValueType": { - "$id": "415", + "$id": "2377", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3789,14 +16930,14 @@ "Decorators": [] }, { - "$id": "416", + "$id": "2378", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "417", + "$id": "2379", "Kind": "constant", "ValueType": { - "$id": "418", + "$id": "2380", "Kind": "string", "Name": "string", "CrossLanguageDefinitionId": "TypeSpec.string", @@ -3815,7 +16956,7 @@ "Decorators": [] }, { - "$id": "419", + "$id": "2381", "Name": "options", "NameInRequest": "options", "Description": "Request of last detection.", @@ -3834,7 +16975,7 @@ ], "Responses": [ { - "$id": "420", + "$id": "2382", "StatusCodes": [ 200 ], @@ -3860,28 +17001,1966 @@ "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, "CrossLanguageDefinitionId": "AnomalyDetector.Multivariate.DetectMultivariateLastAnomaly", - "Decorators": [] + "Decorators": [], + "Examples": [ + { + "$id": "2383", + "kind": "http", + "name": "Detect multivariate last anomaly", + "description": "Detect multivariate last anomaly", + "filePath": "v1.1/LastDetectAnomaly.json", + "rawExample": { + "$id": "2384", + "operationId": "Multivariate_DetectMultivariateLastAnomaly", + "title": "Detect multivariate last anomaly", + "parameters": { + "$id": "2385", + "Endpoint": "{Endpoint}", + "ApiVersion": "v1.1", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "{API key}", + "modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f", + "options": { + "$id": "2386", + "variables": [ + { + "$id": "2387", + "variable": "Variable_1", + "timestamps": [ + "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": [ + 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 + ] + }, + { + "$id": "2388", + "variable": "Variable_2", + "timestamps": [ + "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": [ + 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 + ] + }, + { + "$id": "2389", + "variable": "Variable_3", + "timestamps": [ + "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": [ + 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": 10 + } + }, + "responses": { + "200": { + "$id": "2391", + "body": { + "$id": "2392", + "variableStates": [ + { + "$id": "2393", + "variable": "variable_1", + "filledNARatio": 0, + "effectiveCount": 30, + "firstTimestamp": "2021-01-01T00:00:00Z", + "lastTimestamp": "2021-01-01T00:29:00Z" + }, + { + "$id": "2394", + "variable": "variable_2", + "filledNARatio": 0, + "effectiveCount": 30, + "firstTimestamp": "2021-01-01T00:00:00Z", + "lastTimestamp": "2021-01-01T00:29:00Z" + }, + { + "$id": "2395", + "variable": "variable_3", + "filledNARatio": 0, + "effectiveCount": 30, + "firstTimestamp": "2021-01-01T00:00:00Z", + "lastTimestamp": "2021-01-01T00:29:00Z" + } + ], + "results": [ + { + "$id": "2396", + "timestamp": "2021-01-01T00:28:00Z", + "value": { + "$id": "2397", + "isAnomaly": false, + "severity": 0, + "score": 0.6928471326828003 + }, + "errors": [] + }, + { + "$id": "2398", + "timestamp": "2021-01-01T00:29:00Z", + "value": { + "$id": "2399", + "isAnomaly": true, + "severity": 0.5337404608726501, + "score": 0.9171165823936462, + "interpretation": [ + { + "$id": "2400", + "variable": "variable_2", + "contributionScore": 0.5371576215, + "correlationChanges": { + "$id": "2401", + "changedVariables": [ + "variable_1", + "variable_3" + ] + } + }, + { + "$id": "2402", + "variable": "variable_3", + "contributionScore": 0.3324159383, + "correlationChanges": { + "$id": "2403", + "changedVariables": [ + "variable_2" + ] + } + }, + { + "$id": "2404", + "variable": "variable_1", + "contributionScore": 0.1304264402, + "correlationChanges": { + "$id": "2405", + "changedVariables": [] + } + } + ] + }, + "errors": [] + } + ] + } + }, + "$id": "2390", + "default": { + "$id": "2406", + "headers": { + "$id": "2407", + "Content-Type": "application/json", + "x-ms-error-code": "Error Code" + }, + "body": { + "$id": "2408", + "code": "Error Code", + "message": "Error Message" + } + } + } + }, + "parameters": [ + { + "$id": "2409", + "parameter": { + "$ref": "2373" + }, + "value": { + "$id": "2410", + "kind": "string", + "type": { + "$ref": "2374" + }, + "value": "45aad126-aafd-11ea-b8fb-d89ef3400c5f" + } + }, + { + "$id": "2411", + "parameter": { + "$ref": "2381" + }, + "value": { + "$id": "2412", + "kind": "model", + "type": { + "$ref": "197" + }, + "value": { + "$id": "2413", + "variables": { + "$id": "2414", + "kind": "array", + "type": { + "$ref": "199" + }, + "value": [ + { + "$id": "2415", + "kind": "model", + "type": { + "$ref": "200" + }, + "value": { + "$id": "2416", + "variable": { + "$id": "2417", + "kind": "string", + "type": { + "$ref": "202" + }, + "value": "Variable_1" + }, + "timestamps": { + "$id": "2418", + "kind": "array", + "type": { + "$ref": "204" + }, + "value": [ + { + "$id": "2419", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:00:00Z" + }, + { + "$id": "2420", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:01:00Z" + }, + { + "$id": "2421", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:02:00Z" + }, + { + "$id": "2422", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:03:00Z" + }, + { + "$id": "2423", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:04:00Z" + }, + { + "$id": "2424", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:05:00Z" + }, + { + "$id": "2425", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:06:00Z" + }, + { + "$id": "2426", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:07:00Z" + }, + { + "$id": "2427", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:08:00Z" + }, + { + "$id": "2428", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:09:00Z" + }, + { + "$id": "2429", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:10:00Z" + }, + { + "$id": "2430", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:11:00Z" + }, + { + "$id": "2431", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:12:00Z" + }, + { + "$id": "2432", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:13:00Z" + }, + { + "$id": "2433", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:14:00Z" + }, + { + "$id": "2434", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:15:00Z" + }, + { + "$id": "2435", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:16:00Z" + }, + { + "$id": "2436", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:17:00Z" + }, + { + "$id": "2437", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:18:00Z" + }, + { + "$id": "2438", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:19:00Z" + }, + { + "$id": "2439", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:20:00Z" + }, + { + "$id": "2440", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:21:00Z" + }, + { + "$id": "2441", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:22:00Z" + }, + { + "$id": "2442", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:23:00Z" + }, + { + "$id": "2443", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:24:00Z" + }, + { + "$id": "2444", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:25:00Z" + }, + { + "$id": "2445", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:26:00Z" + }, + { + "$id": "2446", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:27:00Z" + }, + { + "$id": "2447", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:28:00Z" + }, + { + "$id": "2448", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:29:00Z" + } + ] + }, + "values": { + "$id": "2449", + "kind": "array", + "type": { + "$ref": "207" + }, + "value": [ + { + "$id": "2450", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.4551378545933972 + }, + { + "$id": "2451", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.7388603950488748 + }, + { + "$id": "2452", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.201088255984052 + }, + { + "$id": "2453", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.7462812245891899 + }, + { + "$id": "2454", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.07308128850401663 + }, + { + "$id": "2455", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.33090474587393537 + }, + { + "$id": "2456", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.7544925268153315 + }, + { + "$id": "2457", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.987506336316328 + }, + { + "$id": "2458", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.6665932993421468 + }, + { + "$id": "2459", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.6308351543168672 + }, + { + "$id": "2460", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.08083310161466228 + }, + { + "$id": "2461", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.8414415588668442 + }, + { + "$id": "2462", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.514583545640453 + }, + { + "$id": "2463", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.0954489875193526 + }, + { + "$id": "2464", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.7786793231920507 + }, + { + "$id": "2465", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.41646133667960994 + }, + { + "$id": "2466", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.030176187583339287 + }, + { + "$id": "2467", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.3474214937189324 + }, + { + "$id": "2468", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.508530173413991 + }, + { + "$id": "2469", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.42451199127255046 + }, + { + "$id": "2470", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.2115944222725208 + }, + { + "$id": "2471", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.24733519545833516 + }, + { + "$id": "2472", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.8791022110982156 + }, + { + "$id": "2473", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.9479621899884665 + }, + { + "$id": "2474", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.26702703121252136 + }, + { + "$id": "2475", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.6954503497669413 + }, + { + "$id": "2476", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.1235728391488995 + }, + { + "$id": "2477", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.8214915473050647 + }, + { + "$id": "2478", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.11813002444192677 + }, + { + "$id": "2479", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.8579045951076123 + } + ] + } + } + }, + { + "$id": "2480", + "kind": "model", + "type": { + "$ref": "200" + }, + "value": { + "$id": "2481", + "variable": { + "$id": "2482", + "kind": "string", + "type": { + "$ref": "202" + }, + "value": "Variable_2" + }, + "timestamps": { + "$id": "2483", + "kind": "array", + "type": { + "$ref": "204" + }, + "value": [ + { + "$id": "2484", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:00:00Z" + }, + { + "$id": "2485", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:01:00Z" + }, + { + "$id": "2486", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:02:00Z" + }, + { + "$id": "2487", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:03:00Z" + }, + { + "$id": "2488", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:04:00Z" + }, + { + "$id": "2489", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:05:00Z" + }, + { + "$id": "2490", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:06:00Z" + }, + { + "$id": "2491", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:07:00Z" + }, + { + "$id": "2492", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:08:00Z" + }, + { + "$id": "2493", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:09:00Z" + }, + { + "$id": "2494", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:10:00Z" + }, + { + "$id": "2495", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:11:00Z" + }, + { + "$id": "2496", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:12:00Z" + }, + { + "$id": "2497", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:13:00Z" + }, + { + "$id": "2498", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:14:00Z" + }, + { + "$id": "2499", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:15:00Z" + }, + { + "$id": "2500", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:16:00Z" + }, + { + "$id": "2501", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:17:00Z" + }, + { + "$id": "2502", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:18:00Z" + }, + { + "$id": "2503", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:19:00Z" + }, + { + "$id": "2504", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:20:00Z" + }, + { + "$id": "2505", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:21:00Z" + }, + { + "$id": "2506", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:22:00Z" + }, + { + "$id": "2507", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:23:00Z" + }, + { + "$id": "2508", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:24:00Z" + }, + { + "$id": "2509", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:25:00Z" + }, + { + "$id": "2510", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:26:00Z" + }, + { + "$id": "2511", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:27:00Z" + }, + { + "$id": "2512", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:28:00Z" + }, + { + "$id": "2513", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:29:00Z" + } + ] + }, + "values": { + "$id": "2514", + "kind": "array", + "type": { + "$ref": "207" + }, + "value": [ + { + "$id": "2515", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.9617871613964145 + }, + { + "$id": "2516", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.24903311574778408 + }, + { + "$id": "2517", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.4920561254118613 + }, + { + "$id": "2518", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.9895601049618598 + }, + { + "$id": "2519", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.9171759283128094 + }, + { + "$id": "2520", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.5754204711105273 + }, + { + "$id": "2521", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.1811033296265634 + }, + { + "$id": "2522", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.8852311981742577 + }, + { + "$id": "2523", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.9543231904644779 + }, + { + "$id": "2524", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.7088012446094262 + }, + { + "$id": "2525", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.7843572237149014 + }, + { + "$id": "2526", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.7664787010700046 + }, + { + "$id": "2527", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.3699552325387093 + }, + { + "$id": "2528", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.504519908266789 + }, + { + "$id": "2529", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.5848930929950164 + }, + { + "$id": "2530", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.7628913396089576 + }, + { + "$id": "2531", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.8148405868900065 + }, + { + "$id": "2532", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.08540458873739332 + }, + { + "$id": "2533", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.03481976727525682 + }, + { + "$id": "2534", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.21275099339467762 + }, + { + "$id": "2535", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.9836175579199806 + }, + { + "$id": "2536", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.9321441483364282 + }, + { + "$id": "2537", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.038466608085469534 + }, + { + "$id": "2538", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.1723138437622782 + }, + { + "$id": "2539", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.8626383410218382 + }, + { + "$id": "2540", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.35053229974224254 + }, + { + "$id": "2541", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.631141662835182 + }, + { + "$id": "2542", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.0730352607990088 + }, + { + "$id": "2543", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.08886179043386 + }, + { + "$id": "2544", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.7488606040971179 + } + ] + } + } + }, + { + "$id": "2545", + "kind": "model", + "type": { + "$ref": "200" + }, + "value": { + "$id": "2546", + "variable": { + "$id": "2547", + "kind": "string", + "type": { + "$ref": "202" + }, + "value": "Variable_3" + }, + "timestamps": { + "$id": "2548", + "kind": "array", + "type": { + "$ref": "204" + }, + "value": [ + { + "$id": "2549", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:00:00Z" + }, + { + "$id": "2550", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:01:00Z" + }, + { + "$id": "2551", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:02:00Z" + }, + { + "$id": "2552", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:03:00Z" + }, + { + "$id": "2553", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:04:00Z" + }, + { + "$id": "2554", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:05:00Z" + }, + { + "$id": "2555", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:06:00Z" + }, + { + "$id": "2556", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:07:00Z" + }, + { + "$id": "2557", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:08:00Z" + }, + { + "$id": "2558", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:09:00Z" + }, + { + "$id": "2559", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:10:00Z" + }, + { + "$id": "2560", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:11:00Z" + }, + { + "$id": "2561", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:12:00Z" + }, + { + "$id": "2562", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:13:00Z" + }, + { + "$id": "2563", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:14:00Z" + }, + { + "$id": "2564", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:15:00Z" + }, + { + "$id": "2565", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:16:00Z" + }, + { + "$id": "2566", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:17:00Z" + }, + { + "$id": "2567", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:18:00Z" + }, + { + "$id": "2568", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:19:00Z" + }, + { + "$id": "2569", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:20:00Z" + }, + { + "$id": "2570", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:21:00Z" + }, + { + "$id": "2571", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:22:00Z" + }, + { + "$id": "2572", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:23:00Z" + }, + { + "$id": "2573", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:24:00Z" + }, + { + "$id": "2574", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:25:00Z" + }, + { + "$id": "2575", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:26:00Z" + }, + { + "$id": "2576", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:27:00Z" + }, + { + "$id": "2577", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:28:00Z" + }, + { + "$id": "2578", + "kind": "string", + "type": { + "$ref": "205" + }, + "value": "2021-01-01T00:29:00Z" + } + ] + }, + "values": { + "$id": "2579", + "kind": "array", + "type": { + "$ref": "207" + }, + "value": [ + { + "$id": "2580", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.4030756879437628 + }, + { + "$id": "2581", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.15526889968448554 + }, + { + "$id": "2582", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.36352226408981103 + }, + { + "$id": "2583", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.6051200637229004 + }, + { + "$id": "2584", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.8516795018476276 + }, + { + "$id": "2585", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.2645605735279929 + }, + { + "$id": "2586", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.6810875830037345 + }, + { + "$id": "2587", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.9165894221681316 + }, + { + "$id": "2588", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.700783245230424 + }, + { + "$id": "2589", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.5624155469940331 + }, + { + "$id": "2590", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.6277289685127893 + }, + { + "$id": "2591", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.15992056539730204 + }, + { + "$id": "2592", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.6020964482827594 + }, + { + "$id": "2593", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.35937967753105915 + }, + { + "$id": "2594", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.8731686034848609 + }, + { + "$id": "2595", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.20301549117588935 + }, + { + "$id": "2596", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.029261872151168933 + }, + { + "$id": "2597", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.6261499548828445 + }, + { + "$id": "2598", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.45850782028563386 + }, + { + "$id": "2599", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.8275006940083313 + }, + { + "$id": "2600", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.032760268834037376 + }, + { + "$id": "2601", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.4485202784055029 + }, + { + "$id": "2602", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.8915691008748384 + }, + { + "$id": "2603", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.891669051517807 + }, + { + "$id": "2604", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.9469979353323046 + }, + { + "$id": "2605", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.115293087370132 + }, + { + "$id": "2606", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.08818772518459506 + }, + { + "$id": "2607", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.7426286620589166 + }, + { + "$id": "2608", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.32372247468990756 + }, + { + "$id": "2609", + "kind": "number", + "type": { + "$ref": "208" + }, + "value": 0.936268139507417 + } + ] + } + } + } + ] + }, + "topContributorCount": { + "$id": "2610", + "kind": "number", + "type": { + "$ref": "210" + }, + "value": 10 + } + } + } + } + ], + "responses": { + "$id": "2611" + } + } + ] } ], "Protocol": { - "$id": "421" + "$id": "2612" }, "Parent": "AnomalyDetectorClient", "Parameters": [ { - "$ref": "348" + "$ref": "2163" }, { - "$ref": "350" + "$ref": "2165" } ], "Decorators": [] } ], "Auth": { - "$id": "422", + "$id": "2613", "ApiKey": { - "$id": "423", + "$id": "2614", "Name": "Ocp-Apim-Subscription-Key" } } diff --git a/samples/AnomalyDetector/tspconfig.yaml b/samples/AnomalyDetector/tspconfig.yaml index ebef0c6e79b..b63e20a3bbf 100644 --- a/samples/AnomalyDetector/tspconfig.yaml +++ b/samples/AnomalyDetector/tspconfig.yaml @@ -1,3 +1,4 @@ options: "@azure-tools/typespec-csharp": flavor: "azure" + examples-dir: "{project-root}/examples" diff --git a/src/AutoRest.CSharp/Common/Input/CodeModelConverter.cs b/src/AutoRest.CSharp/Common/Input/CodeModelConverter.cs index d7861d45a6a..e1ccc8fad58 100644 --- a/src/AutoRest.CSharp/Common/Input/CodeModelConverter.cs +++ b/src/AutoRest.CSharp/Common/Input/CodeModelConverter.cs @@ -185,7 +185,7 @@ private IReadOnlyList CreateOperationExamples(InputOperat var parameters = example.AllParameters .Select(p => new InputParameterExample(CreateOperationParameter(p.Parameter), CreateExampleValue(p.ExampleValue))) .ToList(); - result.Add(new InputOperationExample(inputOperation, parameters, example.Name, example.OriginalFile)); + result.Add(new InputOperationExample(example.Name, null, example.OriginalFile!, parameters)); } return result; } diff --git a/src/AutoRest.CSharp/Common/Input/Configuration.cs b/src/AutoRest.CSharp/Common/Input/Configuration.cs index 66a64c96e94..7a76d59ed17 100644 --- a/src/AutoRest.CSharp/Common/Input/Configuration.cs +++ b/src/AutoRest.CSharp/Common/Input/Configuration.cs @@ -55,6 +55,7 @@ public static class Options public const string Flavor = "flavor"; public const string GenerateSampleProject = "generate-sample-project"; public const string GenerateTestProject = "generate-test-project"; + public const string ExamplesDirectory = "examples-dir"; // TODO - this configuration only exists here because we would like a rolling update for all libraries for this feature since it changes so many files. public const string UseModelReaderWriter = "use-model-reader-writer"; // TODO - this configuration only exists here because we would like a rolling update for all libraries for this feature since it changes so many files. @@ -113,6 +114,7 @@ public static void Initialize( bool disableXmlDocs, bool generateSampleProject, bool generateTestProject, + string? examplesDirectory, string? helperNamespace) { _outputFolder = outputFolder; @@ -185,6 +187,7 @@ public static void Initialize( DisableXmlDocs = disableXmlDocs; GenerateSampleProject = DisableXmlDocs ? false : generateSampleProject; // turn off the samples if all xml docs are explicitly disabled GenerateTestProject = generateTestProject; + ExamplesDirectory = examplesDirectory; _helperNamespace = helperNamespace ?? Namespace; } @@ -249,6 +252,8 @@ internal static (string AbsoluteProjectFolder, string RelativeProjectFolder) Par public static bool GenerateTestProject { get; private set; } + public static string? ExamplesDirectory { get; private set; } + private static ApiTypes? _apiTypes; public static ApiTypes ApiTypes => _apiTypes ?? new AzureApiTypes(); public static bool IsBranded => ApiTypes is AzureApiTypes; @@ -383,6 +388,7 @@ public static void Initialize(IPluginCommunication autoRest, string defaultNames flavor: autoRest.GetValue(Options.Flavor).GetAwaiter().GetResult() ?? "azure", // for autorest input, always branded generateSampleProject: GetOptionBoolValue(autoRest, Options.GenerateSampleProject), generateTestProject: GetOptionBoolValue(autoRest, Options.GenerateTestProject), + examplesDirectory: null, // TODO -- what we put here? helperNamespace: autoRest.GetValue(Options.HelperNamespace).GetAwaiter().GetResult(), disableXmlDocs: GetOptionBoolValue(autoRest, Options.DisableXmlDocs) ); @@ -558,6 +564,7 @@ internal static void LoadConfiguration(JsonElement root, string? projectPath, st , generateSampleProject: ReadOption(root, Options.GenerateSampleProject), generateTestProject: ReadOption(root, Options.GenerateTestProject), + examplesDirectory: ReadStringOption(root, Options.ExamplesDirectory), helperNamespace: ReadStringOption(root, Options.HelperNamespace)); } diff --git a/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/ExampleMockValueBuilder.cs b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/ExampleMockValueBuilder.cs index 740d33d79a9..7ae9e1d193b 100644 --- a/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/ExampleMockValueBuilder.cs +++ b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/ExampleMockValueBuilder.cs @@ -17,11 +17,19 @@ internal class ExampleMockValueBuilder private readonly static ConcurrentDictionary _cache = new(); - public static InputOperationExample BuildOperationExample(InputOperation operation, bool useAllParameters) + public static IReadOnlyList BuildOperationExamples(InputOperation operation) { _cache.Clear(); + return new[] + { + BuildOperationExample(operation, ShortVersionMockExampleKey, false), + BuildOperationExample(operation, MockExampleAllParameterKey, true) + }; + } - var parameterExamples = new List(); + private static InputOperationExample BuildOperationExample(InputOperation operation, string name, bool useAllParameters) + { + var parameterExamples = new List(operation.Parameters.Count); foreach (var parameter in operation.Parameters) { if (!useAllParameters && !parameter.IsRequired) @@ -32,7 +40,7 @@ public static InputOperationExample BuildOperationExample(InputOperation operati parameterExamples.Add(parameterExample); } - return new(operation, parameterExamples); + return new(name, null, string.Empty, parameterExamples); } private static InputParameterExample BuildParameterExample(InputParameter parameter, bool useAllParameters) diff --git a/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputExampleValue.cs b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputExampleValue.cs index 639aea28e66..dd22f94fb38 100644 --- a/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputExampleValue.cs +++ b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputExampleValue.cs @@ -18,7 +18,7 @@ internal record InputExampleRawValue(InputType Type, object? RawValue) : InputEx internal record InputExampleListValue(InputType Type, IReadOnlyList Values) : InputExampleValue(Type); - internal record InputExampleObjectValue(InputType Type, IReadOnlyDictionary Values): InputExampleValue(Type); + internal record InputExampleObjectValue(InputType Type, IReadOnlyDictionary Values): InputExampleValue(Type); // TODO -- split this into model and dict internal record InputExampleStreamValue(InputType Type, string Filename): InputExampleValue(Type); } diff --git a/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputOperationExample.cs b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputOperationExample.cs index 48af467c1eb..b25f4d87f70 100644 --- a/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputOperationExample.cs +++ b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputOperationExample.cs @@ -6,5 +6,5 @@ namespace AutoRest.CSharp.Common.Input.Examples { // TODO -- currently we do not need the responses. In the case that in the future we need to handle the responses in examples, we need to add a new class InputExampleResponse and a new property here - internal record InputOperationExample(InputOperation Operation, IReadOnlyList Parameters, string? Name = null, string? ExampleFilePath = null); + internal record InputOperationExample(string Name, string? Description, string FilePath, IReadOnlyList Parameters); } diff --git a/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputParameterExample.cs b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputParameterExample.cs index af1e76c4ccd..2b89d7cb726 100644 --- a/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputParameterExample.cs +++ b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/InputParameterExample.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -using System.Collections.Generic; - namespace AutoRest.CSharp.Common.Input.Examples { internal record InputParameterExample(InputParameter Parameter, InputExampleValue ExampleValue); diff --git a/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/Serialization/TypeSpecInputOperationExampleConverter.cs b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/Serialization/TypeSpecInputOperationExampleConverter.cs new file mode 100644 index 00000000000..0aa05931e64 --- /dev/null +++ b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/Serialization/TypeSpecInputOperationExampleConverter.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace AutoRest.CSharp.Common.Input.Examples +{ + internal sealed class TypeSpecInputOperationExampleConverter : JsonConverter + { + private readonly TypeSpecReferenceHandler _referenceHandler; + + public TypeSpecInputOperationExampleConverter(TypeSpecReferenceHandler referenceHandler) + { + _referenceHandler = referenceHandler; + } + + public override InputOperationExample? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateInputHttpOperationExample(ref reader, options); + } + + public override void Write(Utf8JsonWriter writer, InputOperationExample value, JsonSerializerOptions options) + => throw new NotSupportedException("Writing not supported"); + + private InputOperationExample CreateInputHttpOperationExample(ref Utf8JsonReader reader, JsonSerializerOptions options) + { + var isFirstProperty = true; + string? id = null; + string? name = null; + string? description = null; + string? filePath = null; + IReadOnlyList? parameters = null; + while (reader.TokenType != JsonTokenType.EndObject) + { + var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + || reader.TryReadString("name", ref name) + || reader.TryReadString("description", ref description) + || reader.TryReadString("filePath", ref filePath) + || reader.TryReadWithConverter("parameters", options, ref parameters); + + if (!isKnownProperty) + { + reader.SkipProperty(); + } + } + + var result = new InputOperationExample(name ?? throw new JsonException(), description, filePath ?? throw new JsonException(), parameters ?? throw new JsonException()); + + if (id != null) + { + _referenceHandler.CurrentResolver.AddReference(id, result); + } + + return result; + } + } +} diff --git a/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/Serialization/TypeSpecInputParameterExampleConverter.cs b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/Serialization/TypeSpecInputParameterExampleConverter.cs new file mode 100644 index 00000000000..c08fde87834 --- /dev/null +++ b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/Serialization/TypeSpecInputParameterExampleConverter.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace AutoRest.CSharp.Common.Input.Examples +{ + internal sealed class TypeSpecInputParameterExampleConverter : JsonConverter + { + private readonly TypeSpecReferenceHandler _referenceHandler; + + public TypeSpecInputParameterExampleConverter(TypeSpecReferenceHandler referenceHandler) + { + _referenceHandler = referenceHandler; + } + + public override InputParameterExample? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateInputParameterExample(ref reader, options); + } + + public override void Write(Utf8JsonWriter writer, InputParameterExample value, JsonSerializerOptions options) + => throw new NotSupportedException("Writing not supported"); + + private InputParameterExample CreateInputParameterExample(ref Utf8JsonReader reader, JsonSerializerOptions options) + { + string? id = null; + InputParameter? parameter = null; + InputExampleValue? value = null; + var isFirstProperty = true; + while (reader.TokenType != JsonTokenType.EndObject) + { + var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + || reader.TryReadWithConverter("parameter", options, ref parameter) + || reader.TryReadWithConverter("value", options, ref value); + + if (!isKnownProperty) + { + continue; + } + } + + var result = new InputParameterExample(parameter ?? throw new JsonException(), value ?? throw new JsonException()); + + if (id != null) + { + _referenceHandler.CurrentResolver.AddReference(id, result); + } + + return result; + } + } +} diff --git a/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/Serialization/TypeSpecInputTypeExampleConverter.cs b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/Serialization/TypeSpecInputTypeExampleConverter.cs new file mode 100644 index 00000000000..f36cab15c5b --- /dev/null +++ b/src/AutoRest.CSharp/Common/Input/InputTypes/Examples/Serialization/TypeSpecInputTypeExampleConverter.cs @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace AutoRest.CSharp.Common.Input.Examples +{ + internal sealed class TypeSpecInputTypeExampleConverter : JsonConverter + { + private const string KindPropertyName = "kind"; + private const string TypePropertyName = "type"; + private const string ValuePropertyName = "value"; + + private readonly TypeSpecReferenceHandler _referenceHandler; + + public TypeSpecInputTypeExampleConverter(TypeSpecReferenceHandler referenceHandler) + { + _referenceHandler = referenceHandler; + } + + public override InputExampleValue? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateObject(ref reader, options); + } + + public override void Write(Utf8JsonWriter writer, InputExampleValue value, JsonSerializerOptions options) + => throw new NotSupportedException("Writing not supported"); + + private InputExampleValue CreateObject(ref Utf8JsonReader reader, JsonSerializerOptions options) + { + string? id = null; + string? kind = null; + InputExampleValue? result = null; + var isFirstProperty = true; + while (reader.TokenType != JsonTokenType.EndObject) + { + var isIdOrKind = reader.TryReadReferenceId(ref isFirstProperty, ref id) + || reader.TryReadString(KindPropertyName, ref kind); + + if (isIdOrKind) + { + continue; + } + result = CreateDerivedType(ref reader, id, kind, options); + } + + return result ?? CreateDerivedType(ref reader, id, kind, options); + } + + private const string ModelKind = "model"; + private const string ArrayKind = "array"; + private const string DictionaryKind = "dict"; + + private InputExampleValue CreateDerivedType(ref Utf8JsonReader reader, string? id, string? kind, JsonSerializerOptions options) => kind switch + { + null => throw new JsonException($"InputTypeExample (id: '{id}') must have a 'kind' property"), + ArrayKind => CreateArrayExample(ref reader, id, options, _referenceHandler.CurrentResolver), + DictionaryKind or ModelKind => CreateObjectExample(ref reader, id, options, _referenceHandler.CurrentResolver), + _ => CreateOtherExample(ref reader, id, options, _referenceHandler.CurrentResolver), + }; + + private InputExampleValue CreateArrayExample(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver referenceResolver) + { + bool isFirstProperty = id == null; + InputType? type = null; + IReadOnlyList? value = null; + while (reader.TokenType != JsonTokenType.EndObject) + { + var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + || reader.TryReadWithConverter(TypePropertyName, options, ref type) + || reader.TryReadWithConverter(ValuePropertyName, options, ref value); + + if (!isKnownProperty) + { + reader.SkipProperty(); + } + } + + var result = new InputExampleListValue(type ?? throw new JsonException(), value ?? throw new JsonException()); + + if (id != null) + { + referenceResolver.AddReference(id, result); + } + + return result; + } + + private InputExampleValue CreateObjectExample(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver referenceResolver) + { + bool isFirstProperty = id == null; + InputType? type = null; + IReadOnlyDictionary? value = null; + while (reader.TokenType != JsonTokenType.EndObject) + { + var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + || reader.TryReadWithConverter(TypePropertyName, options, ref type) + || reader.TryReadWithConverter(ValuePropertyName, options, ref value); + + if (!isKnownProperty) + { + reader.SkipProperty(); + } + } + + var result = new InputExampleObjectValue(type ?? throw new JsonException(), value ?? throw new JsonException()); + + if (id != null) + { + referenceResolver.AddReference(id, result); + } + + return result; + } + + private InputExampleValue CreateOtherExample(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver referenceResolver) + { + bool isFirstProperty = id == null; + InputType? type = null; + JsonElement? rawValue = null; + while (reader.TokenType != JsonTokenType.EndObject) + { + var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + || reader.TryReadWithConverter(TypePropertyName, options, ref type) + || reader.TryReadWithConverter(ValuePropertyName, options, ref rawValue); + + if (!isKnownProperty) + { + reader.SkipProperty(); + } + } + + object? value = rawValue?.ValueKind switch + { + null => throw new JsonException(), + JsonValueKind.Null => null, + JsonValueKind.String => rawValue.Value.GetString(), + JsonValueKind.False => false, + JsonValueKind.True => true, + JsonValueKind.Number => rawValue.Value.GetDouble(), + _ => throw new JsonException($"kind {rawValue?.ValueKind} is not expected here") + }; + + var result = new InputExampleRawValue(type ?? throw new JsonException(), value); + + if (id != null) + { + referenceResolver.AddReference(id, result); + } + + return result; + } + } +} diff --git a/src/AutoRest.CSharp/Common/Input/InputTypes/InputOperation.cs b/src/AutoRest.CSharp/Common/Input/InputTypes/InputOperation.cs index 62f654c6b37..7ab8dc6f018 100644 --- a/src/AutoRest.CSharp/Common/Input/InputTypes/InputOperation.cs +++ b/src/AutoRest.CSharp/Common/Input/InputTypes/InputOperation.cs @@ -33,7 +33,8 @@ public InputOperation( bool generateProtocolMethod, bool generateConvenienceMethod, string crossLanguageDefinitionId, - bool keepClientDefaultValue) + bool keepClientDefaultValue, + IReadOnlyList? examples = null) { Name = name; SpecName = name; @@ -57,6 +58,7 @@ public InputOperation( GenerateConvenienceMethod = generateConvenienceMethod; CrossLanguageDefinitionId = crossLanguageDefinitionId; KeepClientDefaultValue = keepClientDefaultValue; + _examples = examples; } public InputOperation() : this( @@ -115,17 +117,24 @@ public static InputOperation RemoveApiVersionParam(InputOperation operation) } public string CleanName => Name.IsNullOrEmpty() ? string.Empty : Name.ToCleanName(); - private readonly Dictionary _examples = new(); - public IReadOnlyDictionary Examples => _examples.Any() ? _examples : EnsureExamples(_examples); - public IReadOnlyList CodeModelExamples { get; internal set; } = new List(); - private IReadOnlyDictionary EnsureExamples(Dictionary examples) + private IReadOnlyList? _examples; + public IReadOnlyList Examples => _examples ??= EnsureExamples(); + + private IReadOnlyList EnsureExamples() { - examples[ExampleMockValueBuilder.ShortVersionMockExampleKey] = ExampleMockValueBuilder.BuildOperationExample(this, false); - examples[ExampleMockValueBuilder.MockExampleAllParameterKey] = ExampleMockValueBuilder.BuildOperationExample(this, true); - return examples; + // see if we need to generate the mock examples + if (Configuration.ExamplesDirectory != null) + { + return Array.Empty(); + } + + // build the mock examples + return ExampleMockValueBuilder.BuildOperationExamples(this); } + public IReadOnlyList CodeModelExamples { get; internal set; } = Array.Empty(); + public bool IsLongRunning => LongRunning != null; public string Name { get; internal set; } public string? ResourceName { get; } @@ -153,7 +162,7 @@ private IReadOnlyDictionary EnsureExamples(Dictio public string? OperationType { get; } public string OperationId => ResourceName is null ? Name : $"{ResourceName}_{Name.FirstCharToUpperCase()}"; public IReadOnlyList Decorators { get; internal set; } = new List(); - //TODO: Remove this until the SDK nullable is enabled, traking in https://github.com/Azure/autorest.csharp/issues/4780 + //TODO: Remove this until the SDK nullable is enabled, tracking in https://github.com/Azure/autorest.csharp/issues/4780 internal string SpecName { get; init; } internal bool IsNameChanged { get; init; } diff --git a/src/AutoRest.CSharp/Common/Input/InputTypes/Serialization/TypeSpecInputOperationConverter.cs b/src/AutoRest.CSharp/Common/Input/InputTypes/Serialization/TypeSpecInputOperationConverter.cs index 09e38d12e06..4de539ebda9 100644 --- a/src/AutoRest.CSharp/Common/Input/InputTypes/Serialization/TypeSpecInputOperationConverter.cs +++ b/src/AutoRest.CSharp/Common/Input/InputTypes/Serialization/TypeSpecInputOperationConverter.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using AutoRest.CSharp.Utilities; +using AutoRest.CSharp.Common.Input.Examples; using Azure.Core; using Humanizer; @@ -49,6 +49,7 @@ public static InputOperation CreateOperation(ref Utf8JsonReader reader, string? bool generateConvenienceMethod = false; string? crossLanguageDefinitionId = null; bool keepClientDefaultValue = false; + IReadOnlyList? examples = null; while (reader.TokenType != JsonTokenType.EndObject) { @@ -73,7 +74,8 @@ public static InputOperation CreateOperation(ref Utf8JsonReader reader, string? || reader.TryReadBoolean(nameof(InputOperation.GenerateProtocolMethod), ref generateProtocolMethod) || reader.TryReadBoolean(nameof(InputOperation.GenerateConvenienceMethod), ref generateConvenienceMethod) || reader.TryReadString(nameof(InputOperation.CrossLanguageDefinitionId), ref crossLanguageDefinitionId) - || reader.TryReadBoolean(nameof(InputOperation.KeepClientDefaultValue), ref keepClientDefaultValue); + || reader.TryReadBoolean(nameof(InputOperation.KeepClientDefaultValue), ref keepClientDefaultValue) + || reader.TryReadWithConverter(nameof(InputOperation.Examples), options, ref examples); if (!isKnownProperty) { @@ -93,7 +95,7 @@ public static InputOperation CreateOperation(ref Utf8JsonReader reader, string? parameters = parameters ?? throw new JsonException("InputOperation must have parameters"); responses = responses ?? throw new JsonException("InputOperation must have responses"); - var inputOperation = new InputOperation(name, resourceName, summary, deprecated, description, accessibility, parameters, responses, httpMethod, requestBodyMediaType, uri, path, externalDocsUri, requestMediaTypes, bufferResponse, longRunning, paging, generateProtocolMethod, generateConvenienceMethod, crossLanguageDefinitionId, keepClientDefaultValue) + var inputOperation = new InputOperation(name, resourceName, summary, deprecated, description, accessibility, parameters, responses, httpMethod, requestBodyMediaType, uri, path, externalDocsUri, requestMediaTypes, bufferResponse, longRunning, paging, generateProtocolMethod, generateConvenienceMethod, crossLanguageDefinitionId, keepClientDefaultValue, examples) { IsNameChanged = IsNameChanged(crossLanguageDefinitionId, name) }; diff --git a/src/AutoRest.CSharp/Common/Input/InputTypes/Serialization/TypeSpecSerialization.cs b/src/AutoRest.CSharp/Common/Input/InputTypes/Serialization/TypeSpecSerialization.cs index b007366f4f1..8f7a1c8d4d7 100644 --- a/src/AutoRest.CSharp/Common/Input/InputTypes/Serialization/TypeSpecSerialization.cs +++ b/src/AutoRest.CSharp/Common/Input/InputTypes/Serialization/TypeSpecSerialization.cs @@ -4,6 +4,7 @@ using System; using System.Text.Json; using System.Text.Json.Serialization; +using AutoRest.CSharp.Common.Input.Examples; using Azure.Core; namespace AutoRest.CSharp.Common.Input @@ -38,6 +39,9 @@ internal static class TypeSpecSerialization new TypeSpecInputDurationTypeConverter(referenceHandler), new TypeSpecInputPrimitiveTypeConverter(referenceHandler), new TypeSpecInputDecoratorInfoConverter(referenceHandler), + new TypeSpecInputTypeExampleConverter(referenceHandler), + new TypeSpecInputOperationExampleConverter(referenceHandler), + new TypeSpecInputParameterExampleConverter(referenceHandler), } }; diff --git a/src/AutoRest.CSharp/LowLevel/Output/OperationMethodChainBuilder.cs b/src/AutoRest.CSharp/LowLevel/Output/OperationMethodChainBuilder.cs index 5726b8a9cfa..9c3a73d81a5 100644 --- a/src/AutoRest.CSharp/LowLevel/Output/OperationMethodChainBuilder.cs +++ b/src/AutoRest.CSharp/LowLevel/Output/OperationMethodChainBuilder.cs @@ -134,19 +134,20 @@ private void BuildSamples(LowLevelClientMethod method, List // short version samples var shouldGenerateShortVersion = DpgOperationSample.ShouldGenerateShortVersion(_client, method); - foreach (var (exampleKey, operationExample) in Operation.Examples) + foreach (var example in Operation.Examples) { - if (!shouldGenerateShortVersion && exampleKey != ExampleMockValueBuilder.ShortVersionMockExampleKey) - continue; // skip the short example when we decide not to generate it + if (!shouldGenerateShortVersion && example.Name == ExampleMockValueBuilder.ShortVersionMockExampleKey) + continue; // add protocol method sample samples.Add(new( _client, _typeFactory, method, - operationExample, + Operation, + example, false, - exampleKey)); + example.Name)); // add convenience method sample if (method.ConvenienceMethod != null && method.ConvenienceMethod.Signature.Modifiers.HasFlag(Public)) @@ -155,9 +156,10 @@ private void BuildSamples(LowLevelClientMethod method, List _client, _typeFactory, method, - operationExample, + Operation, + example, true, - exampleKey)); + example.Name)); } } } diff --git a/src/AutoRest.CSharp/LowLevel/Output/Samples/DpgOperationSample.cs b/src/AutoRest.CSharp/LowLevel/Output/Samples/DpgOperationSample.cs index 429c5b37686..00bcf943c0f 100644 --- a/src/AutoRest.CSharp/LowLevel/Output/Samples/DpgOperationSample.cs +++ b/src/AutoRest.CSharp/LowLevel/Output/Samples/DpgOperationSample.cs @@ -24,18 +24,20 @@ namespace AutoRest.CSharp.Output.Samples.Models [DebuggerDisplay("{GetDebuggerDisplay(),nq}")] internal class DpgOperationSample { - public DpgOperationSample(LowLevelClient client, TypeFactory typeFactory, LowLevelClientMethod method, InputOperationExample inputOperationExample, bool isConvenienceSample, string exampleKey) + public DpgOperationSample(LowLevelClient client, TypeFactory typeFactory, LowLevelClientMethod method, InputOperation inputOperation, InputOperationExample operationExample, bool isConvenienceSample, string exampleKey) { _client = client; _typeFactory = typeFactory; _method = method; - _inputOperationExample = inputOperationExample; + _inputOperation = inputOperation; + _inputOperationExample = operationExample; IsConvenienceSample = isConvenienceSample; - ExampleKey = exampleKey; + ExampleKey = exampleKey.ToCleanName(); IsAllParametersUsed = exampleKey == ExampleMockValueBuilder.MockExampleAllParameterKey; // TODO -- only work around for the response usage building. _operationMethodSignature = isConvenienceSample ? method.ConvenienceMethod!.Signature : method.ProtocolMethodSignature; } + protected internal readonly InputOperation _inputOperation; protected internal readonly InputOperationExample _inputOperationExample; protected internal readonly LowLevelClient _client; protected internal readonly LowLevelClientMethod _method; @@ -44,8 +46,8 @@ public DpgOperationSample(LowLevelClient client, TypeFactory typeFactory, LowLev public bool IsAllParametersUsed { get; } public string ExampleKey { get; } public bool IsConvenienceSample { get; } - public string? ResourceName => _inputOperationExample.Operation.ResourceName; - public string InputOperationName => _inputOperationExample.Operation.Name; + public string? ResourceName => _inputOperation.ResourceName; + public string InputOperationName => _inputOperation.Name; public MethodSignature OperationMethodSignature => _operationMethodSignature; diff --git a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestOutputLibrary.cs b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestOutputLibrary.cs index 643ab10d7cf..a0994dec802 100644 --- a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestOutputLibrary.cs +++ b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestOutputLibrary.cs @@ -44,12 +44,12 @@ private Dictionary> EnsureMockTestCases() var result = new Dictionary>(); foreach (var client in _inputNamespace.Clients) { - foreach (var operation in client.Operations) + foreach (var inputOperation in client.Operations) { - foreach (var example in operation.CodeModelExamples) + foreach (var example in inputOperation.CodeModelExamples) { // we need to find which resource or resource collection this test case belongs - var operationId = example.Operation.OperationId!; + var operationId = inputOperation.OperationId!; // skip this operation if we find it in the `skipped-operations` configuration if (_mgmtTestConfiguration.SkippedOperations.Contains(operationId)) @@ -62,7 +62,7 @@ private Dictionary> EnsureMockTestCases() // the source code generator will never write them if it is not in arm core if (providerForExample.Carrier is ArmClientExtension) continue; - var mockTestCase = new MockTestCase(operationId, providerForExample.Carrier, providerForExample.Operation, example); + var mockTestCase = new MockTestCase(operationId, providerForExample.Carrier, providerForExample.Operation, inputOperation, example); result.AddInList(mockTestCase.Owner, mockTestCase); } } @@ -77,7 +77,7 @@ private IEnumerable FindCarriersFromOperationId(st // it is possible that an operationId does not exist in the MgmtOutputLibrary, because some of the operations are removed by design. For instance, `Operations_List`. if (EnsureOperationIdToProviders().TryGetValue(operationId, out var result)) return result; - return Enumerable.Empty(); + return Array.Empty(); } private Dictionary>? _operationNameToProviders; diff --git a/src/AutoRest.CSharp/MgmtTest/Models/MockTestCase.cs b/src/AutoRest.CSharp/MgmtTest/Models/MockTestCase.cs index d81854cec2b..ff02c82c736 100644 --- a/src/AutoRest.CSharp/MgmtTest/Models/MockTestCase.cs +++ b/src/AutoRest.CSharp/MgmtTest/Models/MockTestCase.cs @@ -24,7 +24,7 @@ namespace AutoRest.CSharp.MgmtTest.Models { internal class MockTestCase : OperationExample { - public MockTestCase(string operationId, MgmtTypeProvider carrier, MgmtClientOperation operation, InputOperationExample example) : base(operationId, carrier, operation, example) + public MockTestCase(string operationId, MgmtTypeProvider carrier, MgmtClientOperation operation, InputOperation inputOperation, InputOperationExample example) : base(operationId, carrier, operation, inputOperation, example) { } diff --git a/src/AutoRest.CSharp/MgmtTest/Models/OperationExample.cs b/src/AutoRest.CSharp/MgmtTest/Models/OperationExample.cs index 55df3e53fb2..f01fe1a6b17 100644 --- a/src/AutoRest.CSharp/MgmtTest/Models/OperationExample.cs +++ b/src/AutoRest.CSharp/MgmtTest/Models/OperationExample.cs @@ -19,6 +19,7 @@ internal class OperationExample private readonly Lazy> _parameterNameToSerializedNameMapping; internal protected InputOperationExample _example; + internal protected InputOperation _inputOperation; public string OperationId { get; } public string Name => _example.Name!; @@ -43,10 +44,11 @@ internal class OperationExample private IEnumerable? _pathParameters; public IEnumerable PathParameters => _pathParameters ??= AllParameters.Where(p => p.Parameter.Location == RequestLocation.Path); - protected OperationExample(string operationId, MgmtTypeProvider carrier, MgmtClientOperation operation, InputOperationExample example) + protected OperationExample(string operationId, MgmtTypeProvider carrier, MgmtClientOperation operation, InputOperation inputOperation, InputOperationExample example) { OperationId = operationId; _example = example; + _inputOperation = inputOperation; Carrier = carrier; Operation = operation; _parameterNameToSerializedNameMapping = new Lazy>(EnsureParameterSerializedNames); @@ -60,7 +62,7 @@ private MgmtRestOperation GetRestOperationFromOperationId() return operation; } - throw new InvalidOperationException($"Cannot find operationId {OperationId} in example {_example.Operation.Name}"); + throw new InvalidOperationException($"Cannot find operationId {OperationId} in example {_inputOperation.Name}"); } /// @@ -137,7 +139,7 @@ private Dictionary EnsureParameterSerializedNames() { var result = new Dictionary(StringComparer.OrdinalIgnoreCase); - foreach (var requestParameter in _example.Operation.Parameters) + foreach (var requestParameter in _inputOperation.Parameters) { result.Add(requestParameter.Name, requestParameter.NameInRequest ?? requestParameter.Name); } @@ -153,7 +155,7 @@ private InputParameterExample FindPathExampleParameterBySerializedName(string se // we throw exceptions here because path parameter cannot be optional, therefore if we do not find a parameter in the example, there must be an issue in the example if (parameter == null) - throw new InvalidOperationException($"Cannot find a parameter in test case {_example.Operation.Name} with the name of {serializedName}"); + throw new InvalidOperationException($"Cannot find a parameter in test case {_inputOperation.Name} with the name of {serializedName}"); return parameter; } diff --git a/src/AutoRest.CSharp/MgmtTest/Models/Sample.cs b/src/AutoRest.CSharp/MgmtTest/Models/Sample.cs index 3b90c55f1d5..536b7b52571 100644 --- a/src/AutoRest.CSharp/MgmtTest/Models/Sample.cs +++ b/src/AutoRest.CSharp/MgmtTest/Models/Sample.cs @@ -8,7 +8,7 @@ namespace AutoRest.CSharp.MgmtTest.Models { internal class Sample : MockTestCase { - public Sample(MockTestCase testCase) : base(testCase.OperationId, testCase.Carrier, testCase.Operation, testCase._example) + public Sample(MockTestCase testCase) : base(testCase.OperationId, testCase.Carrier, testCase.Operation, testCase._inputOperation, testCase._example) { } @@ -21,6 +21,6 @@ protected override InputExampleValue ReplacePathParameterValue(string serialized return value; } - public string ExampleFilepath => _example.ExampleFilePath!; + public string ExampleFilepath => _example.FilePath; } } diff --git a/src/TypeSpec.Extension/Emitter.Csharp/package.json b/src/TypeSpec.Extension/Emitter.Csharp/package.json index d5dbcab2099..fc4a1e215cd 100644 --- a/src/TypeSpec.Extension/Emitter.Csharp/package.json +++ b/src/TypeSpec.Extension/Emitter.Csharp/package.json @@ -36,7 +36,7 @@ "dependencies": { "@autorest/csharp": "3.0.0-beta.20240625.4", "json-serialize-refs": "0.1.0-0", - "@typespec/http-client-csharp": "0.1.9-alpha.20240820.5" + "@typespec/http-client-csharp": "0.1.9-alpha.20240822.1" }, "peerDependencies": { "@azure-tools/typespec-azure-core": ">=0.36.0 <1.0.0", diff --git a/src/TypeSpec.Extension/Emitter.Csharp/src/emitter.ts b/src/TypeSpec.Extension/Emitter.Csharp/src/emitter.ts index 96aa04cf116..549b7a3a2ce 100644 --- a/src/TypeSpec.Extension/Emitter.Csharp/src/emitter.ts +++ b/src/TypeSpec.Extension/Emitter.Csharp/src/emitter.ts @@ -72,6 +72,14 @@ export async function $onEmit(context: EmitContext) { : undefined); configurations["enable-internal-raw-data"] = options["enable-internal-raw-data"]; + const examplesDir = + options["examples-dir"] ?? options["examples-directory"]; + if (examplesDir) { + configurations["examples-dir"] = path.relative( + outputFolder, + examplesDir + ); + } /* TODO: when we support to emit decorator list https://github.com/Azure/autorest.csharp/issues/4887, we will update to use emitted decorator to identify if it is azure-arm */ /* set azure-arm */ const sdkContext = await createSdkContext( diff --git a/test/AutoRest.TestServer.Tests/Common/Utilities/NamedTypeSymbolExtensionsTests.cs b/test/AutoRest.TestServer.Tests/Common/Utilities/NamedTypeSymbolExtensionsTests.cs index 20cb8c3e034..3f88556ca8c 100644 --- a/test/AutoRest.TestServer.Tests/Common/Utilities/NamedTypeSymbolExtensionsTests.cs +++ b/test/AutoRest.TestServer.Tests/Common/Utilities/NamedTypeSymbolExtensionsTests.cs @@ -114,6 +114,7 @@ public void Method(int? nullableInt, List intList, List nullableIntLi disableXmlDocs: false, generateSampleProject: true, generateTestProject: true, + examplesDirectory: null, helperNamespace: ""); } diff --git a/test/AutoRest.TestServer.Tests/Mgmt/Unit/MgmtRestOperationTests.cs b/test/AutoRest.TestServer.Tests/Mgmt/Unit/MgmtRestOperationTests.cs index ff3c025216c..1d978667a79 100644 --- a/test/AutoRest.TestServer.Tests/Mgmt/Unit/MgmtRestOperationTests.cs +++ b/test/AutoRest.TestServer.Tests/Mgmt/Unit/MgmtRestOperationTests.cs @@ -91,6 +91,7 @@ public void Setup() disableXmlDocs: false, generateSampleProject: true, generateTestProject: true, + examplesDirectory: null, helperNamespace: ""); } diff --git a/test/AutoRest.TestServerLowLevel.Tests/LowLevel/Generation/ModelGenerationTestBase.cs b/test/AutoRest.TestServerLowLevel.Tests/LowLevel/Generation/ModelGenerationTestBase.cs index 7145116a62b..8b8e9ccf579 100644 --- a/test/AutoRest.TestServerLowLevel.Tests/LowLevel/Generation/ModelGenerationTestBase.cs +++ b/test/AutoRest.TestServerLowLevel.Tests/LowLevel/Generation/ModelGenerationTestBase.cs @@ -72,6 +72,7 @@ public void Initialize() disableXmlDocs: false, generateSampleProject: true, generateTestProject: true, + examplesDirectory: null, helperNamespace: ""); }