From fbebfd343db9009b3767f4d223c7fd45921828df Mon Sep 17 00:00:00 2001 From: Caio Saldanha Date: Wed, 9 Jun 2021 19:29:06 -0700 Subject: [PATCH] Stopped ignoring flaky tests --- .../AnomalyAlertConfigurationLiveTests.cs | 1 - .../AnomalyDetectionConfigurationLiveTests.cs | 1 - .../DataFeedLiveTests.cs | 1 - .../NotificationHookLiveTests.cs | 3 +- .../GetDataFeeds(False).json | 307 +++++ .../GetDataFeeds(False)Async.json | 307 +++++ .../DataFeedLiveTests/GetDataFeeds(True).json | 1200 +++++++++++++++++ .../GetDataFeeds(True)Async.json | 1200 +++++++++++++++++ .../GetHooksWithMinimumSetup(False).json | 171 +++ .../GetHooksWithMinimumSetup(False)Async.json | 171 +++ .../GetHooksWithMinimumSetup(True).json | 438 ++++++ .../GetHooksWithMinimumSetup(True)Async.json | 438 ++++++ 12 files changed, 4233 insertions(+), 5 deletions(-) create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(False).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(False)Async.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(True).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(True)Async.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(False).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(False)Async.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(True).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(True)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index 2a664977bb36..fdd8b40a91b6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -859,7 +859,6 @@ public async Task UpdateAlertConfigurationWithEveryMemberAndNewInstance() [RecordedTest] [TestCase(true)] [TestCase(false)] - [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/18004")] public async Task GetAlertConfigurations(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index 167ef8c39ed0..ce373f93596d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -820,7 +820,6 @@ public async Task UpdateDetectionConfigurationWithEveryMemberAndNewInstance() [RecordedTest] [TestCase(true)] [TestCase(false)] - [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/18004")] public async Task GetDetectionConfigurations(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/DataFeedLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/DataFeedLiveTests.cs index 524ec00f5bab..6b62beb9d3ae 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/DataFeedLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/DataFeedLiveTests.cs @@ -2131,7 +2131,6 @@ public async Task UpdateSqlServerDataFeedWithCredentialAuthentication(SqlServerD [RecordedTest] [TestCase(true)] [TestCase(false)] - [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/18004")] public async Task GetDataFeeds(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs index a9110445a364..14ee8f6a4021 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs @@ -527,13 +527,12 @@ public async Task UpdateWebNotificationHookWithEveryMemberAndNewInstance() [RecordedTest] [TestCase(true)] [TestCase(false)] - [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/18004")] public async Task GetHooksWithMinimumSetup(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); string hookName = Recording.GenerateAlphaNumericId("hook"); - var hookToCreate = new WebNotificationHook() { Name = hookName, Endpoint = new Uri("http://contoso.com/") }; + var hookToCreate = new EmailNotificationHook() { Name = hookName, EmailsToAlert = { "fake@email.com" } }; await using var disposableHook = await DisposableNotificationHook.CreateHookAsync(adminClient, hookToCreate); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(False).json new file mode 100644 index 000000000000..4416fdda988e --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(False).json @@ -0,0 +1,307 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-875572d351b8bd45b9188153859f927d-20ec250498ab4b43-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "84fc5a79dbad01460a86988a528f63e1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "eed8e976-284e-4ece-96a5-5086f05e1d25", + "Content-Length": "5534", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:21:36 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "145", + "x-request-id": "eed8e976-284e-4ece-96a5-5086f05e1d25" + }, + "ResponseBody": { + "value": [ + { + "dataFeedId": "d9bb5d8a-4ade-4b41-a912-a3f82ee93c14", + "dataFeedName": "SqlServerDatafeed", + "metrics": [ + { + "metricId": "81582df6-0272-40bf-994d-eb497b74d13b", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "507eaf33-3a65-4664-a7d6-5cdcc2dda6ff", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-11T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-10-16T17:35:24Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "select * from adsample2 where Timestamp = @StartTime" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "b23b7c41-4c49-4ad6-a0b8-cbb91f11cd33", + "dataFeedName": "BlobDataFeed", + "metrics": [ + { + "metricId": "27b31c03-7057-4322-bb44-4ab780251528", + "metricName": "Metric1", + "metricDisplayName": "Metric1", + "metricDescription": "" + }, + { + "metricId": "1c957231-7597-4023-8dbb-7de182929e21", + "metricName": "Metric2", + "metricDisplayName": "Metric2", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "Dim1", + "dimensionDisplayName": "Dim1" + }, + { + "dimensionName": "Dim2", + "dimensionDisplayName": "Dim2" + } + ], + "dataStartFrom": "2020-08-09T00:00:00Z", + "dataSourceType": "AzureBlob", + "timestampColumn": "Timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "needRollup": "NoRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "None", + "dataFeedDescription": "", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-10-16T17:34:40Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "container": "adsample", + "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "9860df01-e740-40ec-94a2-6351813552ba", + "dataFeedName": "azsqlDatafeed", + "metrics": [ + { + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "a98a72e6-18ab-4dab-bac4-3db605691bca", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-30T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "This description was generated by a sample.", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-10-05T18:56:43Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "select * from adsample2 where Timestamp = @StartTime" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "a4030af9-4419-4d3a-a2cc-49022cf54914", + "dataFeedName": "testDataFeed1", + "metrics": [ + { + "metricId": "efa9adb3-7342-494b-a6f1-427021e75ad6", + "metricName": "Metric1", + "metricDisplayName": "Metric1", + "metricDescription": "" + }, + { + "metricId": "a1948021-0002-4c37-be71-eaaa29f1e2e7", + "metricName": "Metric2", + "metricDisplayName": "Metric2", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "Dim1", + "dimensionDisplayName": "Dim1" + }, + { + "dimensionName": "Dim2", + "dimensionDisplayName": "Dim2" + } + ], + "dataStartFrom": "2020-01-01T00:00:00Z", + "dataSourceType": "AzureBlob", + "timestampColumn": "Timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-10-02T19:20:53Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "container": "adsample", + "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" + }, + "authenticationType": "Basic" + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "505740812" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(False)Async.json new file mode 100644 index 000000000000..52a77254a5ae --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(False)Async.json @@ -0,0 +1,307 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-51a517b8667b13469d5f613a44ef7eff-7810ede22796ae41-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ec2d53df3acdd0a07334831b468fcae1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "07dc5414-9aae-4357-8c5b-91f5888d1151", + "Content-Length": "5534", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:21:39 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "145", + "x-request-id": "07dc5414-9aae-4357-8c5b-91f5888d1151" + }, + "ResponseBody": { + "value": [ + { + "dataFeedId": "d9bb5d8a-4ade-4b41-a912-a3f82ee93c14", + "dataFeedName": "SqlServerDatafeed", + "metrics": [ + { + "metricId": "81582df6-0272-40bf-994d-eb497b74d13b", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "507eaf33-3a65-4664-a7d6-5cdcc2dda6ff", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-11T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-10-16T17:35:24Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "select * from adsample2 where Timestamp = @StartTime" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "b23b7c41-4c49-4ad6-a0b8-cbb91f11cd33", + "dataFeedName": "BlobDataFeed", + "metrics": [ + { + "metricId": "27b31c03-7057-4322-bb44-4ab780251528", + "metricName": "Metric1", + "metricDisplayName": "Metric1", + "metricDescription": "" + }, + { + "metricId": "1c957231-7597-4023-8dbb-7de182929e21", + "metricName": "Metric2", + "metricDisplayName": "Metric2", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "Dim1", + "dimensionDisplayName": "Dim1" + }, + { + "dimensionName": "Dim2", + "dimensionDisplayName": "Dim2" + } + ], + "dataStartFrom": "2020-08-09T00:00:00Z", + "dataSourceType": "AzureBlob", + "timestampColumn": "Timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "needRollup": "NoRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "None", + "dataFeedDescription": "", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-10-16T17:34:40Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "container": "adsample", + "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "9860df01-e740-40ec-94a2-6351813552ba", + "dataFeedName": "azsqlDatafeed", + "metrics": [ + { + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "a98a72e6-18ab-4dab-bac4-3db605691bca", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-30T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "This description was generated by a sample.", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-10-05T18:56:43Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "select * from adsample2 where Timestamp = @StartTime" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "a4030af9-4419-4d3a-a2cc-49022cf54914", + "dataFeedName": "testDataFeed1", + "metrics": [ + { + "metricId": "efa9adb3-7342-494b-a6f1-427021e75ad6", + "metricName": "Metric1", + "metricDisplayName": "Metric1", + "metricDescription": "" + }, + { + "metricId": "a1948021-0002-4c37-be71-eaaa29f1e2e7", + "metricName": "Metric2", + "metricDisplayName": "Metric2", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "Dim1", + "dimensionDisplayName": "Dim1" + }, + { + "dimensionName": "Dim2", + "dimensionDisplayName": "Dim2" + } + ], + "dataStartFrom": "2020-01-01T00:00:00Z", + "dataSourceType": "AzureBlob", + "timestampColumn": "Timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-10-02T19:20:53Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "container": "adsample", + "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" + }, + "authenticationType": "Basic" + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "679166926" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(True).json new file mode 100644 index 000000000000..86d77f09daef --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(True).json @@ -0,0 +1,1200 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-c861b1942634584e99ea0e263b046992-3e600de01d927d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ab724a5c26bbeb44b6256e60015ed4b7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "c243caa3-7abc-490a-a9fb-e5cd185ed2ca", + "Content-Length": "27578", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:21:35 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5519", + "x-request-id": "c243caa3-7abc-490a-a9fb-e5cd185ed2ca" + }, + "ResponseBody": { + "value": [ + { + "dataFeedId": "8be0d927-818d-4106-afc0-fa474ed96aab", + "dataFeedName": "js-test-postgreSqlFeed-162309304089009590", + "metrics": [ + { + "metricId": "1049161c-2e81-462b-b8e0-f1f5447db8cb", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "b78c4d7e-2878-48bf-a3ea-6707b66da10d", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "PostgreSql", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:11:18Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "{ find: postgresql,filter: { Time: @StartTime },batch: 200 }" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "587e4bab-5c6f-4a46-b429-cfe4a3355845", + "dataFeedName": "js-test-dataLakeGenFeed-162309300293600791", + "metrics": [ + { + "metricId": "56ef3096-d727-482d-a931-9bbb9b1e31cf", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "18022279-ed68-4dbb-9a14-8f3225fd5301", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureDataLakeStorageGen2", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:10:47Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "fileTemplate": "file-template", + "accountName": "account-name", + "directoryTemplate": "directory-template", + "fileSystemName": "file-system-name" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "8ac9a082-075a-415a-a51f-398ef5a1953f", + "dataFeedName": "js-test-mySqlFeed-162309299257506851", + "metrics": [ + { + "metricId": "9e8d8cfb-d4b3-44cc-b795-72d8e4e0b719", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "88ace399-b563-47b4-81fa-7b84ddaf8b7a", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "MySql", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:10:10Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "{ find: mongodb,filter: { Time: @StartTime },batch: 200 }" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "2d7b55aa-e22a-491d-9469-3361126c8c2f", + "dataFeedName": "js-test-influxdbFeed-162309299257504958", + "metrics": [ + { + "metricId": "f18c918c-5bfc-4821-9be8-8a7bab8abcef", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "2282e44d-2be1-4183-8c80-b28eab00932c", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "InfluxDB", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:10:05Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "connectionString": "Sanitized", + "database": "data-feed-database", + "query": "partition-key eq @start-time", + "userName": "user" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "7e8ca311-1197-48a5-8265-6823e76e1b3d", + "dataFeedName": "js-test-logAnalyticsFeed-162309288331906461", + "metrics": [ + { + "metricId": "696f6fe0-bd3b-4f58-81db-256236037507", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "cd8a8efc-acb7-4598-9af5-9d3deaceb2be", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureLogAnalytics", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:45Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "clientId": "client-id", + "query": "query", + "tenantId": "tenant-id", + "workspaceId": "workspace-id" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "b323b914-d0f2-4ebf-aa6c-506fad9955d7", + "dataFeedName": "js-test-logAnalyticsFeed-162309287068507234", + "metrics": [ + { + "metricId": "c648b6d0-422c-470c-9de7-9690ae7cef2d", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "9b926540-87c8-4747-833c-6270977a2f91", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureLogAnalytics", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:31Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "clientId": "client-id", + "query": "query", + "tenantId": "tenant-id", + "workspaceId": "workspace-id" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "fccb71a5-1db9-4bac-a1d7-a971145d1081", + "dataFeedName": "js-test-mongoDbFeed-162309288331906019", + "metrics": [ + { + "metricId": "7266ddbd-9152-4e9d-a603-89e45c1122f9", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "c28360d0-f8af-475c-b2ff-ca0ad4735c33", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "MongoDB", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:31Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "database": "data-feed-mongodb", + "command": "{ find: mongodb,filter: { Time: @StartTime },batch: 200 }" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "c30b61d3-5378-4f64-a88a-3d89be50d3f8", + "dataFeedName": "js-test-influxdbFeed-162309287209603540", + "metrics": [ + { + "metricId": "a748d099-5016-48c3-8458-95a513f5cd52", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "ad9e0e7c-ef69-4004-aa8d-5941957af563", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "InfluxDB", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:23Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "connectionString": "Sanitized", + "database": "data-feed-database", + "query": "partition-key eq @start-time", + "userName": "user" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "00975d57-a3f9-4abf-911c-af68d4cb08a0", + "dataFeedName": "js-test-dataExplorerFeed-162309287068509113", + "metrics": [ + { + "metricId": "d1a6c3d2-bb61-40bb-8bb8-10428e5ba8f5", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "2815bbe2-74c0-48cd-ae15-b8e4c546b9d2", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureDataExplorer", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:15Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "let starttime=datetime(@StartTime); let endtime=starttime" + }, + "authenticationType": "ManagedIdentity" + }, + { + "dataFeedId": "64f6c444-9e2a-4432-8773-080a81ddbb3b", + "dataFeedName": "js-test-cosmosFeed-162309287209609327", + "metrics": [ + { + "metricId": "05b8ba20-3fb9-4780-b0c6-cb28894b7fbf", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "c39c2d4f-a026-45a9-84b6-ba045f8af9d8", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureCosmosDB", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:15Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "database": "sample", + "sqlQuery": "let starttime=datetime(@StartTime); let endtime=starttime", + "collectionId": "sample" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "845b579e-c1e3-4940-a2e6-c683f8e4e880", + "dataFeedName": "js-test-datafeed-162309288331807701", + "metrics": [ + { + "metricId": "db7b4089-e242-49a8-bea4-a2f39ff72691", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "b42833df-3ad9-4bcf-8db0-64a156388c4e", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureBlob", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:03Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "container": "adsample", + "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "b3f5dc10-439a-462e-8419-baeb8cc1fff9", + "dataFeedName": "js-test-sqlServerFeed-162309287209609252", + "metrics": [ + { + "metricId": "8d918230-7275-4da3-84ce-529929d12ab0", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "65c730b9-6a54-44ef-9c10-001e57bfcf19", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:01Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "select * from adsample2 where Timestamp = @StartTime" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "03cb6e65-2464-407d-b06d-f0e24185e108", + "dataFeedName": "js-test-httpRequestFeed-162309225935804641", + "metrics": [ + { + "metricId": "7fa03bca-f2d1-4816-a020-46768a60d671", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "b149b994-7563-4316-a6b6-49176bb5682f", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2021-06-07T00:00:00Z", + "dataSourceType": "AzureEventHubs", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T18:57:52Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "consumerGroup": "$Default" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "44ae3f5c-d8ef-445a-be58-badec91ccaf3", + "dataFeedName": "js-test-httpRequestFeed-162308944647300279", + "metrics": [ + { + "metricId": "a942d4bb-2f50-4184-81a6-63d07efd7f17", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "115ed056-3f71-44f0-bb2e-d6a22e3def5b", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2021-06-07T00:00:00Z", + "dataSourceType": "AzureEventHubs", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T18:10:47Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "consumerGroup": "$Default" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "91a62ead-269e-4632-a00b-04f28f10063f", + "dataFeedName": "js-test-tableFeed-162274758299106783", + "metrics": [ + { + "metricId": "68a80fed-1e83-40f4-a3db-2f3b043bac3c", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "00936dca-b5db-438d-ad33-37f559583f3e", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureTable", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-03T19:13:19Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "partition-key eq @start-time", + "table": "table-name" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "830f4581-679a-4d5e-936e-7df3a69d373a", + "dataFeedName": "js-test-sqlServerFeed-162274758384403658", + "metrics": [ + { + "metricId": "d75b1e65-bc3e-47fa-9bc5-ed660cba1d91", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "d7556cad-89b2-4790-aa17-3c08023b0fbf", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-03T19:13:08Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "select * from adsample2 where Timestamp = @StartTime" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "152a3de2-f86b-47f8-b9e2-d3e3c9bbe97c", + "dataFeedName": "js-test-sqlServerFeed-162274758299104863", + "metrics": [ + { + "metricId": "2561d753-d206-419d-810d-27da8f9591f5", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "18094558-4da6-434a-9390-396c2388469e", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-03T19:13:06Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "select * from adsample2 where Timestamp = @StartTime" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "7fb5d53f-b6f6-4b59-ad8a-89da56ffbe46", + "dataFeedName": "js-test-appInsightsFeed-162274758299100772", + "metrics": [ + { + "metricId": "5c7c1c42-a18a-4853-ba95-6f17ff5caa9b", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "83f01bfe-7695-481b-aec9-44d009cf9430", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureApplicationInsights", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-03T19:13:05Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "let gran=60m; let starttime=datetime(@StartTime); let endtime=starttime \u002B gran; requests |?where?timestamp?\u003E=?starttime?and?timestamp?\u003C?endtime |?summarize?request_count?=?count(),?duration_avg_ms?=?avg(duration),?duration_95th_ms?=?percentile(duration,?95),?duration_max_ms?=?max(duration)?by?resultCode", + "azureCloud": "Azure", + "applicationId": "appInsights_application" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "c1a6d957-e511-4aab-8b1a-c8c2931c5067", + "dataFeedName": "Sample - Cost/Revenue - Region/Category - 2021-06-02T12:44:48.315Z", + "metrics": [ + { + "metricId": "72b5dd5d-1093-4122-95e3-c511471d1220", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "this is cost" + }, + { + "metricId": "e0dd1576-0be9-4329-ba77-d64e86009449", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "this is revenue" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "region", + "dimensionDisplayName": "region" + } + ], + "dataStartFrom": "2021-04-01T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "timestamp", + "startOffsetInSeconds": 86400, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "SUM", + "needRollup": "NoRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "", + "stopRetryAfterInSeconds": 604800, + "minRetryIntervalInSeconds": 3600, + "maxConcurrency": 30, + "viewMode": "Private", + "admins": [ + "kensho@test.com" + ], + "viewers": [], + "creator": "kensho@test.com", + "status": "Active", + "createdTime": "2021-06-02T12:44:49Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "SELECT @StartTime as timestamp,CASE WHEN (GROUPING(region) = 1) THEN \u0027SUM\u0027 ELSE ISNULL(region, \u0027UNKNOWN\u0027) END as region, CASE WHEN (GROUPING(category) = 1) THEN \u0027SUM\u0027 ELSE ISNULL(category, \u0027UNKNOWN\u0027) END as category, SUM(revenue) as revenue, SUM(cost) as cost FROM MASampleRevenueCost WHERE timestamp = @StartTime and region in (\u0027Karachi\u0027,\u0027Delhi\u0027,\u0027Mumbai\u0027,\u0027Mumbai\u0027,\u0027Beijing\u0027,\u0027Cairo\u0027,\u0027Seoul\u0027,\u0027New York\u0027,\u0027Tianjin\u0027,\u0027Miami\u0027,\u0027Mexico City\u0027,\u0027Moscow\u0027,\u0027Osaka\u0027,\u0027Los Angeles\u0027,\u0027Istanbul\u0027) GROUP BY CUBE(region, category)" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "9a31571c-f8d6-43b9-8ef8-6c2208f349d7", + "dataFeedName": "Sample - Cost/Revenue - Region/Category - 2021-06-02T11:27:24.196Z", + "metrics": [ + { + "metricId": "0dea82ac-44a8-4040-b908-ba8dd4442bd2", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "this is cost" + }, + { + "metricId": "4e1eb285-bcf3-4ceb-88ff-d05815ebfda7", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "this is revenue" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "region", + "dimensionDisplayName": "region" + } + ], + "dataStartFrom": "2021-04-01T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "timestamp", + "startOffsetInSeconds": 86400, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "SUM", + "needRollup": "NoRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "", + "stopRetryAfterInSeconds": 604800, + "minRetryIntervalInSeconds": 3600, + "maxConcurrency": 30, + "viewMode": "Private", + "admins": [ + "kensho@test.com" + ], + "viewers": [], + "creator": "kensho@test.com", + "status": "Active", + "createdTime": "2021-06-02T11:27:26Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "SELECT @StartTime as timestamp,CASE WHEN (GROUPING(region) = 1) THEN \u0027SUM\u0027 ELSE ISNULL(region, \u0027UNKNOWN\u0027) END as region, CASE WHEN (GROUPING(category) = 1) THEN \u0027SUM\u0027 ELSE ISNULL(category, \u0027UNKNOWN\u0027) END as category, SUM(revenue) as revenue, SUM(cost) as cost FROM MASampleRevenueCost WHERE timestamp = @StartTime and region in (\u0027Karachi\u0027,\u0027Delhi\u0027,\u0027Mumbai\u0027,\u0027Mumbai\u0027,\u0027Beijing\u0027,\u0027Cairo\u0027,\u0027Seoul\u0027,\u0027New York\u0027,\u0027Tianjin\u0027,\u0027Miami\u0027,\u0027Mexico City\u0027,\u0027Moscow\u0027,\u0027Osaka\u0027,\u0027Los Angeles\u0027,\u0027Istanbul\u0027) GROUP BY CUBE(region, category)" + }, + "authenticationType": "Basic" + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$maxpagesize=20\u0026$skip=20" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "636670903" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(True)Async.json new file mode 100644 index 000000000000..0a33dc23e2ae --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/GetDataFeeds(True)Async.json @@ -0,0 +1,1200 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-810bab133d6efa4cb0ecca26a8fd3235-29121ed2df9c7a41-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0cb68fba881398119bcc0db3338a105c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "e650359b-8ff0-40a4-93a3-ee60b4e831d2", + "Content-Length": "27578", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:21:38 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "123", + "x-request-id": "e650359b-8ff0-40a4-93a3-ee60b4e831d2" + }, + "ResponseBody": { + "value": [ + { + "dataFeedId": "8be0d927-818d-4106-afc0-fa474ed96aab", + "dataFeedName": "js-test-postgreSqlFeed-162309304089009590", + "metrics": [ + { + "metricId": "1049161c-2e81-462b-b8e0-f1f5447db8cb", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "b78c4d7e-2878-48bf-a3ea-6707b66da10d", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "PostgreSql", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:11:18Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "{ find: postgresql,filter: { Time: @StartTime },batch: 200 }" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "587e4bab-5c6f-4a46-b429-cfe4a3355845", + "dataFeedName": "js-test-dataLakeGenFeed-162309300293600791", + "metrics": [ + { + "metricId": "56ef3096-d727-482d-a931-9bbb9b1e31cf", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "18022279-ed68-4dbb-9a14-8f3225fd5301", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureDataLakeStorageGen2", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:10:47Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "fileTemplate": "file-template", + "accountName": "account-name", + "directoryTemplate": "directory-template", + "fileSystemName": "file-system-name" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "8ac9a082-075a-415a-a51f-398ef5a1953f", + "dataFeedName": "js-test-mySqlFeed-162309299257506851", + "metrics": [ + { + "metricId": "9e8d8cfb-d4b3-44cc-b795-72d8e4e0b719", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "88ace399-b563-47b4-81fa-7b84ddaf8b7a", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "MySql", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:10:10Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "{ find: mongodb,filter: { Time: @StartTime },batch: 200 }" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "2d7b55aa-e22a-491d-9469-3361126c8c2f", + "dataFeedName": "js-test-influxdbFeed-162309299257504958", + "metrics": [ + { + "metricId": "f18c918c-5bfc-4821-9be8-8a7bab8abcef", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "2282e44d-2be1-4183-8c80-b28eab00932c", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "InfluxDB", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:10:05Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "connectionString": "Sanitized", + "database": "data-feed-database", + "query": "partition-key eq @start-time", + "userName": "user" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "7e8ca311-1197-48a5-8265-6823e76e1b3d", + "dataFeedName": "js-test-logAnalyticsFeed-162309288331906461", + "metrics": [ + { + "metricId": "696f6fe0-bd3b-4f58-81db-256236037507", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "cd8a8efc-acb7-4598-9af5-9d3deaceb2be", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureLogAnalytics", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:45Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "clientId": "client-id", + "query": "query", + "tenantId": "tenant-id", + "workspaceId": "workspace-id" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "b323b914-d0f2-4ebf-aa6c-506fad9955d7", + "dataFeedName": "js-test-logAnalyticsFeed-162309287068507234", + "metrics": [ + { + "metricId": "c648b6d0-422c-470c-9de7-9690ae7cef2d", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "9b926540-87c8-4747-833c-6270977a2f91", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureLogAnalytics", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:31Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "clientId": "client-id", + "query": "query", + "tenantId": "tenant-id", + "workspaceId": "workspace-id" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "fccb71a5-1db9-4bac-a1d7-a971145d1081", + "dataFeedName": "js-test-mongoDbFeed-162309288331906019", + "metrics": [ + { + "metricId": "7266ddbd-9152-4e9d-a603-89e45c1122f9", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "c28360d0-f8af-475c-b2ff-ca0ad4735c33", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "MongoDB", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:31Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "database": "data-feed-mongodb", + "command": "{ find: mongodb,filter: { Time: @StartTime },batch: 200 }" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "c30b61d3-5378-4f64-a88a-3d89be50d3f8", + "dataFeedName": "js-test-influxdbFeed-162309287209603540", + "metrics": [ + { + "metricId": "a748d099-5016-48c3-8458-95a513f5cd52", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "ad9e0e7c-ef69-4004-aa8d-5941957af563", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "InfluxDB", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:23Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "connectionString": "Sanitized", + "database": "data-feed-database", + "query": "partition-key eq @start-time", + "userName": "user" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "00975d57-a3f9-4abf-911c-af68d4cb08a0", + "dataFeedName": "js-test-dataExplorerFeed-162309287068509113", + "metrics": [ + { + "metricId": "d1a6c3d2-bb61-40bb-8bb8-10428e5ba8f5", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "2815bbe2-74c0-48cd-ae15-b8e4c546b9d2", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureDataExplorer", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:15Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "let starttime=datetime(@StartTime); let endtime=starttime" + }, + "authenticationType": "ManagedIdentity" + }, + { + "dataFeedId": "64f6c444-9e2a-4432-8773-080a81ddbb3b", + "dataFeedName": "js-test-cosmosFeed-162309287209609327", + "metrics": [ + { + "metricId": "05b8ba20-3fb9-4780-b0c6-cb28894b7fbf", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "c39c2d4f-a026-45a9-84b6-ba045f8af9d8", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureCosmosDB", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:15Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "database": "sample", + "sqlQuery": "let starttime=datetime(@StartTime); let endtime=starttime", + "collectionId": "sample" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "845b579e-c1e3-4940-a2e6-c683f8e4e880", + "dataFeedName": "js-test-datafeed-162309288331807701", + "metrics": [ + { + "metricId": "db7b4089-e242-49a8-bea4-a2f39ff72691", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "b42833df-3ad9-4bcf-8db0-64a156388c4e", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureBlob", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:03Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "container": "adsample", + "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "b3f5dc10-439a-462e-8419-baeb8cc1fff9", + "dataFeedName": "js-test-sqlServerFeed-162309287209609252", + "metrics": [ + { + "metricId": "8d918230-7275-4da3-84ce-529929d12ab0", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "65c730b9-6a54-44ef-9c10-001e57bfcf19", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T19:08:01Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "select * from adsample2 where Timestamp = @StartTime" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "03cb6e65-2464-407d-b06d-f0e24185e108", + "dataFeedName": "js-test-httpRequestFeed-162309225935804641", + "metrics": [ + { + "metricId": "7fa03bca-f2d1-4816-a020-46768a60d671", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "b149b994-7563-4316-a6b6-49176bb5682f", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2021-06-07T00:00:00Z", + "dataSourceType": "AzureEventHubs", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T18:57:52Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "consumerGroup": "$Default" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "44ae3f5c-d8ef-445a-be58-badec91ccaf3", + "dataFeedName": "js-test-httpRequestFeed-162308944647300279", + "metrics": [ + { + "metricId": "a942d4bb-2f50-4184-81a6-63d07efd7f17", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "115ed056-3f71-44f0-bb2e-d6a22e3def5b", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2021-06-07T00:00:00Z", + "dataSourceType": "AzureEventHubs", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-07T18:10:47Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "consumerGroup": "$Default" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "91a62ead-269e-4632-a00b-04f28f10063f", + "dataFeedName": "js-test-tableFeed-162274758299106783", + "metrics": [ + { + "metricId": "68a80fed-1e83-40f4-a3db-2f3b043bac3c", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "00936dca-b5db-438d-ad33-37f559583f3e", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureTable", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-03T19:13:19Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "partition-key eq @start-time", + "table": "table-name" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "830f4581-679a-4d5e-936e-7df3a69d373a", + "dataFeedName": "js-test-sqlServerFeed-162274758384403658", + "metrics": [ + { + "metricId": "d75b1e65-bc3e-47fa-9bc5-ed660cba1d91", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "d7556cad-89b2-4790-aa17-3c08023b0fbf", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-03T19:13:08Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "select * from adsample2 where Timestamp = @StartTime" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "152a3de2-f86b-47f8-b9e2-d3e3c9bbe97c", + "dataFeedName": "js-test-sqlServerFeed-162274758299104863", + "metrics": [ + { + "metricId": "2561d753-d206-419d-810d-27da8f9591f5", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "18094558-4da6-434a-9390-396c2388469e", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-03T19:13:06Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "select * from adsample2 where Timestamp = @StartTime" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "7fb5d53f-b6f6-4b59-ad8a-89da56ffbe46", + "dataFeedName": "js-test-appInsightsFeed-162274758299100772", + "metrics": [ + { + "metricId": "5c7c1c42-a18a-4853-ba95-6f17ff5caa9b", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "" + }, + { + "metricId": "83f01bfe-7695-481b-aec9-44d009cf9430", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "city", + "dimensionDisplayName": "city" + } + ], + "dataStartFrom": "2020-08-21T00:00:00Z", + "dataSourceType": "AzureApplicationInsights", + "timestampColumn": "", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "__CUSTOM_SUM__", + "needRollup": "NeedRollup", + "fillMissingPointType": "CustomValue", + "fillMissingPointValue": 555.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "Data feed description", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "viewers": [], + "creator": "f850650c-1fcf-4489-b46f-71af2e30d360", + "status": "Active", + "createdTime": "2021-06-03T19:13:05Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "let gran=60m; let starttime=datetime(@StartTime); let endtime=starttime \u002B gran; requests |?where?timestamp?\u003E=?starttime?and?timestamp?\u003C?endtime |?summarize?request_count?=?count(),?duration_avg_ms?=?avg(duration),?duration_95th_ms?=?percentile(duration,?95),?duration_max_ms?=?max(duration)?by?resultCode", + "azureCloud": "Azure", + "applicationId": "appInsights_application" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "c1a6d957-e511-4aab-8b1a-c8c2931c5067", + "dataFeedName": "Sample - Cost/Revenue - Region/Category - 2021-06-02T12:44:48.315Z", + "metrics": [ + { + "metricId": "72b5dd5d-1093-4122-95e3-c511471d1220", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "this is cost" + }, + { + "metricId": "e0dd1576-0be9-4329-ba77-d64e86009449", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "this is revenue" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "region", + "dimensionDisplayName": "region" + } + ], + "dataStartFrom": "2021-04-01T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "timestamp", + "startOffsetInSeconds": 86400, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "SUM", + "needRollup": "NoRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "", + "stopRetryAfterInSeconds": 604800, + "minRetryIntervalInSeconds": 3600, + "maxConcurrency": 30, + "viewMode": "Private", + "admins": [ + "kensho@test.com" + ], + "viewers": [], + "creator": "kensho@test.com", + "status": "Active", + "createdTime": "2021-06-02T12:44:49Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "SELECT @StartTime as timestamp,CASE WHEN (GROUPING(region) = 1) THEN \u0027SUM\u0027 ELSE ISNULL(region, \u0027UNKNOWN\u0027) END as region, CASE WHEN (GROUPING(category) = 1) THEN \u0027SUM\u0027 ELSE ISNULL(category, \u0027UNKNOWN\u0027) END as category, SUM(revenue) as revenue, SUM(cost) as cost FROM MASampleRevenueCost WHERE timestamp = @StartTime and region in (\u0027Karachi\u0027,\u0027Delhi\u0027,\u0027Mumbai\u0027,\u0027Mumbai\u0027,\u0027Beijing\u0027,\u0027Cairo\u0027,\u0027Seoul\u0027,\u0027New York\u0027,\u0027Tianjin\u0027,\u0027Miami\u0027,\u0027Mexico City\u0027,\u0027Moscow\u0027,\u0027Osaka\u0027,\u0027Los Angeles\u0027,\u0027Istanbul\u0027) GROUP BY CUBE(region, category)" + }, + "authenticationType": "Basic" + }, + { + "dataFeedId": "9a31571c-f8d6-43b9-8ef8-6c2208f349d7", + "dataFeedName": "Sample - Cost/Revenue - Region/Category - 2021-06-02T11:27:24.196Z", + "metrics": [ + { + "metricId": "0dea82ac-44a8-4040-b908-ba8dd4442bd2", + "metricName": "cost", + "metricDisplayName": "cost", + "metricDescription": "this is cost" + }, + { + "metricId": "4e1eb285-bcf3-4ceb-88ff-d05815ebfda7", + "metricName": "revenue", + "metricDisplayName": "revenue", + "metricDescription": "this is revenue" + } + ], + "dimension": [ + { + "dimensionName": "category", + "dimensionDisplayName": "category" + }, + { + "dimensionName": "region", + "dimensionDisplayName": "region" + } + ], + "dataStartFrom": "2021-04-01T00:00:00Z", + "dataSourceType": "SqlServer", + "timestampColumn": "timestamp", + "startOffsetInSeconds": 86400, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "allUpIdentification": "SUM", + "needRollup": "NoRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "Sum", + "dataFeedDescription": "", + "stopRetryAfterInSeconds": 604800, + "minRetryIntervalInSeconds": 3600, + "maxConcurrency": 30, + "viewMode": "Private", + "admins": [ + "kensho@test.com" + ], + "viewers": [], + "creator": "kensho@test.com", + "status": "Active", + "createdTime": "2021-06-02T11:27:26Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "query": "SELECT @StartTime as timestamp,CASE WHEN (GROUPING(region) = 1) THEN \u0027SUM\u0027 ELSE ISNULL(region, \u0027UNKNOWN\u0027) END as region, CASE WHEN (GROUPING(category) = 1) THEN \u0027SUM\u0027 ELSE ISNULL(category, \u0027UNKNOWN\u0027) END as category, SUM(revenue) as revenue, SUM(cost) as cost FROM MASampleRevenueCost WHERE timestamp = @StartTime and region in (\u0027Karachi\u0027,\u0027Delhi\u0027,\u0027Mumbai\u0027,\u0027Mumbai\u0027,\u0027Beijing\u0027,\u0027Cairo\u0027,\u0027Seoul\u0027,\u0027New York\u0027,\u0027Tianjin\u0027,\u0027Miami\u0027,\u0027Mexico City\u0027,\u0027Moscow\u0027,\u0027Osaka\u0027,\u0027Los Angeles\u0027,\u0027Istanbul\u0027) GROUP BY CUBE(region, category)" + }, + "authenticationType": "Basic" + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$maxpagesize=20\u0026$skip=20" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "1412173258" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(False).json new file mode 100644 index 000000000000..777dfdfcf4dc --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(False).json @@ -0,0 +1,171 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "92", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-1d9e4936624b97449c23faa94d04b40b-9c1868a9d69dc44b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "069e93e6dab459340739e28e787e62fb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "hookParameter": { + "toList": [ + "fake@email.com" + ] + }, + "hookType": "Email", + "hookName": "hook1dxtkuWz" + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "e5cfc3d4-223e-47a9-ac6d-bdf92af245e3", + "Content-Length": "0", + "Date": "Thu, 10 Jun 2021 02:27:48 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/365e1f41-15d0-4c1c-a857-fa521ba2b829", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "616", + "x-request-id": "e5cfc3d4-223e-47a9-ac6d-bdf92af245e3" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/365e1f41-15d0-4c1c-a857-fa521ba2b829", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-1d9e4936624b97449c23faa94d04b40b-c09426d202c8254a-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "1dc5b901b9c3bd9a6536895ff055c6a7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "68f132d4-bb73-467d-9f7e-085f3becd341", + "Content-Length": "204", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:27:48 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "165", + "x-request-id": "68f132d4-bb73-467d-9f7e-085f3becd341" + }, + "ResponseBody": { + "hookId": "365e1f41-15d0-4c1c-a857-fa521ba2b829", + "hookName": "hook1dxtkuWz", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "fake@email.com" + ] + } + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-c3d23d03adc7404aa7a781ac69dde742-88789e8e9e76ca46-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "dab6eb9aa9f60722f1d641a9d679d45e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "70d15438-4001-4ef0-9dc9-7718ca2efee2", + "Content-Length": "475", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:27:48 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "118", + "x-request-id": "70d15438-4001-4ef0-9dc9-7718ca2efee2" + }, + "ResponseBody": { + "value": [ + { + "hookId": "ffe4e97d-dbc4-4b60-a96a-03d22ca87f00", + "hookName": "netSampleHookDontDelete", + "hookType": "Email", + "externalLink": "", + "description": "This description was generated by a sample.", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "fake@email.com" + ] + } + }, + { + "hookId": "365e1f41-15d0-4c1c-a857-fa521ba2b829", + "hookName": "hook1dxtkuWz", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "fake@email.com" + ] + } + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/365e1f41-15d0-4c1c-a857-fa521ba2b829", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-5dd80cd80cc40b48ad4156114350c8af-4bfda565eca25449-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "77d725a380cf2cf6f8e0a07e51d568b1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "apim-request-id": "f170a9ef-7878-480b-8ec0-e52954624546", + "Content-Length": "0", + "Date": "Thu, 10 Jun 2021 02:27:49 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "190", + "x-request-id": "f170a9ef-7878-480b-8ec0-e52954624546" + }, + "ResponseBody": [] + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "1053449550" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(False)Async.json new file mode 100644 index 000000000000..b063673374e4 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(False)Async.json @@ -0,0 +1,171 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "92", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-52c76341c1e3cd45986f9ac2f8b9422c-f650459b19c49140-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "29ca1d500244fd6a07cb58649b37be8c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "hookParameter": { + "toList": [ + "fake@email.com" + ] + }, + "hookType": "Email", + "hookName": "hookS8TP2DvJ" + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "f51dd090-87d4-493f-b7e2-8fee4c5ba8dd", + "Content-Length": "0", + "Date": "Thu, 10 Jun 2021 02:28:06 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/636a93a5-b63b-4327-a4ef-3f0eb4384364", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "590", + "x-request-id": "f51dd090-87d4-493f-b7e2-8fee4c5ba8dd" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/636a93a5-b63b-4327-a4ef-3f0eb4384364", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-52c76341c1e3cd45986f9ac2f8b9422c-ca4b878c5b628443-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "a78d4efe1a630ad31875cd24723df75d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "830c59c6-74b4-4b22-a4c8-358314d718e9", + "Content-Length": "204", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:28:06 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "164", + "x-request-id": "830c59c6-74b4-4b22-a4c8-358314d718e9" + }, + "ResponseBody": { + "hookId": "636a93a5-b63b-4327-a4ef-3f0eb4384364", + "hookName": "hookS8TP2DvJ", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "fake@email.com" + ] + } + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-49968f0456861b418d91fa0dc07387cc-3e8452e8f8a0e54e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "734eb481a0ae0079bf15db3980f31b5c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "555632b2-6194-4d48-93b4-5364e0dd6765", + "Content-Length": "475", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:28:06 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "121", + "x-request-id": "555632b2-6194-4d48-93b4-5364e0dd6765" + }, + "ResponseBody": { + "value": [ + { + "hookId": "ffe4e97d-dbc4-4b60-a96a-03d22ca87f00", + "hookName": "netSampleHookDontDelete", + "hookType": "Email", + "externalLink": "", + "description": "This description was generated by a sample.", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "fake@email.com" + ] + } + }, + { + "hookId": "636a93a5-b63b-4327-a4ef-3f0eb4384364", + "hookName": "hookS8TP2DvJ", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "fake@email.com" + ] + } + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/636a93a5-b63b-4327-a4ef-3f0eb4384364", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-b43aa9e1e5b0574095563ec0a1278275-37475df3f1bae24e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "04577c03976036d04abf11cf34468bca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "apim-request-id": "59defc69-8946-430b-91cc-0694c5c3c8e9", + "Content-Length": "0", + "Date": "Thu, 10 Jun 2021 02:28:07 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "197", + "x-request-id": "59defc69-8946-430b-91cc-0694c5c3c8e9" + }, + "ResponseBody": [] + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "501246916" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(True).json new file mode 100644 index 000000000000..184d84b344d5 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(True).json @@ -0,0 +1,438 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "92", + "Content-Type": "application/json", + "traceparent": "00-f3368c3d76976a40886d34899a9b9631-99ada40ad67f354f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "cb17394c4a06870292d316aa0e993c25", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "hookParameter": { + "toList": [ + "fake@email.com" + ] + }, + "hookType": "Email", + "hookName": "hookRcbUg51L" + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "74ea2a01-1c20-4ef3-9c26-8ec389a0341c", + "Content-Length": "0", + "Date": "Thu, 10 Jun 2021 02:27:31 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/f0820cf8-161c-4a77-a884-8a70448d500f", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6187", + "x-request-id": "74ea2a01-1c20-4ef3-9c26-8ec389a0341c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/f0820cf8-161c-4a77-a884-8a70448d500f", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f3368c3d76976a40886d34899a9b9631-fc77c3b18d253743-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f1030cb7c886e806c4a9507dc166fd9a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "2d637eb6-92f5-47bf-9906-fca461fc3a04", + "Content-Length": "225", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:27:36 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5201", + "x-request-id": "2d637eb6-92f5-47bf-9906-fca461fc3a04" + }, + "ResponseBody": { + "hookId": "f0820cf8-161c-4a77-a884-8a70448d500f", + "hookName": "hookRcbUg51L", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "94dc466b-52e4-4678-892d-70a0c45c5f42" + ], + "hookParameter": { + "toList": [ + "fake@email.com" + ] + } + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-72adc681c42b2040a91900fac9c769a7-61d03c978bb93b40-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "26fe6e9e4f9dc917cc93e19e79804e23", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ef86618b-4302-4515-bbcf-b263d4a7c2ca", + "Content-Length": "5296", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:27:41 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5111", + "x-request-id": "ef86618b-4302-4515-bbcf-b263d4a7c2ca" + }, + "ResponseBody": { + "value": [ + { + "hookId": "793adcdb-5293-4e4a-a60c-7c32cd5829fc", + "hookName": "java email hook", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "foo@contoso.com" + ] + } + }, + { + "hookId": "b1e9c255-22ec-46d9-a32f-386d45701f99", + "hookName": "a632c2be-1c56-403c-b057-37bb54b73513", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "1a5c0a8d-a397-4c77-83c7-b997ddee8822", + "hookName": "d0f6aacf-50bb-492d-b0bf-52daa0397bc6", + "hookType": "Email", + "externalLink": "https://github.com/Azure/azure-sdk-for-java/wiki", + "description": "alert_us!", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com", + "simpleuser1@hotmail.com" + ] + } + }, + { + "hookId": "f8074b52-ff1a-4c85-af8e-c9713c498716", + "hookName": "ab7edcb1-e479-476e-bf6e-2dbeaa15c025", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "e3c703b0-0c64-46ba-aa00-a091b02941e3", + "hookName": "9393ba0f-7237-4234-b550-a24f80a2fed0", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "7f8a3981-a409-4981-926a-e073b7def566", + "hookName": "560c0e87-68db-4558-99b9-d8d3ff353932", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "f24b046d-5aac-4792-969f-86d97a000c5f", + "hookName": "9cbf75f7-c628-43f4-beb4-4b334864b6c3", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "8f750f67-d51a-4831-aa08-a656c5d5d63c", + "hookName": "5e4797e5-de2c-4e5d-bb35-3df57bcbd9f8", + "hookType": "Email", + "externalLink": "https://github.com/Azure/azure-sdk-for-java/wiki", + "description": "alert_us!", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com", + "simpleuser1@hotmail.com" + ] + } + }, + { + "hookId": "34581529-a542-432d-8114-7122a90596d6", + "hookName": "45f20dc5-574c-447b-ba47-e91de72bf662", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "befaedc1-ffe2-46c6-921f-1280596fb0b2", + "hookName": "08e42fa8-67ae-47e1-b0b3-36cddb46c404", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "e89afaa5-0c3a-4f60-8000-ec3cc3b658c8", + "hookName": "a194a244-c83d-4e1d-843f-1a5a066376ef", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "dbf3d1f0-3be0-40a9-992e-3746c1754954", + "hookName": "2e7285aa-ebda-4027-8646-eb514966152b", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "44307314-7566-4738-ae52-cec3442455f8", + "hookName": "2fd9fc29-caab-446f-922d-0eba75d088ca", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "9f9293e1-476d-4afe-8e11-54842a4dfbc5", + "hookName": "08533fbc-27c3-417c-8741-3a1b13677ed2", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "c295cc6d-3b4f-4fc4-a1dd-ce78aa497f11", + "hookName": "ecc7be12-950e-49cb-bc1e-370ec08b13a8", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "a4084b45-bba3-442d-9db3-faca02af910b", + "hookName": "21659583-7842-459d-9e04-28251d9e08b2", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "4ceee620-7049-4fea-9a82-75def1d495a0", + "hookName": "408490ce-7044-4ebe-b6a3-f6e09a48922e", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "2b755260-7a5a-435c-bc98-1098d5aa8280", + "hookName": "js-test-emailHook-161531685527403780", + "hookType": "Email", + "externalLink": "", + "description": "description", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "test@example.com" + ] + } + }, + { + "hookId": "874704b3-80d3-4e78-929d-64be2accfb4f", + "hookName": "js-test-emailHook-161531685824404287", + "hookType": "Email", + "externalLink": "", + "description": "description", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "test@example.com" + ] + } + }, + { + "hookId": "5710d5c4-6aae-42c9-9bdf-e9ddcc5c89d5", + "hookName": "js-test-emailHook-161531705490304712", + "hookType": "Email", + "externalLink": "", + "description": "description", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "test@example.com" + ] + } + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/hooks?$maxpagesize=20\u0026$skip=20" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/f0820cf8-161c-4a77-a884-8a70448d500f", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-3035f0814669cd4da37f15653cee2fb5-a55bb798e98d824a-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2e33ed4c09f28458322f075cf984c62c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "apim-request-id": "30e9eef0-d566-43cd-9f9b-2cd6e0a4558d", + "Content-Length": "0", + "Date": "Thu, 10 Jun 2021 02:27:47 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5197", + "x-request-id": "30e9eef0-d566-43cd-9f9b-2cd6e0a4558d" + }, + "ResponseBody": [] + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "225957082" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(True)Async.json new file mode 100644 index 000000000000..23ceb9aece5b --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/GetHooksWithMinimumSetup(True)Async.json @@ -0,0 +1,438 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "92", + "Content-Type": "application/json", + "traceparent": "00-7c6cf43e800b514388b4908dc0c4fb64-d8dd29e24cee354e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "09862765a494d663add864a2fd93c009", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "hookParameter": { + "toList": [ + "fake@email.com" + ] + }, + "hookType": "Email", + "hookName": "hookbTu67PzZ" + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "d0e64bc3-8818-472a-8346-73e214bb80b3", + "Content-Length": "0", + "Date": "Thu, 10 Jun 2021 02:27:54 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d9aa9986-ba5c-4ccf-ba89-1063c90559c8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5634", + "x-request-id": "d0e64bc3-8818-472a-8346-73e214bb80b3" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d9aa9986-ba5c-4ccf-ba89-1063c90559c8", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-7c6cf43e800b514388b4908dc0c4fb64-15ef55add9607640-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "96efe55dab0d55d79552c5131d5dc88d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "07be6d35-1988-4bef-926f-05b1825e38aa", + "Content-Length": "225", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:27:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5169", + "x-request-id": "07be6d35-1988-4bef-926f-05b1825e38aa" + }, + "ResponseBody": { + "hookId": "d9aa9986-ba5c-4ccf-ba89-1063c90559c8", + "hookName": "hookbTu67PzZ", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "94dc466b-52e4-4678-892d-70a0c45c5f42" + ], + "hookParameter": { + "toList": [ + "fake@email.com" + ] + } + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-2d4c96325ffb4a459b8cf99aaade8f3f-8a8ae20ebef4a446-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d8a903844490c63f61eb573b0bf0a86a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "b21fb815-cae3-4183-8d11-5d2cc7bcf6d8", + "Content-Length": "5296", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Jun 2021 02:27:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "99", + "x-request-id": "b21fb815-cae3-4183-8d11-5d2cc7bcf6d8" + }, + "ResponseBody": { + "value": [ + { + "hookId": "793adcdb-5293-4e4a-a60c-7c32cd5829fc", + "hookName": "java email hook", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "foo@contoso.com" + ] + } + }, + { + "hookId": "b1e9c255-22ec-46d9-a32f-386d45701f99", + "hookName": "a632c2be-1c56-403c-b057-37bb54b73513", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "1a5c0a8d-a397-4c77-83c7-b997ddee8822", + "hookName": "d0f6aacf-50bb-492d-b0bf-52daa0397bc6", + "hookType": "Email", + "externalLink": "https://github.com/Azure/azure-sdk-for-java/wiki", + "description": "alert_us!", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com", + "simpleuser1@hotmail.com" + ] + } + }, + { + "hookId": "f8074b52-ff1a-4c85-af8e-c9713c498716", + "hookName": "ab7edcb1-e479-476e-bf6e-2dbeaa15c025", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "e3c703b0-0c64-46ba-aa00-a091b02941e3", + "hookName": "9393ba0f-7237-4234-b550-a24f80a2fed0", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "7f8a3981-a409-4981-926a-e073b7def566", + "hookName": "560c0e87-68db-4558-99b9-d8d3ff353932", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "f24b046d-5aac-4792-969f-86d97a000c5f", + "hookName": "9cbf75f7-c628-43f4-beb4-4b334864b6c3", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "8f750f67-d51a-4831-aa08-a656c5d5d63c", + "hookName": "5e4797e5-de2c-4e5d-bb35-3df57bcbd9f8", + "hookType": "Email", + "externalLink": "https://github.com/Azure/azure-sdk-for-java/wiki", + "description": "alert_us!", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com", + "simpleuser1@hotmail.com" + ] + } + }, + { + "hookId": "34581529-a542-432d-8114-7122a90596d6", + "hookName": "45f20dc5-574c-447b-ba47-e91de72bf662", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "befaedc1-ffe2-46c6-921f-1280596fb0b2", + "hookName": "08e42fa8-67ae-47e1-b0b3-36cddb46c404", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "e89afaa5-0c3a-4f60-8000-ec3cc3b658c8", + "hookName": "a194a244-c83d-4e1d-843f-1a5a066376ef", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "dbf3d1f0-3be0-40a9-992e-3746c1754954", + "hookName": "2e7285aa-ebda-4027-8646-eb514966152b", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "44307314-7566-4738-ae52-cec3442455f8", + "hookName": "2fd9fc29-caab-446f-922d-0eba75d088ca", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "9f9293e1-476d-4afe-8e11-54842a4dfbc5", + "hookName": "08533fbc-27c3-417c-8741-3a1b13677ed2", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "c295cc6d-3b4f-4fc4-a1dd-ce78aa497f11", + "hookName": "ecc7be12-950e-49cb-bc1e-370ec08b13a8", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "a4084b45-bba3-442d-9db3-faca02af910b", + "hookName": "21659583-7842-459d-9e04-28251d9e08b2", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "4ceee620-7049-4fea-9a82-75def1d495a0", + "hookName": "408490ce-7044-4ebe-b6a3-f6e09a48922e", + "hookType": "Email", + "externalLink": "", + "description": "", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "simpleuser0@hotmail.com" + ] + } + }, + { + "hookId": "2b755260-7a5a-435c-bc98-1098d5aa8280", + "hookName": "js-test-emailHook-161531685527403780", + "hookType": "Email", + "externalLink": "", + "description": "description", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "test@example.com" + ] + } + }, + { + "hookId": "874704b3-80d3-4e78-929d-64be2accfb4f", + "hookName": "js-test-emailHook-161531685824404287", + "hookType": "Email", + "externalLink": "", + "description": "description", + "admins": [ + "foo@contoso.com" + ], + "hookParameter": { + "toList": [ + "test@example.com" + ] + } + }, + { + "hookId": "5710d5c4-6aae-42c9-9bdf-e9ddcc5c89d5", + "hookName": "js-test-emailHook-161531705490304712", + "hookType": "Email", + "externalLink": "", + "description": "description", + "admins": [ + "f850650c-1fcf-4489-b46f-71af2e30d360" + ], + "hookParameter": { + "toList": [ + "test@example.com" + ] + } + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/hooks?$maxpagesize=20\u0026$skip=20" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d9aa9986-ba5c-4ccf-ba89-1063c90559c8", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-50190be4abb16a4381c44b86e6012e10-bb5e11657d2eeb4b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210609.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b47176cfa524baaf50307341de50b850", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "apim-request-id": "da10f66d-a3fb-476d-aadf-0497d46ce257", + "Content-Length": "0", + "Date": "Thu, 10 Jun 2021 02:28:05 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5195", + "x-request-id": "da10f66d-a3fb-476d-aadf-0497d46ce257" + }, + "ResponseBody": [] + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "1540557846" + } +} \ No newline at end of file