From e3653e28c8547b0f2262cbf993b1c0f2b49f66b5 Mon Sep 17 00:00:00 2001 From: Jeremy Meng Date: Mon, 5 Oct 2020 11:12:28 -0700 Subject: [PATCH] [MetricsAdvisor] Remove leftover folder (#11635) * Remove leftover folder The tests are moved * Remove extra src/ in javascript sample links --- ...ording_creates_an_azure_blob_datafeed.json | 47 ------------------- ...ording_deletes_an_azure_blob_datafeed.json | 44 ----------------- ...ding_retrieves_an_azure_blob_datafeed.json | 27 ----------- ...ording_updates_an_azure_blob_datafeed.json | 8 ---- ...ates_an_azure_application_insights_feed.js | 47 ------------------- ...cording_creates_an_azure_cosmos_db_feed.js | 47 ------------------- ...ing_creates_an_azure_data_explorer_feed.js | 47 ------------------- ...creates_an_azure_data_lake_storage_feed.js | 26 ---------- ...ording_creates_an_azure_sql_server_feed.js | 47 ------------------- .../recording_creates_an_azure_table_feed.js | 47 ------------------- .../recording_creates_http_request_feed.js | 47 ------------------- .../recording_creates_influxdb_data_feed.js | 47 ------------------- .../recording_creates_mongodb_data_feed.js | 47 ------------------- .../recording_creates_mysql_data_feed.js | 47 ------------------- .../recording_creates_postgresql_data_feed.js | 47 ------------------- ...etes_an_azure_application_insights_feed.js | 45 ------------------ .../recording_deletes_an_azure_cosmos_db.js | 45 ------------------ ...ing_deletes_an_azure_data_explorer_feed.js | 45 ------------------ ...deletes_an_azure_data_lake_storage_feed.js | 5 -- ...ording_deletes_an_azure_sql_server_feed.js | 45 ------------------ .../recording_deletes_an_azure_table_feed.js | 45 ------------------ .../recording_deletes_http_request_feed.js | 45 ------------------ .../recording_deletes_influxdb_data_feed.js | 45 ------------------ .../recording_deletes_mongodb_data_feed.js | 45 ------------------ .../recording_deletes_mysql_data_feed.js | 45 ------------------ .../recording_deletes_postgresql_data_feed.js | 45 ------------------ ...ecording_updates_an_azure_blob_datafeed.js | 5 -- .../samples/javascript/README.md | 18 +++---- 28 files changed, 9 insertions(+), 1091 deletions(-) delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_blob_datafeed.json delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_blob_datafeed.json delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_retrieves_an_azure_blob_datafeed.json delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_updates_an_azure_blob_datafeed.json delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_application_insights_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_cosmos_db_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_data_explorer_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_data_lake_storage_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_sql_server_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_table_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_http_request_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_influxdb_data_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_mongodb_data_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_mysql_data_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_postgresql_data_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_application_insights_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_cosmos_db.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_data_explorer_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_data_lake_storage_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_sql_server_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_table_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_http_request_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_influxdb_data_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_mongodb_data_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_mysql_data_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_postgresql_data_feed.js delete mode 100644 sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_updates_an_azure_blob_datafeed.js diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_blob_datafeed.json b/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_blob_datafeed.json deleted file mode 100644 index 92e73ed07cf6..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_blob_datafeed.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/metricsadvisor/v1.0/dataFeeds", - "query": {}, - "requestBody": "{\"dataSourceType\":\"AzureBlob\",\"dataFeedName\":\"js-test-datafeed-160037659588202262\",\"granularityName\":\"Daily\",\"metrics\":[{\"metricName\":\"Metric1\",\"metricDisplayName\":\"Metric1\",\"metricDescription\":\"\"},{\"metricName\":\"Metric2\",\"metricDisplayName\":\"Metric2\",\"metricDescription\":\"\"}],\"dimension\":[{\"dimensionName\":\"Dim1\",\"dimensionDisplayName\":\"Dim1 display\"},{\"dimensionName\":\"Dim2\",\"dimensionDisplayName\":\"Dim2 display\"}],\"dataStartFrom\":\"2020-08-21T00:00:00.000Z\",\"startOffsetInSeconds\":0,\"maxConcurrency\":-1,\"minRetryIntervalInSeconds\":-1,\"stopRetryAfterInSeconds\":-1,\"needRollup\":\"NeedRollup\",\"rollUpMethod\":\"Sum\",\"allUpIdentification\":\"__CUSTOM_SUM__\",\"fillMissingPointType\":\"CustomValue\",\"fillMissingPointValue\":555,\"viewMode\":\"Private\",\"dataSourceParameter\":{\"connectionString\":\"blob_connection_string\",\"container\":\"blob_container\",\"blobTemplate\":\"blob_template\"}}", - "status": 201, - "response": "", - "responseHeaders": { - "apim-request-id": "459ebc6e-4598-4866-b470-fb945d011062", - "content-length": "0", - "date": "Thu, 17 Sep 2020 21:03:14 GMT", - "location": "https://endpoint/metricsadvisor/v1.0/dataFeeds/f3365231-1b66-4535-9f19-459716702d21", - "strict-transport-security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "473", - "x-request-id": "459ebc6e-4598-4866-b470-fb945d011062" - } - }, - { - "method": "GET", - "url": "https://endpoint/metricsadvisor/v1.0/dataFeeds/f3365231-1b66-4535-9f19-459716702d21", - "query": {}, - "requestBody": null, - "status": 200, - "response": "{\"dataFeedId\":\"f3365231-1b66-4535-9f19-459716702d21\",\"dataFeedName\":\"js-test-datafeed-160037659588202262\",\"metrics\":[{\"metricId\":\"86dd56fe-820d-4442-9c29-04e676c070a8\",\"metricName\":\"Metric1\",\"metricDisplayName\":\"Metric1\",\"metricDescription\":\"\"},{\"metricId\":\"42f75659-48d8-4084-8d37-bb05d6f50f6c\",\"metricName\":\"Metric2\",\"metricDisplayName\":\"Metric2\",\"metricDescription\":\"\"}],\"dimension\":[{\"dimensionName\":\"Dim1\",\"dimensionDisplayName\":\"Dim1 display\"},{\"dimensionName\":\"Dim2\",\"dimensionDisplayName\":\"Dim2 display\"}],\"dataStartFrom\":\"2020-08-21T00:00:00Z\",\"dataSourceType\":\"AzureBlob\",\"timestampColumn\":\"\",\"startOffsetInSeconds\":0,\"maxQueryPerMinute\":30.0,\"granularityName\":\"Daily\",\"granularityAmount\":null,\"allUpIdentification\":\"__CUSTOM_SUM__\",\"needRollup\":\"NeedRollup\",\"fillMissingPointType\":\"CustomValue\",\"fillMissingPointValue\":555.0,\"rollUpMethod\":\"Sum\",\"rollUpColumns\":[],\"dataFeedDescription\":\"\",\"stopRetryAfterInSeconds\":-1,\"minRetryIntervalInSeconds\":-1,\"maxConcurrency\":-1,\"viewMode\":\"Private\",\"admins\":[\"yumeng@microsoft.com\"],\"viewers\":[],\"creator\":\"yumeng@microsoft.com\",\"status\":\"Active\",\"createdTime\":\"2020-09-17T21:03:14Z\",\"isAdmin\":true,\"actionLinkTemplate\":\"\",\"dataSourceParameter\":{\"container\":\"blob_container\",\"connectionString\":\"blob_connection_string\",\"blobTemplate\":\"blob_template\"}}", - "responseHeaders": { - "apim-request-id": "730dd2f8-be8d-4498-b5d0-e954d9181cc6", - "content-length": "1678", - "content-type": "application/json; charset=utf-8", - "date": "Thu, 17 Sep 2020 21:03:14 GMT", - "strict-transport-security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "147", - "x-request-id": "730dd2f8-be8d-4498-b5d0-e954d9181cc6" - } - } - ], - "uniqueTestInfo": { - "uniqueName": { - "js-test-datafeed-": "js-test-datafeed-160037659588202262" - }, - "newDate": {} - }, - "hash": "31e53f8deb53c162aacb378d8449f4ac" -} \ No newline at end of file diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_blob_datafeed.json b/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_blob_datafeed.json deleted file mode 100644 index 4e01f878a916..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_blob_datafeed.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "recordings": [ - { - "method": "DELETE", - "url": "https://endpoint/metricsadvisor/v1.0/dataFeeds/f3365231-1b66-4535-9f19-459716702d21", - "query": {}, - "requestBody": null, - "status": 204, - "response": "", - "responseHeaders": { - "apim-request-id": "a96b0ffb-b43c-4cb9-97e5-058bb35de6cc", - "content-length": "0", - "date": "Thu, 17 Sep 2020 21:03:15 GMT", - "strict-transport-security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "288", - "x-request-id": "a96b0ffb-b43c-4cb9-97e5-058bb35de6cc" - } - }, - { - "method": "GET", - "url": "https://endpoint/metricsadvisor/v1.0/dataFeeds/f3365231-1b66-4535-9f19-459716702d21", - "query": {}, - "requestBody": null, - "status": 404, - "response": "{\"code\":\"ERROR_INVALID_PARAMETER\",\"message\":\"datafeedId is invalid.\"}", - "responseHeaders": { - "apim-request-id": "ed95ef28-039a-4121-8f04-44801d608e17", - "content-length": "69", - "content-type": "application/json; charset=utf-8", - "date": "Thu, 17 Sep 2020 21:03:15 GMT", - "strict-transport-security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "50", - "x-request-id": "ed95ef28-039a-4121-8f04-44801d608e17" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "c8f9d4c15395871054aefcdb3821a570" -} \ No newline at end of file diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_retrieves_an_azure_blob_datafeed.json b/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_retrieves_an_azure_blob_datafeed.json deleted file mode 100644 index cd37fb1408c9..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_retrieves_an_azure_blob_datafeed.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "recordings": [ - { - "method": "GET", - "url": "https://endpoint/metricsadvisor/v1.0/dataFeeds/f3365231-1b66-4535-9f19-459716702d21", - "query": {}, - "requestBody": null, - "status": 200, - "response": "{\"dataFeedId\":\"f3365231-1b66-4535-9f19-459716702d21\",\"dataFeedName\":\"js-test-datafeed-160037659588202262\",\"metrics\":[{\"metricId\":\"86dd56fe-820d-4442-9c29-04e676c070a8\",\"metricName\":\"Metric1\",\"metricDisplayName\":\"Metric1\",\"metricDescription\":\"\"},{\"metricId\":\"42f75659-48d8-4084-8d37-bb05d6f50f6c\",\"metricName\":\"Metric2\",\"metricDisplayName\":\"Metric2\",\"metricDescription\":\"\"}],\"dimension\":[{\"dimensionName\":\"Dim1\",\"dimensionDisplayName\":\"Dim1 display\"},{\"dimensionName\":\"Dim2\",\"dimensionDisplayName\":\"Dim2 display\"}],\"dataStartFrom\":\"2020-08-21T00:00:00Z\",\"dataSourceType\":\"AzureBlob\",\"timestampColumn\":\"\",\"startOffsetInSeconds\":0,\"maxQueryPerMinute\":30.0,\"granularityName\":\"Daily\",\"granularityAmount\":null,\"allUpIdentification\":\"__CUSTOM_SUM__\",\"needRollup\":\"NeedRollup\",\"fillMissingPointType\":\"CustomValue\",\"fillMissingPointValue\":555.0,\"rollUpMethod\":\"Sum\",\"rollUpColumns\":[],\"dataFeedDescription\":\"\",\"stopRetryAfterInSeconds\":-1,\"minRetryIntervalInSeconds\":-1,\"maxConcurrency\":-1,\"viewMode\":\"Private\",\"admins\":[\"yumeng@microsoft.com\"],\"viewers\":[],\"creator\":\"yumeng@microsoft.com\",\"status\":\"Active\",\"createdTime\":\"2020-09-17T21:03:14Z\",\"isAdmin\":true,\"actionLinkTemplate\":\"\",\"dataSourceParameter\":{\"container\":\"blob_container\",\"connectionString\":\"blob_connection_string\",\"blobTemplate\":\"blob_template\"}}", - "responseHeaders": { - "apim-request-id": "82f1002d-3e27-4720-8876-d4cce89a6ba5", - "content-length": "1678", - "content-type": "application/json; charset=utf-8", - "date": "Thu, 17 Sep 2020 21:03:15 GMT", - "strict-transport-security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "144", - "x-request-id": "82f1002d-3e27-4720-8876-d4cce89a6ba5" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "f6310a61d78e40e44995d0281a885bbf" -} \ No newline at end of file diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_updates_an_azure_blob_datafeed.json b/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_updates_an_azure_blob_datafeed.json deleted file mode 100644 index 3c6968a40357..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/metricsadvisoradministrationclient_datafeed/recording_updates_an_azure_blob_datafeed.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "ffcfd636e9d87c6ab54c56e48ab7b53f" -} \ No newline at end of file diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_application_insights_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_application_insights_feed.js deleted file mode 100644 index 755da4158ac4..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_application_insights_feed.js +++ /dev/null @@ -1,47 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ec92d199c4ade7f8e92f843f29fca396"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/metricsadvisor/v1.0/dataFeeds', {"dataSourceType":"AzureApplicationInsights","dataFeedName":"js-test-appInsightsFeed-160047174147206584","granularityName":"Daily","metrics":[{"metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00.000Z","startOffsetInSeconds":0,"maxConcurrency":-1,"minRetryIntervalInSeconds":-1,"stopRetryAfterInSeconds":-1,"needRollup":"NeedRollup","rollUpMethod":"Sum","allUpIdentification":"__CUSTOM_SUM__","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"viewMode":"Private","dataSourceParameter":{"azureCloud":"Azure","applicationId":"3706fe8b-98f1-47c7-bf69-b73b6e53274d","apiKey":"fqyh4t71ahmxccoupn2e2bpimgvfyslqgdzcaly0","query":"let gran=60m; let starttime=datetime(@StartTime); let endtime=starttime + gran; requests | where timestamp >= starttime and timestamp < endtime | summarize request_count = count(), duration_avg_ms = avg(duration), duration_95th_ms = percentile(duration, 95), duration_max_ms = max(duration) by resultCode"}}) - .reply(201, "", [ - 'Content-Length', - '0', - 'Location', - 'https://endpoint/metricsadvisor/v1.0/dataFeeds/ed87fb04-2511-47e1-a55a-41e392a38ce0', - 'x-request-id', - '7cdc4fe9-98f0-43c1-a4f0-eba382629081', - 'x-envoy-upstream-service-time', - '395', - 'apim-request-id', - '7cdc4fe9-98f0-43c1-a4f0-eba382629081', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:16 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/ed87fb04-2511-47e1-a55a-41e392a38ce0') - .reply(200, {"dataFeedId":"ed87fb04-2511-47e1-a55a-41e392a38ce0","dataFeedName":"js-test-appInsightsFeed-160047174147206584","metrics":[{"metricId":"7828f8b2-09a0-487b-808b-aeaf4ba0fd42","metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricId":"1f844f36-96a9-4078-be60-37e31413408f","metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00Z","dataSourceType":"AzureApplicationInsights","timestampColumn":"","startOffsetInSeconds":0,"maxQueryPerMinute":30,"granularityName":"Daily","granularityAmount":null,"allUpIdentification":"__CUSTOM_SUM__","needRollup":"NeedRollup","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"rollUpMethod":"Sum","rollUpColumns":[],"dataFeedDescription":"","stopRetryAfterInSeconds":-1,"minRetryIntervalInSeconds":-1,"maxConcurrency":-1,"viewMode":"Private","admins":["yumeng@microsoft.com"],"viewers":[],"creator":"yumeng@microsoft.com","status":"Active","createdTime":"2020-09-18T23:29:16Z","isAdmin":true,"actionLinkTemplate":"","dataSourceParameter":{"apiKey":"fqyh4t71ahmxccoupn2e2bpimgvfyslqgdzcaly0","query":"let gran=60m; let starttime=datetime(@StartTime); let endtime=starttime + gran; requests | where timestamp >= starttime and timestamp < 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":"3706fe8b-98f1-47c7-bf69-b73b6e53274d"}}, [ - 'Content-Length', - '1689', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '916548ac-9cff-44ca-ac79-af1acf29a964', - 'x-envoy-upstream-service-time', - '131', - 'apim-request-id', - '916548ac-9cff-44ca-ac79-af1acf29a964', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:16 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_cosmos_db_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_cosmos_db_feed.js deleted file mode 100644 index 11a739d82ef0..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_cosmos_db_feed.js +++ /dev/null @@ -1,47 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "a8710b5da20f47e300e40bc429789016"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/metricsadvisor/v1.0/dataFeeds', {"dataSourceType":"AzureCosmosDB","dataFeedName":"js-test-cosmosFeed-160047174147209442","granularityName":"Daily","metrics":[{"metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00.000Z","startOffsetInSeconds":0,"maxConcurrency":-1,"minRetryIntervalInSeconds":-1,"stopRetryAfterInSeconds":-1,"needRollup":"NeedRollup","rollUpMethod":"Sum","allUpIdentification":"__CUSTOM_SUM__","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"viewMode":"Private","dataSourceParameter":{"connectionString":"Server=server.example.net;Encrypt=True;","sqlQuery":"let starttime=datetime(@StartTime); let endtime=starttime","database":"sample","collectionId":"sample"}}) - .reply(201, "", [ - 'Content-Length', - '0', - 'Location', - 'https://endpoint/metricsadvisor/v1.0/dataFeeds/7db2c68b-8325-4229-85e1-911837087e4f', - 'x-request-id', - 'dcd29893-a56c-4a42-9f1f-030d13115f58', - 'x-envoy-upstream-service-time', - '368', - 'apim-request-id', - 'dcd29893-a56c-4a42-9f1f-030d13115f58', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:22 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/7db2c68b-8325-4229-85e1-911837087e4f') - .reply(200, {"dataFeedId":"7db2c68b-8325-4229-85e1-911837087e4f","dataFeedName":"js-test-cosmosFeed-160047174147209442","metrics":[{"metricId":"02a05da7-77c6-469e-90ac-2bd1db51ee12","metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricId":"74207052-613f-45ad-93cf-59f68060ce44","metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00Z","dataSourceType":"AzureCosmosDB","timestampColumn":"","startOffsetInSeconds":0,"maxQueryPerMinute":30,"granularityName":"Daily","granularityAmount":null,"allUpIdentification":"__CUSTOM_SUM__","needRollup":"NeedRollup","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"rollUpMethod":"Sum","rollUpColumns":[],"dataFeedDescription":"","stopRetryAfterInSeconds":-1,"minRetryIntervalInSeconds":-1,"maxConcurrency":-1,"viewMode":"Private","admins":["yumeng@microsoft.com"],"viewers":[],"creator":"yumeng@microsoft.com","status":"Active","createdTime":"2020-09-18T23:29:22Z","isAdmin":true,"actionLinkTemplate":"","dataSourceParameter":{"connectionString":"Server=server.example.net;Encrypt=True;","database":"sample","sqlQuery":"let starttime=datetime(@StartTime); let endtime=starttime","collectionId":"sample"}}, [ - 'Content-Length', - '1382', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '96159e52-539f-43eb-b0c2-f44b952a9909', - 'x-envoy-upstream-service-time', - '127', - 'apim-request-id', - '96159e52-539f-43eb-b0c2-f44b952a9909', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:23 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_data_explorer_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_data_explorer_feed.js deleted file mode 100644 index 095f1df88d09..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_data_explorer_feed.js +++ /dev/null @@ -1,47 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "5dbbc6fb1585472d731178b89744c22e"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/metricsadvisor/v1.0/dataFeeds', {"dataSourceType":"AzureDataExplorer","dataFeedName":"js-test-dataExplorerFeed-160047174147208785","granularityName":"Daily","metrics":[{"metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00.000Z","startOffsetInSeconds":0,"maxConcurrency":-1,"minRetryIntervalInSeconds":-1,"stopRetryAfterInSeconds":-1,"needRollup":"NeedRollup","rollUpMethod":"Sum","allUpIdentification":"__CUSTOM_SUM__","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"viewMode":"Private","dataSourceParameter":{"connectionString":"Server=server.example.net;Encrypt=True;","query":"let starttime=datetime(@StartTime); let endtime=starttime"}}) - .reply(201, "", [ - 'Content-Length', - '0', - 'Location', - 'https://endpoint/metricsadvisor/v1.0/dataFeeds/3606f81a-f933-4014-98bb-d4c2f1adbd3f', - 'x-request-id', - 'af470886-a8ab-4bde-a315-1930c0e19246', - 'x-envoy-upstream-service-time', - '447', - 'apim-request-id', - 'af470886-a8ab-4bde-a315-1930c0e19246', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:24 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/3606f81a-f933-4014-98bb-d4c2f1adbd3f') - .reply(200, {"dataFeedId":"3606f81a-f933-4014-98bb-d4c2f1adbd3f","dataFeedName":"js-test-dataExplorerFeed-160047174147208785","metrics":[{"metricId":"4b17ee92-9c39-4381-bb27-f44a497f6d55","metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricId":"33df0929-d67f-4aa0-abc8-c7f1bf0501ab","metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00Z","dataSourceType":"AzureDataExplorer","timestampColumn":"","startOffsetInSeconds":0,"maxQueryPerMinute":30,"granularityName":"Daily","granularityAmount":null,"allUpIdentification":"__CUSTOM_SUM__","needRollup":"NeedRollup","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"rollUpMethod":"Sum","rollUpColumns":[],"dataFeedDescription":"","stopRetryAfterInSeconds":-1,"minRetryIntervalInSeconds":-1,"maxConcurrency":-1,"viewMode":"Private","admins":["yumeng@microsoft.com"],"viewers":[],"creator":"yumeng@microsoft.com","status":"Active","createdTime":"2020-09-18T23:29:25Z","isAdmin":true,"actionLinkTemplate":"","dataSourceParameter":{"connectionString":"Server=server.example.net;Encrypt=True;","query":"let starttime=datetime(@StartTime); let endtime=starttime"}}, [ - 'Content-Length', - '1345', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '93c8d07f-03b6-45ca-9fb8-eab493b19ef6', - 'x-envoy-upstream-service-time', - '129', - 'apim-request-id', - '93c8d07f-03b6-45ca-9fb8-eab493b19ef6', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:25 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_data_lake_storage_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_data_lake_storage_feed.js deleted file mode 100644 index 1ce811635b67..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_data_lake_storage_feed.js +++ /dev/null @@ -1,26 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "b976c4310f1f407a8c3e28736c499bd5"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/metricsadvisor/v1.0/dataFeeds', {"dataSourceType":"AzureDataLakeStorageGen2","dataFeedName":"js-test-dataLakeStorageGenFeed-160045525950301453","granularityName":"Daily","metrics":[{"metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00.000Z","startOffsetInSeconds":0,"maxConcurrency":-1,"minRetryIntervalInSeconds":-1,"stopRetryAfterInSeconds":-1,"needRollup":"NeedRollup","rollUpMethod":"Sum","allUpIdentification":"__CUSTOM_SUM__","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"viewMode":"Private","dataSourceParameter":{"accountName":"storage","accountKey":"storageKey","fileSystemName":"data-lake-file","directoryTemplate":"%Y/%m/%d","fileTemplate":"template.json"}}) - .reply(400, {"code":"BadRequest","message":"JSON parse error: Cannot deserialize value of type `com.microsoft.powerai.metadata3p.adapter.meta.v1.apiContract.dataSource.DataSourceTypeV1` from String \"AzureDataLakeStorageGen2\": value not one of declared Enum instance names: [SqlServer, MySql, PostgreSql, HttpRequest, AzureDataExplorer, AzureEventHubs, InfluxDB, AzureTable, MongoDB, AzureCosmosDB, AzureApplicationInsights, AzureBlob]; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `com.microsoft.powerai.metadata3p.adapter.meta.v1.apiContract.dataSource.DataSourceTypeV1` from String \"AzureDataLakeStorageGen2\": value not one of declared Enum instance names: [SqlServer, MySql, PostgreSql, HttpRequest, AzureDataExplorer, AzureEventHubs, InfluxDB, AzureTable, MongoDB, AzureCosmosDB, AzureApplicationInsights, AzureBlob]\n at [Source: (PushbackInputStream); line: 1, column: 19] (through reference chain: com.microsoft.powerai.metadata3p.adapter.meta.v1.apiContract.DatafeedDetailV1[\"dataSourceType\"])"}, [ - 'Content-Length', - '1064', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - 'c10adf5e-e809-4a97-8375-bf05acc6de70', - 'x-envoy-upstream-service-time', - '54', - 'apim-request-id', - 'c10adf5e-e809-4a97-8375-bf05acc6de70', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 18:54:35 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_sql_server_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_sql_server_feed.js deleted file mode 100644 index 9b8955935b4c..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_sql_server_feed.js +++ /dev/null @@ -1,47 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "b147f26ee72d1a02c90a2e1332a62580"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/metricsadvisor/v1.0/dataFeeds', {"dataSourceType":"SqlServer","dataFeedName":"js-test-sqlServerFeed-160047174147209019","granularityName":"Daily","metrics":[{"metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00.000Z","startOffsetInSeconds":0,"maxConcurrency":-1,"minRetryIntervalInSeconds":-1,"stopRetryAfterInSeconds":-1,"needRollup":"NeedRollup","rollUpMethod":"Sum","allUpIdentification":"__CUSTOM_SUM__","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"viewMode":"Private","dataSourceParameter":{"connectionString":"Server=ad-sample.database.windows.net,1433;Initial Catalog=ad-sample;Persist Security Info=False;User ID=adreadonly;Password=Readonly@2020;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;","query":"select * from blob_container2 where Timestamp = @StartTime"}}) - .reply(201, "", [ - 'Content-Length', - '0', - 'Location', - 'https://endpoint/metricsadvisor/v1.0/dataFeeds/d198fec8-53fe-47ca-93a3-421c8c1adcbc', - 'x-request-id', - '1d6e78f1-fb05-4396-b5ad-c92a4e074169', - 'x-envoy-upstream-service-time', - '920', - 'apim-request-id', - '1d6e78f1-fb05-4396-b5ad-c92a4e074169', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:20 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/d198fec8-53fe-47ca-93a3-421c8c1adcbc') - .reply(200, {"dataFeedId":"d198fec8-53fe-47ca-93a3-421c8c1adcbc","dataFeedName":"js-test-sqlServerFeed-160047174147209019","metrics":[{"metricId":"138415a1-3ee9-4e39-a400-da0529b51fd2","metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricId":"38ef8aa3-8ab7-4e76-900c-6bb7ef361fcc","metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00Z","dataSourceType":"SqlServer","timestampColumn":"","startOffsetInSeconds":0,"maxQueryPerMinute":30,"granularityName":"Daily","granularityAmount":null,"allUpIdentification":"__CUSTOM_SUM__","needRollup":"NeedRollup","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"rollUpMethod":"Sum","rollUpColumns":[],"dataFeedDescription":"","stopRetryAfterInSeconds":-1,"minRetryIntervalInSeconds":-1,"maxConcurrency":-1,"viewMode":"Private","admins":["yumeng@microsoft.com"],"viewers":[],"creator":"yumeng@microsoft.com","status":"Active","createdTime":"2020-09-18T23:29:20Z","isAdmin":true,"actionLinkTemplate":"","dataSourceParameter":{"connectionString":"Server=ad-sample.database.windows.net,1433;Initial Catalog=ad-sample;Persist Security Info=False;User ID=adreadonly;Password=Readonly@2020;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;","query":"select * from blob_container2 where Timestamp = @StartTime"}}, [ - 'Content-Length', - '1523', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '26c4dd5e-1e67-4dd9-862e-a12ffa96a46e', - 'x-envoy-upstream-service-time', - '135', - 'apim-request-id', - '26c4dd5e-1e67-4dd9-862e-a12ffa96a46e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:20 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_table_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_table_feed.js deleted file mode 100644 index d638cba336c5..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_an_azure_table_feed.js +++ /dev/null @@ -1,47 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "37537857c92816f6fd57ab9dc52f864b"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/metricsadvisor/v1.0/dataFeeds', {"dataSourceType":"AzureTable","dataFeedName":"js-test-tableFeed-160047174147204420","granularityName":"Daily","metrics":[{"metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00.000Z","startOffsetInSeconds":0,"maxConcurrency":-1,"minRetryIntervalInSeconds":-1,"stopRetryAfterInSeconds":-1,"needRollup":"NeedRollup","rollUpMethod":"Sum","allUpIdentification":"__CUSTOM_SUM__","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"viewMode":"Private","dataSourceParameter":{"connectionString":"https://table.example.net","table":"table-name","query":"partition-key eq @start-time"}}) - .reply(201, "", [ - 'Content-Length', - '0', - 'Location', - 'https://endpoint/metricsadvisor/v1.0/dataFeeds/b009aaf4-9c90-4641-bb36-6ac5b0894f27', - 'x-request-id', - '22195ab9-455b-4363-84c8-562f77313af2', - 'x-envoy-upstream-service-time', - '360', - 'apim-request-id', - '22195ab9-455b-4363-84c8-562f77313af2', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:28 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/b009aaf4-9c90-4641-bb36-6ac5b0894f27') - .reply(200, {"dataFeedId":"b009aaf4-9c90-4641-bb36-6ac5b0894f27","dataFeedName":"js-test-tableFeed-160047174147204420","metrics":[{"metricId":"5b05d668-461c-4889-923f-6e06dd080f76","metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricId":"5c7922df-4bc4-4f90-9b6f-ea7d8fe628a5","metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00Z","dataSourceType":"AzureTable","timestampColumn":"","startOffsetInSeconds":0,"maxQueryPerMinute":30,"granularityName":"Daily","granularityAmount":null,"allUpIdentification":"__CUSTOM_SUM__","needRollup":"NeedRollup","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"rollUpMethod":"Sum","rollUpColumns":[],"dataFeedDescription":"","stopRetryAfterInSeconds":-1,"minRetryIntervalInSeconds":-1,"maxConcurrency":-1,"viewMode":"Private","admins":["yumeng@microsoft.com"],"viewers":[],"creator":"yumeng@microsoft.com","status":"Active","createdTime":"2020-09-18T23:29:28Z","isAdmin":true,"actionLinkTemplate":"","dataSourceParameter":{"connectionString":"https://table.example.net","query":"partition-key eq @start-time","table":"table-name"}}, [ - 'Content-Length', - '1309', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - 'b13acc0e-9583-4482-b3b0-f4706b936368', - 'x-envoy-upstream-service-time', - '130', - 'apim-request-id', - 'b13acc0e-9583-4482-b3b0-f4706b936368', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:28 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_http_request_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_http_request_feed.js deleted file mode 100644 index 93c96e50c942..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_http_request_feed.js +++ /dev/null @@ -1,47 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ad3fde7f6fc6306775870996003056f0"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/metricsadvisor/v1.0/dataFeeds', {"dataSourceType":"HttpRequest","dataFeedName":"js-test-httpRequestFeed-160047174147207115","granularityName":"Daily","metrics":[{"metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00.000Z","startOffsetInSeconds":0,"maxConcurrency":-1,"minRetryIntervalInSeconds":-1,"stopRetryAfterInSeconds":-1,"needRollup":"NeedRollup","rollUpMethod":"Sum","allUpIdentification":"__CUSTOM_SUM__","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"viewMode":"Private","dataSourceParameter":{"url":"HttpsUrl","httpHeader":"header","httpMethod":"POST","payload":"{start-time: @start-time}"}}) - .reply(201, "", [ - 'Content-Length', - '0', - 'Location', - 'https://endpoint/metricsadvisor/v1.0/dataFeeds/3921e1b1-1269-49e5-904b-7d525e380d3c', - 'x-request-id', - 'c7d1e522-debe-493d-8513-27aac45a8920', - 'x-envoy-upstream-service-time', - '418', - 'apim-request-id', - 'c7d1e522-debe-493d-8513-27aac45a8920', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:31 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/3921e1b1-1269-49e5-904b-7d525e380d3c') - .reply(200, {"dataFeedId":"3921e1b1-1269-49e5-904b-7d525e380d3c","dataFeedName":"js-test-httpRequestFeed-160047174147207115","metrics":[{"metricId":"fd7ac5f5-e24b-4830-a4b3-92b1afc5745b","metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricId":"8b88d212-d558-4eab-a6b1-5a4505d463f7","metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00Z","dataSourceType":"HttpRequest","timestampColumn":"","startOffsetInSeconds":0,"maxQueryPerMinute":30,"granularityName":"Daily","granularityAmount":null,"allUpIdentification":"__CUSTOM_SUM__","needRollup":"NeedRollup","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"rollUpMethod":"Sum","rollUpColumns":[],"dataFeedDescription":"","stopRetryAfterInSeconds":-1,"minRetryIntervalInSeconds":-1,"maxConcurrency":-1,"viewMode":"Private","admins":["yumeng@microsoft.com"],"viewers":[],"creator":"yumeng@microsoft.com","status":"Active","createdTime":"2020-09-18T23:29:30Z","isAdmin":true,"actionLinkTemplate":"","dataSourceParameter":{"httpHeader":"header","payload":"{start-time: @start-time}","httpMethod":"POST","url":"HttpsUrl"}}, [ - 'Content-Length', - '1306', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '37454761-410a-4c85-914e-d38190e7a3ca', - 'x-envoy-upstream-service-time', - '125', - 'apim-request-id', - '37454761-410a-4c85-914e-d38190e7a3ca', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:31 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_influxdb_data_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_influxdb_data_feed.js deleted file mode 100644 index 5482dcd78130..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_influxdb_data_feed.js +++ /dev/null @@ -1,47 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e6ae5e9743b1262d89f9a692b06959fa"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/metricsadvisor/v1.0/dataFeeds', {"dataSourceType":"InfluxDB","dataFeedName":"js-test-influxdbFeed-160047174147203224","granularityName":"Daily","metrics":[{"metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00.000Z","startOffsetInSeconds":0,"maxConcurrency":-1,"minRetryIntervalInSeconds":-1,"stopRetryAfterInSeconds":-1,"needRollup":"NeedRollup","rollUpMethod":"Sum","allUpIdentification":"__CUSTOM_SUM__","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"viewMode":"Private","dataSourceParameter":{"connectionString":"https://connect-to-influxdb","database":"data-feed-database","userName":"user","password":"pwd1","query":"partition-key eq @start-time"}}) - .reply(201, "", [ - 'Content-Length', - '0', - 'Location', - 'https://endpoint/metricsadvisor/v1.0/dataFeeds/1cd3c86d-8a59-4fef-b26e-e7953dd69a30', - 'x-request-id', - 'd0cf8f9a-16ad-489b-b405-42e3674133f4', - 'x-envoy-upstream-service-time', - '343', - 'apim-request-id', - 'd0cf8f9a-16ad-489b-b405-42e3674133f4', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:32 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/1cd3c86d-8a59-4fef-b26e-e7953dd69a30') - .reply(200, {"dataFeedId":"1cd3c86d-8a59-4fef-b26e-e7953dd69a30","dataFeedName":"js-test-influxdbFeed-160047174147203224","metrics":[{"metricId":"cb383d96-fa8b-42bd-a671-d2ad533f2887","metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricId":"bf523782-0845-434b-bf75-f4626e248588","metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00Z","dataSourceType":"InfluxDB","timestampColumn":"","startOffsetInSeconds":0,"maxQueryPerMinute":30,"granularityName":"Daily","granularityAmount":null,"allUpIdentification":"__CUSTOM_SUM__","needRollup":"NeedRollup","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"rollUpMethod":"Sum","rollUpColumns":[],"dataFeedDescription":"","stopRetryAfterInSeconds":-1,"minRetryIntervalInSeconds":-1,"maxConcurrency":-1,"viewMode":"Private","admins":["yumeng@microsoft.com"],"viewers":[],"creator":"yumeng@microsoft.com","status":"Active","createdTime":"2020-09-18T23:29:33Z","isAdmin":true,"actionLinkTemplate":"","dataSourceParameter":{"connectionString":"https://connect-to-influxdb","password":"pwd1","database":"data-feed-database","query":"partition-key eq @start-time","userName":"user"}}, [ - 'Content-Length', - '1359', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '2ca9dd87-e35d-4664-89fa-94818d32c550', - 'x-envoy-upstream-service-time', - '129', - 'apim-request-id', - '2ca9dd87-e35d-4664-89fa-94818d32c550', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:33 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_mongodb_data_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_mongodb_data_feed.js deleted file mode 100644 index 661e9825eb39..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_mongodb_data_feed.js +++ /dev/null @@ -1,47 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "30517847d1a476644067e3b00136c324"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/metricsadvisor/v1.0/dataFeeds', {"dataSourceType":"MongoDB","dataFeedName":"js-test-mongoDbFeed-160047174147209953","granularityName":"Daily","metrics":[{"metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00.000Z","startOffsetInSeconds":0,"maxConcurrency":-1,"minRetryIntervalInSeconds":-1,"stopRetryAfterInSeconds":-1,"needRollup":"NeedRollup","rollUpMethod":"Sum","allUpIdentification":"__CUSTOM_SUM__","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"viewMode":"Private","dataSourceParameter":{"connectionString":"https://connect-to-mongodb","database":"data-feed-mongodb","command":"{ find: mongodb,filter: { Time: @StartTime },batch: 200 }"}}) - .reply(201, "", [ - 'Content-Length', - '0', - 'Location', - 'https://endpoint/metricsadvisor/v1.0/dataFeeds/83977ee0-926c-49b5-a9d7-4d9000c1ca04', - 'x-request-id', - '44483bde-a095-41d1-b8d2-6822796a8831', - 'x-envoy-upstream-service-time', - '539', - 'apim-request-id', - '44483bde-a095-41d1-b8d2-6822796a8831', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:36 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/83977ee0-926c-49b5-a9d7-4d9000c1ca04') - .reply(200, {"dataFeedId":"83977ee0-926c-49b5-a9d7-4d9000c1ca04","dataFeedName":"js-test-mongoDbFeed-160047174147209953","metrics":[{"metricId":"cebec0ab-a27b-4751-b19b-2c33636ac756","metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricId":"29efba52-260f-4ec9-89d5-b0526889511c","metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00Z","dataSourceType":"MongoDB","timestampColumn":"","startOffsetInSeconds":0,"maxQueryPerMinute":30,"granularityName":"Daily","granularityAmount":null,"allUpIdentification":"__CUSTOM_SUM__","needRollup":"NeedRollup","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"rollUpMethod":"Sum","rollUpColumns":[],"dataFeedDescription":"","stopRetryAfterInSeconds":-1,"minRetryIntervalInSeconds":-1,"maxConcurrency":-1,"viewMode":"Private","admins":["yumeng@microsoft.com"],"viewers":[],"creator":"yumeng@microsoft.com","status":"Active","createdTime":"2020-09-18T23:29:36Z","isAdmin":true,"actionLinkTemplate":"","dataSourceParameter":{"connectionString":"https://connect-to-mongodb","database":"data-feed-mongodb","command":"{ find: mongodb,filter: { Time: @StartTime },batch: 200 }"}}, [ - 'Content-Length', - '1350', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '1132fb25-0758-4f23-8749-c5bfc89788c8', - 'x-envoy-upstream-service-time', - '143', - 'apim-request-id', - '1132fb25-0758-4f23-8749-c5bfc89788c8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:36 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_mysql_data_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_mysql_data_feed.js deleted file mode 100644 index 28691986333f..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_mysql_data_feed.js +++ /dev/null @@ -1,47 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ec41d1d025b2eb7645e5be26feb7a97d"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/metricsadvisor/v1.0/dataFeeds', {"dataSourceType":"MySql","dataFeedName":"js-test-mySqlFeed-160047174147205605","granularityName":"Daily","metrics":[{"metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00.000Z","startOffsetInSeconds":0,"maxConcurrency":-1,"minRetryIntervalInSeconds":-1,"stopRetryAfterInSeconds":-1,"needRollup":"NeedRollup","rollUpMethod":"Sum","allUpIdentification":"__CUSTOM_SUM__","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"viewMode":"Private","dataSourceParameter":{"connectionString":"https://connect-to-mysql","query":"{ find: mongodb,filter: { Time: @StartTime },batch: 200 }"}}) - .reply(201, "", [ - 'Content-Length', - '0', - 'Location', - 'https://endpoint/metricsadvisor/v1.0/dataFeeds/e18ddf78-a00c-46e9-a1b2-31ace9c83b67', - 'x-request-id', - '2fb111ba-a0b8-4c45-be1c-29a00fff43c5', - 'x-envoy-upstream-service-time', - '361', - 'apim-request-id', - '2fb111ba-a0b8-4c45-be1c-29a00fff43c5', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:38 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/e18ddf78-a00c-46e9-a1b2-31ace9c83b67') - .reply(200, {"dataFeedId":"e18ddf78-a00c-46e9-a1b2-31ace9c83b67","dataFeedName":"js-test-mySqlFeed-160047174147205605","metrics":[{"metricId":"a249e0eb-5e5a-40f1-a498-ba1f48f94892","metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricId":"4b1886de-ba36-4b45-a8bc-d0c60a6d32da","metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00Z","dataSourceType":"MySql","timestampColumn":"","startOffsetInSeconds":0,"maxQueryPerMinute":30,"granularityName":"Daily","granularityAmount":null,"allUpIdentification":"__CUSTOM_SUM__","needRollup":"NeedRollup","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"rollUpMethod":"Sum","rollUpColumns":[],"dataFeedDescription":"","stopRetryAfterInSeconds":-1,"minRetryIntervalInSeconds":-1,"maxConcurrency":-1,"viewMode":"Private","admins":["yumeng@microsoft.com"],"viewers":[],"creator":"yumeng@microsoft.com","status":"Active","createdTime":"2020-09-18T23:29:39Z","isAdmin":true,"actionLinkTemplate":"","dataSourceParameter":{"connectionString":"https://connect-to-mysql","query":"{ find: mongodb,filter: { Time: @StartTime },batch: 200 }"}}, [ - 'Content-Length', - '1311', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '711f0518-ac69-4b17-88f4-f7dfbc9073be', - 'x-envoy-upstream-service-time', - '126', - 'apim-request-id', - '711f0518-ac69-4b17-88f4-f7dfbc9073be', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:38 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_postgresql_data_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_postgresql_data_feed.js deleted file mode 100644 index 5eb44fc23771..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_creates_postgresql_data_feed.js +++ /dev/null @@ -1,47 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "913fdcc1b288b8bb3a81fedc59fe103f"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/metricsadvisor/v1.0/dataFeeds', {"dataSourceType":"PostgreSql","dataFeedName":"js-test-postgreSqlFeed-160047174147200466","granularityName":"Daily","metrics":[{"metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00.000Z","startOffsetInSeconds":0,"maxConcurrency":-1,"minRetryIntervalInSeconds":-1,"stopRetryAfterInSeconds":-1,"needRollup":"NeedRollup","rollUpMethod":"Sum","allUpIdentification":"__CUSTOM_SUM__","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"viewMode":"Private","dataSourceParameter":{"connectionString":"https://connect-to-postgresql","query":"{ find: postgresql,filter: { Time: @StartTime },batch: 200 }"}}) - .reply(201, "", [ - 'Content-Length', - '0', - 'Location', - 'https://endpoint/metricsadvisor/v1.0/dataFeeds/4ec30e05-9607-47dd-9742-90b3ba302123', - 'x-request-id', - '0b225c61-f25e-4b35-82ee-33761e63a2d0', - 'x-envoy-upstream-service-time', - '794', - 'apim-request-id', - '0b225c61-f25e-4b35-82ee-33761e63a2d0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:42 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/4ec30e05-9607-47dd-9742-90b3ba302123') - .reply(200, {"dataFeedId":"4ec30e05-9607-47dd-9742-90b3ba302123","dataFeedName":"js-test-postgreSqlFeed-160047174147200466","metrics":[{"metricId":"01ebe982-bc89-4956-be16-d8d4a15131da","metricName":"Metric1","metricDisplayName":"Metric1","metricDescription":""},{"metricId":"a5c8708b-382e-4e7a-a0f1-243f2703ed1b","metricName":"Metric2","metricDisplayName":"Metric2","metricDescription":""}],"dimension":[{"dimensionName":"Dim1","dimensionDisplayName":"Dim1 display"},{"dimensionName":"Dim2","dimensionDisplayName":"Dim2 display"}],"dataStartFrom":"2020-08-21T00:00:00Z","dataSourceType":"PostgreSql","timestampColumn":"","startOffsetInSeconds":0,"maxQueryPerMinute":30,"granularityName":"Daily","granularityAmount":null,"allUpIdentification":"__CUSTOM_SUM__","needRollup":"NeedRollup","fillMissingPointType":"CustomValue","fillMissingPointValue":555,"rollUpMethod":"Sum","rollUpColumns":[],"dataFeedDescription":"","stopRetryAfterInSeconds":-1,"minRetryIntervalInSeconds":-1,"maxConcurrency":-1,"viewMode":"Private","admins":["yumeng@microsoft.com"],"viewers":[],"creator":"yumeng@microsoft.com","status":"Active","createdTime":"2020-09-18T23:29:42Z","isAdmin":true,"actionLinkTemplate":"","dataSourceParameter":{"connectionString":"https://connect-to-postgresql","query":"{ find: postgresql,filter: { Time: @StartTime },batch: 200 }"}}, [ - 'Content-Length', - '1329', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '4a82dc13-607f-44bf-aa6c-a48446da26d4', - 'x-envoy-upstream-service-time', - '128', - 'apim-request-id', - '4a82dc13-607f-44bf-aa6c-a48446da26d4', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:42 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_application_insights_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_application_insights_feed.js deleted file mode 100644 index 5c08e53ea552..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_application_insights_feed.js +++ /dev/null @@ -1,45 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "1a22061aca6ef0a4128b191f0d23256f"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/metricsadvisor/v1.0/dataFeeds/ed87fb04-2511-47e1-a55a-41e392a38ce0') - .reply(204, "", [ - 'Content-Length', - '0', - 'x-request-id', - '9c751142-344d-4b50-86b5-34571d436999', - 'x-envoy-upstream-service-time', - '281', - 'apim-request-id', - '9c751142-344d-4b50-86b5-34571d436999', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:17 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/ed87fb04-2511-47e1-a55a-41e392a38ce0') - .reply(404, {"code":"ERROR_INVALID_PARAMETER","message":"datafeedId is invalid."}, [ - 'Content-Length', - '69', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '1f7ff440-cc52-4ae4-8acc-3719c2698813', - 'x-envoy-upstream-service-time', - '47', - 'apim-request-id', - '1f7ff440-cc52-4ae4-8acc-3719c2698813', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:17 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_cosmos_db.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_cosmos_db.js deleted file mode 100644 index cf7f6b1898c1..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_cosmos_db.js +++ /dev/null @@ -1,45 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "c982a457b9fd8ab567248e3f4ff198b5"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/metricsadvisor/v1.0/dataFeeds/7db2c68b-8325-4229-85e1-911837087e4f') - .reply(204, "", [ - 'Content-Length', - '0', - 'x-request-id', - '2217e6a3-86a2-4534-8e56-e135e2328ad4', - 'x-envoy-upstream-service-time', - '282', - 'apim-request-id', - '2217e6a3-86a2-4534-8e56-e135e2328ad4', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:23 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/7db2c68b-8325-4229-85e1-911837087e4f') - .reply(404, {"code":"ERROR_INVALID_PARAMETER","message":"datafeedId is invalid."}, [ - 'Content-Length', - '69', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '584e8ab1-b095-4d68-9c26-6a97a678acbe', - 'x-envoy-upstream-service-time', - '41', - 'apim-request-id', - '584e8ab1-b095-4d68-9c26-6a97a678acbe', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:24 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_data_explorer_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_data_explorer_feed.js deleted file mode 100644 index 1593ef29c3fc..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_data_explorer_feed.js +++ /dev/null @@ -1,45 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ade9ff173ac49d1648fabd720f0a048d"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/metricsadvisor/v1.0/dataFeeds/3606f81a-f933-4014-98bb-d4c2f1adbd3f') - .reply(204, "", [ - 'Content-Length', - '0', - 'x-request-id', - 'ce82523d-8338-4227-a2ac-28225e99d20f', - 'x-envoy-upstream-service-time', - '275', - 'apim-request-id', - 'ce82523d-8338-4227-a2ac-28225e99d20f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:26 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/3606f81a-f933-4014-98bb-d4c2f1adbd3f') - .reply(404, {"code":"ERROR_INVALID_PARAMETER","message":"datafeedId is invalid."}, [ - 'Content-Length', - '69', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - 'd1bded5a-abe6-4149-bdd3-52b2657cd8bb', - 'x-envoy-upstream-service-time', - '43', - 'apim-request-id', - 'd1bded5a-abe6-4149-bdd3-52b2657cd8bb', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:26 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_data_lake_storage_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_data_lake_storage_feed.js deleted file mode 100644 index db53e4a009e0..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_data_lake_storage_feed.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "034000dd5162a3f0d316f2180ea1d039"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_sql_server_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_sql_server_feed.js deleted file mode 100644 index 98e17d45264d..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_sql_server_feed.js +++ /dev/null @@ -1,45 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "1c9c6f5ddf343a9d58faf78136ec1f80"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/metricsadvisor/v1.0/dataFeeds/d198fec8-53fe-47ca-93a3-421c8c1adcbc') - .reply(204, "", [ - 'Content-Length', - '0', - 'x-request-id', - 'a91fdbe1-8d3c-4c84-becc-4767b568f75f', - 'x-envoy-upstream-service-time', - '278', - 'apim-request-id', - 'a91fdbe1-8d3c-4c84-becc-4767b568f75f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:20 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/d198fec8-53fe-47ca-93a3-421c8c1adcbc') - .reply(404, {"code":"ERROR_INVALID_PARAMETER","message":"datafeedId is invalid."}, [ - 'Content-Length', - '69', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - 'ee3e226f-e8e2-48ab-a136-05df91e18ebf', - 'x-envoy-upstream-service-time', - '46', - 'apim-request-id', - 'ee3e226f-e8e2-48ab-a136-05df91e18ebf', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:20 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_table_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_table_feed.js deleted file mode 100644 index c095c0ba57bc..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_an_azure_table_feed.js +++ /dev/null @@ -1,45 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "aa09f45dd3cb11b51d28b0007812a430"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/metricsadvisor/v1.0/dataFeeds/b009aaf4-9c90-4641-bb36-6ac5b0894f27') - .reply(204, "", [ - 'Content-Length', - '0', - 'x-request-id', - 'b6d1cd9f-aae5-4060-86e5-4800fe355343', - 'x-envoy-upstream-service-time', - '278', - 'apim-request-id', - 'b6d1cd9f-aae5-4060-86e5-4800fe355343', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:28 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/b009aaf4-9c90-4641-bb36-6ac5b0894f27') - .reply(404, {"code":"ERROR_INVALID_PARAMETER","message":"datafeedId is invalid."}, [ - 'Content-Length', - '69', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '17033ebd-fbfa-46fd-8c63-cae3a5e39741', - 'x-envoy-upstream-service-time', - '38', - 'apim-request-id', - '17033ebd-fbfa-46fd-8c63-cae3a5e39741', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:29 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_http_request_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_http_request_feed.js deleted file mode 100644 index eb16b4e0d5e6..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_http_request_feed.js +++ /dev/null @@ -1,45 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "aef32609bad8050faaf3949b7d010235"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/metricsadvisor/v1.0/dataFeeds/3921e1b1-1269-49e5-904b-7d525e380d3c') - .reply(204, "", [ - 'Content-Length', - '0', - 'x-request-id', - '12ccb407-5969-4e00-9158-df0c9d0fec03', - 'x-envoy-upstream-service-time', - '271', - 'apim-request-id', - '12ccb407-5969-4e00-9158-df0c9d0fec03', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:31 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/3921e1b1-1269-49e5-904b-7d525e380d3c') - .reply(404, {"code":"ERROR_INVALID_PARAMETER","message":"datafeedId is invalid."}, [ - 'Content-Length', - '69', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '2be1f988-e8be-4beb-911e-c1ea6f72d9f6', - 'x-envoy-upstream-service-time', - '42', - 'apim-request-id', - '2be1f988-e8be-4beb-911e-c1ea6f72d9f6', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:31 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_influxdb_data_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_influxdb_data_feed.js deleted file mode 100644 index 9f61434ef0b5..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_influxdb_data_feed.js +++ /dev/null @@ -1,45 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "f00185e6e324083e938b4c40b9551de6"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/metricsadvisor/v1.0/dataFeeds/1cd3c86d-8a59-4fef-b26e-e7953dd69a30') - .reply(204, "", [ - 'Content-Length', - '0', - 'x-request-id', - '9ed6f671-0c90-48d4-b9b8-a4b4b6fd9b37', - 'x-envoy-upstream-service-time', - '271', - 'apim-request-id', - '9ed6f671-0c90-48d4-b9b8-a4b4b6fd9b37', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:34 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/1cd3c86d-8a59-4fef-b26e-e7953dd69a30') - .reply(404, {"code":"ERROR_INVALID_PARAMETER","message":"datafeedId is invalid."}, [ - 'Content-Length', - '69', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '532d7646-5e52-40c5-91e7-077264a2a77f', - 'x-envoy-upstream-service-time', - '41', - 'apim-request-id', - '532d7646-5e52-40c5-91e7-077264a2a77f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:34 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_mongodb_data_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_mongodb_data_feed.js deleted file mode 100644 index ff8934bc230a..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_mongodb_data_feed.js +++ /dev/null @@ -1,45 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "da43e5372d36f323b35774198a317621"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/metricsadvisor/v1.0/dataFeeds/83977ee0-926c-49b5-a9d7-4d9000c1ca04') - .reply(204, "", [ - 'Content-Length', - '0', - 'x-request-id', - '09959662-5d21-45c8-b5af-381abacbc1f4', - 'x-envoy-upstream-service-time', - '265', - 'apim-request-id', - '09959662-5d21-45c8-b5af-381abacbc1f4', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:37 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/83977ee0-926c-49b5-a9d7-4d9000c1ca04') - .reply(404, {"code":"ERROR_INVALID_PARAMETER","message":"datafeedId is invalid."}, [ - 'Content-Length', - '69', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '88c632be-952b-4543-8ae7-28c3662d0c8b', - 'x-envoy-upstream-service-time', - '45', - 'apim-request-id', - '88c632be-952b-4543-8ae7-28c3662d0c8b', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:37 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_mysql_data_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_mysql_data_feed.js deleted file mode 100644 index c348022e1886..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_mysql_data_feed.js +++ /dev/null @@ -1,45 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "f14778014370d35d1f524c6d167f7f57"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/metricsadvisor/v1.0/dataFeeds/e18ddf78-a00c-46e9-a1b2-31ace9c83b67') - .reply(204, "", [ - 'Content-Length', - '0', - 'x-request-id', - '87264852-54e8-4f96-a6aa-e9f535020369', - 'x-envoy-upstream-service-time', - '253', - 'apim-request-id', - '87264852-54e8-4f96-a6aa-e9f535020369', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:39 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/e18ddf78-a00c-46e9-a1b2-31ace9c83b67') - .reply(404, {"code":"ERROR_INVALID_PARAMETER","message":"datafeedId is invalid."}, [ - 'Content-Length', - '69', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - '179253d9-1514-4ef1-9b53-20b606309d36', - 'x-envoy-upstream-service-time', - '42', - 'apim-request-id', - '179253d9-1514-4ef1-9b53-20b606309d36', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:39 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_postgresql_data_feed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_postgresql_data_feed.js deleted file mode 100644 index 7af27b350fe1..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_deletes_postgresql_data_feed.js +++ /dev/null @@ -1,45 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "92fe237ca5eef2e18e119bd3c53e14ce"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/metricsadvisor/v1.0/dataFeeds/4ec30e05-9607-47dd-9742-90b3ba302123') - .reply(204, "", [ - 'Content-Length', - '0', - 'x-request-id', - 'c8554806-d9b2-4eeb-86cf-fa8796d58d5d', - 'x-envoy-upstream-service-time', - '262', - 'apim-request-id', - 'c8554806-d9b2-4eeb-86cf-fa8796d58d5d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:43 GMT' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/metricsadvisor/v1.0/dataFeeds/4ec30e05-9607-47dd-9742-90b3ba302123') - .reply(404, {"code":"ERROR_INVALID_PARAMETER","message":"datafeedId is invalid."}, [ - 'Content-Length', - '69', - 'Content-Type', - 'application/json; charset=utf-8', - 'x-request-id', - 'b572331b-c7f1-4ce3-bf3f-7cc803a17656', - 'x-envoy-upstream-service-time', - '41', - 'apim-request-id', - 'b572331b-c7f1-4ce3-bf3f-7cc803a17656', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains; preload', - 'x-content-type-options', - 'nosniff', - 'Date', - 'Fri, 18 Sep 2020 23:29:43 GMT' -]); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_updates_an_azure_blob_datafeed.js b/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_updates_an_azure_blob_datafeed.js deleted file mode 100644 index a162a669c4d4..000000000000 --- a/sdk/metricsadvisor/ai-metrics-advisor/recordings/node/metricsadvisoradministrationclient_datafeed/recording_updates_an_azure_blob_datafeed.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "0b8d6a2008b318c5a81712974e28e37b"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/README.md b/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/README.md index 72ac959328ed..67f54ff01b90 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/README.md +++ b/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/README.md @@ -44,15 +44,15 @@ node dataFeed.js Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[datafeed]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/src/dataFeed.js -[alertingconfig]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/src/alertingConfig.js -[detectionconfig]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/src/detectionConfig.js -[seriesdata]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/src/seriesData.js -[hooks]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/src/hooks.js -[incidentsandalerts]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/src/incidentsAndAlerts.js -[metricfeedback]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/src/metricFeedback.js -[metricqueries]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/src/metricQueries.js -[ingestionstatus]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/src/ingestionStatus.js +[datafeed]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/dataFeed.js +[alertingconfig]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/alertingConfig.js +[detectionconfig]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/detectionConfig.js +[seriesdata]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/seriesData.js +[hooks]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/hooks.js +[incidentsandalerts]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/incidentsAndAlerts.js +[metricfeedback]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/metricFeedback.js +[metricqueries]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/metricQueries.js +[ingestionstatus]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/samples/javascript/ingestionStatus.js [azcogsvc]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/metricsadvisor/ai-metrics-advisor/README.md