-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
1,272 additions
and
146 deletions.
There are no files selected for viewing
252 changes: 227 additions & 25 deletions
252
...ion-records/MetricsAdvisorAdminClientBuilderTest.clientBuilderWithDefaultPipeline[1].json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,228 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "GET", | ||
"Uri" : "https://REDACTED.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-ai-metricsadvisor/1.2.0-beta.1 (11.0.9; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "827cddf8-92ce-4a5c-9584-ddd570eba14e" | ||
}, | ||
"Response" : { | ||
"x-request-id" : "e692301d-b6fa-458f-bd50-9c65f60adf45", | ||
"x-ms-region" : "West US 2", | ||
"x-envoy-upstream-service-time" : "276", | ||
"Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", | ||
"x-content-type-options" : "nosniff", | ||
"apim-request-id" : "e692301d-b6fa-458f-bd50-9c65f60adf45", | ||
"retry-after" : "0", | ||
"Content-Length" : "4378", | ||
"StatusCode" : "200", | ||
"Body" : "{\"value\":[{\"dataFeedId\":\"6e48e476-33e6-4113-a299-a5740bc0db47\",\"dataFeedName\":\"azBlobDataFeed\",\"metrics\":[{\"metricId\":\"b6c0649c-0c51-4aa6-82b6-3c3b0aa55066\",\"metricName\":\"Metric1\",\"metricDisplayName\":\"Metric1\",\"metricDescription\":\"\"},{\"metricId\":\"81fafdc5-e2fc-4679-8c20-e2fe3e366c15\",\"metricName\":\"Metric2\",\"metricDisplayName\":\"Metric2\",\"metricDescription\":\"\"}],\"dimension\":[{\"dimensionName\":\"Dim1\",\"dimensionDisplayName\":\"Dim1\"},{\"dimensionName\":\"Dim2\",\"dimensionDisplayName\":\"Dim2\"}],\"dataStartFrom\":\"2022-02-28T00: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\":\"This description was generated by a sample.\",\"stopRetryAfterInSeconds\":-1,\"minRetryIntervalInSeconds\":-1,\"maxConcurrency\":-1,\"viewMode\":\"Private\",\"admins\":[\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\"],\"viewers\":[],\"creator\":\"[email protected]\",\"status\":\"Active\",\"createdTime\":\"2022-04-05T17:10:58Z\",\"isAdmin\":true,\"actionLinkTemplate\":\"\",\"dataSourceParameter\":{\"container\":\"adsample\",\"blobTemplate\":\"data/%Y/%m/sample_%Y_%m_%d.json\"},\"authenticationType\":\"Basic\"},{\"dataFeedId\":\"5599bb15-cf0d-47dc-bca4-ef1a532689ed\",\"dataFeedName\":\"sample_datafeed\",\"metrics\":[{\"metricId\":\"00989743-bffa-4e6b-b90b-b41c13e27636\",\"metricName\":\"cost\",\"metricDisplayName\":\"Cost\",\"metricDescription\":\"\"},{\"metricId\":\"54535a9d-2790-44a6-93f7-4171b72276d7\",\"metricName\":\"revenue\",\"metricDisplayName\":\"Revenue\",\"metricDescription\":\"\"}],\"dimension\":[{\"dimensionName\":\"category\",\"dimensionDisplayName\":\"Category\"},{\"dimensionName\":\"city\",\"dimensionDisplayName\":\"city\"}],\"dataStartFrom\":\"2019-01-01T00:00:00Z\",\"dataSourceType\":\"AzureDataLakeStorageGen2\",\"timestampColumn\":\"\",\"startOffsetInSeconds\":0,\"maxQueryPerMinute\":30.0,\"granularityName\":\"Daily\",\"needRollup\":\"NoRollup\",\"fillMissingPointType\":\"PreviousValue\",\"fillMissingPointValue\":0.0,\"rollUpMethod\":\"None\",\"dataFeedDescription\":\"\",\"stopRetryAfterInSeconds\":-1,\"minRetryIntervalInSeconds\":-1,\"maxConcurrency\":-1,\"viewMode\":\"Private\",\"admins\":[\"[email protected]\"],\"viewers\":[],\"creator\":\"[email protected]\",\"status\":\"Paused\",\"createdTime\":\"2021-11-15T22:00:37Z\",\"isAdmin\":true,\"actionLinkTemplate\":\"\",\"dataSourceParameter\":{\"fileTemplate\":\"adsample.json\",\"accountName\":\"REDACTED\",\"directoryTemplate\":\"%Y/%m/%d\",\"fileSystemName\":\"adsample\"},\"authenticationType\":\"ServicePrincipal\",\"credentialId\":\"9388a986-5430-4666-a758-7461c2a48774\"},{\"dataFeedId\":\"ccaad5bf-1df6-41f7-b774-28830d1a65d2\",\"dataFeedName\":\"azsqlDatafeed\",\"metrics\":[{\"metricId\":\"61e14436-a60f-4ba9-85e2-abe66d0d7515\",\"metricName\":\"cost\",\"metricDisplayName\":\"cost\",\"metricDescription\":\"\"},{\"metricId\":\"fa753672-8baf-4e8e-b48b-10fc1a423118\",\"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\":[\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\",\"[email protected]\"],\"viewers\":[],\"creator\":\"[email protected]\",\"status\":\"Paused\",\"createdTime\":\"2021-09-02T22:04:59Z\",\"isAdmin\":true,\"actionLinkTemplate\":\"\",\"dataSourceParameter\":{\"query\":\"SELECT @IntervalStart as timestamp, region, category, revenue, cost FROM MASampleRevenueCost WHERE timestamp >= @IntervalStart and timestamp < @IntervalEnd\"},\"authenticationType\":\"Basic\"}]}", | ||
"Date" : "Wed, 12 Apr 2023 22:04:06 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ ] | ||
} | ||
"Entries": [ | ||
{ | ||
"RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", | ||
"RequestMethod": "GET", | ||
"RequestHeaders": { | ||
"Accept": "application/json", | ||
"Content-Length": "0", | ||
"Date": "Thu, 13 Apr 2023 21:30:11 GMT", | ||
"Ocp-Apim-Subscription-Key": "REDACTED", | ||
"User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.2.0-beta.1 (11.0.9; Windows 10; 10.0)", | ||
"x-api-key": "5c9110a5-f5f6-4b78-ab6f-c30291c4c623", | ||
"x-ms-client-request-id": "b72a92df-f618-4ca5-9167-badad58e3f2d", | ||
"x-ms-return-client-request-id": "true" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 200, | ||
"ResponseHeaders": { | ||
"apim-request-id": "37ca97e6-aff1-4767-ae71-ef41ebfebec3", | ||
"Content-Length": "4366", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Date": "Thu, 13 Apr 2023 21:30:12 GMT", | ||
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", | ||
"X-Content-Type-Options": "nosniff", | ||
"x-envoy-upstream-service-time": "343", | ||
"x-ms-region": "West US 2", | ||
"X-Request-ID": "37ca97e6-aff1-4767-ae71-ef41ebfebec3" | ||
}, | ||
"ResponseBody": { | ||
"value": [ | ||
{ | ||
"dataFeedId": "6e48e476-33e6-4113-a299-a5740bc0db47", | ||
"dataFeedName": "azBlobDataFeed", | ||
"metrics": [ | ||
{ | ||
"metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", | ||
"metricName": "Metric1", | ||
"metricDisplayName": "Metric1", | ||
"metricDescription": "" | ||
}, | ||
{ | ||
"metricId": "81fafdc5-e2fc-4679-8c20-e2fe3e366c15", | ||
"metricName": "Metric2", | ||
"metricDisplayName": "Metric2", | ||
"metricDescription": "" | ||
} | ||
], | ||
"dimension": [ | ||
{ | ||
"dimensionName": "Dim1", | ||
"dimensionDisplayName": "Dim1" | ||
}, | ||
{ | ||
"dimensionName": "Dim2", | ||
"dimensionDisplayName": "Dim2" | ||
} | ||
], | ||
"dataStartFrom": "2022-02-28T00: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": "This description was generated by a sample.", | ||
"stopRetryAfterInSeconds": -1, | ||
"minRetryIntervalInSeconds": -1, | ||
"maxConcurrency": -1, | ||
"viewMode": "Private", | ||
"admins": [ | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]" | ||
], | ||
"viewers": [], | ||
"creator": "[email protected]", | ||
"status": "Active", | ||
"createdTime": "2022-04-05T17:10:58Z", | ||
"isAdmin": true, | ||
"actionLinkTemplate": "", | ||
"dataSourceParameter": { | ||
"container": "adsample", | ||
"blobTemplate": "data/%Y/%m/sample_%Y_%m_%d.json" | ||
}, | ||
"authenticationType": "Basic" | ||
}, | ||
{ | ||
"dataFeedId": "5599bb15-cf0d-47dc-bca4-ef1a532689ed", | ||
"dataFeedName": "sample_datafeed", | ||
"metrics": [ | ||
{ | ||
"metricId": "00989743-bffa-4e6b-b90b-b41c13e27636", | ||
"metricName": "cost", | ||
"metricDisplayName": "Cost", | ||
"metricDescription": "" | ||
}, | ||
{ | ||
"metricId": "54535a9d-2790-44a6-93f7-4171b72276d7", | ||
"metricName": "revenue", | ||
"metricDisplayName": "Revenue", | ||
"metricDescription": "" | ||
} | ||
], | ||
"dimension": [ | ||
{ | ||
"dimensionName": "category", | ||
"dimensionDisplayName": "Category" | ||
}, | ||
{ | ||
"dimensionName": "city", | ||
"dimensionDisplayName": "city" | ||
} | ||
], | ||
"dataStartFrom": "2019-01-01T00:00:00Z", | ||
"dataSourceType": "AzureDataLakeStorageGen2", | ||
"timestampColumn": "", | ||
"startOffsetInSeconds": 0, | ||
"maxQueryPerMinute": 30.0, | ||
"granularityName": "Daily", | ||
"needRollup": "NoRollup", | ||
"fillMissingPointType": "PreviousValue", | ||
"fillMissingPointValue": 0.0, | ||
"rollUpMethod": "None", | ||
"dataFeedDescription": "", | ||
"stopRetryAfterInSeconds": -1, | ||
"minRetryIntervalInSeconds": -1, | ||
"maxConcurrency": -1, | ||
"viewMode": "Private", | ||
"admins": [ | ||
"[email protected]" | ||
], | ||
"viewers": [], | ||
"creator": "[email protected]", | ||
"status": "Paused", | ||
"createdTime": "2021-11-15T22:00:37Z", | ||
"isAdmin": true, | ||
"actionLinkTemplate": "", | ||
"dataSourceParameter": { | ||
"fileTemplate": "adsample.json", | ||
"accountName": "REDACTED", | ||
"directoryTemplate": "%Y/%m/%d", | ||
"fileSystemName": "adsample" | ||
}, | ||
"authenticationType": "ServicePrincipal", | ||
"credentialId": "9388a986-5430-4666-a758-7461c2a48774" | ||
}, | ||
{ | ||
"dataFeedId": "ccaad5bf-1df6-41f7-b774-28830d1a65d2", | ||
"dataFeedName": "azsqlDatafeed", | ||
"metrics": [ | ||
{ | ||
"metricId": "61e14436-a60f-4ba9-85e2-abe66d0d7515", | ||
"metricName": "cost", | ||
"metricDisplayName": "cost", | ||
"metricDescription": "" | ||
}, | ||
{ | ||
"metricId": "fa753672-8baf-4e8e-b48b-10fc1a423118", | ||
"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": [ | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]" | ||
], | ||
"viewers": [], | ||
"creator": "[email protected]", | ||
"status": "Paused", | ||
"createdTime": "2021-09-02T22:04:59Z", | ||
"isAdmin": true, | ||
"actionLinkTemplate": "", | ||
"dataSourceParameter": { | ||
"query": "SELECT @IntervalStart as timestamp, region, category, revenue, cost FROM MASampleRevenueCost WHERE timestamp \u003E= @IntervalStart and timestamp \u003C @IntervalEnd" | ||
}, | ||
"authenticationType": "Basic" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"Variables": {} | ||
} |
Oops, something went wrong.