From d8e462b6bb7c2600bba385ef4209707fdb929f7e Mon Sep 17 00:00:00 2001 From: Sameeksha Vaity Date: Wed, 31 May 2023 13:07:17 -0700 Subject: [PATCH] [Metricsadvisor] Migrate recordings to asset repo (#35179) --- .vscode/cspell.json | 1 + .../azure-ai-metricsadvisor/assets.json | 6 + .../azure-ai-metricsadvisor/pom.xml | 4 +- ...yncTest.listAnomalyDimensionValues[1].json | 43 - ...uesTest.listAnomalyDimensionValues[1].json | 43 - ...tedAsyncTest.listIncidentsDetected[1].json | 100 - ...DetectedTest.listIncidentsDetected[1].json | 100 - ...seAsyncTest.listIncidentRootCauses[1].json | 50 - ...otCauseTest.listIncidentRootCauses[1].json | 50 - ...ientTest.createAppInsightsDataFeed[1].json | 178 - ...lientTest.createAzureTableDataFeed[1].json | 176 - ...AsyncClientTest.createBlobDataFeed[1].json | 177 - ...yncClientTest.createCosmosDataFeed[1].json | 178 - ...Test.createDataLakeStorageDataFeed[1].json | 181 - ...cClientTest.createExplorerDataFeed[1].json | 175 - ...yncClientTest.createInfluxDataFeed[1].json | 180 - ...entTest.createLogAnalyticsDataFeed[1].json | 181 - ...syncClientTest.createMYSQLDataFeed[1].json | 174 - ...ncClientTest.createMongoDBDataFeed[1].json | 176 - ...lientTest.createPostgreSQLDataFeed[1].json | 174 - ...ClientTest.createSQLServerDataFeed[1].json | 175 - ...tTest.deleteDataFeedIdWithResponse[1].json | 206 - ...AsyncClientTest.getDataFeedValidId[1].json | 175 - ...st.testListDataFeedFilterByCreator[1].json | 321 -- ...istDataFeedFilterByGranularityType[1].json | 455 --- ...tTest.testListDataFeedFilterByName[1].json | 262 -- ...testListDataFeedFilterBySourceType[1].json | 103 - ...est.testListDataFeedFilterByStatus[1].json | 103 - ...yncClientTest.testListDataFeedTop3[1].json | 520 --- ...edAsyncClientTest.testListDataFeed[1].json | 656 ---- ...ClientTest.updateDataFeedHappyPath[1].json | 366 -- ...ientTest.createAppInsightsDataFeed[1].json | 178 - ...lientTest.createAzureTableDataFeed[1].json | 176 - ...aFeedClientTest.createBlobDataFeed[1].json | 177 - ...eedClientTest.createCosmosDataFeed[1].json | 178 - ....createDataFeedDuplicateMetricName[1].json | 56 - ...tTest.createDataFeedRequiredParams[1].json | 4 - ...Test.createDataLakeStorageDataFeed[1].json | 181 - ...dClientTest.createExplorerDataFeed[1].json | 175 - ...eedClientTest.createInfluxDataFeed[1].json | 180 - ...entTest.createLogAnalyticsDataFeed[1].json | 181 - ...FeedClientTest.createMYSQLDataFeed[1].json | 174 - ...edClientTest.createMongoDBDataFeed[1].json | 176 - ...lientTest.createPostgreSQLDataFeed[1].json | 174 - ...ClientTest.createSQLServerDataFeed[1].json | 175 - ...tTest.deleteDataFeedIdWithResponse[1].json | 206 - ...aFeedClientTest.getDataFeedValidId[1].json | 258 -- ...st.testListDataFeedFilterByCreator[1].json | 321 -- ...istDataFeedFilterByGranularityType[1].json | 400 -- ...testListDataFeedFilterBySourceType[1].json | 274 -- ...est.testListDataFeedFilterByStatus[1].json | 275 -- ...eedClientTest.testListDataFeedTop3[1].json | 463 --- ...ataFeedClientTest.testListDataFeed[1].json | 483 --- ...tionAsyncTest.getIngestionProgress[1].json | 36 - ...ationAsyncTest.listIngestionStatus[1].json | 440 --- ...perationAsyncTest.refreshIngestion[1].json | 36 - ...OperationTest.getIngestionProgress[1].json | 36 - ...nOperationTest.listIngestionStatus[1].json | 440 --- ...tionOperationTest.refreshIngestion[1].json | 36 - ...edentialsAsyncTest.testBlobStorage[1].json | 372 -- ...dentialsAsyncTest.testDataExplorer[1].json | 965 ----- ...dentialsAsyncTest.testDataLakeGen2[1].json | 1094 ------ ...CredentialsAsyncTest.testSqlServer[1].json | 1255 ------ ...ithCredentialsTest.testBlobStorage[1].json | 372 -- ...thCredentialsTest.testDataExplorer[1].json | 965 ----- ...thCredentialsTest.testDataLakeGen2[1].json | 1094 ------ ...dWithCredentialsTest.testSqlServer[1].json | 1255 ------ ...ncTest.createDataLakeGen2SharedKey[1].json | 101 - ...yncTest.createServicePrincipalInKV[1].json | 112 - ...alAsyncTest.createServicePrincipal[1].json | 106 - ...syncTest.createSqlConnectionString[1].json | 101 - ...Test.testListDataSourceCredentials[1].json | 266 -- ...alTest.createDataLakeGen2SharedKey[1].json | 101 - ...dentialTest.createServicePrincipal[1].json | 106 - ...tialTest.createSqlConnectionString[1].json | 101 - ...Test.testListDataSourceCredentials[1].json | 266 -- ...igurationForMultipleSeriesAndGroup[1].json | 731 ---- ...tionConfigurationForSeriesAndGroup[1].json | 398 -- ...tectionConfigurationForWholeSeries[1].json | 332 -- ...cTest.updateDetectionConfiguration[1].json | 940 ----- ...igurationForMultipleSeriesAndGroup[1].json | 731 ---- ...tionConfigurationForSeriesAndGroup[1].json | 398 -- ...tectionConfigurationForWholeSeries[1].json | 332 -- ...nTest.updateDetectionConfiguration[1].json | 940 ----- ...yncTest.getMetricFeedbackInvalidId[1].json | 4 - ...kAsyncTest.getMetricFeedbackNullId[1].json | 4 - ...MetricFeedbackFilterByFeedbackType[1].json | 3441 ----------------- ...edbackTest.getMetricFeedbackNullId[1].json | 4 - ...t.clientBuilderWithDefaultPipeline[1].json | 399 -- ...lientBuilderWithNullServiceVersion[1].json | 284 -- ...t.clientBuilderWithDefaultPipeline[1].json | 411 -- ...lientBuilderWithNullServiceVersion[1].json | 411 -- ...syncTest.listMetricDimensionValues[1].json | 42 - ...yncTest.listMetricEnrichmentStatus[1].json | 40 - ...riesAsyncTest.listMetricSeriesData[1].json | 57 - ...icSeriesDefinitionsDimensionFilter[1].json | 58 - ...ncTest.listMetricSeriesDefinitions[1].json | 88 - ...riesTest.listMetricDimensionValues[1].json | 42 - ...iesTest.listMetricEnrichmentStatus[1].json | 40 - ...icsSeriesTest.listMetricSeriesData[1].json | 57 - ...icSeriesDefinitionsDimensionFilter[1].json | 58 - ...esTest.listMetricSeriesDefinitions[1].json | 88 - ...icationHookAsyncTest.createWebHook[1].json | 121 - ...NotificationHookTest.createWebHook[1].json | 121 - 104 files changed, 9 insertions(+), 30773 deletions(-) create mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/assets.json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyDimensionValuesAsyncTest.listAnomalyDimensionValues[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyDimensionValuesTest.listAnomalyDimensionValues[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentDetectedAsyncTest.listIncidentsDetected[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentDetectedTest.listIncidentsDetected[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentRootCauseAsyncTest.listIncidentRootCauses[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentRootCauseTest.listIncidentRootCauses[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createAppInsightsDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createAzureTableDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createBlobDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createCosmosDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createDataLakeStorageDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createExplorerDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createInfluxDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createLogAnalyticsDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createMYSQLDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createMongoDBDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createPostgreSQLDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createSQLServerDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.deleteDataFeedIdWithResponse[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.getDataFeedValidId[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByCreator[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByGranularityType[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByName[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterBySourceType[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByStatus[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedTop3[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.updateDataFeedHappyPath[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createAppInsightsDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createAzureTableDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createBlobDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createCosmosDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataFeedDuplicateMetricName[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataFeedRequiredParams[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataLakeStorageDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createExplorerDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createInfluxDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createLogAnalyticsDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createMYSQLDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createMongoDBDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createPostgreSQLDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createSQLServerDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.deleteDataFeedIdWithResponse[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.getDataFeedValidId[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByCreator[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByGranularityType[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterBySourceType[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByStatus[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedTop3[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeed[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.getIngestionProgress[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.listIngestionStatus[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.refreshIngestion[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.getIngestionProgress[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.listIngestionStatus[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.refreshIngestion[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testBlobStorage[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testDataExplorer[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testDataLakeGen2[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testSqlServer[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testBlobStorage[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testDataExplorer[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testDataLakeGen2[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testSqlServer[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createDataLakeGen2SharedKey[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createServicePrincipalInKV[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createServicePrincipal[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createSqlConnectionString[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.testListDataSourceCredentials[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createDataLakeGen2SharedKey[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createServicePrincipal[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createSqlConnectionString[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.testListDataSourceCredentials[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForMultipleSeriesAndGroup[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForSeriesAndGroup[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForWholeSeries[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.updateDetectionConfiguration[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForMultipleSeriesAndGroup[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForSeriesAndGroup[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForWholeSeries[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.updateDetectionConfiguration[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.getMetricFeedbackInvalidId[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.getMetricFeedbackNullId[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.testListMetricFeedbackFilterByFeedbackType[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackTest.getMetricFeedbackNullId[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorAdminClientBuilderTest.clientBuilderWithDefaultPipeline[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorAdminClientBuilderTest.clientBuilderWithNullServiceVersion[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorClientBuilderTest.clientBuilderWithDefaultPipeline[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorClientBuilderTest.clientBuilderWithNullServiceVersion[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricDimensionValues[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricEnrichmentStatus[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesData[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesDefinitionsDimensionFilter[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesDefinitions[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricDimensionValues[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricEnrichmentStatus[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesData[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesDefinitionsDimensionFilter[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesDefinitions[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/NotificationHookAsyncTest.createWebHook[1].json delete mode 100644 sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/NotificationHookTest.createWebHook[1].json diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 29797ce24a471..20350f6a9e92d 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -15,6 +15,7 @@ "eng/**", "**/sdk/**/target/**", "**/session-records/**", + "**/sdk/**/**/assets.json", "**/chromedriver", ".gitignore", "*.jar", diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/assets.json b/sdk/metricsadvisor/azure-ai-metricsadvisor/assets.json new file mode 100644 index 0000000000000..16649eac7eeec --- /dev/null +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "java", + "TagPrefix": "java/metricsadvisor/azure-ai-metricsadvisor", + "Tag": "java/metricsadvisor/azure-ai-metricsadvisor_c46fefc6ff" +} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/pom.xml b/sdk/metricsadvisor/azure-ai-metricsadvisor/pom.xml index f519dc7c91cbf..0375761e56bd3 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/pom.xml +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/pom.xml @@ -45,7 +45,7 @@ com.azure azure-core - 1.39.0 + 1.40.0-beta.1 com.azure @@ -57,7 +57,7 @@ com.azure azure-core-test - 1.17.0 + 1.18.0-beta.1 test diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyDimensionValuesAsyncTest.listAnomalyDimensionValues[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyDimensionValuesAsyncTest.listAnomalyDimensionValues[1].json deleted file mode 100644 index 2e875f0d7b84a..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyDimensionValuesAsyncTest.listAnomalyDimensionValues[1].json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7/anomalies/dimension/query?$maxpagesize=10", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "92", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "1af1afd3-f4d5-44ec-8c9c-dd81b216c781", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2022-01-01T00:00:00Z", - "endTime": "2022-03-22T00:00:00Z", - "dimensionName": "Dim1" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "02986c18-b366-4cd4-9b13-5d4971882aae", - "Content-Length": "27", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:05 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "207", - "x-ms-region": "West US 2", - "X-Request-ID": "02986c18-b366-4cd4-9b13-5d4971882aae" - }, - "ResponseBody": { - "value": [ - "__SUM__", - "JPN" - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyDimensionValuesTest.listAnomalyDimensionValues[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyDimensionValuesTest.listAnomalyDimensionValues[1].json deleted file mode 100644 index 4d96beeaecde9..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyDimensionValuesTest.listAnomalyDimensionValues[1].json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7/anomalies/dimension/query?$maxpagesize=10", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "92", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b3018dc2-04ef-488a-bd57-b411529c1489", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2022-01-01T00:00:00Z", - "endTime": "2022-03-22T00:00:00Z", - "dimensionName": "Dim1" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3ed5693e-db96-490f-8048-b0f30a2c3e78", - "Content-Length": "27", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "228", - "x-ms-region": "West US 2", - "X-Request-ID": "3ed5693e-db96-490f-8048-b0f30a2c3e78" - }, - "ResponseBody": { - "value": [ - "__SUM__", - "JPN" - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentDetectedAsyncTest.listIncidentsDetected[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentDetectedAsyncTest.listIncidentsDetected[1].json deleted file mode 100644 index 8bd5b1812acab..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentDetectedAsyncTest.listIncidentsDetected[1].json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7/incidents/query?$maxpagesize=1000", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "69", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "7b9101c9-967a-44f1-aaf0-5d57f5441df9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2022-01-01T00:00:00Z", - "endTime": "2022-03-22T00:00:00Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "235b5523-d92a-493f-b2ca-04782ccce0b0", - "Content-Length": "1472", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "541", - "x-ms-region": "West US 2", - "X-Request-ID": "235b5523-d92a-493f-b2ca-04782ccce0b0" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "6e48e476-33e6-4113-a299-a5740bc0db47", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "anomalyDetectionConfigurationId": "78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7", - "incidentId": "88ecf25a0e6bd330ef9e7b49b7c5b92b-17f9f794800", - "startTime": "2022-03-19T00:00:00Z", - "lastTime": "2022-03-19T00:00:00Z", - "rootNode": { - "dimension": { - "Dim1": "__SUM__", - "Dim2": "__SUM__" - } - }, - "property": { - "maxSeverity": "High", - "incidentStatus": "Active", - "valueOfRootNode": 97249.0, - "expectedValueOfRootNode": 80000.0 - } - }, - { - "dataFeedId": "6e48e476-33e6-4113-a299-a5740bc0db47", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "anomalyDetectionConfigurationId": "78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7", - "incidentId": "88ecf25a0e6bd330ef9e7b49b7c5b92b-17f8adfd800", - "startTime": "2022-03-14T00:00:00Z", - "lastTime": "2022-03-15T00:00:00Z", - "rootNode": { - "dimension": { - "Dim1": "__SUM__", - "Dim2": "__SUM__" - } - }, - "property": { - "maxSeverity": "High", - "incidentStatus": "Active", - "valueOfRootNode": 83298.0, - "expectedValueOfRootNode": 80000.0 - } - }, - { - "dataFeedId": "6e48e476-33e6-4113-a299-a5740bc0db47", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "anomalyDetectionConfigurationId": "78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7", - "incidentId": "88ecf25a0e6bd330ef9e7b49b7c5b92b-17f71200c00", - "startTime": "2022-03-10T00:00:00Z", - "lastTime": "2022-03-10T00:00:00Z", - "rootNode": { - "dimension": { - "Dim1": "__SUM__", - "Dim2": "__SUM__" - } - }, - "property": { - "maxSeverity": "High", - "incidentStatus": "Active", - "valueOfRootNode": 80214.0, - "expectedValueOfRootNode": 80000.0 - } - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentDetectedTest.listIncidentsDetected[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentDetectedTest.listIncidentsDetected[1].json deleted file mode 100644 index e137f6e4a5882..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentDetectedTest.listIncidentsDetected[1].json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7/incidents/query?$maxpagesize=1000", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "69", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "977746e6-9603-4097-a886-a25cffc30e7c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2022-01-01T00:00:00Z", - "endTime": "2022-03-22T00:00:00Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c6cde041-88be-41f6-9f4e-ef5d06422ef0", - "Content-Length": "1472", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "393", - "x-ms-region": "West US 2", - "X-Request-ID": "c6cde041-88be-41f6-9f4e-ef5d06422ef0" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "6e48e476-33e6-4113-a299-a5740bc0db47", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "anomalyDetectionConfigurationId": "78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7", - "incidentId": "88ecf25a0e6bd330ef9e7b49b7c5b92b-17f9f794800", - "startTime": "2022-03-19T00:00:00Z", - "lastTime": "2022-03-19T00:00:00Z", - "rootNode": { - "dimension": { - "Dim1": "__SUM__", - "Dim2": "__SUM__" - } - }, - "property": { - "maxSeverity": "High", - "incidentStatus": "Active", - "valueOfRootNode": 97249.0, - "expectedValueOfRootNode": 80000.0 - } - }, - { - "dataFeedId": "6e48e476-33e6-4113-a299-a5740bc0db47", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "anomalyDetectionConfigurationId": "78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7", - "incidentId": "88ecf25a0e6bd330ef9e7b49b7c5b92b-17f8adfd800", - "startTime": "2022-03-14T00:00:00Z", - "lastTime": "2022-03-15T00:00:00Z", - "rootNode": { - "dimension": { - "Dim1": "__SUM__", - "Dim2": "__SUM__" - } - }, - "property": { - "maxSeverity": "High", - "incidentStatus": "Active", - "valueOfRootNode": 83298.0, - "expectedValueOfRootNode": 80000.0 - } - }, - { - "dataFeedId": "6e48e476-33e6-4113-a299-a5740bc0db47", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "anomalyDetectionConfigurationId": "78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7", - "incidentId": "88ecf25a0e6bd330ef9e7b49b7c5b92b-17f71200c00", - "startTime": "2022-03-10T00:00:00Z", - "lastTime": "2022-03-10T00:00:00Z", - "rootNode": { - "dimension": { - "Dim1": "__SUM__", - "Dim2": "__SUM__" - } - }, - "property": { - "maxSeverity": "High", - "incidentStatus": "Active", - "valueOfRootNode": 80214.0, - "expectedValueOfRootNode": 80000.0 - } - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentRootCauseAsyncTest.listIncidentRootCauses[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentRootCauseAsyncTest.listIncidentRootCauses[1].json deleted file mode 100644 index dafc5602b6069..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentRootCauseAsyncTest.listIncidentRootCauses[1].json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7/incidents/88ecf25a0e6bd330ef9e7b49b7c5b92b-18001521c00/rootCause", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f6d4a172-6b73-4ab4-8b45-e71f0f0ea458", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "063f5cf5-3a7e-4da6-b569-6bed35d732ed", - "Content-Length": "209", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "269", - "x-ms-region": "West US 2", - "X-Request-ID": "063f5cf5-3a7e-4da6-b569-6bed35d732ed" - }, - "ResponseBody": { - "value": [ - { - "rootCause": { - "dimension": { - "Dim1": "JPN", - "Dim2": "JP" - } - }, - "path": [ - "Dim1", - "Dim2" - ], - "score": 0.2510180475721517, - "description": "Increase on Dim1 = JPN | Dim2 = JP contributes the most to current incident." - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentRootCauseTest.listIncidentRootCauses[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentRootCauseTest.listIncidentRootCauses[1].json deleted file mode 100644 index d71a7bb47450a..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/AnomalyIncidentRootCauseTest.listIncidentRootCauses[1].json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/78f3a4e7-fe53-4a05-9f4d-d724ab6c23a7/incidents/88ecf25a0e6bd330ef9e7b49b7c5b92b-18001521c00/rootCause", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "73427c86-01f9-48ac-a356-041a2bd962de", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5fd5cf80-60ea-485f-8398-c6fc6ad055ee", - "Content-Length": "209", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "320", - "x-ms-region": "West US 2", - "X-Request-ID": "5fd5cf80-60ea-485f-8398-c6fc6ad055ee" - }, - "ResponseBody": { - "value": [ - { - "rootCause": { - "dimension": { - "Dim1": "JPN", - "Dim2": "JP" - } - }, - "path": [ - "Dim1", - "Dim2" - ], - "score": 0.2510180475721517, - "description": "Increase on Dim1 = JPN | Dim2 = JP contributes the most to current incident." - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createAppInsightsDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createAppInsightsDataFeed[1].json deleted file mode 100644 index ec5c32e23317f..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createAppInsightsDataFeed[1].json +++ /dev/null @@ -1,178 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "882", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "5d8bb0dc-a127-4cbd-9c38-174b1a85e94d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureApplicationInsights", - "dataFeedName": "java_create_data_feed_test_samplee9378ea6-09a6-4790-988b-57790b4db330", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "azureCloud": "Azure Global", - "applicationId": "REDACTED", - "apiKey": "REDACTED", - "query": "let gran=60m; let starttime=datetime(@StartTime); let endtime=starttime \u002B gran; requests | where timestamp \u003E= starttime and timestamp \u003C endtime | summarize request_count = count(), duration_avg_ms = avg(duration), duration_95th_ms = percentile(duration, 95), duration_max_ms = max(duration) by resultCode" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "cc4ff49e-8027-4ace-9ff2-f18bcc9be60b", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/bbeab4bf-8b65-4dfa-9e3b-254276e7fe88", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2168", - "x-ms-region": "West US 2", - "X-Request-ID": "cc4ff49e-8027-4ace-9ff2-f18bcc9be60b" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/bbeab4bf-8b65-4dfa-9e3b-254276e7fe88", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "57f35134-02b4-407b-8595-700b93aa5577", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "748b21d1-a269-4e5c-9c48-94e5c06390ff", - "Content-Length": "1543", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "226", - "x-ms-region": "West US 2", - "X-Request-ID": "748b21d1-a269-4e5c-9c48-94e5c06390ff" - }, - "ResponseBody": { - "dataFeedId": "bbeab4bf-8b65-4dfa-9e3b-254276e7fe88", - "dataFeedName": "java_create_data_feed_test_samplee9378ea6-09a6-4790-988b-57790b4db330", - "metrics": [ - { - "metricId": "d499972d-fc82-411f-aa00-bbef07e5ba30", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "74b5421b-f891-4599-b305-5ad0d51e623e", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureApplicationInsights", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:25Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let gran=60m; let starttime=datetime(@StartTime); let endtime=starttime \u002B gran; requests | where timestamp \u003E= starttime and timestamp \u003C endtime | summarize request_count = count(), duration_avg_ms = avg(duration), duration_95th_ms = percentile(duration, 95), duration_max_ms = max(duration) by resultCode", - "azureCloud": "Azure Global", - "applicationId": "REDACTED" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/bbeab4bf-8b65-4dfa-9e3b-254276e7fe88", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "3cf62c54-d13e-445f-91da-53c9d676b9ac", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "d8fe6524-2426-4df5-ab11-172cd31b33e6", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "852", - "x-ms-region": "West US 2", - "X-Request-ID": "d8fe6524-2426-4df5-ab11-172cd31b33e6" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createAzureTableDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createAzureTableDataFeed[1].json deleted file mode 100644 index 1b73a529ba9de..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createAzureTableDataFeed[1].json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "597", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c38338c1-fc63-4c1e-870c-03b720126ec4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureTable", - "dataFeedName": "java_create_data_feed_test_sample1b16aa8a-18d3-4fa0-b321-196c567149c0", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "table": "adsample", - "query": "PartitionKey ge \u0027@StartTime\u0027 and PartitionKey lt \u0027@EndTime\u0027" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "58103eb9-97c3-4b0c-a958-875cd7e24474", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/15534ec4-82da-44d6-86d6-53cd720a3236", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "820", - "x-ms-region": "West US 2", - "X-Request-ID": "58103eb9-97c3-4b0c-a958-875cd7e24474" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/15534ec4-82da-44d6-86d6-53cd720a3236", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e9904d12-b1be-4f25-a43e-b91cd3710ec9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "095d5203-6b7c-4e0e-8730-f86538c2d145", - "Content-Length": "1248", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "147", - "x-ms-region": "West US 2", - "X-Request-ID": "095d5203-6b7c-4e0e-8730-f86538c2d145" - }, - "ResponseBody": { - "dataFeedId": "15534ec4-82da-44d6-86d6-53cd720a3236", - "dataFeedName": "java_create_data_feed_test_sample1b16aa8a-18d3-4fa0-b321-196c567149c0", - "metrics": [ - { - "metricId": "644890ee-e7dc-4c7c-80a2-ded2a3d54f8b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d9bf45ad-33a3-4156-b7ef-c8a5592ca563", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureTable", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "PartitionKey ge \u0027@StartTime\u0027 and PartitionKey lt \u0027@EndTime\u0027", - "table": "adsample" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/15534ec4-82da-44d6-86d6-53cd720a3236", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "83717548-6506-435c-a2ed-a1eabf28f776", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "fa16e499-3e45-4eb6-a9ab-b5c8a17ae3ee", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "334", - "x-ms-region": "West US 2", - "X-Request-ID": "fa16e499-3e45-4eb6-a9ab-b5c8a17ae3ee" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createBlobDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createBlobDataFeed[1].json deleted file mode 100644 index df43b38197219..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createBlobDataFeed[1].json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "606", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f601ff53-28e0-4d3d-9f9b-3e0abad381d8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureBlob", - "dataFeedName": "java_create_data_feed_test_sample4eb64c5d-af68-4dfc-9bef-9a8a27775f13", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "6ea12f3f-fda8-4cb7-8da2-45dcd90d4c96", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:05 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/56717a8c-5d71-415e-a2a6-de05c153ae4b", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1421", - "x-ms-region": "West US 2", - "X-Request-ID": "6ea12f3f-fda8-4cb7-8da2-45dcd90d4c96" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/56717a8c-5d71-415e-a2a6-de05c153ae4b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "5520e1a4-4ec6-4f85-99a8-f0c21f95a7bf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9a5b79ea-2ab7-4d40-881f-bb0a06a1c15b", - "Content-Length": "1228", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:05 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "155", - "x-ms-region": "West US 2", - "X-Request-ID": "9a5b79ea-2ab7-4d40-881f-bb0a06a1c15b" - }, - "ResponseBody": { - "dataFeedId": "56717a8c-5d71-415e-a2a6-de05c153ae4b", - "dataFeedName": "java_create_data_feed_test_sample4eb64c5d-af68-4dfc-9bef-9a8a27775f13", - "metrics": [ - { - "metricId": "eebe4a88-f783-4f4a-bfe3-b401b60e22cc", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "3dbc8cb7-108c-4ade-beb2-1d9950e759d2", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:05Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/56717a8c-5d71-415e-a2a6-de05c153ae4b", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "4afd03cd-1928-4bc7-87f6-0eebf6a7874a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "4600357f-9f78-48f0-9b65-f6e188f59831", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "452", - "x-ms-region": "West US 2", - "X-Request-ID": "4600357f-9f78-48f0-9b65-f6e188f59831" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createCosmosDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createCosmosDataFeed[1].json deleted file mode 100644 index fbe2c91eee558..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createCosmosDataFeed[1].json +++ /dev/null @@ -1,178 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "625", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "95e2bdfc-e9ea-4fc5-8baa-755db6f58473", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureCosmosDB", - "dataFeedName": "java_create_data_feed_test_sample7cfcea8e-79f1-48f2-a88e-56b391b921b1", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "sqlQuery": "select * from adsample2 where Timestamp = @StartTime", - "database": "adsample", - "collectionId": "adsample" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "e9cb77f9-3545-457c-9b46-8836c953032e", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/dcfafc9f-eb4f-4891-b1a8-7ed4e80a4d3a", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1477", - "x-ms-region": "West US 2", - "X-Request-ID": "e9cb77f9-3545-457c-9b46-8836c953032e" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/dcfafc9f-eb4f-4891-b1a8-7ed4e80a4d3a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "cbcf13a9-d46d-4e3b-ad2a-c232f2a860c4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "23626266-11a6-400c-9bf9-acd878486f67", - "Content-Length": "1276", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "128", - "x-ms-region": "West US 2", - "X-Request-ID": "23626266-11a6-400c-9bf9-acd878486f67" - }, - "ResponseBody": { - "dataFeedId": "dcfafc9f-eb4f-4891-b1a8-7ed4e80a4d3a", - "dataFeedName": "java_create_data_feed_test_sample7cfcea8e-79f1-48f2-a88e-56b391b921b1", - "metrics": [ - { - "metricId": "90b25907-6c82-4b19-a707-570c9d1a423b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "47589b87-2e00-4d1a-8a0c-495c7b46db02", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureCosmosDB", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:09Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "database": "adsample", - "sqlQuery": "select * from adsample2 where Timestamp = @StartTime", - "collectionId": "adsample" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/dcfafc9f-eb4f-4891-b1a8-7ed4e80a4d3a", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b0ab3d83-5e81-4a56-929e-9430b5f4d3bb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "61348eb5-c1d7-4102-90d6-c15df22aa8c9", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "344", - "x-ms-region": "West US 2", - "X-Request-ID": "61348eb5-c1d7-4102-90d6-c15df22aa8c9" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createDataLakeStorageDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createDataLakeStorageDataFeed[1].json deleted file mode 100644 index 1ed0b65ceace5..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createDataLakeStorageDataFeed[1].json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "660", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f5cfd90d-c384-42ec-b2b2-a44cf8946b3b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataLakeStorageGen2", - "dataFeedName": "java_create_data_feed_test_samplec7f531a8-7371-4de3-a57e-8f6ab8efe98c", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "accountName": "REDACTED", - "accountKey": "REDACTED", - "fileSystemName": "adsample", - "directoryTemplate": "%Y/%m/%d", - "fileTemplate": "adsample.json" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "9c5c8b43-ea16-471d-8fbd-12ac8831e153", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/a79126e4-dafa-4c21-ad05-2ab51f93b7a9", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1184", - "x-ms-region": "West US 2", - "X-Request-ID": "9c5c8b43-ea16-471d-8fbd-12ac8831e153" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/a79126e4-dafa-4c21-ad05-2ab51f93b7a9", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ee77a539-b56a-4788-8521-07379aebf0a7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9746cca5-31cd-4ec6-b278-b721a003f85f", - "Content-Length": "1288", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "160", - "x-ms-region": "West US 2", - "X-Request-ID": "9746cca5-31cd-4ec6-b278-b721a003f85f" - }, - "ResponseBody": { - "dataFeedId": "a79126e4-dafa-4c21-ad05-2ab51f93b7a9", - "dataFeedName": "java_create_data_feed_test_samplec7f531a8-7371-4de3-a57e-8f6ab8efe98c", - "metrics": [ - { - "metricId": "ee36b3e2-af3d-491b-a028-f45a9f4d98b3", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "495db388-6798-469e-a1cd-7dd62480ada0", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:14Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/a79126e4-dafa-4c21-ad05-2ab51f93b7a9", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "efc2966e-84a1-42a9-83e7-ee7bbac20818", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "5741ee64-38d9-459e-9d28-e60902b4e1be", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "401", - "x-ms-region": "West US 2", - "X-Request-ID": "5741ee64-38d9-459e-9d28-e60902b4e1be" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createExplorerDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createExplorerDataFeed[1].json deleted file mode 100644 index 00810c13b81a4..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createExplorerDataFeed[1].json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "703", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "80bd12f6-bfd1-4ff9-a607-223c671652a6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataExplorer", - "dataFeedName": "java_create_data_feed_test_sample37a7d464-8094-4307-b066-68afe0565d41", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "4e4360e0-1fcd-4788-a6de-f1ac22e97433", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/caea4f2d-9795-4208-87a0-d383dd22ac0a", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2264", - "x-ms-region": "West US 2", - "X-Request-ID": "4e4360e0-1fcd-4788-a6de-f1ac22e97433" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/caea4f2d-9795-4208-87a0-d383dd22ac0a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "2acd87e6-1153-4ab4-a2f4-0ad74f2917a8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1c463b05-9871-4da5-89e0-6f039211fe66", - "Content-Length": "1325", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "207", - "x-ms-region": "West US 2", - "X-Request-ID": "1c463b05-9871-4da5-89e0-6f039211fe66" - }, - "ResponseBody": { - "dataFeedId": "caea4f2d-9795-4208-87a0-d383dd22ac0a", - "dataFeedName": "java_create_data_feed_test_sample37a7d464-8094-4307-b066-68afe0565d41", - "metrics": [ - { - "metricId": "9053f71b-6956-4101-b780-577f37aeb710", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "5416bbef-6021-4260-be1e-cdf67655b99e", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:25Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/caea4f2d-9795-4208-87a0-d383dd22ac0a", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ec037bc2-3120-4114-8c28-4f10e9c87d45", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "2d3e63cd-d510-4ebf-9ecc-ffadc5a80417", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "947", - "x-ms-region": "West US 2", - "X-Request-ID": "2d3e63cd-d510-4ebf-9ecc-ffadc5a80417" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createInfluxDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createInfluxDataFeed[1].json deleted file mode 100644 index bf72de1d3997b..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createInfluxDataFeed[1].json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "635", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "bf81733b-158e-4b05-8dcf-af0c0698ae6a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "InfluxDB", - "dataFeedName": "java_create_data_feed_test_sample6915c2da-d9b6-4c18-83d1-0208799c97af", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "database": "adsample", - "userName": "REDACTED", - "password": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "09a52097-cc20-4a4b-9988-dc7e844964c2", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/796a2324-7514-4144-b871-7ffb69acbaea", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "852", - "x-ms-region": "West US 2", - "X-Request-ID": "09a52097-cc20-4a4b-9988-dc7e844964c2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/796a2324-7514-4144-b871-7ffb69acbaea", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "2e3d7f2b-9b70-48b5-bf6e-45c429b6e0e8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e7b080bb-2554-4f84-b762-1bafdeeabc9b", - "Content-Length": "1294", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "147", - "x-ms-region": "West US 2", - "X-Request-ID": "e7b080bb-2554-4f84-b762-1bafdeeabc9b" - }, - "ResponseBody": { - "dataFeedId": "796a2324-7514-4144-b871-7ffb69acbaea", - "dataFeedName": "java_create_data_feed_test_sample6915c2da-d9b6-4c18-83d1-0208799c97af", - "metrics": [ - { - "metricId": "8508739e-c238-4ecf-8412-144402df99ce", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "7d43f0fd-04ea-46fe-aa87-670ffe06f0e1", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "InfluxDB", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "connectionString": "REDACTED", - "database": "adsample", - "query": "select * from adsample2 where Timestamp = @StartTime", - "userName": "REDACTED" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/796a2324-7514-4144-b871-7ffb69acbaea", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d317a095-41d9-432f-89b8-45ba320af921", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "ec8b5908-4b03-434b-92b0-0f4c97ed61cc", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "352", - "x-ms-region": "West US 2", - "X-Request-ID": "ec8b5908-4b03-434b-92b0-0f4c97ed61cc" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createLogAnalyticsDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createLogAnalyticsDataFeed[1].json deleted file mode 100644 index fa9f7bdad0102..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createLogAnalyticsDataFeed[1].json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "777", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b9784777-a2e0-49f8-9ade-77848960616c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureLogAnalytics", - "dataFeedName": "java_create_data_feed_test_sample17e062f7-0785-4656-972d-4bcd6eb266f0", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "tenantId": "f850650c-1fcf-4489-b46f-71af2e30d360", - "clientId": "azClientId", - "clientSecret": "azClientSecret", - "workspaceId": "azWorkspaceId", - "query": "where StartTime \u003E=datetime(@StartTime) and EndTime \u003Cdatetime(@EndTime)| summarize count_per_type=count() by DataType" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "02e24c21-2264-4e59-ac39-cd97801eeccd", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ea5ae133-e79c-41fc-bcd5-e5c3ed0bf1cc", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1192", - "x-ms-region": "West US 2", - "X-Request-ID": "02e24c21-2264-4e59-ac39-cd97801eeccd" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ea5ae133-e79c-41fc-bcd5-e5c3ed0bf1cc", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "890fe2c1-a3d0-48c6-abd5-f4c0dcca8526", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f9dabb74-0c29-4232-ace1-735fe0564a4f", - "Content-Length": "1397", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "144", - "x-ms-region": "West US 2", - "X-Request-ID": "f9dabb74-0c29-4232-ace1-735fe0564a4f" - }, - "ResponseBody": { - "dataFeedId": "ea5ae133-e79c-41fc-bcd5-e5c3ed0bf1cc", - "dataFeedName": "java_create_data_feed_test_sample17e062f7-0785-4656-972d-4bcd6eb266f0", - "metrics": [ - { - "metricId": "ae7298cd-5ecb-4e4e-a216-3bf35f46b689", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "9f9d7afc-d8bb-4f8c-a6db-94933c2e86c6", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureLogAnalytics", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "clientId": "azClientId", - "query": "where StartTime \u003E=datetime(@StartTime) and EndTime \u003Cdatetime(@EndTime)| summarize count_per_type=count() by DataType", - "tenantId": "f850650c-1fcf-4489-b46f-71af2e30d360", - "workspaceId": "azWorkspaceId" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ea5ae133-e79c-41fc-bcd5-e5c3ed0bf1cc", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "bcbd8299-f625-45d8-864a-bacd08679986", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "5347ffed-ff52-428e-9880-680c04df29f9", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "271", - "x-ms-region": "West US 2", - "X-Request-ID": "5347ffed-ff52-428e-9880-680c04df29f9" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createMYSQLDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createMYSQLDataFeed[1].json deleted file mode 100644 index 0d0f67268c8e9..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createMYSQLDataFeed[1].json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "566", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "bcbebda0-8d32-4ae3-8171-d4628a1c9314", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "MySql", - "dataFeedName": "java_create_data_feed_test_sample2a5527b6-3dcd-4611-9c33-092d6a9c023d", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "ed8acdc2-55a2-4017-8e70-ca7c91be829d", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/5b4bd61a-f71d-4a4f-86b8-4fd023c41060", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1147", - "x-ms-region": "West US 2", - "X-Request-ID": "ed8acdc2-55a2-4017-8e70-ca7c91be829d" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/5b4bd61a-f71d-4a4f-86b8-4fd023c41060", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "30613326-c961-4437-9fca-60042c98c056", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bb7ad166-939c-4040-93dc-e9dc24a7ed3c", - "Content-Length": "1217", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "332", - "x-ms-region": "West US 2", - "X-Request-ID": "bb7ad166-939c-4040-93dc-e9dc24a7ed3c" - }, - "ResponseBody": { - "dataFeedId": "5b4bd61a-f71d-4a4f-86b8-4fd023c41060", - "dataFeedName": "java_create_data_feed_test_sample2a5527b6-3dcd-4611-9c33-092d6a9c023d", - "metrics": [ - { - "metricId": "1aa959f3-a641-4e42-b363-c74db5d082eb", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "25bff8f9-7e28-495d-8321-549678c19e2e", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "MySql", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:23Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/5b4bd61a-f71d-4a4f-86b8-4fd023c41060", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "4aa1e002-c11f-45fd-b398-15fd8e7e2782", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "b4a4f0d1-d674-4881-9551-e4d34cd8d387", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "674", - "x-ms-region": "West US 2", - "X-Request-ID": "b4a4f0d1-d674-4881-9551-e4d34cd8d387" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createMongoDBDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createMongoDBDataFeed[1].json deleted file mode 100644 index 0959d005d933e..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createMongoDBDataFeed[1].json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "630", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "6e3d29cd-1c79-4bd5-9094-60d60e1b55b4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "MongoDB", - "dataFeedName": "java_create_data_feed_test_sample0fd161de-3691-4f50-8507-13e0867560ab", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "database": "adsample", - "command": "{\u0022find\u0022: \u0022adsample\u0022,\u0022filter\u0022: { Timestamp: { $eq: @StartTime }}\u0022batchSize\u0022: 2000,}" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "7228e1c2-e6d8-44b8-a55d-c23aecd5802c", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/60a60fbd-a3f8-4e54-a6e8-63d2486cf6b7", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2083", - "x-ms-region": "West US 2", - "X-Request-ID": "7228e1c2-e6d8-44b8-a55d-c23aecd5802c" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/60a60fbd-a3f8-4e54-a6e8-63d2486cf6b7", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "62bf7a2b-6649-4a27-bf1b-42c4c460b3e6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "de3e4d3d-8c9b-4045-9bfa-54c8ed60de7e", - "Content-Length": "1281", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "233", - "x-ms-region": "West US 2", - "X-Request-ID": "de3e4d3d-8c9b-4045-9bfa-54c8ed60de7e" - }, - "ResponseBody": { - "dataFeedId": "60a60fbd-a3f8-4e54-a6e8-63d2486cf6b7", - "dataFeedName": "java_create_data_feed_test_sample0fd161de-3691-4f50-8507-13e0867560ab", - "metrics": [ - { - "metricId": "4b649824-d2e3-42a8-a9f2-ebc2911b2e28", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "6c28e86d-2f22-4107-8145-42ff87178642", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "MongoDB", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:27Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "database": "adsample", - "command": "{\u0022find\u0022: \u0022adsample\u0022,\u0022filter\u0022: { Timestamp: { $eq: @StartTime }}\u0022batchSize\u0022: 2000,}" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/60a60fbd-a3f8-4e54-a6e8-63d2486cf6b7", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "7c14a491-6eb1-47b5-8b69-f3c598e6999c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "b5c4f82c-51f9-4ac6-a42d-5e1ddbfe750c", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "490", - "x-ms-region": "West US 2", - "X-Request-ID": "b5c4f82c-51f9-4ac6-a42d-5e1ddbfe750c" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createPostgreSQLDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createPostgreSQLDataFeed[1].json deleted file mode 100644 index 234e0fd841298..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createPostgreSQLDataFeed[1].json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "571", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c7d5139d-0527-4c4f-90d8-81f45dfb0f69", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "PostgreSql", - "dataFeedName": "java_create_data_feed_test_samplef92d1e46-bab7-4a85-bf6a-c231c376e032", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "c3aa9d51-4cfc-4c0a-8fbe-2fbba9afb547", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9324b9dd-4006-41ee-897e-3395ca7f6451", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1086", - "x-ms-region": "West US 2", - "X-Request-ID": "c3aa9d51-4cfc-4c0a-8fbe-2fbba9afb547" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9324b9dd-4006-41ee-897e-3395ca7f6451", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b90c76d0-f95d-45e4-8eb2-44707b729a93", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0389cf8c-fdad-4344-83d8-0cea20ffeb1f", - "Content-Length": "1222", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "179", - "x-ms-region": "West US 2", - "X-Request-ID": "0389cf8c-fdad-4344-83d8-0cea20ffeb1f" - }, - "ResponseBody": { - "dataFeedId": "9324b9dd-4006-41ee-897e-3395ca7f6451", - "dataFeedName": "java_create_data_feed_test_samplef92d1e46-bab7-4a85-bf6a-c231c376e032", - "metrics": [ - { - "metricId": "2e918a23-7940-4b61-9798-a1d049d42af3", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "4c344ea1-8fc4-4d6e-bda0-5b56fc80e24a", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "PostgreSql", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:19Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9324b9dd-4006-41ee-897e-3395ca7f6451", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "3099eedf-ebf7-4896-89c1-f194035ff7a8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "b32489f2-08f1-4489-88a3-caa67cecfb24", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "341", - "x-ms-region": "West US 2", - "X-Request-ID": "b32489f2-08f1-4489-88a3-caa67cecfb24" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createSQLServerDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createSQLServerDataFeed[1].json deleted file mode 100644 index af9726cb36dce..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.createSQLServerDataFeed[1].json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "599", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d413d371-0973-4166-8b48-c9d21997bda8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample275d2830-4136-4126-97d5-439cf367f164", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "04816bd5-19ef-476d-831b-4bdd1d0511b1", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/635470de-235f-4c1b-812a-61ab98247af7", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1233", - "x-ms-region": "West US 2", - "X-Request-ID": "04816bd5-19ef-476d-831b-4bdd1d0511b1" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/635470de-235f-4c1b-812a-61ab98247af7", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "3d6d98a5-5d4a-46fc-9537-474c6f7570d5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ddad2ab0-7d09-462d-91bd-17e29aa7ebd8", - "Content-Length": "1221", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "159", - "x-ms-region": "West US 2", - "X-Request-ID": "ddad2ab0-7d09-462d-91bd-17e29aa7ebd8" - }, - "ResponseBody": { - "dataFeedId": "635470de-235f-4c1b-812a-61ab98247af7", - "dataFeedName": "java_create_data_feed_test_sample275d2830-4136-4126-97d5-439cf367f164", - "metrics": [ - { - "metricId": "a854649f-d3c6-4f17-8819-dca6f11d4190", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "60bbe264-3ebf-475f-9fd5-9c4893be4979", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/635470de-235f-4c1b-812a-61ab98247af7", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "2abb8afa-a147-4622-8218-afe49993e962", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "43de14ec-e606-487e-a1b7-4d6e04ff4c0c", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "253", - "x-ms-region": "West US 2", - "X-Request-ID": "43de14ec-e606-487e-a1b7-4d6e04ff4c0c" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.deleteDataFeedIdWithResponse[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.deleteDataFeedIdWithResponse[1].json deleted file mode 100644 index 39e428bee74d8..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.deleteDataFeedIdWithResponse[1].json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "599", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b0e760c0-3cf5-4e06-8c52-65c3fdd98eec", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample7b164472-5a4c-45b3-9fd0-e7f373ccb407", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "7bceaaf9-b35a-4b5c-a81c-c62968dd8cb1", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/98491287-4a77-4490-bab5-5538e0bdf1b0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "963", - "x-ms-region": "West US 2", - "X-Request-ID": "7bceaaf9-b35a-4b5c-a81c-c62968dd8cb1" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/98491287-4a77-4490-bab5-5538e0bdf1b0", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "0e96ac49-5466-4f3e-b3cf-7a8b12bbd675", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "29af3f19-2041-41e4-bb1a-3fafe1571f82", - "Content-Length": "1221", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "152", - "x-ms-region": "West US 2", - "X-Request-ID": "29af3f19-2041-41e4-bb1a-3fafe1571f82" - }, - "ResponseBody": { - "dataFeedId": "98491287-4a77-4490-bab5-5538e0bdf1b0", - "dataFeedName": "java_create_data_feed_test_sample7b164472-5a4c-45b3-9fd0-e7f373ccb407", - "metrics": [ - { - "metricId": "c29617c0-a041-435d-a0bd-e6a314c5b21c", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "303896cf-4fb8-49c1-8ba5-08a09eaaf121", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:11Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/98491287-4a77-4490-bab5-5538e0bdf1b0", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "64d9595b-f2e2-407c-9f81-dee7943ae907", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "8c5c3990-3808-401f-880c-638e49087bcd", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "540", - "x-ms-region": "West US 2", - "X-Request-ID": "8c5c3990-3808-401f-880c-638e49087bcd" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/98491287-4a77-4490-bab5-5538e0bdf1b0", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "feefa6d8-5b8b-4b60-ba3d-85b19f827946", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "apim-request-id": "ad339ca6-23a4-4d82-91eb-755d8831000f", - "Content-Length": "59", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "109", - "x-ms-region": "West US 2", - "X-Request-ID": "ad339ca6-23a4-4d82-91eb-755d8831000f" - }, - "ResponseBody": { - "code": "404 NOT_FOUND", - "message": "datafeedId is invalid." - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.getDataFeedValidId[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.getDataFeedValidId[1].json deleted file mode 100644 index 740c79507a8dd..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.getDataFeedValidId[1].json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "599", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ea07bb04-9e3f-45fc-aa3d-7ccf4267008d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_samplea8817525-3cb0-4f0a-9e13-70441294683e", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "2f75794d-1ff3-480e-873e-4f7f6c8bf00f", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/6a818a08-a1d8-44ba-9e60-614fcd1706ea", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "592", - "x-ms-region": "West US 2", - "X-Request-ID": "2f75794d-1ff3-480e-873e-4f7f6c8bf00f" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/6a818a08-a1d8-44ba-9e60-614fcd1706ea", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "cee1e366-8fbb-4f4f-a791-debfcb775650", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "062e9982-2906-4f59-8346-e5b879aff086", - "Content-Length": "1221", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "146", - "x-ms-region": "West US 2", - "X-Request-ID": "062e9982-2906-4f59-8346-e5b879aff086" - }, - "ResponseBody": { - "dataFeedId": "6a818a08-a1d8-44ba-9e60-614fcd1706ea", - "dataFeedName": "java_create_data_feed_test_samplea8817525-3cb0-4f0a-9e13-70441294683e", - "metrics": [ - { - "metricId": "1f883ce9-da08-4689-88a1-481df027e473", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "cb161048-1732-48aa-8d18-bb9a4655b656", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:16Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/6a818a08-a1d8-44ba-9e60-614fcd1706ea", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "037ff298-e388-4ed7-9609-098a7945b363", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "4a332ca7-cfd8-4c60-a80e-c45c14c564a7", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "265", - "x-ms-region": "West US 2", - "X-Request-ID": "4a332ca7-cfd8-4c60-a80e-c45c14c564a7" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByCreator[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByCreator[1].json deleted file mode 100644 index 1a51b0dfd469a..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByCreator[1].json +++ /dev/null @@ -1,321 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "571", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:23:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d8d19f1a-4de0-4317-9cc0-49c5b1001779", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "PostgreSql", - "dataFeedName": "java_create_data_feed_test_sample861e9a6a-ffe7-425f-a746-b15135afb068", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "9b063eaf-b7ff-4363-aa5a-82bbebe0e6ec", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:23:45 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/d922e19c-7ace-44d7-9ec7-317cf0cc6f55", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "812", - "x-ms-region": "West US 2", - "X-Request-ID": "9b063eaf-b7ff-4363-aa5a-82bbebe0e6ec" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/d922e19c-7ace-44d7-9ec7-317cf0cc6f55", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:23:46 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "5bce89ad-e24e-4273-b5dc-639b87062623", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0428155b-db6d-4920-923d-8effd13e27b5", - "Content-Length": "1236", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:23:46 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "188", - "x-ms-region": "West US 2", - "X-Request-ID": "0428155b-db6d-4920-923d-8effd13e27b5" - }, - "ResponseBody": { - "dataFeedId": "d922e19c-7ace-44d7-9ec7-317cf0cc6f55", - "dataFeedName": "java_create_data_feed_test_sample861e9a6a-ffe7-425f-a746-b15135afb068", - "metrics": [ - { - "metricId": "8901ba3d-a690-450c-b6f5-a76bb68d13db", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "c8f5d65c-3b0d-417a-bf70-1aaa355bda43", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "PostgreSql", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "xiangyan@microsoft.com", - "status": "Active", - "createdTime": "2023-04-17T23:23:45Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?creator=xiangyan%40microsoft.com", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:23:46 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "5d514630-a579-4e86-ba7b-3c2fdcad0b36", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6be1a692-4faf-46a1-ac65-740dab925da5", - "Content-Length": "2559", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:23:46 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "199", - "x-ms-region": "West US 2", - "X-Request-ID": "6be1a692-4faf-46a1-ac65-740dab925da5" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "d922e19c-7ace-44d7-9ec7-317cf0cc6f55", - "dataFeedName": "java_create_data_feed_test_sample861e9a6a-ffe7-425f-a746-b15135afb068", - "metrics": [ - { - "metricId": "8901ba3d-a690-450c-b6f5-a76bb68d13db", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "c8f5d65c-3b0d-417a-bf70-1aaa355bda43", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "PostgreSql", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "xiangyan@microsoft.com", - "status": "Active", - "createdTime": "2023-04-17T23:23:45Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "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": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "xiangyan@microsoft.com", - "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" - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/d922e19c-7ace-44d7-9ec7-317cf0cc6f55", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:23:47 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e7d0885e-433d-4135-9a2d-c07a98339314", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "0145193b-db87-4454-9db6-5031b3889cf2", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:23:47 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "378", - "x-ms-region": "West US 2", - "X-Request-ID": "0145193b-db87-4454-9db6-5031b3889cf2" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByGranularityType[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByGranularityType[1].json deleted file mode 100644 index 37c1ab9a86215..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByGranularityType[1].json +++ /dev/null @@ -1,455 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?granularityName=Daily", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d12e3aaf-41a1-4f13-9994-895548b2d5ae", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b36fda09-cff9-4545-9e64-789ff3dacc15", - "Content-Length": "9467", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "176", - "x-ms-region": "West US 2", - "X-Request-ID": "b36fda09-cff9-4545-9e64-789ff3dacc15" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "a2e6e630-1894-4236-b8fb-5604b710fd0b", - "dataFeedName": "java_SQL_create_data_feed_test_sample16e1e952-8e01-471e-913e-dad29b03ccf3", - "metrics": [ - { - "metricId": "a1674f0f-64d4-4588-9e33-8a8aaf8d6ed6", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "ddb52e1e-62b4-4e36-a4dd-1a89fa4a0a9a", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:22Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "0f7e172b-d0f7-4c99-accb-066b5b5a40af", - "dataFeedName": "java_BLOB_create_data_feed_test_sample6b92b342-7a98-4903-b2b7-fdc99d5f6669", - "metrics": [ - { - "metricId": "09066a52-03c7-49ee-84d4-3cc99fae6e2d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "41e0dcab-ac58-4120-a5e9-1df4a5164378", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "BLOB_CONTAINER", - "blobTemplate": "BLOB_TEMPLATE_NAME" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "48a8ba18-6093-4c7e-b98c-5060c199b26b", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "metrics": [ - { - "metricId": "1d664d0d-6016-48a8-a309-618eec266450", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "bd8b677f-c7a5-4c95-ac2f-9779c47f1b2c", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:19Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "8651e3a2-fe0a-4310-9c5a-5c5e6b726129" - }, - { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "AzureSQLConnectionString", - "credentialId": "614f38b9-7a84-4915-a300-1cb18a66f552" - }, - { - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByName[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByName[1].json deleted file mode 100644 index d3986ef5ab5aa..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByName[1].json +++ /dev/null @@ -1,262 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "549", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "cf292e22-0b49-4dbe-b2ba-5fba658c6c89", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "test_filter_by_name", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "98e55df4-fc64-4976-9c54-f8df64acca0d", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/db426d46-c42e-4c1b-908a-fa08717f9b1a", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2162", - "x-ms-region": "West US 2", - "X-Request-ID": "98e55df4-fc64-4976-9c54-f8df64acca0d" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/db426d46-c42e-4c1b-908a-fa08717f9b1a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "034d3243-9f8b-4c3c-9a7a-38fb8ef43bc4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6c1cbcc0-79c0-4b44-8920-fc988ef30f9b", - "Content-Length": "1171", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "215", - "x-ms-region": "West US 2", - "X-Request-ID": "6c1cbcc0-79c0-4b44-8920-fc988ef30f9b" - }, - "ResponseBody": { - "dataFeedId": "db426d46-c42e-4c1b-908a-fa08717f9b1a", - "dataFeedName": "test_filter_by_name", - "metrics": [ - { - "metricId": "462a3257-8351-4f6a-9f58-0057d6f7928d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "8bd5aa7f-ed68-4727-b1e6-6b5099cfabfd", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:26Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?dataFeedName=test_filter_by_name", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "44ad776b-c6c6-4b7f-93f0-3bbe350495a5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ce423e4f-cb7f-412a-9e31-61a8be14ec7b", - "Content-Length": "1183", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "200", - "x-ms-region": "West US 2", - "X-Request-ID": "ce423e4f-cb7f-412a-9e31-61a8be14ec7b" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "db426d46-c42e-4c1b-908a-fa08717f9b1a", - "dataFeedName": "test_filter_by_name", - "metrics": [ - { - "metricId": "462a3257-8351-4f6a-9f58-0057d6f7928d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "8bd5aa7f-ed68-4727-b1e6-6b5099cfabfd", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:26Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/db426d46-c42e-4c1b-908a-fa08717f9b1a", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b3d661c9-f409-447e-9eb0-16d9f58ca493", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "ab3a1cf2-95b0-484e-88e9-a350bcb1e1c8", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "507", - "x-ms-region": "West US 2", - "X-Request-ID": "ab3a1cf2-95b0-484e-88e9-a350bcb1e1c8" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterBySourceType[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterBySourceType[1].json deleted file mode 100644 index 9796ba0e53bae..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterBySourceType[1].json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?dataSourceType=AzureBlob", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c281d013-300b-47e8-a463-8a13f7653c08", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bc4f4346-0f07-4da8-b062-b1fe3438594b", - "Content-Length": "1486", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "135", - "x-ms-region": "West US 2", - "X-Request-ID": "bc4f4346-0f07-4da8-b062-b1fe3438594b" - }, - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByStatus[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByStatus[1].json deleted file mode 100644 index e81391c77955c..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedFilterByStatus[1].json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?status=Active", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "8db7e968-e919-40b6-b548-d1109d5e0b0d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e80028a0-6eeb-4373-a311-4fd41eb22cf7", - "Content-Length": "1486", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "139", - "x-ms-region": "West US 2", - "X-Request-ID": "e80028a0-6eeb-4373-a311-4fd41eb22cf7" - }, - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedTop3[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedTop3[1].json deleted file mode 100644 index 1830721759177..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeedTop3[1].json +++ /dev/null @@ -1,520 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?$maxpagesize=3", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "943fef6c-bfc6-4e65-85b3-12b3dc2d451b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d09c745a-89f6-4ee2-8b37-c6b501f63305", - "Content-Length": "3844", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "123", - "x-ms-region": "West US 2", - "X-Request-ID": "d09c745a-89f6-4ee2-8b37-c6b501f63305" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "d7001b7e-a566-42bc-b906-8015ed5ae58f", - "dataFeedName": "java_create_data_feed_test_sample577da072-6750-41bd-8c4b-a871652c42ad", - "metrics": [ - { - "metricId": "691b1e00-c454-4231-beee-c1951323c1c5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "c30f5bf2-b789-4869-b9ad-c648c0b20313", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "ManagedIdentity" - }, - { - "dataFeedId": "0f7e172b-d0f7-4c99-accb-066b5b5a40af", - "dataFeedName": "java_BLOB_create_data_feed_test_sample6b92b342-7a98-4903-b2b7-fdc99d5f6669", - "metrics": [ - { - "metricId": "09066a52-03c7-49ee-84d4-3cc99fae6e2d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "41e0dcab-ac58-4120-a5e9-1df4a5164378", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "BLOB_CONTAINER", - "blobTemplate": "BLOB_TEMPLATE_NAME" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "5438398f-8a6c-449e-9b11-3b41594b8d60", - "dataFeedName": "java_create_data_feed_test_sample88e152a0-9eaf-4e4c-986d-b0700ae75c4d", - "metrics": [ - { - "metricId": "188e2746-02ca-44f4-b7f4-95575e4c7739", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "b862d804-971d-4d0b-a904-a93fe98d0106", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:20Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "ManagedIdentity" - } - ], - "@nextLink": "https://ga-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$maxpagesize=3\u0026$skip=3" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?$maxpagesize=3\u0026$skip=3", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "df85e307-6c23-407e-be5c-f12519e84029", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0514329f-7e56-48e1-9fdd-ca9cfe939bf7", - "Content-Length": "4204", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "123", - "x-ms-region": "West US 2", - "X-Request-ID": "0514329f-7e56-48e1-9fdd-ca9cfe939bf7" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "AzureSQLConnectionString", - "credentialId": "614f38b9-7a84-4915-a300-1cb18a66f552" - }, - { - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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" - } - ], - "@nextLink": "https://ga-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$maxpagesize=3\u0026$skip=6" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?$maxpagesize=3\u0026$skip=6", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c44b3737-f654-4047-bfba-9de5f096a9fa", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3233134f-d46e-4613-a888-9063156b7739", - "Content-Length": "1554", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "154", - "x-ms-region": "West US 2", - "X-Request-ID": "3233134f-d46e-4613-a888-9063156b7739" - }, - "ResponseBody": { - "value": [ - { - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeed[1].json deleted file mode 100644 index 1bb200c81dbd2..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.testListDataFeed[1].json +++ /dev/null @@ -1,656 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "483", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ad369c6b-032d-437c-85cc-99449cfd3103", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureBlob", - "dataFeedName": "java_BLOB_create_data_feed_test_sample6b92b342-7a98-4903-b2b7-fdc99d5f6669", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost" - }, - { - "metricName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region" - }, - { - "dimensionName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "container": "BLOB_CONTAINER", - "blobTemplate": "BLOB_TEMPLATE_NAME" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "a0234351-7e58-4b5f-aa6d-608d700157b4", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0f7e172b-d0f7-4c99-accb-066b5b5a40af", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1298", - "x-ms-region": "West US 2", - "X-Request-ID": "a0234351-7e58-4b5f-aa6d-608d700157b4" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0f7e172b-d0f7-4c99-accb-066b5b5a40af", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "9ba0d44e-4faf-4c38-920e-372dd87166b8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "14a6d222-2b46-4040-8325-c640d1fd9d43", - "Content-Length": "1228", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "132", - "x-ms-region": "West US 2", - "X-Request-ID": "14a6d222-2b46-4040-8325-c640d1fd9d43" - }, - "ResponseBody": { - "dataFeedId": "0f7e172b-d0f7-4c99-accb-066b5b5a40af", - "dataFeedName": "java_BLOB_create_data_feed_test_sample6b92b342-7a98-4903-b2b7-fdc99d5f6669", - "metrics": [ - { - "metricId": "09066a52-03c7-49ee-84d4-3cc99fae6e2d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "41e0dcab-ac58-4120-a5e9-1df4a5164378", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "BLOB_CONTAINER", - "blobTemplate": "BLOB_TEMPLATE_NAME" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "480", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d3dfae32-5ea1-42df-9786-2cd49b464f06", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_SQL_create_data_feed_test_sample16e1e952-8e01-471e-913e-dad29b03ccf3", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost" - }, - { - "metricName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region" - }, - { - "dimensionName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "68c9434a-e7b2-4792-b6f1-8aa9092bc19a", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/a2e6e630-1894-4236-b8fb-5604b710fd0b", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "847", - "x-ms-region": "West US 2", - "X-Request-ID": "68c9434a-e7b2-4792-b6f1-8aa9092bc19a" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/a2e6e630-1894-4236-b8fb-5604b710fd0b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "0ea99c2c-f94c-41c4-9b31-10505a0ef862", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6e47156e-7c19-4b47-aa8b-cfb947b4f21f", - "Content-Length": "1225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "186", - "x-ms-region": "West US 2", - "X-Request-ID": "6e47156e-7c19-4b47-aa8b-cfb947b4f21f" - }, - "ResponseBody": { - "dataFeedId": "a2e6e630-1894-4236-b8fb-5604b710fd0b", - "dataFeedName": "java_SQL_create_data_feed_test_sample16e1e952-8e01-471e-913e-dad29b03ccf3", - "metrics": [ - { - "metricId": "a1674f0f-64d4-4588-9e33-8a8aaf8d6ed6", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "ddb52e1e-62b4-4e36-a4dd-1a89fa4a0a9a", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:22Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?dataFeedName=java_\u0026granularityName=Daily", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "6df9fad7-ef95-4f95-92e2-0db605dd2217", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d1beda3b-3b81-4997-a35f-cd59ffaf14e8", - "Content-Length": "6441", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "204", - "x-ms-region": "West US 2", - "X-Request-ID": "d1beda3b-3b81-4997-a35f-cd59ffaf14e8" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "54d2f127-3b8d-4ae1-824a-86dc56034b75", - "dataFeedName": "java_create_data_feed_test_sample61382665-934b-4f9e-8de4-4a278627e7a1", - "metrics": [ - { - "metricId": "587234b2-f5ef-4775-b67b-ef8228f9ec17", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "6d98ed84-3abf-43e0-bb08-dd4212aea816", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:23Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "a2e6e630-1894-4236-b8fb-5604b710fd0b", - "dataFeedName": "java_SQL_create_data_feed_test_sample16e1e952-8e01-471e-913e-dad29b03ccf3", - "metrics": [ - { - "metricId": "a1674f0f-64d4-4588-9e33-8a8aaf8d6ed6", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "ddb52e1e-62b4-4e36-a4dd-1a89fa4a0a9a", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:22Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "0f7e172b-d0f7-4c99-accb-066b5b5a40af", - "dataFeedName": "java_BLOB_create_data_feed_test_sample6b92b342-7a98-4903-b2b7-fdc99d5f6669", - "metrics": [ - { - "metricId": "09066a52-03c7-49ee-84d4-3cc99fae6e2d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "41e0dcab-ac58-4120-a5e9-1df4a5164378", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "BLOB_CONTAINER", - "blobTemplate": "BLOB_TEMPLATE_NAME" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "48a8ba18-6093-4c7e-b98c-5060c199b26b", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "metrics": [ - { - "metricId": "1d664d0d-6016-48a8-a309-618eec266450", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "bd8b677f-c7a5-4c95-ac2f-9779c47f1b2c", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:19Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "8651e3a2-fe0a-4310-9c5a-5c5e6b726129" - }, - { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "AzureSQLConnectionString", - "credentialId": "614f38b9-7a84-4915-a300-1cb18a66f552" - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0f7e172b-d0f7-4c99-accb-066b5b5a40af", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ccc711d8-d862-496d-b901-0d4fa1cd582e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "ae1c66fc-069f-4c3c-966f-328ebdaa356f", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1038", - "x-ms-region": "West US 2", - "X-Request-ID": "ae1c66fc-069f-4c3c-966f-328ebdaa356f" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/a2e6e630-1894-4236-b8fb-5604b710fd0b", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e33ba077-cf44-4632-955a-5a85cbe2aca3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "bd6d1e46-946f-40f8-a5ea-32b957648b8e", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "708", - "x-ms-region": "West US 2", - "X-Request-ID": "bd6d1e46-946f-40f8-a5ea-32b957648b8e" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.updateDataFeedHappyPath[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.updateDataFeedHappyPath[1].json deleted file mode 100644 index 8fdf1ecf292fe..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedAsyncClientTest.updateDataFeedHappyPath[1].json +++ /dev/null @@ -1,366 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "599", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ac027661-5b57-4d55-b476-8a87164f600e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample22aa860d-bd81-4174-97b9-6c38993f13c2", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "75e8824b-b13b-405c-b5d1-7e8ce45d297a", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9f9954c2-c767-4e22-8f0d-c22f42cef32b", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1671", - "x-ms-region": "West US 2", - "X-Request-ID": "75e8824b-b13b-405c-b5d1-7e8ce45d297a" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9f9954c2-c767-4e22-8f0d-c22f42cef32b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "efbe353a-66d9-46be-9dd9-23bc91403920", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "63df310d-893f-42fd-8d25-0e1e1ae50255", - "Content-Length": "1221", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "151", - "x-ms-region": "West US 2", - "X-Request-ID": "63df310d-893f-42fd-8d25-0e1e1ae50255" - }, - "ResponseBody": { - "dataFeedId": "9f9954c2-c767-4e22-8f0d-c22f42cef32b", - "dataFeedName": "java_create_data_feed_test_sample22aa860d-bd81-4174-97b9-6c38993f13c2", - "metrics": [ - { - "metricId": "f50fc9c5-0ab3-4dd6-bbc3-7bb577d43c77", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "cdc81dad-f564-4fbc-a03d-bc83aed7c9fa", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:28Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9f9954c2-c767-4e22-8f0d-c22f42cef32b", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "576", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c0326a0f-38ac-4d94-a617-d84bcc49a034", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "test_updated_dataFeed_name", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "Basic", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8fb47455-c8b4-4e0b-a059-378a2ca2afce", - "Content-Length": "1178", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "851", - "x-ms-region": "West US 2", - "X-Request-ID": "8fb47455-c8b4-4e0b-a059-378a2ca2afce" - }, - "ResponseBody": { - "dataFeedId": "9f9954c2-c767-4e22-8f0d-c22f42cef32b", - "dataFeedName": "test_updated_dataFeed_name", - "metrics": [ - { - "metricId": "f50fc9c5-0ab3-4dd6-bbc3-7bb577d43c77", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "cdc81dad-f564-4fbc-a03d-bc83aed7c9fa", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:28Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9f9954c2-c767-4e22-8f0d-c22f42cef32b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "2ea05326-8d70-4382-8ade-42ae05c54864", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "987b77d1-b972-4aa9-aad2-2ac8e58aa587", - "Content-Length": "1178", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "211", - "x-ms-region": "West US 2", - "X-Request-ID": "987b77d1-b972-4aa9-aad2-2ac8e58aa587" - }, - "ResponseBody": { - "dataFeedId": "9f9954c2-c767-4e22-8f0d-c22f42cef32b", - "dataFeedName": "test_updated_dataFeed_name", - "metrics": [ - { - "metricId": "f50fc9c5-0ab3-4dd6-bbc3-7bb577d43c77", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "cdc81dad-f564-4fbc-a03d-bc83aed7c9fa", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:28Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9f9954c2-c767-4e22-8f0d-c22f42cef32b", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "4c76ed05-ee32-4a8b-bf26-9996c91a2011", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "b2ad14ba-4649-4ccb-8e0f-3f41971fe970", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "784", - "x-ms-region": "West US 2", - "X-Request-ID": "b2ad14ba-4649-4ccb-8e0f-3f41971fe970" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createAppInsightsDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createAppInsightsDataFeed[1].json deleted file mode 100644 index 1d8a7b2790fc1..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createAppInsightsDataFeed[1].json +++ /dev/null @@ -1,178 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "882", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "50f1b4f0-a397-4e37-8c21-c470fbbb1b8b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureApplicationInsights", - "dataFeedName": "java_create_data_feed_test_sample9b428b0d-cdaa-4ee2-bfd8-6fe3c26adb00", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "azureCloud": "Azure Global", - "applicationId": "REDACTED", - "apiKey": "REDACTED", - "query": "let gran=60m; let starttime=datetime(@StartTime); let endtime=starttime \u002B gran; requests | where timestamp \u003E= starttime and timestamp \u003C endtime | summarize request_count = count(), duration_avg_ms = avg(duration), duration_95th_ms = percentile(duration, 95), duration_max_ms = max(duration) by resultCode" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "f52565ce-4495-4a65-84b4-0ff5a01bf027", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/8a90a537-a8dc-43ae-9b36-926743c6844a", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1829", - "x-ms-region": "West US 2", - "X-Request-ID": "f52565ce-4495-4a65-84b4-0ff5a01bf027" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/8a90a537-a8dc-43ae-9b36-926743c6844a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f2dd7755-5583-4c54-8673-bf20d2620ae4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6b5cc4d5-2bac-40cd-981e-9ec8463c4a32", - "Content-Length": "1543", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "145", - "x-ms-region": "West US 2", - "X-Request-ID": "6b5cc4d5-2bac-40cd-981e-9ec8463c4a32" - }, - "ResponseBody": { - "dataFeedId": "8a90a537-a8dc-43ae-9b36-926743c6844a", - "dataFeedName": "java_create_data_feed_test_sample9b428b0d-cdaa-4ee2-bfd8-6fe3c26adb00", - "metrics": [ - { - "metricId": "64eb2529-b367-47b5-b700-4f129bfbfd73", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "b9e687ec-e532-4da0-90f2-ddb0def3cd3b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureApplicationInsights", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:30Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let gran=60m; let starttime=datetime(@StartTime); let endtime=starttime \u002B gran; requests | where timestamp \u003E= starttime and timestamp \u003C endtime | summarize request_count = count(), duration_avg_ms = avg(duration), duration_95th_ms = percentile(duration, 95), duration_max_ms = max(duration) by resultCode", - "azureCloud": "Azure Global", - "applicationId": "REDACTED" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/8a90a537-a8dc-43ae-9b36-926743c6844a", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c9a23b16-b3ee-4f28-8ff4-e84d9939099f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "a1046011-b175-44f6-b76f-f31f10c052d5", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "480", - "x-ms-region": "West US 2", - "X-Request-ID": "a1046011-b175-44f6-b76f-f31f10c052d5" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createAzureTableDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createAzureTableDataFeed[1].json deleted file mode 100644 index 443c687c3223c..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createAzureTableDataFeed[1].json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "597", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "5d0c2647-c5f4-4bc2-9b84-9cd9fad57845", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureTable", - "dataFeedName": "java_create_data_feed_test_sample6ef282d6-c66e-4c49-9f6c-2e4a97321c20", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "table": "adsample", - "query": "PartitionKey ge \u0027@StartTime\u0027 and PartitionKey lt \u0027@EndTime\u0027" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "a7a778cd-35f3-49fd-bd03-616b87e8225d", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/231d3d83-cc29-452c-92ff-d99fdd3c3e3e", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1287", - "x-ms-region": "West US 2", - "X-Request-ID": "a7a778cd-35f3-49fd-bd03-616b87e8225d" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/231d3d83-cc29-452c-92ff-d99fdd3c3e3e", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c3630026-1765-4b75-92e0-d32b119b34f3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "014dc663-06c8-4ad0-8654-2e6d0b2b9459", - "Content-Length": "1248", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "257", - "x-ms-region": "West US 2", - "X-Request-ID": "014dc663-06c8-4ad0-8654-2e6d0b2b9459" - }, - "ResponseBody": { - "dataFeedId": "231d3d83-cc29-452c-92ff-d99fdd3c3e3e", - "dataFeedName": "java_create_data_feed_test_sample6ef282d6-c66e-4c49-9f6c-2e4a97321c20", - "metrics": [ - { - "metricId": "b688fac4-5102-49e1-a972-81c256482e35", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d4b8360f-7a33-4408-bcca-527687850539", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureTable", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:29Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "PartitionKey ge \u0027@StartTime\u0027 and PartitionKey lt \u0027@EndTime\u0027", - "table": "adsample" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/231d3d83-cc29-452c-92ff-d99fdd3c3e3e", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "3a95f3e0-08f0-49bb-8283-d29be3c5ffc3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "33369509-bca8-4454-8aba-35f7ecda6cab", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "562", - "x-ms-region": "West US 2", - "X-Request-ID": "33369509-bca8-4454-8aba-35f7ecda6cab" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createBlobDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createBlobDataFeed[1].json deleted file mode 100644 index 18cfa9d98455a..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createBlobDataFeed[1].json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "606", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "81c73ba1-3248-4e2c-bed6-50e0c7c64bde", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureBlob", - "dataFeedName": "java_create_data_feed_test_samplee7dfecc1-c477-4151-9c5a-b1c72568fafe", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "3aa3b424-0fdd-4ff1-ba87-53e2f2f1aa09", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/b710136a-e5da-4090-9737-2f892d0cb830", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1362", - "x-ms-region": "West US 2", - "X-Request-ID": "3aa3b424-0fdd-4ff1-ba87-53e2f2f1aa09" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/b710136a-e5da-4090-9737-2f892d0cb830", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b128b469-c5d2-48ff-b967-4812c7dcbfed", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "aa4f1c93-183f-4a89-87c2-7947c93ae1d0", - "Content-Length": "1228", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "159", - "x-ms-region": "West US 2", - "X-Request-ID": "aa4f1c93-183f-4a89-87c2-7947c93ae1d0" - }, - "ResponseBody": { - "dataFeedId": "b710136a-e5da-4090-9737-2f892d0cb830", - "dataFeedName": "java_create_data_feed_test_samplee7dfecc1-c477-4151-9c5a-b1c72568fafe", - "metrics": [ - { - "metricId": "8a034a3f-f3be-42dc-9521-cc538bf041a9", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "b689bb34-0a75-4d88-8756-f67053e950bf", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:15Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/b710136a-e5da-4090-9737-2f892d0cb830", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "eb98875e-280c-4419-85e3-5a1ff3b1efc2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "35db92b3-527c-4f64-8b78-a25bc8f076f3", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "244", - "x-ms-region": "West US 2", - "X-Request-ID": "35db92b3-527c-4f64-8b78-a25bc8f076f3" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createCosmosDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createCosmosDataFeed[1].json deleted file mode 100644 index 6a0a5729b8334..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createCosmosDataFeed[1].json +++ /dev/null @@ -1,178 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "625", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "63ef833c-0fdf-405d-8888-5bbebec5480b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureCosmosDB", - "dataFeedName": "java_create_data_feed_test_sample0916fb9d-6f61-4df7-9243-d33411167edf", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "sqlQuery": "select * from adsample2 where Timestamp = @StartTime", - "database": "adsample", - "collectionId": "adsample" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "4c3047f0-f8f9-4497-872b-dff0215ab4c1", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/95a519de-a624-4ca0-a137-7b6112995783", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1083", - "x-ms-region": "West US 2", - "X-Request-ID": "4c3047f0-f8f9-4497-872b-dff0215ab4c1" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/95a519de-a624-4ca0-a137-7b6112995783", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "2350e92c-f068-423f-b85a-693a8117883d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d573302c-0c49-4190-bb89-8c9472e66493", - "Content-Length": "1276", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "141", - "x-ms-region": "West US 2", - "X-Request-ID": "d573302c-0c49-4190-bb89-8c9472e66493" - }, - "ResponseBody": { - "dataFeedId": "95a519de-a624-4ca0-a137-7b6112995783", - "dataFeedName": "java_create_data_feed_test_sample0916fb9d-6f61-4df7-9243-d33411167edf", - "metrics": [ - { - "metricId": "93b8517f-4e43-4477-96d2-c54d407e620a", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "3265685d-b009-4646-8684-4b55393b06dd", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureCosmosDB", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:19Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "database": "adsample", - "sqlQuery": "select * from adsample2 where Timestamp = @StartTime", - "collectionId": "adsample" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/95a519de-a624-4ca0-a137-7b6112995783", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "5aadf3c8-0844-4cfc-810e-f10fbcbe9e45", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "0cde5c0e-cd29-4f04-acb7-acbb3472998c", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "486", - "x-ms-region": "West US 2", - "X-Request-ID": "0cde5c0e-cd29-4f04-acb7-acbb3472998c" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataFeedDuplicateMetricName[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataFeedDuplicateMetricName[1].json deleted file mode 100644 index 52903401ae56f..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataFeedDuplicateMetricName[1].json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "403", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d8dbd7c1-a85c-436d-97b4-981ececeab13", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample82411933-7ae3-4fa4-8f3b-f71db4cf4610", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost" - }, - { - "metricName": "cost" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "8e2c836f-3a6f-4de4-a84a-795b91646e5f", - "Content-Length": "92", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "137", - "x-ms-region": "West US 2", - "X-Request-ID": "8e2c836f-3a6f-4de4-a84a-795b91646e5f" - }, - "ResponseBody": { - "code": "ERROR_DUP_NAME", - "message": "The metric name \u0027cost\u0027 is duplicate,please remove one." - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataFeedRequiredParams[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataFeedRequiredParams[1].json deleted file mode 100644 index f721723386d8a..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataFeedRequiredParams[1].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Entries": [], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataLakeStorageDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataLakeStorageDataFeed[1].json deleted file mode 100644 index f90085ade1052..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createDataLakeStorageDataFeed[1].json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "660", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "036873ce-825c-43a1-8069-f58efa208fcd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataLakeStorageGen2", - "dataFeedName": "java_create_data_feed_test_sample61382665-934b-4f9e-8de4-4a278627e7a1", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "accountName": "REDACTED", - "accountKey": "REDACTED", - "fileSystemName": "adsample", - "directoryTemplate": "%Y/%m/%d", - "fileTemplate": "adsample.json" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "2cf784c3-9133-4b64-8b43-6d30fcec30ed", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/54d2f127-3b8d-4ae1-824a-86dc56034b75", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "856", - "x-ms-region": "West US 2", - "X-Request-ID": "2cf784c3-9133-4b64-8b43-6d30fcec30ed" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/54d2f127-3b8d-4ae1-824a-86dc56034b75", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "db6707b5-e290-443e-8389-89c2307778ca", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "47f3d80f-07f5-4ec6-8b09-aa7ece9e21d1", - "Content-Length": "1288", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "178", - "x-ms-region": "West US 2", - "X-Request-ID": "47f3d80f-07f5-4ec6-8b09-aa7ece9e21d1" - }, - "ResponseBody": { - "dataFeedId": "54d2f127-3b8d-4ae1-824a-86dc56034b75", - "dataFeedName": "java_create_data_feed_test_sample61382665-934b-4f9e-8de4-4a278627e7a1", - "metrics": [ - { - "metricId": "587234b2-f5ef-4775-b67b-ef8228f9ec17", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "6d98ed84-3abf-43e0-bb08-dd4212aea816", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:23Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/54d2f127-3b8d-4ae1-824a-86dc56034b75", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "50af7e11-a521-491a-9208-5ae2a9ce4c54", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "969722f2-9434-4674-a764-4c7b2f7b4c67", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "842", - "x-ms-region": "West US 2", - "X-Request-ID": "969722f2-9434-4674-a764-4c7b2f7b4c67" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createExplorerDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createExplorerDataFeed[1].json deleted file mode 100644 index d76fb62b72f8a..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createExplorerDataFeed[1].json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "703", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "04aee430-5b57-464d-9c95-3c0e6e7ade71", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataExplorer", - "dataFeedName": "java_create_data_feed_test_samplef5163d0f-a11f-402a-965b-618f27700e6a", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "db839826-3529-4ef8-b786-02b3b913d572", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ea99fab2-bd1c-4ba3-9f84-a630634fb546", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1258", - "x-ms-region": "West US 2", - "X-Request-ID": "db839826-3529-4ef8-b786-02b3b913d572" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ea99fab2-bd1c-4ba3-9f84-a630634fb546", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "302366c8-6ffa-4dde-b856-bad8d49bdd30", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "81ec5948-0b08-4e4c-8c33-3212087189de", - "Content-Length": "1325", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "310", - "x-ms-region": "West US 2", - "X-Request-ID": "81ec5948-0b08-4e4c-8c33-3212087189de" - }, - "ResponseBody": { - "dataFeedId": "ea99fab2-bd1c-4ba3-9f84-a630634fb546", - "dataFeedName": "java_create_data_feed_test_samplef5163d0f-a11f-402a-965b-618f27700e6a", - "metrics": [ - { - "metricId": "53a6ecf7-c308-4e9f-9fa7-dcc6d4bb3d94", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "98821587-fd2b-41ca-aecc-96ada5caef74", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:29Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ea99fab2-bd1c-4ba3-9f84-a630634fb546", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "23e32bc9-99d2-4b53-a30d-75ec6397bce0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "b3bdafc3-fb27-431c-92af-5160e811785a", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "484", - "x-ms-region": "West US 2", - "X-Request-ID": "b3bdafc3-fb27-431c-92af-5160e811785a" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createInfluxDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createInfluxDataFeed[1].json deleted file mode 100644 index e8254367ed26b..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createInfluxDataFeed[1].json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "635", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "77628da0-10ac-4970-9dc0-b432c9d8dd7b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "InfluxDB", - "dataFeedName": "java_create_data_feed_test_sample786701d5-248d-4ab8-8afd-8abee94a2290", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "database": "adsample", - "userName": "REDACTED", - "password": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "3fe6e071-09c7-4a7b-b16a-c7d9221e1d22", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/2beed8dc-7bd8-428d-aa70-863834f314b3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "726", - "x-ms-region": "West US 2", - "X-Request-ID": "3fe6e071-09c7-4a7b-b16a-c7d9221e1d22" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/2beed8dc-7bd8-428d-aa70-863834f314b3", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "be01d9ec-b586-4cf7-947a-599d02111621", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b08c88b7-d0a6-4cc8-992c-53c25e553011", - "Content-Length": "1294", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "135", - "x-ms-region": "West US 2", - "X-Request-ID": "b08c88b7-d0a6-4cc8-992c-53c25e553011" - }, - "ResponseBody": { - "dataFeedId": "2beed8dc-7bd8-428d-aa70-863834f314b3", - "dataFeedName": "java_create_data_feed_test_sample786701d5-248d-4ab8-8afd-8abee94a2290", - "metrics": [ - { - "metricId": "01ce3951-c1e3-4260-9fbc-e880b84db860", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "4852184b-087c-465b-8906-5af6044ff0cf", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "InfluxDB", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "connectionString": "REDACTED", - "database": "adsample", - "query": "select * from adsample2 where Timestamp = @StartTime", - "userName": "REDACTED" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/2beed8dc-7bd8-428d-aa70-863834f314b3", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "be82ca47-2025-4c41-8006-fe28a62426d3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "d763fba6-7996-44cb-a594-e05b4c5dc361", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "302", - "x-ms-region": "West US 2", - "X-Request-ID": "d763fba6-7996-44cb-a594-e05b4c5dc361" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createLogAnalyticsDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createLogAnalyticsDataFeed[1].json deleted file mode 100644 index c181e03b6b5cc..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createLogAnalyticsDataFeed[1].json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "777", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "bcfea5bf-ef60-497d-9eab-5b2c4f429899", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureLogAnalytics", - "dataFeedName": "java_create_data_feed_test_sample92ea7ca9-750f-436b-b75f-d25b1905cc32", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "tenantId": "f850650c-1fcf-4489-b46f-71af2e30d360", - "clientId": "azClientId", - "clientSecret": "azClientSecret", - "workspaceId": "azWorkspaceId", - "query": "where StartTime \u003E=datetime(@StartTime) and EndTime \u003Cdatetime(@EndTime)| summarize count_per_type=count() by DataType" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "171d6706-1745-4047-8d75-4718617247ed", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/d2b62817-ec37-4f26-9690-a7d1189e15e5", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1473", - "x-ms-region": "West US 2", - "X-Request-ID": "171d6706-1745-4047-8d75-4718617247ed" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/d2b62817-ec37-4f26-9690-a7d1189e15e5", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c398566e-baee-450f-b327-2acedaac5679", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "58f9074c-d848-4d74-ae0c-7ee45ca36216", - "Content-Length": "1397", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "158", - "x-ms-region": "West US 2", - "X-Request-ID": "58f9074c-d848-4d74-ae0c-7ee45ca36216" - }, - "ResponseBody": { - "dataFeedId": "d2b62817-ec37-4f26-9690-a7d1189e15e5", - "dataFeedName": "java_create_data_feed_test_sample92ea7ca9-750f-436b-b75f-d25b1905cc32", - "metrics": [ - { - "metricId": "2b264b33-e8b1-4380-9628-813041b87371", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d31779a5-b369-4afd-80a5-e81385e4b9bf", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureLogAnalytics", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:28Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "clientId": "azClientId", - "query": "where StartTime \u003E=datetime(@StartTime) and EndTime \u003Cdatetime(@EndTime)| summarize count_per_type=count() by DataType", - "tenantId": "f850650c-1fcf-4489-b46f-71af2e30d360", - "workspaceId": "azWorkspaceId" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/d2b62817-ec37-4f26-9690-a7d1189e15e5", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "64de8f58-bbd4-44a7-b6dd-7a05553d4e38", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "05587849-9883-4b45-b6ff-bfb491bf23e4", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "570", - "x-ms-region": "West US 2", - "X-Request-ID": "05587849-9883-4b45-b6ff-bfb491bf23e4" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createMYSQLDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createMYSQLDataFeed[1].json deleted file mode 100644 index fbdf95d0bfc6a..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createMYSQLDataFeed[1].json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "566", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "4b52df7b-7780-4267-ad97-44c33ba24c9f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "MySql", - "dataFeedName": "java_create_data_feed_test_sample35c84f64-2af1-496e-81cb-20a5b7abb3f0", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "c7b229c6-07d1-45f1-b3a6-9972766515a7", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cc16ad29-9625-48dd-b5f7-79b696147ecd", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1162", - "x-ms-region": "West US 2", - "X-Request-ID": "c7b229c6-07d1-45f1-b3a6-9972766515a7" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cc16ad29-9625-48dd-b5f7-79b696147ecd", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ce650899-551d-4c5b-9e44-589f53fa9831", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "21020208-1b86-491f-8a54-65104ac0141b", - "Content-Length": "1217", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "269", - "x-ms-region": "West US 2", - "X-Request-ID": "21020208-1b86-491f-8a54-65104ac0141b" - }, - "ResponseBody": { - "dataFeedId": "cc16ad29-9625-48dd-b5f7-79b696147ecd", - "dataFeedName": "java_create_data_feed_test_sample35c84f64-2af1-496e-81cb-20a5b7abb3f0", - "metrics": [ - { - "metricId": "4aefbb35-a09e-4055-8d40-4145f4695bfe", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d8ceac85-2256-439d-8ca7-9d3653f48bf2", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "MySql", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:29Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cc16ad29-9625-48dd-b5f7-79b696147ecd", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "57203a83-e66e-40f8-ae0b-a2c7987a69b5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "a8b499bf-eb9d-4858-bb7b-3cec3be25c5b", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "762", - "x-ms-region": "West US 2", - "X-Request-ID": "a8b499bf-eb9d-4858-bb7b-3cec3be25c5b" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createMongoDBDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createMongoDBDataFeed[1].json deleted file mode 100644 index d39053e5ceb40..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createMongoDBDataFeed[1].json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "630", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c3870cd0-938c-4298-94f9-7295a51b2838", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "MongoDB", - "dataFeedName": "java_create_data_feed_test_samplea5b64018-4bc8-4d55-8b8e-16929ef9cc12", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "database": "adsample", - "command": "{\u0022find\u0022: \u0022adsample\u0022,\u0022filter\u0022: { Timestamp: { $eq: @StartTime }}\u0022batchSize\u0022: 2000,}" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "e858a41c-b125-43ba-9661-a1b55d4c7613", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/c9331dcb-967f-4588-9cac-e3248bf14efd", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2301", - "x-ms-region": "West US 2", - "X-Request-ID": "e858a41c-b125-43ba-9661-a1b55d4c7613" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/c9331dcb-967f-4588-9cac-e3248bf14efd", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "15b6714f-6828-4f9d-888d-6f52ef99cd56", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "312471ca-a37b-42eb-86b8-6d1ca53b5643", - "Content-Length": "1281", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "141", - "x-ms-region": "West US 2", - "X-Request-ID": "312471ca-a37b-42eb-86b8-6d1ca53b5643" - }, - "ResponseBody": { - "dataFeedId": "c9331dcb-967f-4588-9cac-e3248bf14efd", - "dataFeedName": "java_create_data_feed_test_samplea5b64018-4bc8-4d55-8b8e-16929ef9cc12", - "metrics": [ - { - "metricId": "2ed4218e-016e-484e-b42a-e432732ee416", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "559fefe2-d839-4fc9-a329-0ef49f474546", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "MongoDB", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:31Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "database": "adsample", - "command": "{\u0022find\u0022: \u0022adsample\u0022,\u0022filter\u0022: { Timestamp: { $eq: @StartTime }}\u0022batchSize\u0022: 2000,}" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/c9331dcb-967f-4588-9cac-e3248bf14efd", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ba910f69-7a26-46cb-b3e0-7d0eac68498a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "40db97ef-b0fb-4a06-8e81-801c877f0d52", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "435", - "x-ms-region": "West US 2", - "X-Request-ID": "40db97ef-b0fb-4a06-8e81-801c877f0d52" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createPostgreSQLDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createPostgreSQLDataFeed[1].json deleted file mode 100644 index 1fc547cc81fb9..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createPostgreSQLDataFeed[1].json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "571", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "29790717-ae1e-402c-ac50-bbcf25e159fa", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "PostgreSql", - "dataFeedName": "java_create_data_feed_test_sample70166ff5-8e3b-4ba1-bb74-688feb94ab2a", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "dd63764b-68fc-4cba-8617-6568ef38eec2", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/b7e2e2e3-15e3-4801-8e2e-5fb1069b309f", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1353", - "x-ms-region": "West US 2", - "X-Request-ID": "dd63764b-68fc-4cba-8617-6568ef38eec2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/b7e2e2e3-15e3-4801-8e2e-5fb1069b309f", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "4fb9d492-1f7a-4686-91ce-7cdc8ab1cb5d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9a8471b4-a524-4ecc-9097-562e493b01fe", - "Content-Length": "1222", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "138", - "x-ms-region": "West US 2", - "X-Request-ID": "9a8471b4-a524-4ecc-9097-562e493b01fe" - }, - "ResponseBody": { - "dataFeedId": "b7e2e2e3-15e3-4801-8e2e-5fb1069b309f", - "dataFeedName": "java_create_data_feed_test_sample70166ff5-8e3b-4ba1-bb74-688feb94ab2a", - "metrics": [ - { - "metricId": "40042bfd-a897-4ac0-a833-20fed05ee865", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "3fc2195d-7ab4-4187-9266-cc053e03aaef", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "PostgreSql", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:31Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/b7e2e2e3-15e3-4801-8e2e-5fb1069b309f", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "322480c3-22e2-4e0c-a582-2d913771a939", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "1cee9b02-850f-4825-9ce1-cef29a686498", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "471", - "x-ms-region": "West US 2", - "X-Request-ID": "1cee9b02-850f-4825-9ce1-cef29a686498" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createSQLServerDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createSQLServerDataFeed[1].json deleted file mode 100644 index c0c2b3d1ee55a..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.createSQLServerDataFeed[1].json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "599", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c2253570-e214-4554-b07d-78eb36ea2c23", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_samplea259c47d-67ea-49b3-aa7a-13d3245bfe44", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "678deda5-9e25-4a8c-a8fe-e8aa209c299b", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/3a085439-9e3c-4f05-970a-ee268f3e260e", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1812", - "x-ms-region": "West US 2", - "X-Request-ID": "678deda5-9e25-4a8c-a8fe-e8aa209c299b" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/3a085439-9e3c-4f05-970a-ee268f3e260e", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "6f3b60ba-79c7-418c-8930-7054b0915aa5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ef592547-b9e6-41b9-8258-269845e24fa6", - "Content-Length": "1221", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "185", - "x-ms-region": "West US 2", - "X-Request-ID": "ef592547-b9e6-41b9-8258-269845e24fa6" - }, - "ResponseBody": { - "dataFeedId": "3a085439-9e3c-4f05-970a-ee268f3e260e", - "dataFeedName": "java_create_data_feed_test_samplea259c47d-67ea-49b3-aa7a-13d3245bfe44", - "metrics": [ - { - "metricId": "2322c0bf-254c-476e-bce1-da6bf5fb5f30", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "86bd8653-628e-49a6-b361-1fa1de34bf9a", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:27Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/3a085439-9e3c-4f05-970a-ee268f3e260e", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "216fa003-2d7e-4a40-846a-4a0aa4181daf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "38da7b62-6426-404b-99be-528f593ac7dc", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "471", - "x-ms-region": "West US 2", - "X-Request-ID": "38da7b62-6426-404b-99be-528f593ac7dc" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.deleteDataFeedIdWithResponse[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.deleteDataFeedIdWithResponse[1].json deleted file mode 100644 index f4fd6617a03e3..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.deleteDataFeedIdWithResponse[1].json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "599", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "3a95ed6e-67b2-4563-9fa4-c5148c3d7a1e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample72ab6630-e722-4275-a516-d8a4152159be", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "67811beb-bbb0-44b9-babe-bfd5580bcf32", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ef162e1b-599d-4a2f-93fd-6b906fff0ba1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "935", - "x-ms-region": "West US 2", - "X-Request-ID": "67811beb-bbb0-44b9-babe-bfd5580bcf32" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ef162e1b-599d-4a2f-93fd-6b906fff0ba1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "71429c14-90f2-47b7-a1e2-6c4ddad0de2a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "36ff5d29-50d4-4c92-af9f-3bc7c6add4ed", - "Content-Length": "1221", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "129", - "x-ms-region": "West US 2", - "X-Request-ID": "36ff5d29-50d4-4c92-af9f-3bc7c6add4ed" - }, - "ResponseBody": { - "dataFeedId": "ef162e1b-599d-4a2f-93fd-6b906fff0ba1", - "dataFeedName": "java_create_data_feed_test_sample72ab6630-e722-4275-a516-d8a4152159be", - "metrics": [ - { - "metricId": "93659504-b295-4c91-b4a2-8a41afad95f3", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "32ff1b97-50f7-41e2-9ee4-1f20970b6811", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:20Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ef162e1b-599d-4a2f-93fd-6b906fff0ba1", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "da1b0f78-44fa-4c3d-b8ba-3d4e912b147a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "df1802a5-d387-485f-8eb8-b309e8e10617", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "387", - "x-ms-region": "West US 2", - "X-Request-ID": "df1802a5-d387-485f-8eb8-b309e8e10617" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ef162e1b-599d-4a2f-93fd-6b906fff0ba1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "7268b714-7fc0-4976-83dd-ba7008224c23", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "apim-request-id": "98aa7d9b-8804-49b2-b598-b2b1e8028cea", - "Content-Length": "59", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "90", - "x-ms-region": "West US 2", - "X-Request-ID": "98aa7d9b-8804-49b2-b598-b2b1e8028cea" - }, - "ResponseBody": { - "code": "404 NOT_FOUND", - "message": "datafeedId is invalid." - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.getDataFeedValidId[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.getDataFeedValidId[1].json deleted file mode 100644 index ff017e023902d..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.getDataFeedValidId[1].json +++ /dev/null @@ -1,258 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "599", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b88cf0b7-5aa0-4413-ac16-6a6c26562c09", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_samplea5e05d7b-6162-4196-b36f-abbd61fd6108", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "b26cbce8-d129-407c-86aa-f08f03cde8c9", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9a278233-aae5-4660-901b-e3b007a5260c", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2331", - "x-ms-region": "West US 2", - "X-Request-ID": "b26cbce8-d129-407c-86aa-f08f03cde8c9" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9a278233-aae5-4660-901b-e3b007a5260c", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "4144f5da-bef0-4f17-a309-c462a830b0ca", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "995d99d8-9b98-4c81-af8d-c49a1e13ca52", - "Content-Length": "1221", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "179", - "x-ms-region": "West US 2", - "X-Request-ID": "995d99d8-9b98-4c81-af8d-c49a1e13ca52" - }, - "ResponseBody": { - "dataFeedId": "9a278233-aae5-4660-901b-e3b007a5260c", - "dataFeedName": "java_create_data_feed_test_samplea5e05d7b-6162-4196-b36f-abbd61fd6108", - "metrics": [ - { - "metricId": "b80b6ba3-bfa6-4de7-bcb0-30ef797f473f", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1db044a8-0dd8-4d9b-8be7-fd79ef4a8c62", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:26Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9a278233-aae5-4660-901b-e3b007a5260c", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "61d8d91c-1f68-4310-9d8d-5aa7ed61b696", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a4eddf12-1ee8-4cb6-a695-9798df56fd5e", - "Content-Length": "1221", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "211", - "x-ms-region": "West US 2", - "X-Request-ID": "a4eddf12-1ee8-4cb6-a695-9798df56fd5e" - }, - "ResponseBody": { - "dataFeedId": "9a278233-aae5-4660-901b-e3b007a5260c", - "dataFeedName": "java_create_data_feed_test_samplea5e05d7b-6162-4196-b36f-abbd61fd6108", - "metrics": [ - { - "metricId": "b80b6ba3-bfa6-4de7-bcb0-30ef797f473f", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1db044a8-0dd8-4d9b-8be7-fd79ef4a8c62", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:26Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/9a278233-aae5-4660-901b-e3b007a5260c", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ba2e20f0-94ca-4e77-ab05-62db35f30d01", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "fd5a7b6e-5d64-4c8d-b425-74c879883f1d", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "525", - "x-ms-region": "West US 2", - "X-Request-ID": "fd5a7b6e-5d64-4c8d-b425-74c879883f1d" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByCreator[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByCreator[1].json deleted file mode 100644 index 2571510209df3..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByCreator[1].json +++ /dev/null @@ -1,321 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "571", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:26:42 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "7880617a-566e-4875-9ea5-fdf23c840e10", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "PostgreSql", - "dataFeedName": "java_create_data_feed_test_samplea977ebf6-ce73-45a6-887b-cee13fd95cc9", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "e5fccf48-eaf4-4e86-aef7-6a210bbeae05", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:26:42 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/7e673d3a-056f-4764-a311-03eb196021fa", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "823", - "x-ms-region": "West US 2", - "X-Request-ID": "e5fccf48-eaf4-4e86-aef7-6a210bbeae05" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/7e673d3a-056f-4764-a311-03eb196021fa", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:26:43 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "7787288c-0d1c-4e42-bcfe-c8a1a5da05bd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bb5b9e1d-8d6c-4f2d-aafa-c71ed6b20b93", - "Content-Length": "1236", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:26:43 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "205", - "x-ms-region": "West US 2", - "X-Request-ID": "bb5b9e1d-8d6c-4f2d-aafa-c71ed6b20b93" - }, - "ResponseBody": { - "dataFeedId": "7e673d3a-056f-4764-a311-03eb196021fa", - "dataFeedName": "java_create_data_feed_test_samplea977ebf6-ce73-45a6-887b-cee13fd95cc9", - "metrics": [ - { - "metricId": "fd2d2803-27ca-4dd1-abdc-c2bd308aecba", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "17d02996-d4fd-4786-ac2f-22c30a7cf502", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "PostgreSql", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "xiangyan@microsoft.com", - "status": "Active", - "createdTime": "2023-04-17T23:26:43Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?creator=xiangyan%40microsoft.com", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:26:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "9deb402b-0d52-436d-acc0-37f8d007e798", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "cb59a752-4705-491d-88fe-0320e6ab674f", - "Content-Length": "2559", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:26:43 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "236", - "x-ms-region": "West US 2", - "X-Request-ID": "cb59a752-4705-491d-88fe-0320e6ab674f" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "7e673d3a-056f-4764-a311-03eb196021fa", - "dataFeedName": "java_create_data_feed_test_samplea977ebf6-ce73-45a6-887b-cee13fd95cc9", - "metrics": [ - { - "metricId": "fd2d2803-27ca-4dd1-abdc-c2bd308aecba", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "17d02996-d4fd-4786-ac2f-22c30a7cf502", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "PostgreSql", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "xiangyan@microsoft.com", - "status": "Active", - "createdTime": "2023-04-17T23:26:43Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "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": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "xiangyan@microsoft.com", - "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" - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/7e673d3a-056f-4764-a311-03eb196021fa", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:26:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a303b79c-a546-4786-b8cc-e4a2756e3fbc", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "a774e2de-7491-4a49-a5bd-cb3d7ec5ff10", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:26:44 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "390", - "x-ms-region": "West US 2", - "X-Request-ID": "a774e2de-7491-4a49-a5bd-cb3d7ec5ff10" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByGranularityType[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByGranularityType[1].json deleted file mode 100644 index 4c960e8259d04..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByGranularityType[1].json +++ /dev/null @@ -1,400 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?granularityName=Daily", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f6076afd-67ce-44c9-bc16-f073d0d1673b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "cdee484b-30fe-4ac1-ba37-8fdf33cc4194", - "Content-Length": "8241", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "166", - "x-ms-region": "West US 2", - "X-Request-ID": "cdee484b-30fe-4ac1-ba37-8fdf33cc4194" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "d2b62817-ec37-4f26-9690-a7d1189e15e5", - "dataFeedName": "java_create_data_feed_test_sample92ea7ca9-750f-436b-b75f-d25b1905cc32", - "metrics": [ - { - "metricId": "2b264b33-e8b1-4380-9628-813041b87371", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d31779a5-b369-4afd-80a5-e81385e4b9bf", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureLogAnalytics", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:28Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "clientId": "azClientId", - "query": "where StartTime \u003E=datetime(@StartTime) and EndTime \u003Cdatetime(@EndTime)| summarize count_per_type=count() by DataType", - "tenantId": "f850650c-1fcf-4489-b46f-71af2e30d360", - "workspaceId": "azWorkspaceId" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "9f9954c2-c767-4e22-8f0d-c22f42cef32b", - "dataFeedName": "java_create_data_feed_test_sample22aa860d-bd81-4174-97b9-6c38993f13c2", - "metrics": [ - { - "metricId": "f50fc9c5-0ab3-4dd6-bbc3-7bb577d43c77", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "cdc81dad-f564-4fbc-a03d-bc83aed7c9fa", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:28Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "metrics": [ - { - "metricId": "acd15088-4650-4b8c-b85f-3cf307f18bdd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a00fa989-6ac2-48e6-a74d-be3f44800422", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:24Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "AzureSQLConnectionString", - "credentialId": "e4a8d59f-ff3b-425d-a94a-50d34aa4531f" - }, - { - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterBySourceType[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterBySourceType[1].json deleted file mode 100644 index 122e5789f1b8e..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterBySourceType[1].json +++ /dev/null @@ -1,274 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?dataSourceType=AzureBlob", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "12477645-b747-491d-bcb8-51d625e523d7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "146c392e-81d6-466e-ad34-f066a4e7c3d7", - "Content-Length": "5183", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "115", - "x-ms-region": "West US 2", - "X-Request-ID": "146c392e-81d6-466e-ad34-f066a4e7c3d7" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "0f7e172b-d0f7-4c99-accb-066b5b5a40af", - "dataFeedName": "java_BLOB_create_data_feed_test_sample6b92b342-7a98-4903-b2b7-fdc99d5f6669", - "metrics": [ - { - "metricId": "09066a52-03c7-49ee-84d4-3cc99fae6e2d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "41e0dcab-ac58-4120-a5e9-1df4a5164378", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "BLOB_CONTAINER", - "blobTemplate": "BLOB_TEMPLATE_NAME" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "d7001b7e-a566-42bc-b906-8015ed5ae58f", - "dataFeedName": "java_create_data_feed_test_sample577da072-6750-41bd-8c4b-a871652c42ad", - "metrics": [ - { - "metricId": "691b1e00-c454-4231-beee-c1951323c1c5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "c30f5bf2-b789-4869-b9ad-c648c0b20313", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "5438398f-8a6c-449e-9b11-3b41594b8d60", - "dataFeedName": "java_create_data_feed_test_sample88e152a0-9eaf-4e4c-986d-b0700ae75c4d", - "metrics": [ - { - "metricId": "188e2746-02ca-44f4-b7f4-95575e4c7739", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "b862d804-971d-4d0b-a904-a93fe98d0106", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:20Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "ManagedIdentity" - }, - { - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByStatus[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByStatus[1].json deleted file mode 100644 index c0c6cb07a19c5..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedFilterByStatus[1].json +++ /dev/null @@ -1,275 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?status=Active", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "301765f7-814e-4657-b38a-cc1be7eaa7d2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8243bf06-bdf7-4e83-8697-4c2d7f989a7b", - "Content-Length": "5274", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "136", - "x-ms-region": "West US 2", - "X-Request-ID": "8243bf06-bdf7-4e83-8697-4c2d7f989a7b" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "ec12ba72-24db-4188-89f2-b4da2b5a20cf", - "dataFeedName": "java_data_feed_for_detectionfedbbd10-7872-412c-9be1-7cdf500b1ba0", - "metrics": [ - { - "metricId": "1b0f0baf-8db0-494b-9dad-cff737518b11", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "41b644ce-0ab3-4d6f-8496-01f631882aad", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:09Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "71983cf3-e968-4ec2-a407-80363cba3647", - "dataFeedName": "java_data_feed_for_detection9c917640-15dc-400d-9d58-5a3b9517ac59", - "metrics": [ - { - "metricId": "70bc0e26-1e40-41fe-9010-f6e88ec89126", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d1f9232d-a523-41ba-9518-438b7ac58713", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:09Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "f1562936-347b-4574-9c58-20bf2d4ac30b", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "metrics": [ - { - "metricId": "fb52e1c3-6f64-4376-8aa7-ca02af507a36", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d0265351-dc5a-4e4a-a9e9-db636bf82c7d", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "4535072b-7ac3-45bb-a1c8-92a7860773b6" - }, - { - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedTop3[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedTop3[1].json deleted file mode 100644 index f927228c7ffc8..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeedTop3[1].json +++ /dev/null @@ -1,463 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?$maxpagesize=3", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "77eef490-9b5e-44aa-b542-03d49861394b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "65f72955-1d6f-43dc-babf-5735c6da715f", - "Content-Length": "4052", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "157", - "x-ms-region": "West US 2", - "X-Request-ID": "65f72955-1d6f-43dc-babf-5735c6da715f" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "d2b62817-ec37-4f26-9690-a7d1189e15e5", - "dataFeedName": "java_create_data_feed_test_sample92ea7ca9-750f-436b-b75f-d25b1905cc32", - "metrics": [ - { - "metricId": "2b264b33-e8b1-4380-9628-813041b87371", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d31779a5-b369-4afd-80a5-e81385e4b9bf", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureLogAnalytics", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:28Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "clientId": "azClientId", - "query": "where StartTime \u003E=datetime(@StartTime) and EndTime \u003Cdatetime(@EndTime)| summarize count_per_type=count() by DataType", - "tenantId": "f850650c-1fcf-4489-b46f-71af2e30d360", - "workspaceId": "azWorkspaceId" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "9f9954c2-c767-4e22-8f0d-c22f42cef32b", - "dataFeedName": "java_create_data_feed_test_sample22aa860d-bd81-4174-97b9-6c38993f13c2", - "metrics": [ - { - "metricId": "f50fc9c5-0ab3-4dd6-bbc3-7bb577d43c77", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "cdc81dad-f564-4fbc-a03d-bc83aed7c9fa", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:28Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "metrics": [ - { - "metricId": "acd15088-4650-4b8c-b85f-3cf307f18bdd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a00fa989-6ac2-48e6-a74d-be3f44800422", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:24Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "AzureSQLConnectionString", - "credentialId": "e4a8d59f-ff3b-425d-a94a-50d34aa4531f" - } - ], - "@nextLink": "https://ga-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$maxpagesize=3\u0026$skip=3" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?$maxpagesize=3\u0026$skip=3", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "cd495776-f452-475b-ad8f-6d5a0ad0a987", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "72366290-74b7-4f26-bb91-d1b440f9b5bb", - "Content-Length": "4452", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "151", - "x-ms-region": "West US 2", - "X-Request-ID": "72366290-74b7-4f26-bb91-d1b440f9b5bb" - }, - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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" - } - ], - "@nextLink": "https://ga-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$maxpagesize=3\u0026$skip=6" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?$maxpagesize=3\u0026$skip=6", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a0ded537-50da-414b-a26d-c2b15a42db4b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ed630dc3-b22c-413a-9ec7-88ab24918896", - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "131", - "x-ms-region": "West US 2", - "X-Request-ID": "ed630dc3-b22c-413a-9ec7-88ab24918896" - }, - "ResponseBody": { - "value": [] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeed[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeed[1].json deleted file mode 100644 index e1ce67399c5b7..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedClientTest.testListDataFeed[1].json +++ /dev/null @@ -1,483 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "483", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f8fca1a4-334f-4ac6-8ba9-df718dc4f728", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureBlob", - "dataFeedName": "java_BLOB_create_data_feed_test_sample5569fc5c-3edd-4730-b0e4-10d257d2b5d6", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost" - }, - { - "metricName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region" - }, - { - "dimensionName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "container": "BLOB_CONTAINER", - "blobTemplate": "BLOB_TEMPLATE_NAME" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "5a291615-e990-4fea-8d7f-4bec432d72e0", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0fd404a5-b9bf-49b5-abb6-e13d42719103", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2000", - "x-ms-region": "West US 2", - "X-Request-ID": "5a291615-e990-4fea-8d7f-4bec432d72e0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0fd404a5-b9bf-49b5-abb6-e13d42719103", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "027c77f8-4fb4-47b3-9f5f-67ab5116cbd8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6291305a-b24a-4e54-8232-0112906ae729", - "Content-Length": "1228", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "155", - "x-ms-region": "West US 2", - "X-Request-ID": "6291305a-b24a-4e54-8232-0112906ae729" - }, - "ResponseBody": { - "dataFeedId": "0fd404a5-b9bf-49b5-abb6-e13d42719103", - "dataFeedName": "java_BLOB_create_data_feed_test_sample5569fc5c-3edd-4730-b0e4-10d257d2b5d6", - "metrics": [ - { - "metricId": "67bfea03-3b96-4135-8f88-b0d8b10d1206", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "e0804703-2626-4e15-ab0f-425ee44ab753", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:31Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "BLOB_CONTAINER", - "blobTemplate": "BLOB_TEMPLATE_NAME" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "480", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "0f25af6f-8869-4b7d-84b9-40bc38241521", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_SQL_create_data_feed_test_sampled51efb00-684f-4ddd-be47-cc3ab7540742", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost" - }, - { - "metricName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region" - }, - { - "dimensionName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "ac2a7d91-9c70-4135-9a79-46aab26be30a", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0ee5b643-efbb-4d52-90ee-b04b4dbd7a31", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "941", - "x-ms-region": "West US 2", - "X-Request-ID": "ac2a7d91-9c70-4135-9a79-46aab26be30a" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0ee5b643-efbb-4d52-90ee-b04b4dbd7a31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "61880b2b-ee17-4ae0-91c8-880253fe5e95", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a8697119-09fb-43b3-b8fd-fba3e68150f1", - "Content-Length": "1225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "142", - "x-ms-region": "West US 2", - "X-Request-ID": "a8697119-09fb-43b3-b8fd-fba3e68150f1" - }, - "ResponseBody": { - "dataFeedId": "0ee5b643-efbb-4d52-90ee-b04b4dbd7a31", - "dataFeedName": "java_SQL_create_data_feed_test_sampled51efb00-684f-4ddd-be47-cc3ab7540742", - "metrics": [ - { - "metricId": "a30fbe76-e5c7-4ad9-b5ea-ec06482c4355", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "90c0b7f1-b1a7-4f86-9cea-a0cf1cfacd3c", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:32Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds?dataFeedName=java_\u0026granularityName=Daily", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "fb031452-ffee-4a86-b500-bdd9d5c8483a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7be17387-8496-4d92-aa93-844b0d3e7339", - "Content-Length": "2466", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "132", - "x-ms-region": "West US 2", - "X-Request-ID": "7be17387-8496-4d92-aa93-844b0d3e7339" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "0ee5b643-efbb-4d52-90ee-b04b4dbd7a31", - "dataFeedName": "java_SQL_create_data_feed_test_sampled51efb00-684f-4ddd-be47-cc3ab7540742", - "metrics": [ - { - "metricId": "a30fbe76-e5c7-4ad9-b5ea-ec06482c4355", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "90c0b7f1-b1a7-4f86-9cea-a0cf1cfacd3c", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:32Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "0fd404a5-b9bf-49b5-abb6-e13d42719103", - "dataFeedName": "java_BLOB_create_data_feed_test_sample5569fc5c-3edd-4730-b0e4-10d257d2b5d6", - "metrics": [ - { - "metricId": "67bfea03-3b96-4135-8f88-b0d8b10d1206", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "e0804703-2626-4e15-ab0f-425ee44ab753", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:31Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "BLOB_CONTAINER", - "blobTemplate": "BLOB_TEMPLATE_NAME" - }, - "authenticationType": "Basic" - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0fd404a5-b9bf-49b5-abb6-e13d42719103", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "8c0812b5-bbb0-437b-a56a-f3e43f52772b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "7cb48b3b-ec58-467a-ad02-765dbf2983dd", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "367", - "x-ms-region": "West US 2", - "X-Request-ID": "7cb48b3b-ec58-467a-ad02-765dbf2983dd" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0ee5b643-efbb-4d52-90ee-b04b4dbd7a31", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:34 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "dd172e84-08c2-4115-9cbc-64d7ab357f75", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "b07eb901-b334-4d1b-930b-1c6968a56a87", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "422", - "x-ms-region": "West US 2", - "X-Request-ID": "b07eb901-b334-4d1b-930b-1c6968a56a87" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.getIngestionProgress[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.getIngestionProgress[1].json deleted file mode 100644 index 83e9d14d639f1..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.getIngestionProgress[1].json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/6e48e476-33e6-4113-a299-a5740bc0db47/ingestionProgress", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "79e22bc2-bff0-4de8-9c01-26afbb7d9b55", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5ac4aa66-da08-43ec-8a3f-480a164dce48", - "Content-Length": "96", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "233", - "x-ms-region": "West US 2", - "X-Request-ID": "5ac4aa66-da08-43ec-8a3f-480a164dce48" - }, - "ResponseBody": { - "latestSuccessTimestamp": "2023-04-16T00:00:00Z", - "latestActiveTimestamp": "2023-04-16T00:00:00Z" - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.listIngestionStatus[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.listIngestionStatus[1].json deleted file mode 100644 index 92576a259395e..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.listIngestionStatus[1].json +++ /dev/null @@ -1,440 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/6e48e476-33e6-4113-a299-a5740bc0db47/ingestionStatus/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "69", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "362d149a-1b74-428d-af5e-d6557c3fe522", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2022-01-01T00:00:00Z", - "endTime": "2022-03-22T00:00:00Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "95152e8e-d49a-4dc4-9d93-928848c24c0d", - "Content-Length": "5697", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "212", - "x-ms-region": "West US 2", - "X-Request-ID": "95152e8e-d49a-4dc4-9d93-928848c24c0d" - }, - "ResponseBody": { - "value": [ - { - "timestamp": "2022-03-21T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-20T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-19T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-18T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-17T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-16T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-15T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-14T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-13T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-12T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-11T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-10T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-09T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-08T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-07T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-06T00:00:00Z", - "status": "NotStarted", - "message": "" - }, - { - "timestamp": "2022-03-05T00:00:00Z", - "status": "Running", - "message": "" - }, - { - "timestamp": "2022-03-04T00:00:00Z", - "status": "Running", - "message": "" - }, - { - "timestamp": "2022-03-03T00:00:00Z", - "status": "Running", - "message": "" - }, - { - "timestamp": "2022-03-02T00:00:00Z", - "status": "Running", - "message": "" - }, - { - "timestamp": "2022-03-01T00:00:00Z", - "status": "Running", - "message": "" - }, - { - "timestamp": "2022-02-28T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-27T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-26T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-25T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-24T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-23T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-22T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-21T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-20T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-19T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-18T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-17T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-16T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-15T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-14T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-13T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-12T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-11T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-10T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-09T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-08T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-07T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-06T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-05T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-04T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-03T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-02T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-01T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-31T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-30T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-29T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-28T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-27T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-26T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-25T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-24T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-23T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-22T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-21T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-20T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-19T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-18T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-17T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-16T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-15T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-14T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-13T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-12T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-11T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-10T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-09T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-08T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-07T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-06T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-05T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-04T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-03T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-02T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-01T00:00:00Z", - "status": "Succeeded", - "message": "" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.refreshIngestion[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.refreshIngestion[1].json deleted file mode 100644 index 8b2343b59b4a7..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationAsyncTest.refreshIngestion[1].json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/6e48e476-33e6-4113-a299-a5740bc0db47/ingestionProgress/reset", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "69", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "089ec4c0-ba70-495c-9074-71be68a7cf66", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-03-22T00:00:00Z" - }, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "74ebecc4-27f5-4531-9386-691dd063ca99", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "317", - "x-ms-region": "West US 2", - "X-Request-ID": "74ebecc4-27f5-4531-9386-691dd063ca99" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.getIngestionProgress[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.getIngestionProgress[1].json deleted file mode 100644 index ad52143dac38d..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.getIngestionProgress[1].json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/6e48e476-33e6-4113-a299-a5740bc0db47/ingestionProgress", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "67391b7c-43a0-4f82-871e-63d07ebdbef8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "387e14cc-cdb3-4cd9-a447-845e88b085f5", - "Content-Length": "96", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "207", - "x-ms-region": "West US 2", - "X-Request-ID": "387e14cc-cdb3-4cd9-a447-845e88b085f5" - }, - "ResponseBody": { - "latestSuccessTimestamp": "2023-04-16T00:00:00Z", - "latestActiveTimestamp": "2023-04-16T00:00:00Z" - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.listIngestionStatus[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.listIngestionStatus[1].json deleted file mode 100644 index ad32b70d781ff..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.listIngestionStatus[1].json +++ /dev/null @@ -1,440 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/6e48e476-33e6-4113-a299-a5740bc0db47/ingestionStatus/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "69", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "7ac07900-20d3-4973-a978-72ff368c35e1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2022-01-01T00:00:00Z", - "endTime": "2022-03-22T00:00:00Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b6cd4c00-41b2-4e71-8ee1-409191e91448", - "Content-Length": "5691", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "293", - "x-ms-region": "West US 2", - "X-Request-ID": "b6cd4c00-41b2-4e71-8ee1-409191e91448" - }, - "ResponseBody": { - "value": [ - { - "timestamp": "2022-03-21T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-20T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-19T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-18T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-17T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-16T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-15T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-14T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-13T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-12T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-11T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-10T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-09T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-08T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-07T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-06T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-05T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-04T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-03T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-02T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-03-01T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-28T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-27T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-26T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-25T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-24T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-23T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-22T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-21T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-20T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-19T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-18T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-17T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-16T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-15T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-14T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-13T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-12T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-11T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-10T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-09T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-08T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-07T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-06T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-05T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-04T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-03T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-02T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-02-01T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-31T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-30T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-29T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-28T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-27T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-26T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-25T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-24T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-23T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-22T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-21T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-20T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-19T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-18T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-17T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-16T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-15T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-14T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-13T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-12T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-11T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-10T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-09T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-08T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-07T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-06T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-05T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-04T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-03T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-02T00:00:00Z", - "status": "Succeeded", - "message": "" - }, - { - "timestamp": "2022-01-01T00:00:00Z", - "status": "Succeeded", - "message": "" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.refreshIngestion[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.refreshIngestion[1].json deleted file mode 100644 index 5c0e5a2f2f613..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedIngestionOperationTest.refreshIngestion[1].json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/6e48e476-33e6-4113-a299-a5740bc0db47/ingestionProgress/reset", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "69", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a79cc3b5-9820-45cf-b102-3c9e5aa8e6e0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-03-22T00:00:00Z" - }, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "1515ec34-8147-4595-8804-21a135944c33", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "307", - "x-ms-region": "West US 2", - "X-Request-ID": "1515ec34-8147-4595-8804-21a135944c33" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testBlobStorage[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testBlobStorage[1].json deleted file mode 100644 index 07b184bb4632c..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testBlobStorage[1].json +++ /dev/null @@ -1,372 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "606", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ac0c9a7a-fc2e-4884-9ca8-bffc302af7aa", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureBlob", - "dataFeedName": "java_create_data_feed_test_sample577da072-6750-41bd-8c4b-a871652c42ad", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "20290c3b-31db-42fe-8c71-258ecab35a66", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/d7001b7e-a566-42bc-b906-8015ed5ae58f", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1174", - "x-ms-region": "West US 2", - "X-Request-ID": "20290c3b-31db-42fe-8c71-258ecab35a66" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/d7001b7e-a566-42bc-b906-8015ed5ae58f", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ef8f2408-528d-4178-bbea-2e6305e8e6b8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "69940149-e77f-48b3-a86a-508938c23a11", - "Content-Length": "1228", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "210", - "x-ms-region": "West US 2", - "X-Request-ID": "69940149-e77f-48b3-a86a-508938c23a11" - }, - "ResponseBody": { - "dataFeedId": "d7001b7e-a566-42bc-b906-8015ed5ae58f", - "dataFeedName": "java_create_data_feed_test_sample577da072-6750-41bd-8c4b-a871652c42ad", - "metrics": [ - { - "metricId": "691b1e00-c454-4231-beee-c1951323c1c5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "c30f5bf2-b789-4869-b9ad-c648c0b20313", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/d7001b7e-a566-42bc-b906-8015ed5ae58f", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "666", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ecbd8159-4df7-4384-94db-48e60523cb02", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureBlob", - "dataFeedName": "java_create_data_feed_test_sample577da072-6750-41bd-8c4b-a871652c42ad", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ManagedIdentity", - "dataSourceParameter": { - "connectionString": "REDACTED", - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d4343bec-58e3-4889-a492-ea19921788a1", - "Content-Length": "1238", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "473", - "x-ms-region": "West US 2", - "X-Request-ID": "d4343bec-58e3-4889-a492-ea19921788a1" - }, - "ResponseBody": { - "dataFeedId": "d7001b7e-a566-42bc-b906-8015ed5ae58f", - "dataFeedName": "java_create_data_feed_test_sample577da072-6750-41bd-8c4b-a871652c42ad", - "metrics": [ - { - "metricId": "691b1e00-c454-4231-beee-c1951323c1c5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "c30f5bf2-b789-4869-b9ad-c648c0b20313", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/d7001b7e-a566-42bc-b906-8015ed5ae58f", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ae53433d-d6e3-4cc1-8efa-2982fa95d983", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c7e44ef8-31b1-4d35-a5c2-71d068513aa6", - "Content-Length": "1238", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "144", - "x-ms-region": "West US 2", - "X-Request-ID": "c7e44ef8-31b1-4d35-a5c2-71d068513aa6" - }, - "ResponseBody": { - "dataFeedId": "d7001b7e-a566-42bc-b906-8015ed5ae58f", - "dataFeedName": "java_create_data_feed_test_sample577da072-6750-41bd-8c4b-a871652c42ad", - "metrics": [ - { - "metricId": "691b1e00-c454-4231-beee-c1951323c1c5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "c30f5bf2-b789-4869-b9ad-c648c0b20313", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:21Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/d7001b7e-a566-42bc-b906-8015ed5ae58f", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "172185ea-4beb-4d2b-b9eb-6e0203ee2f6e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "c853dd8e-1c81-4046-8a7e-a449db37603f", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "320", - "x-ms-region": "West US 2", - "X-Request-ID": "c853dd8e-1c81-4046-8a7e-a449db37603f" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testDataExplorer[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testDataExplorer[1].json deleted file mode 100644 index 3c08c6f657e99..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testDataExplorer[1].json +++ /dev/null @@ -1,965 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "703", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "69264c5d-2b16-4c2c-8b48-4477aedb8326", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataExplorer", - "dataFeedName": "java_create_data_feed_test_sampleddf72c7a-d42c-45ff-afc8-cd45ed501763", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "4f0cee30-d1ec-4c16-b95c-f5bf26c2666b", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/190535ae-1d93-4736-afda-99b3faf8a2af", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1292", - "x-ms-region": "West US 2", - "X-Request-ID": "4f0cee30-d1ec-4c16-b95c-f5bf26c2666b" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/190535ae-1d93-4736-afda-99b3faf8a2af", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f5b26ba9-24a6-4bd6-a5af-a607574a2fd4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "445186d8-80ab-4c66-b43a-f6ee9192f807", - "Content-Length": "1325", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "135", - "x-ms-region": "West US 2", - "X-Request-ID": "445186d8-80ab-4c66-b43a-f6ee9192f807" - }, - "ResponseBody": { - "dataFeedId": "190535ae-1d93-4736-afda-99b3faf8a2af", - "dataFeedName": "java_create_data_feed_test_sampleddf72c7a-d42c-45ff-afc8-cd45ed501763", - "metrics": [ - { - "metricId": "0d846e3d-b764-45eb-807e-b512eecb3a8d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "8510c666-88d9-4500-8e4a-7ffd7d9ba98e", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:15Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/190535ae-1d93-4736-afda-99b3faf8a2af", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "763", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "2a83bd0a-f91c-428e-96d2-42edf7efe412", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataExplorer", - "dataFeedName": "java_create_data_feed_test_sampleddf72c7a-d42c-45ff-afc8-cd45ed501763", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ManagedIdentity", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f34f2e41-2639-4895-99c7-39e38b56fdea", - "Content-Length": "1335", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "492", - "x-ms-region": "West US 2", - "X-Request-ID": "f34f2e41-2639-4895-99c7-39e38b56fdea" - }, - "ResponseBody": { - "dataFeedId": "190535ae-1d93-4736-afda-99b3faf8a2af", - "dataFeedName": "java_create_data_feed_test_sampleddf72c7a-d42c-45ff-afc8-cd45ed501763", - "metrics": [ - { - "metricId": "0d846e3d-b764-45eb-807e-b512eecb3a8d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "8510c666-88d9-4500-8e4a-7ffd7d9ba98e", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:15Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/190535ae-1d93-4736-afda-99b3faf8a2af", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "388daecd-f1b9-4852-925f-98aa96977c73", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "04709691-fc56-4689-a11a-dbee047989fb", - "Content-Length": "1335", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "131", - "x-ms-region": "West US 2", - "X-Request-ID": "04709691-fc56-4689-a11a-dbee047989fb" - }, - "ResponseBody": { - "dataFeedId": "190535ae-1d93-4736-afda-99b3faf8a2af", - "dataFeedName": "java_create_data_feed_test_sampleddf72c7a-d42c-45ff-afc8-cd45ed501763", - "metrics": [ - { - "metricId": "0d846e3d-b764-45eb-807e-b512eecb3a8d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "8510c666-88d9-4500-8e4a-7ffd7d9ba98e", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:15Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "313", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f589c822-e5e3-4eb7-8f3c-11b5ee1d26e6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipal", - "dataSourceCredentialName": "java_create_data_source_cred_spc2b5855c-8bf4-4e3b-b517-976dd8a04884", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "clientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "e4f2366e-8ae0-4780-b5ae-517dd415241d", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/cbb99367-ffe0-4f5d-ba4c-805466bb13a7", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "308", - "x-ms-region": "West US 2", - "X-Request-ID": "e4f2366e-8ae0-4780-b5ae-517dd415241d" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/cbb99367-ffe0-4f5d-ba4c-805466bb13a7", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "8cdb77b2-81b4-41ea-88e8-e327e469ea65", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9fd476ad-2d2b-439c-8abb-51f13fb6807a", - "Content-Length": "360", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "102", - "x-ms-region": "West US 2", - "X-Request-ID": "9fd476ad-2d2b-439c-8abb-51f13fb6807a" - }, - "ResponseBody": { - "dataSourceCredentialId": "cbb99367-ffe0-4f5d-ba4c-805466bb13a7", - "dataSourceCredentialName": "java_create_data_source_cred_spc2b5855c-8bf4-4e3b-b517-976dd8a04884", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipal", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/190535ae-1d93-4736-afda-99b3faf8a2af", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "818", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "3e7feee2-127e-4e80-90f3-0a2abb823ae5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataExplorer", - "dataFeedName": "java_create_data_feed_test_sampleddf72c7a-d42c-45ff-afc8-cd45ed501763", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipal", - "credentialId": "cbb99367-ffe0-4f5d-ba4c-805466bb13a7", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "79614271-3747-41be-b840-b95b88d3fafa", - "Content-Length": "1390", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "578", - "x-ms-region": "West US 2", - "X-Request-ID": "79614271-3747-41be-b840-b95b88d3fafa" - }, - "ResponseBody": { - "dataFeedId": "190535ae-1d93-4736-afda-99b3faf8a2af", - "dataFeedName": "java_create_data_feed_test_sampleddf72c7a-d42c-45ff-afc8-cd45ed501763", - "metrics": [ - { - "metricId": "0d846e3d-b764-45eb-807e-b512eecb3a8d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "8510c666-88d9-4500-8e4a-7ffd7d9ba98e", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:15Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "cbb99367-ffe0-4f5d-ba4c-805466bb13a7" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/190535ae-1d93-4736-afda-99b3faf8a2af", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f9a1605e-d625-4848-92ac-eb1796b617a0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "33aec752-562d-4764-8d41-37206bfe60ea", - "Content-Length": "1390", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "152", - "x-ms-region": "West US 2", - "X-Request-ID": "33aec752-562d-4764-8d41-37206bfe60ea" - }, - "ResponseBody": { - "dataFeedId": "190535ae-1d93-4736-afda-99b3faf8a2af", - "dataFeedName": "java_create_data_feed_test_sampleddf72c7a-d42c-45ff-afc8-cd45ed501763", - "metrics": [ - { - "metricId": "0d846e3d-b764-45eb-807e-b512eecb3a8d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "8510c666-88d9-4500-8e4a-7ffd7d9ba98e", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:15Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "cbb99367-ffe0-4f5d-ba4c-805466bb13a7" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "510", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f6a05453-caa4-4177-9d87-1d7b82ab5910", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipalInKV", - "dataSourceCredentialName": "java_create_data_source_cred_spkv96cd17ce-5020-430d-8115-0b198aaa08a2", - "parameters": { - "keyVaultEndpoint": "https://b1a9c603-8521-4fa7-add1-dbe53901faf4.vault.azure.net", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultClientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "servicePrincipalIdNameInKV": "DSClientID_1", - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "ea2880dd-7d9b-4ee5-9d9d-ef18f00b0d03", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/20e081f0-b1c9-4086-b67a-a96100987f9f", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "326", - "x-ms-region": "West US 2", - "X-Request-ID": "ea2880dd-7d9b-4ee5-9d9d-ef18f00b0d03" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/20e081f0-b1c9-4086-b67a-a96100987f9f", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "fd49988f-e81f-41e0-8a88-930615ccd10c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "10e63d53-f86a-44ee-81ea-9904f3488216", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "144", - "x-ms-region": "West US 2", - "X-Request-ID": "10e63d53-f86a-44ee-81ea-9904f3488216" - }, - "ResponseBody": { - "dataSourceCredentialId": "20e081f0-b1c9-4086-b67a-a96100987f9f", - "dataSourceCredentialName": "java_create_data_source_cred_spkv96cd17ce-5020-430d-8115-0b198aaa08a2", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipalInKV", - "parameters": { - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "servicePrincipalIdNameInKV": "DSClientID_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultEndpoint": "https://b1a9c603-8521-4fa7-add1-dbe53901faf4.vault.azure.net" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/190535ae-1d93-4736-afda-99b3faf8a2af", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "822", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e8bb820b-41b6-466e-8f5d-b6fa7b020406", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataExplorer", - "dataFeedName": "java_create_data_feed_test_sampleddf72c7a-d42c-45ff-afc8-cd45ed501763", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipalInKV", - "credentialId": "20e081f0-b1c9-4086-b67a-a96100987f9f", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a491cca6-4ea0-4d37-8dd5-9a371fb827fb", - "Content-Length": "1394", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "683", - "x-ms-region": "West US 2", - "X-Request-ID": "a491cca6-4ea0-4d37-8dd5-9a371fb827fb" - }, - "ResponseBody": { - "dataFeedId": "190535ae-1d93-4736-afda-99b3faf8a2af", - "dataFeedName": "java_create_data_feed_test_sampleddf72c7a-d42c-45ff-afc8-cd45ed501763", - "metrics": [ - { - "metricId": "0d846e3d-b764-45eb-807e-b512eecb3a8d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "8510c666-88d9-4500-8e4a-7ffd7d9ba98e", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:15Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "20e081f0-b1c9-4086-b67a-a96100987f9f" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/190535ae-1d93-4736-afda-99b3faf8a2af", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "33236bf3-66c6-404c-96a1-19865d1d88c0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d658ea3a-4200-47db-8c64-3bf431e2f6ff", - "Content-Length": "1394", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "199", - "x-ms-region": "West US 2", - "X-Request-ID": "d658ea3a-4200-47db-8c64-3bf431e2f6ff" - }, - "ResponseBody": { - "dataFeedId": "190535ae-1d93-4736-afda-99b3faf8a2af", - "dataFeedName": "java_create_data_feed_test_sampleddf72c7a-d42c-45ff-afc8-cd45ed501763", - "metrics": [ - { - "metricId": "0d846e3d-b764-45eb-807e-b512eecb3a8d", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "8510c666-88d9-4500-8e4a-7ffd7d9ba98e", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:15Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "20e081f0-b1c9-4086-b67a-a96100987f9f" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/190535ae-1d93-4736-afda-99b3faf8a2af", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "708b6893-57ad-4cf5-b17e-6ecb90779a22", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "5501717e-7fce-4315-b4f0-9124ed3af5a2", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "357", - "x-ms-region": "West US 2", - "X-Request-ID": "5501717e-7fce-4315-b4f0-9124ed3af5a2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/cbb99367-ffe0-4f5d-ba4c-805466bb13a7", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "6e1b6a61-b5ca-4c2d-b106-c0f1ffc5427f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "6533cce4-2554-497e-adbf-8181ece0c438", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "147", - "x-ms-region": "West US 2", - "X-Request-ID": "6533cce4-2554-497e-adbf-8181ece0c438" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/20e081f0-b1c9-4086-b67a-a96100987f9f", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e6a40430-ebf5-4276-9bef-12632a854c4e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "a1777142-14b4-4882-9eda-6fbb71cd9087", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "114", - "x-ms-region": "West US 2", - "X-Request-ID": "a1777142-14b4-4882-9eda-6fbb71cd9087" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testDataLakeGen2[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testDataLakeGen2[1].json deleted file mode 100644 index 1946319be1372..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testDataLakeGen2[1].json +++ /dev/null @@ -1,1094 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "660", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d6cb8073-4fb9-4878-bd10-fa5498960e67", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataLakeStorageGen2", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "accountName": "REDACTED", - "accountKey": "REDACTED", - "fileSystemName": "adsample", - "directoryTemplate": "%Y/%m/%d", - "fileTemplate": "adsample.json" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "275064dc-765f-4203-be6d-63c4b61ff2a4", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f1562936-347b-4574-9c58-20bf2d4ac30b", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "881", - "x-ms-region": "West US 2", - "X-Request-ID": "275064dc-765f-4203-be6d-63c4b61ff2a4" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f1562936-347b-4574-9c58-20bf2d4ac30b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e946e124-2093-41ec-b404-51523ec816d8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "30c247f7-7e98-4534-a8c6-66b15997906b", - "Content-Length": "1288", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "175", - "x-ms-region": "West US 2", - "X-Request-ID": "30c247f7-7e98-4534-a8c6-66b15997906b" - }, - "ResponseBody": { - "dataFeedId": "f1562936-347b-4574-9c58-20bf2d4ac30b", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "metrics": [ - { - "metricId": "fb52e1c3-6f64-4376-8aa7-ca02af507a36", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d0265351-dc5a-4e4a-a9e9-db636bf82c7d", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "195", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "debffffc-b8be-4210-b73d-f2612a516f23", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gen3937a40f-c3e4-4dc8-971c-e883e934a449", - "parameters": { - "accountKey": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "bbc00897-35a7-4236-854b-a9b8adf976a5", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/307262ea-1be6-4b60-b079-a4f06c174664", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "341", - "x-ms-region": "West US 2", - "X-Request-ID": "bbc00897-35a7-4236-854b-a9b8adf976a5" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/307262ea-1be6-4b60-b079-a4f06c174664", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "33260bc2-e3be-4e3e-b186-b2e4034ccee8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8ecadca5-c27e-4155-b61a-83bfe128983c", - "Content-Length": "273", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "128", - "x-ms-region": "West US 2", - "X-Request-ID": "8ecadca5-c27e-4155-b61a-83bfe128983c" - }, - "ResponseBody": { - "dataSourceCredentialId": "307262ea-1be6-4b60-b079-a4f06c174664", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gen3937a40f-c3e4-4dc8-971c-e883e934a449", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f1562936-347b-4574-9c58-20bf2d4ac30b", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "756", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a82af0bf-3206-4c48-9432-6891eee79a85", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataLakeStorageGen2", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "DataLakeGen2SharedKey", - "credentialId": "307262ea-1be6-4b60-b079-a4f06c174664", - "dataSourceParameter": { - "accountName": "REDACTED", - "fileSystemName": "adsample", - "directoryTemplate": "%Y/%m/%d", - "fileTemplate": "adsample.json" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "cab11b8f-e0b8-4466-8a97-58a0b6744499", - "Content-Length": "1358", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "891", - "x-ms-region": "West US 2", - "X-Request-ID": "cab11b8f-e0b8-4466-8a97-58a0b6744499" - }, - "ResponseBody": { - "dataFeedId": "f1562936-347b-4574-9c58-20bf2d4ac30b", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "metrics": [ - { - "metricId": "fb52e1c3-6f64-4376-8aa7-ca02af507a36", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d0265351-dc5a-4e4a-a9e9-db636bf82c7d", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "DataLakeGen2SharedKey", - "credentialId": "307262ea-1be6-4b60-b079-a4f06c174664" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f1562936-347b-4574-9c58-20bf2d4ac30b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "80d360b6-3a01-4eb6-bc87-b51e782e42c1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5d48839f-f9ff-4ebc-9527-fb6571d5ac7c", - "Content-Length": "1358", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "163", - "x-ms-region": "West US 2", - "X-Request-ID": "5d48839f-f9ff-4ebc-9527-fb6571d5ac7c" - }, - "ResponseBody": { - "dataFeedId": "f1562936-347b-4574-9c58-20bf2d4ac30b", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "metrics": [ - { - "metricId": "fb52e1c3-6f64-4376-8aa7-ca02af507a36", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d0265351-dc5a-4e4a-a9e9-db636bf82c7d", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "DataLakeGen2SharedKey", - "credentialId": "307262ea-1be6-4b60-b079-a4f06c174664" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "313", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "2ba08fd2-e620-4949-85a9-e41459609f69", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipal", - "dataSourceCredentialName": "java_create_data_source_cred_sp3a195ff5-bdeb-4d1c-8daf-79b792024656", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "clientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "88448e9d-41c8-4834-86c3-69f3aa9858a9", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/4535072b-7ac3-45bb-a1c8-92a7860773b6", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "629", - "x-ms-region": "West US 2", - "X-Request-ID": "88448e9d-41c8-4834-86c3-69f3aa9858a9" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/4535072b-7ac3-45bb-a1c8-92a7860773b6", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "eba7be01-3913-485f-a160-a4d7d019cdd9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1251e315-7091-4400-bcb9-c6785fea51e6", - "Content-Length": "360", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "113", - "x-ms-region": "West US 2", - "X-Request-ID": "1251e315-7091-4400-bcb9-c6785fea51e6" - }, - "ResponseBody": { - "dataSourceCredentialId": "4535072b-7ac3-45bb-a1c8-92a7860773b6", - "dataSourceCredentialName": "java_create_data_source_cred_sp3a195ff5-bdeb-4d1c-8daf-79b792024656", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipal", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f1562936-347b-4574-9c58-20bf2d4ac30b", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "751", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "06c1a545-87f2-4b11-9466-4ac3b300ff73", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataLakeStorageGen2", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipal", - "credentialId": "4535072b-7ac3-45bb-a1c8-92a7860773b6", - "dataSourceParameter": { - "accountName": "REDACTED", - "fileSystemName": "adsample", - "directoryTemplate": "%Y/%m/%d", - "fileTemplate": "adsample.json" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "937a46d8-f039-49d6-bb99-75210ad454d8", - "Content-Length": "1353", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "641", - "x-ms-region": "West US 2", - "X-Request-ID": "937a46d8-f039-49d6-bb99-75210ad454d8" - }, - "ResponseBody": { - "dataFeedId": "f1562936-347b-4574-9c58-20bf2d4ac30b", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "metrics": [ - { - "metricId": "fb52e1c3-6f64-4376-8aa7-ca02af507a36", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d0265351-dc5a-4e4a-a9e9-db636bf82c7d", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "4535072b-7ac3-45bb-a1c8-92a7860773b6" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f1562936-347b-4574-9c58-20bf2d4ac30b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "350e8af1-9c26-47fe-8b54-3e16f6d0f8a6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "afedc555-c1c8-46ab-9829-d45af4d1f5c3", - "Content-Length": "1353", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "159", - "x-ms-region": "West US 2", - "X-Request-ID": "afedc555-c1c8-46ab-9829-d45af4d1f5c3" - }, - "ResponseBody": { - "dataFeedId": "f1562936-347b-4574-9c58-20bf2d4ac30b", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "metrics": [ - { - "metricId": "fb52e1c3-6f64-4376-8aa7-ca02af507a36", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d0265351-dc5a-4e4a-a9e9-db636bf82c7d", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "4535072b-7ac3-45bb-a1c8-92a7860773b6" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "510", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "fb43592c-1683-459f-a8d4-c39f582f7af3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipalInKV", - "dataSourceCredentialName": "java_create_data_source_cred_spkv062bafa4-9053-410d-956a-b3c827b082a6", - "parameters": { - "keyVaultEndpoint": "https://2d3fc599-c21f-44e5-8689-fce9433c3b1b.vault.azure.net", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultClientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "servicePrincipalIdNameInKV": "DSClientID_1", - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "21b95036-6dae-483e-8766-9ba31b1d821a", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/d3f0f6cd-f16e-425d-b410-f238acd8981e", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "407", - "x-ms-region": "West US 2", - "X-Request-ID": "21b95036-6dae-483e-8766-9ba31b1d821a" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/d3f0f6cd-f16e-425d-b410-f238acd8981e", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "3e9bde70-b164-4e46-a023-2f34d9e48825", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "38c13c4c-99fb-4daf-8078-f3a400fef2c2", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "89", - "x-ms-region": "West US 2", - "X-Request-ID": "38c13c4c-99fb-4daf-8078-f3a400fef2c2" - }, - "ResponseBody": { - "dataSourceCredentialId": "d3f0f6cd-f16e-425d-b410-f238acd8981e", - "dataSourceCredentialName": "java_create_data_source_cred_spkv062bafa4-9053-410d-956a-b3c827b082a6", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipalInKV", - "parameters": { - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "servicePrincipalIdNameInKV": "DSClientID_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultEndpoint": "https://2d3fc599-c21f-44e5-8689-fce9433c3b1b.vault.azure.net" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f1562936-347b-4574-9c58-20bf2d4ac30b", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "755", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "88fc9c87-9368-48c3-8c6f-a08f27a0b27c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataLakeStorageGen2", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipalInKV", - "credentialId": "d3f0f6cd-f16e-425d-b410-f238acd8981e", - "dataSourceParameter": { - "accountName": "REDACTED", - "fileSystemName": "adsample", - "directoryTemplate": "%Y/%m/%d", - "fileTemplate": "adsample.json" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3aad24fd-1b68-449b-8af5-c3d9f7cda2b0", - "Content-Length": "1357", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "756", - "x-ms-region": "West US 2", - "X-Request-ID": "3aad24fd-1b68-449b-8af5-c3d9f7cda2b0" - }, - "ResponseBody": { - "dataFeedId": "f1562936-347b-4574-9c58-20bf2d4ac30b", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "metrics": [ - { - "metricId": "fb52e1c3-6f64-4376-8aa7-ca02af507a36", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d0265351-dc5a-4e4a-a9e9-db636bf82c7d", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "d3f0f6cd-f16e-425d-b410-f238acd8981e" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f1562936-347b-4574-9c58-20bf2d4ac30b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b9eb38d5-0fd2-4f85-bc65-4fd0e938ee8a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e1e3eac9-7350-4ce2-8e0e-bd1942a099ce", - "Content-Length": "1357", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "139", - "x-ms-region": "West US 2", - "X-Request-ID": "e1e3eac9-7350-4ce2-8e0e-bd1942a099ce" - }, - "ResponseBody": { - "dataFeedId": "f1562936-347b-4574-9c58-20bf2d4ac30b", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "metrics": [ - { - "metricId": "fb52e1c3-6f64-4376-8aa7-ca02af507a36", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d0265351-dc5a-4e4a-a9e9-db636bf82c7d", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "d3f0f6cd-f16e-425d-b410-f238acd8981e" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f1562936-347b-4574-9c58-20bf2d4ac30b", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ff6f6e48-c044-46e2-9c1a-421c8d41cb35", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "aad97c47-93f1-4e46-a386-00b5e64d2805", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "643", - "x-ms-region": "West US 2", - "X-Request-ID": "aad97c47-93f1-4e46-a386-00b5e64d2805" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/307262ea-1be6-4b60-b079-a4f06c174664", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "44c02ba2-be16-4322-8c5a-be08e33ca625", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "87a60e8d-3638-4e36-826d-b2c1da5da8cf", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "115", - "x-ms-region": "West US 2", - "X-Request-ID": "87a60e8d-3638-4e36-826d-b2c1da5da8cf" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/4535072b-7ac3-45bb-a1c8-92a7860773b6", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ada5dff9-af90-46bf-b18c-917641134089", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "a4a7a023-0d2f-4d12-a5b6-93065c90f717", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "193", - "x-ms-region": "West US 2", - "X-Request-ID": "a4a7a023-0d2f-4d12-a5b6-93065c90f717" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/d3f0f6cd-f16e-425d-b410-f238acd8981e", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "97f4c1e0-af8a-4fc5-8f82-0b50a5231c86", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "ca3b9a82-2a2f-4730-a6c4-ad4d8e8ba719", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "144", - "x-ms-region": "West US 2", - "X-Request-ID": "ca3b9a82-2a2f-4730-a6c4-ad4d8e8ba719" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testSqlServer[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testSqlServer[1].json deleted file mode 100644 index 1f40b61d3f129..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsAsyncTest.testSqlServer[1].json +++ /dev/null @@ -1,1255 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "599", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "83fd059c-7c72-41cb-8114-a79f0b2b7ff0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "3bfaf8ed-3287-406a-8a78-5761d0e51a71", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1811", - "x-ms-region": "West US 2", - "X-Request-ID": "3bfaf8ed-3287-406a-8a78-5761d0e51a71" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f8a16425-78bb-4c2c-b675-ad05907d9ed0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ea958edc-4298-4808-97c0-f12f77871b53", - "Content-Length": "1221", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "264", - "x-ms-region": "West US 2", - "X-Request-ID": "ea958edc-4298-4808-97c0-f12f77871b53" - }, - "ResponseBody": { - "dataFeedId": "cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "metrics": [ - { - "metricId": "acd15088-4650-4b8c-b85f-3cf307f18bdd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a00fa989-6ac2-48e6-a74d-be3f44800422", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:24Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "659", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "5553a42d-06ad-44e4-bf9d-b742a8c63a53", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ManagedIdentity", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "cc97ab3f-3a54-4b86-8ed8-c7a09f096b02", - "Content-Length": "1231", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "660", - "x-ms-region": "West US 2", - "X-Request-ID": "cc97ab3f-3a54-4b86-8ed8-c7a09f096b02" - }, - "ResponseBody": { - "dataFeedId": "cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "metrics": [ - { - "metricId": "acd15088-4650-4b8c-b85f-3cf307f18bdd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a00fa989-6ac2-48e6-a74d-be3f44800422", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:24Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "76d30e32-58c9-4bd3-a460-0a783b999d35", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "125799c9-a589-47c4-92ac-56a7260b3859", - "Content-Length": "1231", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "216", - "x-ms-region": "West US 2", - "X-Request-ID": "125799c9-a589-47c4-92ac-56a7260b3859" - }, - "ResponseBody": { - "dataFeedId": "cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "metrics": [ - { - "metricId": "acd15088-4650-4b8c-b85f-3cf307f18bdd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a00fa989-6ac2-48e6-a74d-be3f44800422", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:24Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "202", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "07b32b09-fe75-416e-a1c1-18e402a009cf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "AzureSQLConnectionString", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con31082976-bf9f-4997-9df7-23fbf3023b62", - "parameters": { - "connectionString": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "2b6ef124-8bfd-48ea-904d-e7faaf9e9fc0", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/e4a8d59f-ff3b-425d-a94a-50d34aa4531f", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "852", - "x-ms-region": "West US 2", - "X-Request-ID": "2b6ef124-8bfd-48ea-904d-e7faaf9e9fc0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/e4a8d59f-ff3b-425d-a94a-50d34aa4531f", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "0c6a8ce6-db79-4637-8c85-5185de1f6022", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5237fedd-3397-4338-9d1c-70406d4fc0e9", - "Content-Length": "274", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "112", - "x-ms-region": "West US 2", - "X-Request-ID": "5237fedd-3397-4338-9d1c-70406d4fc0e9" - }, - "ResponseBody": { - "dataSourceCredentialId": "e4a8d59f-ff3b-425d-a94a-50d34aa4531f", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con31082976-bf9f-4997-9df7-23fbf3023b62", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "AzureSQLConnectionString", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "692", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d9261a16-5f37-455c-910f-fbab6f547307", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "AzureSQLConnectionString", - "credentialId": "e4a8d59f-ff3b-425d-a94a-50d34aa4531f", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "44cf8bb9-70ca-4409-aaf5-696300a3610f", - "Content-Length": "1294", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "766", - "x-ms-region": "West US 2", - "X-Request-ID": "44cf8bb9-70ca-4409-aaf5-696300a3610f" - }, - "ResponseBody": { - "dataFeedId": "cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "metrics": [ - { - "metricId": "acd15088-4650-4b8c-b85f-3cf307f18bdd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a00fa989-6ac2-48e6-a74d-be3f44800422", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:24Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "AzureSQLConnectionString", - "credentialId": "e4a8d59f-ff3b-425d-a94a-50d34aa4531f" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "197d7a88-a04b-4e8d-bdfe-45e4b0778874", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "dfafd170-abac-4eab-95c2-9a85dd244ec0", - "Content-Length": "1294", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "179", - "x-ms-region": "West US 2", - "X-Request-ID": "dfafd170-abac-4eab-95c2-9a85dd244ec0" - }, - "ResponseBody": { - "dataFeedId": "cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "metrics": [ - { - "metricId": "acd15088-4650-4b8c-b85f-3cf307f18bdd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a00fa989-6ac2-48e6-a74d-be3f44800422", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:24Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "AzureSQLConnectionString", - "credentialId": "e4a8d59f-ff3b-425d-a94a-50d34aa4531f" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "313", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "44da4be6-fcf2-4e2c-bd47-e772462a89f7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipal", - "dataSourceCredentialName": "java_create_data_source_cred_spf9d4ed61-2452-4680-9056-3a59ceed698e", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "clientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "19f46790-cbb3-4f72-bee8-961741be1f9b", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/54c27ae6-9e87-417e-b24b-01c22b29de01", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "511", - "x-ms-region": "West US 2", - "X-Request-ID": "19f46790-cbb3-4f72-bee8-961741be1f9b" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/54c27ae6-9e87-417e-b24b-01c22b29de01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f4f8804d-fae8-4c09-8335-e5ab0c3878eb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a151d565-76e5-4a6a-9fe7-ba433f8e6a1c", - "Content-Length": "360", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "136", - "x-ms-region": "West US 2", - "X-Request-ID": "a151d565-76e5-4a6a-9fe7-ba433f8e6a1c" - }, - "ResponseBody": { - "dataSourceCredentialId": "54c27ae6-9e87-417e-b24b-01c22b29de01", - "dataSourceCredentialName": "java_create_data_source_cred_spf9d4ed61-2452-4680-9056-3a59ceed698e", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipal", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "714", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "12369335-bddb-41df-990c-496cbc052fd6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipal", - "credentialId": "54c27ae6-9e87-417e-b24b-01c22b29de01", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d5cb9780-7464-4f7f-9dfe-0139361abfe4", - "Content-Length": "1286", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1133", - "x-ms-region": "West US 2", - "X-Request-ID": "d5cb9780-7464-4f7f-9dfe-0139361abfe4" - }, - "ResponseBody": { - "dataFeedId": "cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "metrics": [ - { - "metricId": "acd15088-4650-4b8c-b85f-3cf307f18bdd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a00fa989-6ac2-48e6-a74d-be3f44800422", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:24Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "54c27ae6-9e87-417e-b24b-01c22b29de01" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "3ac1a4dd-4ec4-42ce-8571-3afa6c5a084f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3063300f-6543-4da8-971b-70951ca3328b", - "Content-Length": "1286", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "304", - "x-ms-region": "West US 2", - "X-Request-ID": "3063300f-6543-4da8-971b-70951ca3328b" - }, - "ResponseBody": { - "dataFeedId": "cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "metrics": [ - { - "metricId": "acd15088-4650-4b8c-b85f-3cf307f18bdd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a00fa989-6ac2-48e6-a74d-be3f44800422", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:24Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "54c27ae6-9e87-417e-b24b-01c22b29de01" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "510", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "7095af3c-8e39-47f6-96eb-13a9865cadb6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipalInKV", - "dataSourceCredentialName": "java_create_data_source_cred_spkv62ed7d87-c2dc-4df9-926d-dce97c82b1c1", - "parameters": { - "keyVaultEndpoint": "https://0d7e609a-e8d6-457b-a974-46e8fd9fda7f.vault.azure.net", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultClientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "servicePrincipalIdNameInKV": "DSClientID_1", - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "ed244d8f-9f94-47df-af79-d581d43fa33d", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/c31919c9-84e9-4c39-ae35-a7dd7c9023b1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "457", - "x-ms-region": "West US 2", - "X-Request-ID": "ed244d8f-9f94-47df-af79-d581d43fa33d" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/c31919c9-84e9-4c39-ae35-a7dd7c9023b1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f9d30edb-26af-4c65-855e-6b3dd4e56e7d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "fd656288-f060-401a-912b-2494b0fdf0bd", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "96", - "x-ms-region": "West US 2", - "X-Request-ID": "fd656288-f060-401a-912b-2494b0fdf0bd" - }, - "ResponseBody": { - "dataSourceCredentialId": "c31919c9-84e9-4c39-ae35-a7dd7c9023b1", - "dataSourceCredentialName": "java_create_data_source_cred_spkv62ed7d87-c2dc-4df9-926d-dce97c82b1c1", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipalInKV", - "parameters": { - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "servicePrincipalIdNameInKV": "DSClientID_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultEndpoint": "https://0d7e609a-e8d6-457b-a974-46e8fd9fda7f.vault.azure.net" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "718", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "61809681-3f04-4dd3-b63f-beca15d21d4f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipalInKV", - "credentialId": "c31919c9-84e9-4c39-ae35-a7dd7c9023b1", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e469e2c2-2054-4566-a91e-b8cf71ee7353", - "Content-Length": "1290", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "707", - "x-ms-region": "West US 2", - "X-Request-ID": "e469e2c2-2054-4566-a91e-b8cf71ee7353" - }, - "ResponseBody": { - "dataFeedId": "cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "metrics": [ - { - "metricId": "acd15088-4650-4b8c-b85f-3cf307f18bdd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a00fa989-6ac2-48e6-a74d-be3f44800422", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:24Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "c31919c9-84e9-4c39-ae35-a7dd7c9023b1" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "be120c5b-1e93-49ba-bd2b-c2fb6c0b0c06", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d2adf9ee-0873-4307-b886-2a841443dff0", - "Content-Length": "1290", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "132", - "x-ms-region": "West US 2", - "X-Request-ID": "d2adf9ee-0873-4307-b886-2a841443dff0" - }, - "ResponseBody": { - "dataFeedId": "cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "dataFeedName": "java_create_data_feed_test_sample6136ecf8-70a9-4de4-a018-ab368bbe1012", - "metrics": [ - { - "metricId": "acd15088-4650-4b8c-b85f-3cf307f18bdd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a00fa989-6ac2-48e6-a74d-be3f44800422", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:24Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "c31919c9-84e9-4c39-ae35-a7dd7c9023b1" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/cb03f1f0-405b-4ed8-a19b-082750e2ab4a", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "83e61ae5-0d9a-46b8-b222-ecfa513a8406", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "6186c385-d02d-4d5b-8ad4-e7daac18083c", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "362", - "x-ms-region": "West US 2", - "X-Request-ID": "6186c385-d02d-4d5b-8ad4-e7daac18083c" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/e4a8d59f-ff3b-425d-a94a-50d34aa4531f", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "370ae297-cfe1-41ef-b367-9983dd39d6d7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "1255c188-2e4a-43ed-8fe4-d243e949683c", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "109", - "x-ms-region": "West US 2", - "X-Request-ID": "1255c188-2e4a-43ed-8fe4-d243e949683c" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/54c27ae6-9e87-417e-b24b-01c22b29de01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "27f7ff44-e1d8-4306-baa2-47035c59a3ec", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "71adb774-917a-4b3e-9360-6860ed4199cf", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "134", - "x-ms-region": "West US 2", - "X-Request-ID": "71adb774-917a-4b3e-9360-6860ed4199cf" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/c31919c9-84e9-4c39-ae35-a7dd7c9023b1", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c7578f7f-0fef-4d2f-9fa9-7536267038fb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "7f9d2008-0a5d-47c9-8351-06d820ef46ba", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "148", - "x-ms-region": "West US 2", - "X-Request-ID": "7f9d2008-0a5d-47c9-8351-06d820ef46ba" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testBlobStorage[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testBlobStorage[1].json deleted file mode 100644 index eb500b0707ea5..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testBlobStorage[1].json +++ /dev/null @@ -1,372 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "606", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "05d81a71-d6bd-49d5-a113-79b9f2e82569", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureBlob", - "dataFeedName": "java_create_data_feed_test_sample88e152a0-9eaf-4e4c-986d-b0700ae75c4d", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "f8dec558-df15-4f44-8706-ec12f3e3dfd8", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/5438398f-8a6c-449e-9b11-3b41594b8d60", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1087", - "x-ms-region": "West US 2", - "X-Request-ID": "f8dec558-df15-4f44-8706-ec12f3e3dfd8" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/5438398f-8a6c-449e-9b11-3b41594b8d60", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e7bc2fea-5e50-463a-b8d7-2ac7de3632ae", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "27d24cd5-72b6-48b6-ac4b-4e38c5807db6", - "Content-Length": "1228", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "201", - "x-ms-region": "West US 2", - "X-Request-ID": "27d24cd5-72b6-48b6-ac4b-4e38c5807db6" - }, - "ResponseBody": { - "dataFeedId": "5438398f-8a6c-449e-9b11-3b41594b8d60", - "dataFeedName": "java_create_data_feed_test_sample88e152a0-9eaf-4e4c-986d-b0700ae75c4d", - "metrics": [ - { - "metricId": "188e2746-02ca-44f4-b7f4-95575e4c7739", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "b862d804-971d-4d0b-a904-a93fe98d0106", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:20Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/5438398f-8a6c-449e-9b11-3b41594b8d60", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "666", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "681fadd0-158d-4bcb-9c70-9aadf3b21436", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureBlob", - "dataFeedName": "java_create_data_feed_test_sample88e152a0-9eaf-4e4c-986d-b0700ae75c4d", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ManagedIdentity", - "dataSourceParameter": { - "connectionString": "REDACTED", - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "de80260a-b02c-4ec2-a665-59095c0d9c12", - "Content-Length": "1238", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1274", - "x-ms-region": "West US 2", - "X-Request-ID": "de80260a-b02c-4ec2-a665-59095c0d9c12" - }, - "ResponseBody": { - "dataFeedId": "5438398f-8a6c-449e-9b11-3b41594b8d60", - "dataFeedName": "java_create_data_feed_test_sample88e152a0-9eaf-4e4c-986d-b0700ae75c4d", - "metrics": [ - { - "metricId": "188e2746-02ca-44f4-b7f4-95575e4c7739", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "b862d804-971d-4d0b-a904-a93fe98d0106", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:20Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/5438398f-8a6c-449e-9b11-3b41594b8d60", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d870408a-0009-497f-9616-9d288ec8a1f3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9a80ceb8-50d4-4b93-8f71-c810b00055e7", - "Content-Length": "1238", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "168", - "x-ms-region": "West US 2", - "X-Request-ID": "9a80ceb8-50d4-4b93-8f71-c810b00055e7" - }, - "ResponseBody": { - "dataFeedId": "5438398f-8a6c-449e-9b11-3b41594b8d60", - "dataFeedName": "java_create_data_feed_test_sample88e152a0-9eaf-4e4c-986d-b0700ae75c4d", - "metrics": [ - { - "metricId": "188e2746-02ca-44f4-b7f4-95575e4c7739", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "b862d804-971d-4d0b-a904-a93fe98d0106", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:20Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/5438398f-8a6c-449e-9b11-3b41594b8d60", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f604dc07-30ec-47ad-a4cc-4b99a109b88a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "b77fdf9c-f758-41f9-8148-bb8566e37a0d", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "268", - "x-ms-region": "West US 2", - "X-Request-ID": "b77fdf9c-f758-41f9-8148-bb8566e37a0d" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testDataExplorer[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testDataExplorer[1].json deleted file mode 100644 index 7429d5e8c9a85..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testDataExplorer[1].json +++ /dev/null @@ -1,965 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "703", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ead9c84e-559f-4778-aa6b-d391377930f3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataExplorer", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "7cf5cef0-22ad-4779-8a17-ff55263b0759", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/48a8ba18-6093-4c7e-b98c-5060c199b26b", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1101", - "x-ms-region": "West US 2", - "X-Request-ID": "7cf5cef0-22ad-4779-8a17-ff55263b0759" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/48a8ba18-6093-4c7e-b98c-5060c199b26b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "adae0a7d-8cb3-403b-9d71-af2bdf77c449", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f7ea8aa3-c7e2-47ad-9a5e-f79c0a40bb3d", - "Content-Length": "1325", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "207", - "x-ms-region": "West US 2", - "X-Request-ID": "f7ea8aa3-c7e2-47ad-9a5e-f79c0a40bb3d" - }, - "ResponseBody": { - "dataFeedId": "48a8ba18-6093-4c7e-b98c-5060c199b26b", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "metrics": [ - { - "metricId": "1d664d0d-6016-48a8-a309-618eec266450", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "bd8b677f-c7a5-4c95-ac2f-9779c47f1b2c", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:19Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/48a8ba18-6093-4c7e-b98c-5060c199b26b", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "763", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "3bc48f0a-5fac-43a0-9a1b-fbab0add3cfa", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataExplorer", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ManagedIdentity", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9fd076e0-4c1a-4c76-b82d-464c94dc02e2", - "Content-Length": "1335", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "563", - "x-ms-region": "West US 2", - "X-Request-ID": "9fd076e0-4c1a-4c76-b82d-464c94dc02e2" - }, - "ResponseBody": { - "dataFeedId": "48a8ba18-6093-4c7e-b98c-5060c199b26b", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "metrics": [ - { - "metricId": "1d664d0d-6016-48a8-a309-618eec266450", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "bd8b677f-c7a5-4c95-ac2f-9779c47f1b2c", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:19Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/48a8ba18-6093-4c7e-b98c-5060c199b26b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "143325fe-66a5-4642-9ab0-de65a578aed8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c4940ef7-0a76-4f14-b6b4-fe4da8112cfe", - "Content-Length": "1335", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "166", - "x-ms-region": "West US 2", - "X-Request-ID": "c4940ef7-0a76-4f14-b6b4-fe4da8112cfe" - }, - "ResponseBody": { - "dataFeedId": "48a8ba18-6093-4c7e-b98c-5060c199b26b", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "metrics": [ - { - "metricId": "1d664d0d-6016-48a8-a309-618eec266450", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "bd8b677f-c7a5-4c95-ac2f-9779c47f1b2c", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:19Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "313", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d673ad0d-0260-426d-bb5e-0edcd7b27372", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipal", - "dataSourceCredentialName": "java_create_data_source_cred_spd1898970-57d0-41d7-8de4-a9856fcbe636", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "clientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "b3412a49-4ac2-462d-9631-edd8f0ef9a16", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/8651e3a2-fe0a-4310-9c5a-5c5e6b726129", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "618", - "x-ms-region": "West US 2", - "X-Request-ID": "b3412a49-4ac2-462d-9631-edd8f0ef9a16" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/8651e3a2-fe0a-4310-9c5a-5c5e6b726129", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "fd00cefc-9577-43d0-95d4-65a525fd6fff", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0937058f-6810-4e92-ac8e-764d8a0b0c8c", - "Content-Length": "360", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "620", - "x-ms-region": "West US 2", - "X-Request-ID": "0937058f-6810-4e92-ac8e-764d8a0b0c8c" - }, - "ResponseBody": { - "dataSourceCredentialId": "8651e3a2-fe0a-4310-9c5a-5c5e6b726129", - "dataSourceCredentialName": "java_create_data_source_cred_spd1898970-57d0-41d7-8de4-a9856fcbe636", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipal", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/48a8ba18-6093-4c7e-b98c-5060c199b26b", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "818", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "0581e33a-7eba-4fde-af97-244f81c63446", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataExplorer", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipal", - "credentialId": "8651e3a2-fe0a-4310-9c5a-5c5e6b726129", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "fe4f6e62-64eb-4464-925f-4e076d04ae48", - "Content-Length": "1390", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "471", - "x-ms-region": "West US 2", - "X-Request-ID": "fe4f6e62-64eb-4464-925f-4e076d04ae48" - }, - "ResponseBody": { - "dataFeedId": "48a8ba18-6093-4c7e-b98c-5060c199b26b", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "metrics": [ - { - "metricId": "1d664d0d-6016-48a8-a309-618eec266450", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "bd8b677f-c7a5-4c95-ac2f-9779c47f1b2c", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:19Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "8651e3a2-fe0a-4310-9c5a-5c5e6b726129" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/48a8ba18-6093-4c7e-b98c-5060c199b26b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "09135416-965f-4724-a86f-171d909f7050", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6a95e48e-5886-4067-a16c-28778fbcddc3", - "Content-Length": "1390", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "142", - "x-ms-region": "West US 2", - "X-Request-ID": "6a95e48e-5886-4067-a16c-28778fbcddc3" - }, - "ResponseBody": { - "dataFeedId": "48a8ba18-6093-4c7e-b98c-5060c199b26b", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "metrics": [ - { - "metricId": "1d664d0d-6016-48a8-a309-618eec266450", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "bd8b677f-c7a5-4c95-ac2f-9779c47f1b2c", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:19Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "8651e3a2-fe0a-4310-9c5a-5c5e6b726129" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "510", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "becfcb98-24ba-4491-ad9e-4eb98d929db8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipalInKV", - "dataSourceCredentialName": "java_create_data_source_cred_spkvbdf8b09f-279b-4c36-a7bb-8fb7f7363c68", - "parameters": { - "keyVaultEndpoint": "https://1f6eebc7-8233-4e2e-b668-4a2429a990c6.vault.azure.net", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultClientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "servicePrincipalIdNameInKV": "DSClientID_1", - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "c06651c5-52bc-4aef-ba2c-3912532388d3", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/eabc48cb-9f9c-4a75-ac01-54d3522e6bae", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "266", - "x-ms-region": "West US 2", - "X-Request-ID": "c06651c5-52bc-4aef-ba2c-3912532388d3" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/eabc48cb-9f9c-4a75-ac01-54d3522e6bae", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "de827fc5-110e-4872-8430-f3520e86c429", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "956dac26-82f7-47c3-816f-e3764158c51b", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "98", - "x-ms-region": "West US 2", - "X-Request-ID": "956dac26-82f7-47c3-816f-e3764158c51b" - }, - "ResponseBody": { - "dataSourceCredentialId": "eabc48cb-9f9c-4a75-ac01-54d3522e6bae", - "dataSourceCredentialName": "java_create_data_source_cred_spkvbdf8b09f-279b-4c36-a7bb-8fb7f7363c68", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipalInKV", - "parameters": { - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "servicePrincipalIdNameInKV": "DSClientID_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultEndpoint": "https://1f6eebc7-8233-4e2e-b668-4a2429a990c6.vault.azure.net" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/48a8ba18-6093-4c7e-b98c-5060c199b26b", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "822", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "12010c4d-1384-4679-8924-625ed8a072c7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataExplorer", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipalInKV", - "credentialId": "eabc48cb-9f9c-4a75-ac01-54d3522e6bae", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c20fea99-6262-4e8e-a968-4d24df9d55cb", - "Content-Length": "1394", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "874", - "x-ms-region": "West US 2", - "X-Request-ID": "c20fea99-6262-4e8e-a968-4d24df9d55cb" - }, - "ResponseBody": { - "dataFeedId": "48a8ba18-6093-4c7e-b98c-5060c199b26b", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "metrics": [ - { - "metricId": "1d664d0d-6016-48a8-a309-618eec266450", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "bd8b677f-c7a5-4c95-ac2f-9779c47f1b2c", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:19Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "eabc48cb-9f9c-4a75-ac01-54d3522e6bae" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/48a8ba18-6093-4c7e-b98c-5060c199b26b", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "9c69e13b-56a9-44e5-871e-45434049b5a9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "52f473af-4eba-44bf-a414-0bcc4fef151e", - "Content-Length": "1394", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "293", - "x-ms-region": "West US 2", - "X-Request-ID": "52f473af-4eba-44bf-a414-0bcc4fef151e" - }, - "ResponseBody": { - "dataFeedId": "48a8ba18-6093-4c7e-b98c-5060c199b26b", - "dataFeedName": "java_create_data_feed_test_samplecf95c52e-e964-4279-b276-f508fbca2dfa", - "metrics": [ - { - "metricId": "1d664d0d-6016-48a8-a309-618eec266450", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "bd8b677f-c7a5-4c95-ac2f-9779c47f1b2c", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "AzureDataExplorer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:19Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "let StartDateTime = datetime(@StartTime);let EndDateTime = StartDateTime \u002B 1d;adsample| where Timestamp \u003E= StartDateTime and Timestamp \u003C EndDateTime" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "eabc48cb-9f9c-4a75-ac01-54d3522e6bae" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/48a8ba18-6093-4c7e-b98c-5060c199b26b", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "75cccf9e-5e84-49dd-b72d-5b14702d0564", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "14b82086-3f3e-4dde-a2a0-dc7a256d0424", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "929", - "x-ms-region": "West US 2", - "X-Request-ID": "14b82086-3f3e-4dde-a2a0-dc7a256d0424" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/8651e3a2-fe0a-4310-9c5a-5c5e6b726129", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "666d864b-5cc3-4043-809e-b9bcf3e32465", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "d81c8df4-4928-4664-a8e9-f6950aa889ac", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "155", - "x-ms-region": "West US 2", - "X-Request-ID": "d81c8df4-4928-4664-a8e9-f6950aa889ac" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/eabc48cb-9f9c-4a75-ac01-54d3522e6bae", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "577c0a6b-6569-49ad-b678-fdc91954ad53", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "8742e7c1-5829-43c3-9af2-43bb7af0d018", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "203", - "x-ms-region": "West US 2", - "X-Request-ID": "8742e7c1-5829-43c3-9af2-43bb7af0d018" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testDataLakeGen2[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testDataLakeGen2[1].json deleted file mode 100644 index 9fb8e70f18798..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testDataLakeGen2[1].json +++ /dev/null @@ -1,1094 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "660", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b731b077-f395-4941-8cfa-03d93cf30bbf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataLakeStorageGen2", - "dataFeedName": "java_create_data_feed_test_sample38182d2d-2a14-4e5a-9725-c8feb1f79a36", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "accountName": "REDACTED", - "accountKey": "REDACTED", - "fileSystemName": "adsample", - "directoryTemplate": "%Y/%m/%d", - "fileTemplate": "adsample.json" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "2b0b6fa3-0524-42fa-8b43-33e991bbc6c3", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4bc7df60-797c-4bc3-a168-f134d5640f15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "844", - "x-ms-region": "West US 2", - "X-Request-ID": "2b0b6fa3-0524-42fa-8b43-33e991bbc6c3" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4bc7df60-797c-4bc3-a168-f134d5640f15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ff14db30-1140-4477-8131-9308d9aff6d1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "fd5417a6-8f9a-45c1-948c-d0ed63d9b14a", - "Content-Length": "1288", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "153", - "x-ms-region": "West US 2", - "X-Request-ID": "fd5417a6-8f9a-45c1-948c-d0ed63d9b14a" - }, - "ResponseBody": { - "dataFeedId": "4bc7df60-797c-4bc3-a168-f134d5640f15", - "dataFeedName": "java_create_data_feed_test_sample38182d2d-2a14-4e5a-9725-c8feb1f79a36", - "metrics": [ - { - "metricId": "995259c8-b173-496b-8178-6148ab492ca5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "34130b56-e7da-4cee-9a85-f5d7d8579f28", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:12Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "195", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "78bc00cd-0115-4567-a84c-7533e47fba96", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gena6472962-3ea3-4ea7-bf06-83b010c87f00", - "parameters": { - "accountKey": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "b04dfd78-85ec-4e0d-a647-d08a1ab88f28", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/c3d2d1d4-ae9a-4086-b4e5-91a229740a0e", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "457", - "x-ms-region": "West US 2", - "X-Request-ID": "b04dfd78-85ec-4e0d-a647-d08a1ab88f28" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/c3d2d1d4-ae9a-4086-b4e5-91a229740a0e", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "2d29fd13-d202-41ec-ae31-3aefbecb8240", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "57052818-5a50-44b1-bf00-c98325e28fb6", - "Content-Length": "273", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "234", - "x-ms-region": "West US 2", - "X-Request-ID": "57052818-5a50-44b1-bf00-c98325e28fb6" - }, - "ResponseBody": { - "dataSourceCredentialId": "c3d2d1d4-ae9a-4086-b4e5-91a229740a0e", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gena6472962-3ea3-4ea7-bf06-83b010c87f00", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4bc7df60-797c-4bc3-a168-f134d5640f15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "756", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f817532b-04ac-49b1-94cc-72944e6183da", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataLakeStorageGen2", - "dataFeedName": "java_create_data_feed_test_sample38182d2d-2a14-4e5a-9725-c8feb1f79a36", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "DataLakeGen2SharedKey", - "credentialId": "c3d2d1d4-ae9a-4086-b4e5-91a229740a0e", - "dataSourceParameter": { - "accountName": "REDACTED", - "fileSystemName": "adsample", - "directoryTemplate": "%Y/%m/%d", - "fileTemplate": "adsample.json" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c70a594a-3ea3-4171-a0a2-c09dc5a02be9", - "Content-Length": "1358", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "798", - "x-ms-region": "West US 2", - "X-Request-ID": "c70a594a-3ea3-4171-a0a2-c09dc5a02be9" - }, - "ResponseBody": { - "dataFeedId": "4bc7df60-797c-4bc3-a168-f134d5640f15", - "dataFeedName": "java_create_data_feed_test_sample38182d2d-2a14-4e5a-9725-c8feb1f79a36", - "metrics": [ - { - "metricId": "995259c8-b173-496b-8178-6148ab492ca5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "34130b56-e7da-4cee-9a85-f5d7d8579f28", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:12Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "DataLakeGen2SharedKey", - "credentialId": "c3d2d1d4-ae9a-4086-b4e5-91a229740a0e" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4bc7df60-797c-4bc3-a168-f134d5640f15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a31e9dcf-d294-4663-bcb1-427d611125de", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8db9d6d3-95bd-4d6f-9814-b9ff8ab12ba5", - "Content-Length": "1358", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "201", - "x-ms-region": "West US 2", - "X-Request-ID": "8db9d6d3-95bd-4d6f-9814-b9ff8ab12ba5" - }, - "ResponseBody": { - "dataFeedId": "4bc7df60-797c-4bc3-a168-f134d5640f15", - "dataFeedName": "java_create_data_feed_test_sample38182d2d-2a14-4e5a-9725-c8feb1f79a36", - "metrics": [ - { - "metricId": "995259c8-b173-496b-8178-6148ab492ca5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "34130b56-e7da-4cee-9a85-f5d7d8579f28", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:12Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "DataLakeGen2SharedKey", - "credentialId": "c3d2d1d4-ae9a-4086-b4e5-91a229740a0e" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "313", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "dd97685b-8de5-489e-a30f-c849ed918951", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipal", - "dataSourceCredentialName": "java_create_data_source_cred_sp6d3dc73f-e499-4dac-8a05-e9f7d57bd717", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "clientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "94c6f3fd-48a2-41d2-8c12-f36ddc2b686f", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/59bce019-8217-4fcc-b0b2-3bc86d496d68", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "458", - "x-ms-region": "West US 2", - "X-Request-ID": "94c6f3fd-48a2-41d2-8c12-f36ddc2b686f" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/59bce019-8217-4fcc-b0b2-3bc86d496d68", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b957a6d6-da63-4935-b1a4-f964b38262fb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8b36d02d-233c-4472-863f-0084c2869768", - "Content-Length": "360", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "124", - "x-ms-region": "West US 2", - "X-Request-ID": "8b36d02d-233c-4472-863f-0084c2869768" - }, - "ResponseBody": { - "dataSourceCredentialId": "59bce019-8217-4fcc-b0b2-3bc86d496d68", - "dataSourceCredentialName": "java_create_data_source_cred_sp6d3dc73f-e499-4dac-8a05-e9f7d57bd717", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipal", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4bc7df60-797c-4bc3-a168-f134d5640f15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "751", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "daffe655-5796-476c-8736-1992204a07e5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataLakeStorageGen2", - "dataFeedName": "java_create_data_feed_test_sample38182d2d-2a14-4e5a-9725-c8feb1f79a36", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipal", - "credentialId": "59bce019-8217-4fcc-b0b2-3bc86d496d68", - "dataSourceParameter": { - "accountName": "REDACTED", - "fileSystemName": "adsample", - "directoryTemplate": "%Y/%m/%d", - "fileTemplate": "adsample.json" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ed5b23f8-a266-4293-9c11-7aa35e8f39de", - "Content-Length": "1353", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "622", - "x-ms-region": "West US 2", - "X-Request-ID": "ed5b23f8-a266-4293-9c11-7aa35e8f39de" - }, - "ResponseBody": { - "dataFeedId": "4bc7df60-797c-4bc3-a168-f134d5640f15", - "dataFeedName": "java_create_data_feed_test_sample38182d2d-2a14-4e5a-9725-c8feb1f79a36", - "metrics": [ - { - "metricId": "995259c8-b173-496b-8178-6148ab492ca5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "34130b56-e7da-4cee-9a85-f5d7d8579f28", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:12Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "59bce019-8217-4fcc-b0b2-3bc86d496d68" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4bc7df60-797c-4bc3-a168-f134d5640f15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c85c89dd-7598-4b37-83cb-ed0d2e322244", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "83474993-3c79-4657-b782-0605fec03367", - "Content-Length": "1353", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "141", - "x-ms-region": "West US 2", - "X-Request-ID": "83474993-3c79-4657-b782-0605fec03367" - }, - "ResponseBody": { - "dataFeedId": "4bc7df60-797c-4bc3-a168-f134d5640f15", - "dataFeedName": "java_create_data_feed_test_sample38182d2d-2a14-4e5a-9725-c8feb1f79a36", - "metrics": [ - { - "metricId": "995259c8-b173-496b-8178-6148ab492ca5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "34130b56-e7da-4cee-9a85-f5d7d8579f28", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:12Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "59bce019-8217-4fcc-b0b2-3bc86d496d68" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "510", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "87ea8209-bc8b-4846-8110-1afa14b05b62", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipalInKV", - "dataSourceCredentialName": "java_create_data_source_cred_spkvfc60d3b7-3766-4939-918a-0749baf4e453", - "parameters": { - "keyVaultEndpoint": "https://072b98ac-9e58-478a-9ae6-3411bd614dc0.vault.azure.net", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultClientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "servicePrincipalIdNameInKV": "DSClientID_1", - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "664fd8f7-c30e-4d5c-add3-8dd50d190f52", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/59e556c5-b906-4974-9253-82b8a296c5a7", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "231", - "x-ms-region": "West US 2", - "X-Request-ID": "664fd8f7-c30e-4d5c-add3-8dd50d190f52" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/59e556c5-b906-4974-9253-82b8a296c5a7", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "30986aed-b992-4f7c-8a06-147ac6c8c040", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f7452ef0-228e-48cb-875e-a6dd6f250241", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "90", - "x-ms-region": "West US 2", - "X-Request-ID": "f7452ef0-228e-48cb-875e-a6dd6f250241" - }, - "ResponseBody": { - "dataSourceCredentialId": "59e556c5-b906-4974-9253-82b8a296c5a7", - "dataSourceCredentialName": "java_create_data_source_cred_spkvfc60d3b7-3766-4939-918a-0749baf4e453", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipalInKV", - "parameters": { - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "servicePrincipalIdNameInKV": "DSClientID_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultEndpoint": "https://072b98ac-9e58-478a-9ae6-3411bd614dc0.vault.azure.net" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4bc7df60-797c-4bc3-a168-f134d5640f15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "755", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d733d2d9-2d26-4738-9bce-9783e8f48f8d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "AzureDataLakeStorageGen2", - "dataFeedName": "java_create_data_feed_test_sample38182d2d-2a14-4e5a-9725-c8feb1f79a36", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipalInKV", - "credentialId": "59e556c5-b906-4974-9253-82b8a296c5a7", - "dataSourceParameter": { - "accountName": "REDACTED", - "fileSystemName": "adsample", - "directoryTemplate": "%Y/%m/%d", - "fileTemplate": "adsample.json" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e96907d4-3d68-4427-b716-790fa182d997", - "Content-Length": "1357", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "528", - "x-ms-region": "West US 2", - "X-Request-ID": "e96907d4-3d68-4427-b716-790fa182d997" - }, - "ResponseBody": { - "dataFeedId": "4bc7df60-797c-4bc3-a168-f134d5640f15", - "dataFeedName": "java_create_data_feed_test_sample38182d2d-2a14-4e5a-9725-c8feb1f79a36", - "metrics": [ - { - "metricId": "995259c8-b173-496b-8178-6148ab492ca5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "34130b56-e7da-4cee-9a85-f5d7d8579f28", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:12Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "59e556c5-b906-4974-9253-82b8a296c5a7" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4bc7df60-797c-4bc3-a168-f134d5640f15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a59e0f60-b256-4bcb-bf4e-ff66ac610087", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2d21f98a-ca2f-4392-b9ff-3291e23a8a58", - "Content-Length": "1357", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "143", - "x-ms-region": "West US 2", - "X-Request-ID": "2d21f98a-ca2f-4392-b9ff-3291e23a8a58" - }, - "ResponseBody": { - "dataFeedId": "4bc7df60-797c-4bc3-a168-f134d5640f15", - "dataFeedName": "java_create_data_feed_test_sample38182d2d-2a14-4e5a-9725-c8feb1f79a36", - "metrics": [ - { - "metricId": "995259c8-b173-496b-8178-6148ab492ca5", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "34130b56-e7da-4cee-9a85-f5d7d8579f28", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:12Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "59e556c5-b906-4974-9253-82b8a296c5a7" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4bc7df60-797c-4bc3-a168-f134d5640f15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f01669d5-f891-41f8-b588-4b1c83c7fbc5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "4f39db2f-fb15-4aa3-91ac-f7fffe45cde8", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "320", - "x-ms-region": "West US 2", - "X-Request-ID": "4f39db2f-fb15-4aa3-91ac-f7fffe45cde8" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/c3d2d1d4-ae9a-4086-b4e5-91a229740a0e", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "80b16de8-a4ff-4e58-84d4-5f4881d51f8d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "7ba35958-0017-4e65-be52-29fc79e45c7b", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "187", - "x-ms-region": "West US 2", - "X-Request-ID": "7ba35958-0017-4e65-be52-29fc79e45c7b" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/59bce019-8217-4fcc-b0b2-3bc86d496d68", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "88e2a2bd-578c-4d03-8b4d-39728a967f99", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "4bee27bf-c32d-4af8-b9a9-0672e2c2f6d3", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "158", - "x-ms-region": "West US 2", - "X-Request-ID": "4bee27bf-c32d-4af8-b9a9-0672e2c2f6d3" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/59e556c5-b906-4974-9253-82b8a296c5a7", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "1e38a6b7-36cb-4432-a9e0-25440ee86ad8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "7bea7a21-2be0-4517-afa4-b3ee636ca693", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "130", - "x-ms-region": "West US 2", - "X-Request-ID": "7bea7a21-2be0-4517-afa4-b3ee636ca693" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testSqlServer[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testSqlServer[1].json deleted file mode 100644 index f07728c9166a7..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DataFeedWithCredentialsTest.testSqlServer[1].json +++ /dev/null @@ -1,1255 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "599", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f70d4cf4-23e2-4c7d-9f48-579ae0947c1d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "66473b4a-04dc-4fdf-ac83-886d55077f34", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1023", - "x-ms-region": "West US 2", - "X-Request-ID": "66473b4a-04dc-4fdf-ac83-886d55077f34" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "572a98fd-fd74-4161-8646-b9488e2fd2f3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6feb46f9-4f4c-47d4-a741-b9e5dbac60a5", - "Content-Length": "1221", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "185", - "x-ms-region": "West US 2", - "X-Request-ID": "6feb46f9-4f4c-47d4-a741-b9e5dbac60a5" - }, - "ResponseBody": { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "659", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a23c07e2-021b-49b2-a04b-1416ab8acbd7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ManagedIdentity", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6ae3770c-4a59-497a-8600-fa3991880914", - "Content-Length": "1231", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "666", - "x-ms-region": "West US 2", - "X-Request-ID": "6ae3770c-4a59-497a-8600-fa3991880914" - }, - "ResponseBody": { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "968cd4b4-3651-4e40-9981-51b269482a6e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a00cb57f-d001-4b0a-86ae-8d1bdfc29959", - "Content-Length": "1231", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "147", - "x-ms-region": "West US 2", - "X-Request-ID": "a00cb57f-d001-4b0a-86ae-8d1bdfc29959" - }, - "ResponseBody": { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ManagedIdentity" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "202", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c86734fb-4bcc-49ba-ba1e-7d7b9cc8efa5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "AzureSQLConnectionString", - "dataSourceCredentialName": "java_create_data_source_cred_sql_confd7adafe-a2e5-4313-b204-4aa9bbe1f169", - "parameters": { - "connectionString": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "bb56da88-e989-4e29-b48b-5523ddeb27f5", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/614f38b9-7a84-4915-a300-1cb18a66f552", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "366", - "x-ms-region": "West US 2", - "X-Request-ID": "bb56da88-e989-4e29-b48b-5523ddeb27f5" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/614f38b9-7a84-4915-a300-1cb18a66f552", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "abe45de4-165e-435a-8bcb-42eef30ac5f4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9deffa16-5f2f-44e2-9561-84b0ebf481bc", - "Content-Length": "274", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "143", - "x-ms-region": "West US 2", - "X-Request-ID": "9deffa16-5f2f-44e2-9561-84b0ebf481bc" - }, - "ResponseBody": { - "dataSourceCredentialId": "614f38b9-7a84-4915-a300-1cb18a66f552", - "dataSourceCredentialName": "java_create_data_source_cred_sql_confd7adafe-a2e5-4313-b204-4aa9bbe1f169", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "AzureSQLConnectionString", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "692", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f4c5e8e6-5d86-44d2-87a5-20516ca35f1e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "AzureSQLConnectionString", - "credentialId": "614f38b9-7a84-4915-a300-1cb18a66f552", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2f8393b9-03ba-4e1a-9074-178654c05677", - "Content-Length": "1294", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1478", - "x-ms-region": "West US 2", - "X-Request-ID": "2f8393b9-03ba-4e1a-9074-178654c05677" - }, - "ResponseBody": { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "AzureSQLConnectionString", - "credentialId": "614f38b9-7a84-4915-a300-1cb18a66f552" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "dd3c76f5-3898-46fd-8b75-4da49505ee4a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "cce74759-82a3-419a-ae28-a96d2d4896e1", - "Content-Length": "1294", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "158", - "x-ms-region": "West US 2", - "X-Request-ID": "cce74759-82a3-419a-ae28-a96d2d4896e1" - }, - "ResponseBody": { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "AzureSQLConnectionString", - "credentialId": "614f38b9-7a84-4915-a300-1cb18a66f552" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "313", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "2895f024-be64-470c-912b-4bd76ff61f67", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipal", - "dataSourceCredentialName": "java_create_data_source_cred_spfbff34db-7a47-488f-a3b0-e37928a7f063", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "clientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "9812e021-ec2a-4870-9216-b89750dc68f2", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/d60d1b43-f7ac-411b-b206-022190797990", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "282", - "x-ms-region": "West US 2", - "X-Request-ID": "9812e021-ec2a-4870-9216-b89750dc68f2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/d60d1b43-f7ac-411b-b206-022190797990", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "790e14c0-670b-4a06-b301-468ed8f14e67", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2e61ca93-a134-438e-8b5a-85a988b6a356", - "Content-Length": "360", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "118", - "x-ms-region": "West US 2", - "X-Request-ID": "2e61ca93-a134-438e-8b5a-85a988b6a356" - }, - "ResponseBody": { - "dataSourceCredentialId": "d60d1b43-f7ac-411b-b206-022190797990", - "dataSourceCredentialName": "java_create_data_source_cred_spfbff34db-7a47-488f-a3b0-e37928a7f063", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipal", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "714", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "add3202e-8ea4-4168-a687-09f1f50f226d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipal", - "credentialId": "d60d1b43-f7ac-411b-b206-022190797990", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "673ddd8c-6edc-4cca-ae22-d6f4ac329ab2", - "Content-Length": "1286", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "863", - "x-ms-region": "West US 2", - "X-Request-ID": "673ddd8c-6edc-4cca-ae22-d6f4ac329ab2" - }, - "ResponseBody": { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "d60d1b43-f7ac-411b-b206-022190797990" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c350b819-2e5e-46cb-98a2-966e834d331c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0ac134c9-b5f1-4da2-a138-c926e86e1c6c", - "Content-Length": "1286", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "393", - "x-ms-region": "West US 2", - "X-Request-ID": "0ac134c9-b5f1-4da2-a138-c926e86e1c6c" - }, - "ResponseBody": { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ServicePrincipal", - "credentialId": "d60d1b43-f7ac-411b-b206-022190797990" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "510", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e5013b05-e6bc-449f-81b8-2c524a50ee37", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipalInKV", - "dataSourceCredentialName": "java_create_data_source_cred_spkv085ff3db-6de3-461c-bfdf-da6a926e00b0", - "parameters": { - "keyVaultEndpoint": "https://64337005-46e3-4dd4-8c9e-4e90e70749f7.vault.azure.net", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultClientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "servicePrincipalIdNameInKV": "DSClientID_1", - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "a14c0c11-dcd1-40b5-b2e6-a83628117151", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/ebd343a9-c794-427b-a5ff-bb54bd2a9e48", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "673", - "x-ms-region": "West US 2", - "X-Request-ID": "a14c0c11-dcd1-40b5-b2e6-a83628117151" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/ebd343a9-c794-427b-a5ff-bb54bd2a9e48", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "4053aa50-c46a-4cfc-8392-6c564c25f56a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "56350ebf-84b4-4fc9-9316-2213e9466e72", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:24 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "123", - "x-ms-region": "West US 2", - "X-Request-ID": "56350ebf-84b4-4fc9-9316-2213e9466e72" - }, - "ResponseBody": { - "dataSourceCredentialId": "ebd343a9-c794-427b-a5ff-bb54bd2a9e48", - "dataSourceCredentialName": "java_create_data_source_cred_spkv085ff3db-6de3-461c-bfdf-da6a926e00b0", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipalInKV", - "parameters": { - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "servicePrincipalIdNameInKV": "DSClientID_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultEndpoint": "https://64337005-46e3-4dd4-8c9e-4e90e70749f7.vault.azure.net" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "718", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "824241e2-2352-4703-a62f-8d1a4070c044", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "dataFeedDescription": "", - "timestampColumn": "", - "dataStartFrom": "2019-10-01T00:00:00Z", - "startOffsetInSeconds": 0, - "maxConcurrency": 0, - "minRetryIntervalInSeconds": -1, - "stopRetryAfterInSeconds": -1, - "needRollup": "NoRollup", - "rollUpMethod": "None", - "fillMissingPointType": "PreviousValue", - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "status": "Active", - "actionLinkTemplate": "", - "authenticationType": "ServicePrincipalInKV", - "credentialId": "ebd343a9-c794-427b-a5ff-bb54bd2a9e48", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f11cfd0a-6e72-4aa5-a4f7-53c43e0de49c", - "Content-Length": "1290", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1008", - "x-ms-region": "West US 2", - "X-Request-ID": "f11cfd0a-6e72-4aa5-a4f7-53c43e0de49c" - }, - "ResponseBody": { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "ebd343a9-c794-427b-a5ff-bb54bd2a9e48" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ef6d9001-5bb3-4afa-ab54-1e3446fc90cb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "61126527-e815-46b4-9684-874cb20cd6f1", - "Content-Length": "1290", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "207", - "x-ms-region": "West US 2", - "X-Request-ID": "61126527-e815-46b4-9684-874cb20cd6f1" - }, - "ResponseBody": { - "dataFeedId": "72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "dataFeedName": "java_create_data_feed_test_sample865f575d-98b7-4245-b2e2-3184523b763c", - "metrics": [ - { - "metricId": "2a5a5e60-93b1-46f6-898c-b6c68bcca52b", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "1f3c6e7b-eabf-447b-b4d8-18baff395b9b", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:18Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "ServicePrincipalInKV", - "credentialId": "ebd343a9-c794-427b-a5ff-bb54bd2a9e48" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/72503f89-bb59-4cb5-a2fb-4f7e89c923d9", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "65e9128a-3ffd-4d7f-8990-26f9dcd7d393", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "cbac4bff-64ff-4c45-a864-a1a83c014b2e", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "576", - "x-ms-region": "West US 2", - "X-Request-ID": "cbac4bff-64ff-4c45-a864-a1a83c014b2e" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/614f38b9-7a84-4915-a300-1cb18a66f552", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "acd52c11-3b4f-4c00-9cf6-22aa77307d19", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "53e1a3de-c7c6-4a0b-a5f2-9b33d14cde9d", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "230", - "x-ms-region": "West US 2", - "X-Request-ID": "53e1a3de-c7c6-4a0b-a5f2-9b33d14cde9d" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/d60d1b43-f7ac-411b-b206-022190797990", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "7f6257c6-84c0-4a18-9b04-01dff7dc0c79", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "5a2da078-bbf3-4c79-b5a0-eee520833012", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "221", - "x-ms-region": "West US 2", - "X-Request-ID": "5a2da078-bbf3-4c79-b5a0-eee520833012" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/ebd343a9-c794-427b-a5ff-bb54bd2a9e48", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "61b6f8cc-e0a0-4087-a0f8-cece00741175", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "3d0e2776-d6be-49f6-81be-6e136217fa5c", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "268", - "x-ms-region": "West US 2", - "X-Request-ID": "3d0e2776-d6be-49f6-81be-6e136217fa5c" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createDataLakeGen2SharedKey[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createDataLakeGen2SharedKey[1].json deleted file mode 100644 index c739737cb92ec..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createDataLakeGen2SharedKey[1].json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "195", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "165486c0-98f2-41ec-b10c-3ce3c0c6fa3d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gen1a5f64ac-322f-43ed-941a-0f5805bcb82e", - "parameters": { - "accountKey": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "13056b1e-c5c5-4735-8f27-583e31b79a42", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:59 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/6bb7bb43-b002-491a-a5eb-552d8dc69be1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "437", - "x-ms-region": "West US 2", - "X-Request-ID": "13056b1e-c5c5-4735-8f27-583e31b79a42" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/6bb7bb43-b002-491a-a5eb-552d8dc69be1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ba3b1841-20b7-4915-afc6-024aaa08b3fa", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b4496387-66b3-44bb-a51a-aa30840de18f", - "Content-Length": "273", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "108", - "x-ms-region": "West US 2", - "X-Request-ID": "b4496387-66b3-44bb-a51a-aa30840de18f" - }, - "ResponseBody": { - "dataSourceCredentialId": "6bb7bb43-b002-491a-a5eb-552d8dc69be1", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gen1a5f64ac-322f-43ed-941a-0f5805bcb82e", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/6bb7bb43-b002-491a-a5eb-552d8dc69be1", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "cb1c911e-d483-4125-8133-b3b6424b4863", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "b49c507a-1b8c-4e66-810e-9a5fb34b21cb", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "146", - "x-ms-region": "West US 2", - "X-Request-ID": "b49c507a-1b8c-4e66-810e-9a5fb34b21cb" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createServicePrincipalInKV[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createServicePrincipalInKV[1].json deleted file mode 100644 index 5de518fda3562..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createServicePrincipalInKV[1].json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "510", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c8669ac3-b6d0-4d4a-9839-f3a4aa55f3a3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipalInKV", - "dataSourceCredentialName": "java_create_data_source_cred_spkvcd40369d-8d36-46b6-884b-50a956621eeb", - "parameters": { - "keyVaultEndpoint": "https://bdce118a-3f7b-4431-b7c2-80b3a4d86e36.vault.azure.net", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultClientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "servicePrincipalIdNameInKV": "DSClientID_1", - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "11116ef5-3cfd-42cb-9aae-d99c21cc44b8", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/4443f44c-f4a7-4b76-b504-e377936f6a41", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "277", - "x-ms-region": "West US 2", - "X-Request-ID": "11116ef5-3cfd-42cb-9aae-d99c21cc44b8" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/4443f44c-f4a7-4b76-b504-e377936f6a41", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "6fb817fe-e29c-404c-ab5e-bb68968189cf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "48c93c07-b4eb-4964-9c8a-40096675ded8", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "108", - "x-ms-region": "West US 2", - "X-Request-ID": "48c93c07-b4eb-4964-9c8a-40096675ded8" - }, - "ResponseBody": { - "dataSourceCredentialId": "4443f44c-f4a7-4b76-b504-e377936f6a41", - "dataSourceCredentialName": "java_create_data_source_cred_spkvcd40369d-8d36-46b6-884b-50a956621eeb", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipalInKV", - "parameters": { - "servicePrincipalSecretNameInKV": "DSClientSer_1", - "servicePrincipalIdNameInKV": "DSClientID_1", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "keyVaultClientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "keyVaultEndpoint": "https://bdce118a-3f7b-4431-b7c2-80b3a4d86e36.vault.azure.net" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/4443f44c-f4a7-4b76-b504-e377936f6a41", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e4a22e3d-995e-4949-9990-d8e7b407305e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "841e10cc-a152-4728-800c-b3f7dacf6ec7", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "160", - "x-ms-region": "West US 2", - "X-Request-ID": "841e10cc-a152-4728-800c-b3f7dacf6ec7" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createServicePrincipal[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createServicePrincipal[1].json deleted file mode 100644 index 44fc2dbdcf1a2..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createServicePrincipal[1].json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "313", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "6f35dc9c-e293-4cb6-b84b-99dd7a818190", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipal", - "dataSourceCredentialName": "java_create_data_source_cred_sp7f00435f-ad1b-4468-8dbd-589219d359df", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "clientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "09c132ea-44bd-432f-bdd9-4ecb2e72127a", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/3faf6d5a-b1d9-4b2b-a4e0-d0522b12b82f", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "335", - "x-ms-region": "West US 2", - "X-Request-ID": "09c132ea-44bd-432f-bdd9-4ecb2e72127a" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/3faf6d5a-b1d9-4b2b-a4e0-d0522b12b82f", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "6a44368d-ff6f-4220-9213-34c39b47cd4e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "407a28fa-67d2-4b45-be37-3d6533fc59b2", - "Content-Length": "360", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:03 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "119", - "x-ms-region": "West US 2", - "X-Request-ID": "407a28fa-67d2-4b45-be37-3d6533fc59b2" - }, - "ResponseBody": { - "dataSourceCredentialId": "3faf6d5a-b1d9-4b2b-a4e0-d0522b12b82f", - "dataSourceCredentialName": "java_create_data_source_cred_sp7f00435f-ad1b-4468-8dbd-589219d359df", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipal", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/3faf6d5a-b1d9-4b2b-a4e0-d0522b12b82f", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "467c6702-0af6-47d2-84af-be2cd879cb94", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "1b080eb3-ad0c-4d8d-aa49-4e894846f380", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:03 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "113", - "x-ms-region": "West US 2", - "X-Request-ID": "1b080eb3-ad0c-4d8d-aa49-4e894846f380" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createSqlConnectionString[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createSqlConnectionString[1].json deleted file mode 100644 index c3d58f45e4e5e..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.createSqlConnectionString[1].json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "202", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "4376aeb0-2bee-4eb5-8509-63775db32c1f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "AzureSQLConnectionString", - "dataSourceCredentialName": "java_create_data_source_cred_sql_conedae603b-ca1d-44f2-9da9-40121aa23adf", - "parameters": { - "connectionString": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "f83ec584-d0eb-4167-9286-d7d0f77e6339", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/6e47061a-de0a-4a16-883b-479e4bdbf76a", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "306", - "x-ms-region": "West US 2", - "X-Request-ID": "f83ec584-d0eb-4167-9286-d7d0f77e6339" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/6e47061a-de0a-4a16-883b-479e4bdbf76a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "7acb745f-f386-447c-83fe-c720d35b1e74", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "292b8155-e8a8-46ea-8a9d-c750e9fdbe4e", - "Content-Length": "274", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "113", - "x-ms-region": "West US 2", - "X-Request-ID": "292b8155-e8a8-46ea-8a9d-c750e9fdbe4e" - }, - "ResponseBody": { - "dataSourceCredentialId": "6e47061a-de0a-4a16-883b-479e4bdbf76a", - "dataSourceCredentialName": "java_create_data_source_cred_sql_conedae603b-ca1d-44f2-9da9-40121aa23adf", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "AzureSQLConnectionString", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/6e47061a-de0a-4a16-883b-479e4bdbf76a", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "8ae3d5d3-ee69-49f7-9616-ad1365f0f36a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "ce38c6cc-95c8-41a3-b057-662af84b19cf", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "126", - "x-ms-region": "West US 2", - "X-Request-ID": "ce38c6cc-95c8-41a3-b057-662af84b19cf" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.testListDataSourceCredentials[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.testListDataSourceCredentials[1].json deleted file mode 100644 index 205ab84d5a20d..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialAsyncTest.testListDataSourceCredentials[1].json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "202", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "44eb0c60-c27e-4e56-b7c6-fcd50dd9c917", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "AzureSQLConnectionString", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con5b6a15cf-2e44-47dc-9e49-60e0856e5b3f", - "parameters": { - "connectionString": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "fa0b2ff8-473f-4a94-b04d-31f647518057", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/75fcd7ed-ed49-4004-b710-c82c5d3d2152", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "539", - "x-ms-region": "West US 2", - "X-Request-ID": "fa0b2ff8-473f-4a94-b04d-31f647518057" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/75fcd7ed-ed49-4004-b710-c82c5d3d2152", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c6846fc3-18bb-4c6d-a878-b31dc6400f6f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d3b8d3e1-8d50-48b0-b7e8-19d23d2e23a0", - "Content-Length": "274", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "119", - "x-ms-region": "West US 2", - "X-Request-ID": "d3b8d3e1-8d50-48b0-b7e8-19d23d2e23a0" - }, - "ResponseBody": { - "dataSourceCredentialId": "75fcd7ed-ed49-4004-b710-c82c5d3d2152", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con5b6a15cf-2e44-47dc-9e49-60e0856e5b3f", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "AzureSQLConnectionString", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "195", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e99db0e0-4bc5-49c3-8c14-78c5f7de42a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gencb37f354-417e-42d5-b2c9-892e64083c9f", - "parameters": { - "accountKey": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "11630c55-c19b-4f8d-bc6b-b880f97ed8cd", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/b884cbfd-3854-483b-8091-8c435b238f42", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "399", - "x-ms-region": "West US 2", - "X-Request-ID": "11630c55-c19b-4f8d-bc6b-b880f97ed8cd" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/b884cbfd-3854-483b-8091-8c435b238f42", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "47872ef5-3127-4bea-8c50-d71899d58aa8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "dec7828a-1dfb-4798-a4e3-1959cde2a294", - "Content-Length": "273", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-ms-region": "West US 2", - "X-Request-ID": "dec7828a-1dfb-4798-a4e3-1959cde2a294" - }, - "ResponseBody": { - "dataSourceCredentialId": "b884cbfd-3854-483b-8091-8c435b238f42", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gencb37f354-417e-42d5-b2c9-892e64083c9f", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d60a2dc9-a714-4bbe-b798-17d1ae13b80d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "71d3ab27-7b90-4079-8b5b-f2504133f7ac", - "Content-Length": "1379", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "526", - "x-ms-region": "West US 2", - "X-Request-ID": "71d3ab27-7b90-4079-8b5b-f2504133f7ac" - }, - "ResponseBody": { - "value": [ - { - "dataSourceCredentialId": "b884cbfd-3854-483b-8091-8c435b238f42", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gencb37f354-417e-42d5-b2c9-892e64083c9f", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "parameters": {} - }, - { - "dataSourceCredentialId": "6e37cb48-f3c4-485d-89bf-643da443bba9", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gen3b36ae10-54cf-4963-9136-accbcf224177", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "parameters": {} - }, - { - "dataSourceCredentialId": "fe731985-5e24-46b0-8e75-6ab2ec76385a", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con76a2f565-c8d1-4808-b9bb-72bea3b73d23", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "AzureSQLConnectionString", - "parameters": {} - }, - { - "dataSourceCredentialId": "75fcd7ed-ed49-4004-b710-c82c5d3d2152", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con5b6a15cf-2e44-47dc-9e49-60e0856e5b3f", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "AzureSQLConnectionString", - "parameters": {} - }, - { - "dataSourceCredentialId": "9388a986-5430-4666-a758-7461c2a48774", - "dataSourceCredentialName": "sample_credential", - "dataSourceCredentialDescription": "my credential", - "dataSourceCredentialType": "ServicePrincipal", - "parameters": { - "clientId": "client_id", - "tenantId": "tenant_id" - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/75fcd7ed-ed49-4004-b710-c82c5d3d2152", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:59 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "4769990d-5074-4855-8aac-8f0dd86a8429", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "d86c8139-a31a-4316-8c19-f132d2ef0ade", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "187", - "x-ms-region": "West US 2", - "X-Request-ID": "d86c8139-a31a-4316-8c19-f132d2ef0ade" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/b884cbfd-3854-483b-8091-8c435b238f42", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:59 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d106efb5-158a-4802-8818-cf80463d362c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "a0ae7bd7-8bfd-4cbd-bb64-8f71e78035a4", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "226", - "x-ms-region": "West US 2", - "X-Request-ID": "a0ae7bd7-8bfd-4cbd-bb64-8f71e78035a4" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createDataLakeGen2SharedKey[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createDataLakeGen2SharedKey[1].json deleted file mode 100644 index 2aeaed9bb6e3f..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createDataLakeGen2SharedKey[1].json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "195", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "69a5cc94-b0e0-4443-814d-1a606379d2f0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gen775684e3-bb60-432b-8cc5-47bb3370251a", - "parameters": { - "accountKey": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "87663bd2-6a39-4317-9c66-6a1f55f08a34", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:59 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/79988c71-e1ce-4dfd-8ac5-dc067cdf2ae0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "419", - "x-ms-region": "West US 2", - "X-Request-ID": "87663bd2-6a39-4317-9c66-6a1f55f08a34" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/79988c71-e1ce-4dfd-8ac5-dc067cdf2ae0", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e4d8757b-dbac-4422-973d-e3d1b7427860", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "24a4e0e1-97dc-494b-bde8-b821cfbd0fd5", - "Content-Length": "273", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "114", - "x-ms-region": "West US 2", - "X-Request-ID": "24a4e0e1-97dc-494b-bde8-b821cfbd0fd5" - }, - "ResponseBody": { - "dataSourceCredentialId": "79988c71-e1ce-4dfd-8ac5-dc067cdf2ae0", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gen775684e3-bb60-432b-8cc5-47bb3370251a", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/79988c71-e1ce-4dfd-8ac5-dc067cdf2ae0", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "98a02aaf-b9d7-4520-aabe-2251c030db9e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "148f04f7-5f47-4d8a-a5bb-a5a81cf30500", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "181", - "x-ms-region": "West US 2", - "X-Request-ID": "148f04f7-5f47-4d8a-a5bb-a5a81cf30500" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createServicePrincipal[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createServicePrincipal[1].json deleted file mode 100644 index d66bb238d1b40..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createServicePrincipal[1].json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "313", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "4f59f42a-b078-4028-ae76-9df4e36efe73", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "ServicePrincipal", - "dataSourceCredentialName": "java_create_data_source_cred_sp912d1505-290c-4355-8ddf-eb72d4afc76c", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "clientSecret": "45389ded-5e07-4e52-b225-4ae8f905afb5", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "eff688be-0182-4276-a2f9-47f3242fff15", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/340279b5-3932-4389-a2aa-671f49f79148", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "353", - "x-ms-region": "West US 2", - "X-Request-ID": "eff688be-0182-4276-a2f9-47f3242fff15" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/340279b5-3932-4389-a2aa-671f49f79148", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "11fb04c6-7bb2-4b01-b9ee-7b468749afa8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d87b5e14-e2e0-47cc-b117-12c9d1307b69", - "Content-Length": "360", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "150", - "x-ms-region": "West US 2", - "X-Request-ID": "d87b5e14-e2e0-47cc-b117-12c9d1307b69" - }, - "ResponseBody": { - "dataSourceCredentialId": "340279b5-3932-4389-a2aa-671f49f79148", - "dataSourceCredentialName": "java_create_data_source_cred_sp912d1505-290c-4355-8ddf-eb72d4afc76c", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "ServicePrincipal", - "parameters": { - "clientId": "e70248b2-bffa-11eb-8529-0242ac130003", - "tenantId": "45389ded-5e07-4e52-b225-4ae8f905afb5" - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/340279b5-3932-4389-a2aa-671f49f79148", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "0bd2bb0f-488b-4857-8466-b345544cf25a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "7f88f82b-e3fe-4586-9f7d-51ed909be6c1", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "148", - "x-ms-region": "West US 2", - "X-Request-ID": "7f88f82b-e3fe-4586-9f7d-51ed909be6c1" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createSqlConnectionString[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createSqlConnectionString[1].json deleted file mode 100644 index 6dc11b5a16075..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.createSqlConnectionString[1].json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "202", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "7bbd303d-e515-4527-ad27-21f8ded6666d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "AzureSQLConnectionString", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con24abb247-e5b6-4ce1-a497-a76b945a680b", - "parameters": { - "connectionString": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "8a7f6570-8ce5-487a-a9a9-79a9d570b0b6", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:00 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/74152732-5c68-44de-ab51-8c09e48254c9", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "279", - "x-ms-region": "West US 2", - "X-Request-ID": "8a7f6570-8ce5-487a-a9a9-79a9d570b0b6" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/74152732-5c68-44de-ab51-8c09e48254c9", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e9a40f30-8134-48d5-98e2-375254593adc", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "97fc72f4-9054-446e-a3bf-1a3522223939", - "Content-Length": "274", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:00 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "111", - "x-ms-region": "West US 2", - "X-Request-ID": "97fc72f4-9054-446e-a3bf-1a3522223939" - }, - "ResponseBody": { - "dataSourceCredentialId": "74152732-5c68-44de-ab51-8c09e48254c9", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con24abb247-e5b6-4ce1-a497-a76b945a680b", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "AzureSQLConnectionString", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/74152732-5c68-44de-ab51-8c09e48254c9", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "008b49e7-9949-4ee2-8685-1893ceaeab0a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "8b9a32f4-45bb-4d52-b729-1c92b4df6d87", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:00 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "100", - "x-ms-region": "West US 2", - "X-Request-ID": "8b9a32f4-45bb-4d52-b729-1c92b4df6d87" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.testListDataSourceCredentials[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.testListDataSourceCredentials[1].json deleted file mode 100644 index 10b4726212e18..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DatasourceCredentialTest.testListDataSourceCredentials[1].json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "202", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "40b5dcea-ad14-4ae8-8f1d-0ae5d0f9371e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "AzureSQLConnectionString", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con76a2f565-c8d1-4808-b9bb-72bea3b73d23", - "parameters": { - "connectionString": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "80982ddd-a156-4d78-b162-cf02a8ca6615", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/fe731985-5e24-46b0-8e75-6ab2ec76385a", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "555", - "x-ms-region": "West US 2", - "X-Request-ID": "80982ddd-a156-4d78-b162-cf02a8ca6615" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/fe731985-5e24-46b0-8e75-6ab2ec76385a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "0ff03a8e-0503-4a57-8068-5caab6222b70", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3e20d07a-a2ec-4fc6-a734-8c9322ca9b90", - "Content-Length": "274", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "202", - "x-ms-region": "West US 2", - "X-Request-ID": "3e20d07a-a2ec-4fc6-a734-8c9322ca9b90" - }, - "ResponseBody": { - "dataSourceCredentialId": "fe731985-5e24-46b0-8e75-6ab2ec76385a", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con76a2f565-c8d1-4808-b9bb-72bea3b73d23", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "AzureSQLConnectionString", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "195", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "71f491fe-4380-498b-9e91-51f21cef5c26", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gen3b36ae10-54cf-4963-9136-accbcf224177", - "parameters": { - "accountKey": "REDACTED" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "5175572f-4c0b-4ca5-9f74-844fe03f4c45", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/credentials/6e37cb48-f3c4-485d-89bf-643da443bba9", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "337", - "x-ms-region": "West US 2", - "X-Request-ID": "5175572f-4c0b-4ca5-9f74-844fe03f4c45" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/6e37cb48-f3c4-485d-89bf-643da443bba9", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b1aad718-b1ff-4cc4-b4f6-25d8e322df93", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9420fe47-6c93-4473-b269-6850d5e29663", - "Content-Length": "273", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "157", - "x-ms-region": "West US 2", - "X-Request-ID": "9420fe47-6c93-4473-b269-6850d5e29663" - }, - "ResponseBody": { - "dataSourceCredentialId": "6e37cb48-f3c4-485d-89bf-643da443bba9", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gen3b36ae10-54cf-4963-9136-accbcf224177", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "parameters": {} - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "23bb317f-2a74-4d48-b5b3-6336a3be2514", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6b2c41cf-e037-44d6-9235-4caed7bc4ee5", - "Content-Length": "1379", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "565", - "x-ms-region": "West US 2", - "X-Request-ID": "6b2c41cf-e037-44d6-9235-4caed7bc4ee5" - }, - "ResponseBody": { - "value": [ - { - "dataSourceCredentialId": "b884cbfd-3854-483b-8091-8c435b238f42", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gencb37f354-417e-42d5-b2c9-892e64083c9f", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "parameters": {} - }, - { - "dataSourceCredentialId": "6e37cb48-f3c4-485d-89bf-643da443bba9", - "dataSourceCredentialName": "java_create_data_source_cred_dlake_gen3b36ae10-54cf-4963-9136-accbcf224177", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "DataLakeGen2SharedKey", - "parameters": {} - }, - { - "dataSourceCredentialId": "fe731985-5e24-46b0-8e75-6ab2ec76385a", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con76a2f565-c8d1-4808-b9bb-72bea3b73d23", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "AzureSQLConnectionString", - "parameters": {} - }, - { - "dataSourceCredentialId": "75fcd7ed-ed49-4004-b710-c82c5d3d2152", - "dataSourceCredentialName": "java_create_data_source_cred_sql_con5b6a15cf-2e44-47dc-9e49-60e0856e5b3f", - "dataSourceCredentialDescription": "", - "dataSourceCredentialType": "AzureSQLConnectionString", - "parameters": {} - }, - { - "dataSourceCredentialId": "9388a986-5430-4666-a758-7461c2a48774", - "dataSourceCredentialName": "sample_credential", - "dataSourceCredentialDescription": "my credential", - "dataSourceCredentialType": "ServicePrincipal", - "parameters": { - "clientId": "client_id", - "tenantId": "tenant_id" - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/fe731985-5e24-46b0-8e75-6ab2ec76385a", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:59 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d9f641af-2c1a-443a-85ea-994953dfabc4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "aff6a792-3ea6-4518-8b1c-38342f8500d8", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "189", - "x-ms-region": "West US 2", - "X-Request-ID": "aff6a792-3ea6-4518-8b1c-38342f8500d8" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/credentials/6e37cb48-f3c4-485d-89bf-643da443bba9", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:59 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c83329a3-aeb5-458e-8e0f-44894aebc335", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "a9c63b95-f41d-4387-ab0d-11f95c13d955", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "191", - "x-ms-region": "West US 2", - "X-Request-ID": "a9c63b95-f41d-4387-ab0d-11f95c13d955" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForMultipleSeriesAndGroup[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForMultipleSeriesAndGroup[1].json deleted file mode 100644 index 921f64f932f69..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForMultipleSeriesAndGroup[1].json +++ /dev/null @@ -1,731 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "594", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:04 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a2b00550-28ab-4bd4-8fbd-4f4b47401d41", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_data_feed_for_detection08a828ac-ecdf-4b51-8992-6f972d175a98", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "a3a82491-508d-4056-b63f-7c24717f7cdc", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:05 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/554e08e6-7a21-49ff-9f81-9e3ebf3f69c1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1418", - "x-ms-region": "West US 2", - "X-Request-ID": "a3a82491-508d-4056-b63f-7c24717f7cdc" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/554e08e6-7a21-49ff-9f81-9e3ebf3f69c1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "42d2c4c8-af0c-449b-a9ca-899c46513455", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "eef80dd6-174e-413a-835a-31d9584f82af", - "Content-Length": "1216", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:05 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "161", - "x-ms-region": "West US 2", - "X-Request-ID": "eef80dd6-174e-413a-835a-31d9584f82af" - }, - "ResponseBody": { - "dataFeedId": "554e08e6-7a21-49ff-9f81-9e3ebf3f69c1", - "dataFeedName": "java_data_feed_for_detection08a828ac-ecdf-4b51-8992-6f972d175a98", - "metrics": [ - { - "metricId": "602f6c03-bd2e-4d44-bd2e-7196ef543d4c", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "3ffa324d-0b66-4ad0-9b62-dd1b7851aad2", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:04Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "2215", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "3d1d3127-531e-4ff0-b006-989a334899e3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "name": "testdetectionconfig54fff98e-db27-40dc-aac4-631a12ce22d5", - "description": "test metric anomaly detection configuration", - "metricId": "602f6c03-bd2e-4d44-bd2e-7196ef543d4c", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "series": { - "dimension": { - "region": "Osaka", - "category": "Cell Phones" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "d08b8ef0-10e7-4c3b-a475-b87e701ee1b2", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:05 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/5a68c035-b8bf-45f7-82d5-3e764e61f563", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "307", - "x-ms-region": "West US 2", - "X-Request-ID": "d08b8ef0-10e7-4c3b-a475-b87e701ee1b2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/5a68c035-b8bf-45f7-82d5-3e764e61f563", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d432dbb8-2ff0-4582-824a-e0d22f9ee133", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "48b6db94-fe05-4fbd-a386-3571c3cfb126", - "Content-Length": "2288", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:05 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "96", - "x-ms-region": "West US 2", - "X-Request-ID": "48b6db94-fe05-4fbd-a386-3571c3cfb126" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "5a68c035-b8bf-45f7-82d5-3e764e61f563", - "name": "testdetectionconfig54fff98e-db27-40dc-aac4-631a12ce22d5", - "description": "test metric anomaly detection configuration", - "metricId": "602f6c03-bd2e-4d44-bd2e-7196ef543d4c", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "series": { - "dimension": { - "region": "Osaka", - "category": "Cell Phones" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/602f6c03-bd2e-4d44-bd2e-7196ef543d4c/enrichment/anomalyDetection/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "cacba102-58d2-4c63-b524-5103d0e46d89", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "86b47098-b9e7-4503-a463-cc3ea8b1e7ca", - "Content-Length": "2698", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "105", - "x-ms-region": "West US 2", - "X-Request-ID": "86b47098-b9e7-4503-a463-cc3ea8b1e7ca" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "5a68c035-b8bf-45f7-82d5-3e764e61f563", - "name": "testdetectionconfig54fff98e-db27-40dc-aac4-631a12ce22d5", - "description": "test metric anomaly detection configuration", - "metricId": "602f6c03-bd2e-4d44-bd2e-7196ef543d4c", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "series": { - "dimension": { - "region": "Osaka", - "category": "Cell Phones" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - }, - { - "anomalyDetectionConfigurationId": "b82a2a68-24ca-4c52-8f85-e3e970db5070", - "name": "Default", - "description": "", - "metricId": "602f6c03-bd2e-4d44-bd2e-7196ef543d4c", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 79.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/5a68c035-b8bf-45f7-82d5-3e764e61f563", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "8c171c88-9b63-4b23-9e31-d1b779cead8d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "b5441f5d-aa3d-408c-a110-b382b5e5a8ee", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "87", - "x-ms-region": "West US 2", - "X-Request-ID": "b5441f5d-aa3d-408c-a110-b382b5e5a8ee" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/554e08e6-7a21-49ff-9f81-9e3ebf3f69c1", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "4f6628f2-6519-4b6f-bc3e-0dfd38c7fcaa", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "d7aa36b6-5b18-45a6-8235-023eb0c92107", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "385", - "x-ms-region": "West US 2", - "X-Request-ID": "d7aa36b6-5b18-45a6-8235-023eb0c92107" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForSeriesAndGroup[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForSeriesAndGroup[1].json deleted file mode 100644 index 4b48563d6bf25..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForSeriesAndGroup[1].json +++ /dev/null @@ -1,398 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "594", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a5cc66ec-9889-48aa-a2eb-a76b79fd9364", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_data_feed_for_detectione2ac83c7-373c-4abe-b983-fae72a0f7cff", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "97798b35-9c02-469e-abb8-db624e610e3c", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f3327047-604d-4dee-a1ac-6fb127906516", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "822", - "x-ms-region": "West US 2", - "X-Request-ID": "97798b35-9c02-469e-abb8-db624e610e3c" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f3327047-604d-4dee-a1ac-6fb127906516", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "bfa29f32-6447-40ef-b36f-f77bb96f706d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "68fe5466-952f-4502-a165-5c53e7ed4158", - "Content-Length": "1216", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "144", - "x-ms-region": "West US 2", - "X-Request-ID": "68fe5466-952f-4502-a165-5c53e7ed4158" - }, - "ResponseBody": { - "dataFeedId": "f3327047-604d-4dee-a1ac-6fb127906516", - "dataFeedName": "java_data_feed_for_detectione2ac83c7-373c-4abe-b983-fae72a0f7cff", - "metrics": [ - { - "metricId": "6d07773d-656f-4bea-bdc5-f1a4ed2451fd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "5d2a971d-3928-4012-a439-e86e9001d075", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1143", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "15490d36-9afa-49e4-83ae-61019b9125b8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "name": "testdetectionconfig19efb650-6a25-4a71-9f42-38b8431f189f", - "description": "test metric anomaly detection configuration", - "metricId": "6d07773d-656f-4bea-bdc5-f1a4ed2451fd", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "2e27bf87-46ff-433d-8e5a-0861b17f93cb", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/81b1e7bb-b725-4a82-920f-5519527d81fc", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "237", - "x-ms-region": "West US 2", - "X-Request-ID": "2e27bf87-46ff-433d-8e5a-0861b17f93cb" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/81b1e7bb-b725-4a82-920f-5519527d81fc", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "195a7163-9fba-4cb3-8955-2ae3964c2379", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9c58fb04-40a3-4f15-9f76-b8a25b1e471b", - "Content-Length": "1216", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "94", - "x-ms-region": "West US 2", - "X-Request-ID": "9c58fb04-40a3-4f15-9f76-b8a25b1e471b" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "81b1e7bb-b725-4a82-920f-5519527d81fc", - "name": "testdetectionconfig19efb650-6a25-4a71-9f42-38b8431f189f", - "description": "test metric anomaly detection configuration", - "metricId": "6d07773d-656f-4bea-bdc5-f1a4ed2451fd", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/81b1e7bb-b725-4a82-920f-5519527d81fc", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "eaed41a5-1a4e-47ae-aea6-aace61900d19", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "fd842a59-6b98-4923-936a-46d67a2a2eff", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "71", - "x-ms-region": "West US 2", - "X-Request-ID": "fd842a59-6b98-4923-936a-46d67a2a2eff" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/f3327047-604d-4dee-a1ac-6fb127906516", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "92ccdeea-8a89-49f7-b669-4d6540bfdfbe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "49d00720-529b-4fcf-8c75-87c494f3f769", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "357", - "x-ms-region": "West US 2", - "X-Request-ID": "49d00720-529b-4fcf-8c75-87c494f3f769" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForWholeSeries[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForWholeSeries[1].json deleted file mode 100644 index cfa744281119f..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.createDetectionConfigurationForWholeSeries[1].json +++ /dev/null @@ -1,332 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "594", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "5c54a868-eb14-494b-8f13-c2e37e0171dd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_data_feed_for_detectione454bd27-f943-4a63-a542-ef3692bc1f1a", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "493e73df-7084-4ce6-9a89-f8105adea1b0", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0cdc2f9a-6b3f-46eb-95eb-9bca14d066ec", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "672", - "x-ms-region": "West US 2", - "X-Request-ID": "493e73df-7084-4ce6-9a89-f8105adea1b0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0cdc2f9a-6b3f-46eb-95eb-9bca14d066ec", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "17e036c9-1e82-4cdc-a65d-6a10fa13ae7f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5d140cb4-bda8-4eab-9225-95b9291b7fcc", - "Content-Length": "1216", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "193", - "x-ms-region": "West US 2", - "X-Request-ID": "5d140cb4-bda8-4eab-9225-95b9291b7fcc" - }, - "ResponseBody": { - "dataFeedId": "0cdc2f9a-6b3f-46eb-95eb-9bca14d066ec", - "dataFeedName": "java_data_feed_for_detectione454bd27-f943-4a63-a542-ef3692bc1f1a", - "metrics": [ - { - "metricId": "8089e0b1-271c-496b-bcc0-bdea238ae1ec", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "6d1a9e29-c5ad-49c5-a504-b8a144fb2eb6", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:01Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "761", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f3005a34-409c-4f0e-8aaa-cfc0b298607b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "name": "testdetectionconfig8e8e0b98-1431-4911-a240-58df15582d8a", - "description": "test metric anomaly detection configuration", - "metricId": "8089e0b1-271c-496b-bcc0-bdea238ae1ec", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "e7ea1e93-f9ed-4cce-a111-7f24bf147e7a", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/52c80331-9271-4f3d-a073-8f7b8f46d091", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "167", - "x-ms-region": "West US 2", - "X-Request-ID": "e7ea1e93-f9ed-4cce-a111-7f24bf147e7a" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/52c80331-9271-4f3d-a073-8f7b8f46d091", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e8c3d94a-5b9d-4176-be94-4d030e7c1196", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c789dd3b-dc0a-4c5b-95a0-b109c7d19d76", - "Content-Length": "834", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "100", - "x-ms-region": "West US 2", - "X-Request-ID": "c789dd3b-dc0a-4c5b-95a0-b109c7d19d76" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "52c80331-9271-4f3d-a073-8f7b8f46d091", - "name": "testdetectionconfig8e8e0b98-1431-4911-a240-58df15582d8a", - "description": "test metric anomaly detection configuration", - "metricId": "8089e0b1-271c-496b-bcc0-bdea238ae1ec", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/52c80331-9271-4f3d-a073-8f7b8f46d091", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d8aa20aa-34cf-404c-a95b-0c2f727cd684", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "7de17c50-f0d3-4869-bb19-886f74ab5169", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "79", - "x-ms-region": "West US 2", - "X-Request-ID": "7de17c50-f0d3-4869-bb19-886f74ab5169" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/0cdc2f9a-6b3f-46eb-95eb-9bca14d066ec", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "bb510710-579c-4ee4-872c-a818877ff021", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "95546105-848f-4851-88af-7d7091e94fca", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "336", - "x-ms-region": "West US 2", - "X-Request-ID": "95546105-848f-4851-88af-7d7091e94fca" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.updateDetectionConfiguration[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.updateDetectionConfiguration[1].json deleted file mode 100644 index d05e924e82194..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationAsyncTest.updateDetectionConfiguration[1].json +++ /dev/null @@ -1,940 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "594", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "205da415-4949-42e8-962e-7a0c0d0a17a0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_data_feed_for_detection9c917640-15dc-400d-9d58-5a3b9517ac59", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "d5668c20-38e0-4d37-bfac-46a34bde77ba", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/71983cf3-e968-4ec2-a407-80363cba3647", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1436", - "x-ms-region": "West US 2", - "X-Request-ID": "d5668c20-38e0-4d37-bfac-46a34bde77ba" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/71983cf3-e968-4ec2-a407-80363cba3647", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "fcca5592-deb0-448f-9216-68323aa73ed6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "decbae36-115f-4298-8b8f-641d10237ecf", - "Content-Length": "1216", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "129", - "x-ms-region": "West US 2", - "X-Request-ID": "decbae36-115f-4298-8b8f-641d10237ecf" - }, - "ResponseBody": { - "dataFeedId": "71983cf3-e968-4ec2-a407-80363cba3647", - "dataFeedName": "java_data_feed_for_detection9c917640-15dc-400d-9d58-5a3b9517ac59", - "metrics": [ - { - "metricId": "70bc0e26-1e40-41fe-9010-f6e88ec89126", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d1f9232d-a523-41ba-9518-438b7ac58713", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:09Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "2038", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "63028e8a-f80f-46b8-9823-cf1b8ad82107", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "name": "testdetectionconfiga528f0c9-e081-42f1-bc0d-60145d03eefe", - "description": "test metric anomaly detection configuration", - "metricId": "70bc0e26-1e40-41fe-9010-f6e88ec89126", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "series": { - "dimension": { - "region": "Osaka", - "category": "Cell Phones" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "ae6b4de6-ec94-4400-9c77-53a5abff14f1", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/46903264-e211-438c-872f-6e796e07eeee", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "233", - "x-ms-region": "West US 2", - "X-Request-ID": "ae6b4de6-ec94-4400-9c77-53a5abff14f1" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/46903264-e211-438c-872f-6e796e07eeee", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "57bae984-016b-40ec-b1ac-98665594d288", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "329dfa7c-0692-4a66-8982-fad5f6a1d819", - "Content-Length": "2111", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "104", - "x-ms-region": "West US 2", - "X-Request-ID": "329dfa7c-0692-4a66-8982-fad5f6a1d819" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "46903264-e211-438c-872f-6e796e07eeee", - "name": "testdetectionconfiga528f0c9-e081-42f1-bc0d-60145d03eefe", - "description": "test metric anomaly detection configuration", - "metricId": "70bc0e26-1e40-41fe-9010-f6e88ec89126", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "series": { - "dimension": { - "region": "Osaka", - "category": "Cell Phones" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/46903264-e211-438c-872f-6e796e07eeee", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1962", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "8cef41e5-d0bc-4454-8d52-c68a026ff605", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "name": "testdetectionconfiga528f0c9-e081-42f1-bc0d-60145d03eefe", - "description": "test metric anomaly detection configuration", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c33b3c5e-8f62-40cb-baa5-f31b92b63119", - "Content-Length": "2085", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "308", - "x-ms-region": "West US 2", - "X-Request-ID": "c33b3c5e-8f62-40cb-baa5-f31b92b63119" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "46903264-e211-438c-872f-6e796e07eeee", - "name": "testdetectionconfiga528f0c9-e081-42f1-bc0d-60145d03eefe", - "description": "test metric anomaly detection configuration", - "metricId": "70bc0e26-1e40-41fe-9010-f6e88ec89126", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/46903264-e211-438c-872f-6e796e07eeee", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "1754350b-21e5-49b7-bd11-439fe750c1a6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "de405920-3e7d-4da2-ac8d-6ec394696c4c", - "Content-Length": "2085", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "80", - "x-ms-region": "West US 2", - "X-Request-ID": "de405920-3e7d-4da2-ac8d-6ec394696c4c" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "46903264-e211-438c-872f-6e796e07eeee", - "name": "testdetectionconfiga528f0c9-e081-42f1-bc0d-60145d03eefe", - "description": "test metric anomaly detection configuration", - "metricId": "70bc0e26-1e40-41fe-9010-f6e88ec89126", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/46903264-e211-438c-872f-6e796e07eeee", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "7e54b01c-ee9b-42ee-af22-157b36e6728a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "0b430ea0-d849-4b67-8fc9-95a8b3839dc7", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "72", - "x-ms-region": "West US 2", - "X-Request-ID": "0b430ea0-d849-4b67-8fc9-95a8b3839dc7" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/71983cf3-e968-4ec2-a407-80363cba3647", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "f70e2cc5-fc2b-475d-a082-b4bd0f41c291", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "aa48eec2-b5e6-48fe-8585-dee5ac60386f", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "325", - "x-ms-region": "West US 2", - "X-Request-ID": "aa48eec2-b5e6-48fe-8585-dee5ac60386f" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForMultipleSeriesAndGroup[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForMultipleSeriesAndGroup[1].json deleted file mode 100644 index dd79818e29120..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForMultipleSeriesAndGroup[1].json +++ /dev/null @@ -1,731 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "594", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "54f06b2a-a079-4b18-9f8e-9ca3aaa27605", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_data_feed_for_detectionfedbbd10-7872-412c-9be1-7cdf500b1ba0", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "884ef45b-180a-40ea-922f-083d59cdd0cf", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ec12ba72-24db-4188-89f2-b4da2b5a20cf", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1666", - "x-ms-region": "West US 2", - "X-Request-ID": "884ef45b-180a-40ea-922f-083d59cdd0cf" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ec12ba72-24db-4188-89f2-b4da2b5a20cf", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "1d5165e8-d7ec-491c-8e55-d595c639819f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "dd8cc58b-159f-4e91-adeb-c198e9692444", - "Content-Length": "1216", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "149", - "x-ms-region": "West US 2", - "X-Request-ID": "dd8cc58b-159f-4e91-adeb-c198e9692444" - }, - "ResponseBody": { - "dataFeedId": "ec12ba72-24db-4188-89f2-b4da2b5a20cf", - "dataFeedName": "java_data_feed_for_detectionfedbbd10-7872-412c-9be1-7cdf500b1ba0", - "metrics": [ - { - "metricId": "1b0f0baf-8db0-494b-9dad-cff737518b11", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "41b644ce-0ab3-4d6f-8496-01f631882aad", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:09Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "2215", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "9b5c2928-08bc-4792-9552-25be5d318c26", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "name": "testdetectionconfig54fff98e-db27-40dc-aac4-631a12ce22d5", - "description": "test metric anomaly detection configuration", - "metricId": "1b0f0baf-8db0-494b-9dad-cff737518b11", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "series": { - "dimension": { - "region": "Osaka", - "category": "Cell Phones" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "b766a8c5-4a2e-4ab8-93f6-779d669f2812", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/0fdbd704-2c85-4aa1-be9d-1b9fcdde0ca6", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "237", - "x-ms-region": "West US 2", - "X-Request-ID": "b766a8c5-4a2e-4ab8-93f6-779d669f2812" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/0fdbd704-2c85-4aa1-be9d-1b9fcdde0ca6", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "710fda85-76ce-4635-bcb4-05a0ba04ace4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3bb07d29-520f-4269-b293-61ac3d6a4f90", - "Content-Length": "2288", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "92", - "x-ms-region": "West US 2", - "X-Request-ID": "3bb07d29-520f-4269-b293-61ac3d6a4f90" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "0fdbd704-2c85-4aa1-be9d-1b9fcdde0ca6", - "name": "testdetectionconfig54fff98e-db27-40dc-aac4-631a12ce22d5", - "description": "test metric anomaly detection configuration", - "metricId": "1b0f0baf-8db0-494b-9dad-cff737518b11", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "series": { - "dimension": { - "region": "Osaka", - "category": "Cell Phones" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/1b0f0baf-8db0-494b-9dad-cff737518b11/enrichment/anomalyDetection/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "fba46e06-b72a-4440-bd1d-7ad9c2a979eb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ebc0a9e0-e94a-4335-b78e-6fc89585a24f", - "Content-Length": "2698", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "86", - "x-ms-region": "West US 2", - "X-Request-ID": "ebc0a9e0-e94a-4335-b78e-6fc89585a24f" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "0fdbd704-2c85-4aa1-be9d-1b9fcdde0ca6", - "name": "testdetectionconfig54fff98e-db27-40dc-aac4-631a12ce22d5", - "description": "test metric anomaly detection configuration", - "metricId": "1b0f0baf-8db0-494b-9dad-cff737518b11", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "series": { - "dimension": { - "region": "Osaka", - "category": "Cell Phones" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - }, - { - "anomalyDetectionConfigurationId": "6d3fe3b5-e1b8-4645-9331-f85e2dbc2848", - "name": "Default", - "description": "", - "metricId": "1b0f0baf-8db0-494b-9dad-cff737518b11", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 79.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/0fdbd704-2c85-4aa1-be9d-1b9fcdde0ca6", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "9ffa9892-408c-41f1-9195-880d058458a5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "fa6fd99a-5691-4a54-a117-5212a0de52bb", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "58", - "x-ms-region": "West US 2", - "X-Request-ID": "fa6fd99a-5691-4a54-a117-5212a0de52bb" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/ec12ba72-24db-4188-89f2-b4da2b5a20cf", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "57604aa7-68dd-40ae-967a-f695868fe48a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "b3cc57cf-a257-4e92-bba1-8929df7917ce", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "517", - "x-ms-region": "West US 2", - "X-Request-ID": "b3cc57cf-a257-4e92-bba1-8929df7917ce" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForSeriesAndGroup[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForSeriesAndGroup[1].json deleted file mode 100644 index 1f2265994ae87..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForSeriesAndGroup[1].json +++ /dev/null @@ -1,398 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "594", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "55514968-4f37-4c43-b21a-4f6dc0c566bf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_data_feed_for_detection176d711a-255c-4e72-b35b-daec1b3a9682", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "0341bba8-02e5-494a-9c87-e01122fa5d71", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/80966bcb-6e6c-4538-ace6-abfe118cbf38", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "976", - "x-ms-region": "West US 2", - "X-Request-ID": "0341bba8-02e5-494a-9c87-e01122fa5d71" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/80966bcb-6e6c-4538-ace6-abfe118cbf38", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "2fa3ca6f-2e98-4bee-b4f0-dda6daac3daf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9dcfa4f1-b2f1-43a5-85d3-039d952a6e4f", - "Content-Length": "1216", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "328", - "x-ms-region": "West US 2", - "X-Request-ID": "9dcfa4f1-b2f1-43a5-85d3-039d952a6e4f" - }, - "ResponseBody": { - "dataFeedId": "80966bcb-6e6c-4538-ace6-abfe118cbf38", - "dataFeedName": "java_data_feed_for_detection176d711a-255c-4e72-b35b-daec1b3a9682", - "metrics": [ - { - "metricId": "6054ac91-70db-45f1-bb72-cdffc580cbcf", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "3ffd63b5-fd0a-4128-ad1b-b5134f24221f", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:12Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1143", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "5e66dc6e-b7ec-4f3b-8694-a177676a6db4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "name": "testdetectionconfig19efb650-6a25-4a71-9f42-38b8431f189f", - "description": "test metric anomaly detection configuration", - "metricId": "6054ac91-70db-45f1-bb72-cdffc580cbcf", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "093b5248-dc82-4458-b54a-f9f2822982f0", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/a0727922-c344-4467-acf3-d1b247e343fe", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "293", - "x-ms-region": "West US 2", - "X-Request-ID": "093b5248-dc82-4458-b54a-f9f2822982f0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/a0727922-c344-4467-acf3-d1b247e343fe", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "3aa1230f-6462-4b2a-ae6f-774dfde8ff42", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d1045446-cda0-4d45-ad5a-84766bb513e2", - "Content-Length": "1216", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "84", - "x-ms-region": "West US 2", - "X-Request-ID": "d1045446-cda0-4d45-ad5a-84766bb513e2" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "a0727922-c344-4467-acf3-d1b247e343fe", - "name": "testdetectionconfig19efb650-6a25-4a71-9f42-38b8431f189f", - "description": "test metric anomaly detection configuration", - "metricId": "6054ac91-70db-45f1-bb72-cdffc580cbcf", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/a0727922-c344-4467-acf3-d1b247e343fe", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c3740753-9a04-48a1-9ede-cc2248ca73e6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "93e4b996-dbf1-44db-839a-331b141609cd", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "78", - "x-ms-region": "West US 2", - "X-Request-ID": "93e4b996-dbf1-44db-839a-331b141609cd" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/80966bcb-6e6c-4538-ace6-abfe118cbf38", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "6ff374fd-cff1-49a0-9d4a-baac3a7213df", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "2108cbcf-39b5-4e61-9b9d-767104d42c0e", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:14 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "568", - "x-ms-region": "West US 2", - "X-Request-ID": "2108cbcf-39b5-4e61-9b9d-767104d42c0e" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForWholeSeries[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForWholeSeries[1].json deleted file mode 100644 index 03708909c40f5..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.createDetectionConfigurationForWholeSeries[1].json +++ /dev/null @@ -1,332 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "594", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "143b1624-16ba-4abc-a27e-d2d38f6250f4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_data_feed_for_detectionb82ea2b1-3a3b-4891-9e6a-b7d90adc46e9", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "3e3a0179-2bc1-40fb-9544-cd24e65aa3d3", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/b97ce530-f0c7-4c67-bb27-4639e0adbefa", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "985", - "x-ms-region": "West US 2", - "X-Request-ID": "3e3a0179-2bc1-40fb-9544-cd24e65aa3d3" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/b97ce530-f0c7-4c67-bb27-4639e0adbefa", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "6a31ab46-ec41-4d1d-a557-7ec7c4e1ba1a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "faa7f347-b9b3-4853-864b-81e8773e6a09", - "Content-Length": "1216", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "161", - "x-ms-region": "West US 2", - "X-Request-ID": "faa7f347-b9b3-4853-864b-81e8773e6a09" - }, - "ResponseBody": { - "dataFeedId": "b97ce530-f0c7-4c67-bb27-4639e0adbefa", - "dataFeedName": "java_data_feed_for_detectionb82ea2b1-3a3b-4891-9e6a-b7d90adc46e9", - "metrics": [ - { - "metricId": "97f6b0c5-924a-4b04-9405-36856d0267d3", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a8f62c2b-f7e6-4f41-96e6-473281d742d8", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:06Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "761", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d34acc8e-8dab-4ed0-93c0-7c19c0f680d2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "name": "testdetectionconfig8e8e0b98-1431-4911-a240-58df15582d8a", - "description": "test metric anomaly detection configuration", - "metricId": "97f6b0c5-924a-4b04-9405-36856d0267d3", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "db2e0d45-9bb9-41e9-981e-6180ec507148", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/0149766c-0e0f-4944-8da5-e597a6d84179", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "244", - "x-ms-region": "West US 2", - "X-Request-ID": "db2e0d45-9bb9-41e9-981e-6180ec507148" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/0149766c-0e0f-4944-8da5-e597a6d84179", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "65e65266-e5ef-4d69-8369-4cfab53acb0b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d82aff05-2893-40df-b24e-6c263b57f2ea", - "Content-Length": "834", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "152", - "x-ms-region": "West US 2", - "X-Request-ID": "d82aff05-2893-40df-b24e-6c263b57f2ea" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "0149766c-0e0f-4944-8da5-e597a6d84179", - "name": "testdetectionconfig8e8e0b98-1431-4911-a240-58df15582d8a", - "description": "test metric anomaly detection configuration", - "metricId": "97f6b0c5-924a-4b04-9405-36856d0267d3", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/0149766c-0e0f-4944-8da5-e597a6d84179", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "27838b1d-706b-4d07-8dbc-d944fe32ce3c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "c00aa9af-e658-4dfb-9bd7-ffb486878de7", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "83", - "x-ms-region": "West US 2", - "X-Request-ID": "c00aa9af-e658-4dfb-9bd7-ffb486878de7" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/b97ce530-f0c7-4c67-bb27-4639e0adbefa", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "d3863d49-d3af-4338-bdad-1adfe1700091", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "e17b668a-523b-4405-b1de-9996f5275a86", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "318", - "x-ms-region": "West US 2", - "X-Request-ID": "e17b668a-523b-4405-b1de-9996f5275a86" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.updateDetectionConfiguration[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.updateDetectionConfiguration[1].json deleted file mode 100644 index 64cf63545eb51..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/DetectionConfigurationTest.updateDetectionConfiguration[1].json +++ /dev/null @@ -1,940 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "594", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "58169dc6-e0a9-43c8-a336-de83816bd444", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dataSourceType": "SqlServer", - "dataFeedName": "java_data_feed_for_detection8e206382-a6dd-4b56-a939-419f0d3a321d", - "granularityName": "Daily", - "metrics": [ - { - "metricName": "cost", - "metricDisplayName": "cost" - }, - { - "metricName": "revenue", - "metricDisplayName": "revenue" - } - ], - "dimension": [ - { - "dimensionName": "region", - "dimensionDisplayName": "region" - }, - { - "dimensionName": "category", - "dimensionDisplayName": "category" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "maxConcurrency": 0, - "authenticationType": "Basic", - "dataSourceParameter": { - "connectionString": "REDACTED", - "query": "select * from adsample2 where Timestamp = @StartTime" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "b5bfb3b8-dbd4-4084-9710-482a6ae5300a", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4576bc54-76c3-484a-8cde-cdaeb40b12e3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1303", - "x-ms-region": "West US 2", - "X-Request-ID": "b5bfb3b8-dbd4-4084-9710-482a6ae5300a" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4576bc54-76c3-484a-8cde-cdaeb40b12e3", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "c846cefd-6de9-4406-9cbf-6ca2db84e948", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d8267f5e-c204-4256-b33e-40b7ada66ee6", - "Content-Length": "1216", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "147", - "x-ms-region": "West US 2", - "X-Request-ID": "d8267f5e-c204-4256-b33e-40b7ada66ee6" - }, - "ResponseBody": { - "dataFeedId": "4576bc54-76c3-484a-8cde-cdaeb40b12e3", - "dataFeedName": "java_data_feed_for_detection8e206382-a6dd-4b56-a939-419f0d3a321d", - "metrics": [ - { - "metricId": "6bc8f0a6-4694-498e-ac17-f938ed02c0df", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "da0ceac4-1aa1-486e-b9c2-7c7381fac73a", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:16Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "2038", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a708c9f4-1eb8-44c1-8e56-09ffb7705802", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "name": "testdetectionconfiga528f0c9-e081-42f1-bc0d-60145d03eefe", - "description": "test metric anomaly detection configuration", - "metricId": "6bc8f0a6-4694-498e-ac17-f938ed02c0df", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "series": { - "dimension": { - "region": "Osaka", - "category": "Cell Phones" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "830c3102-bba8-4a3c-bb61-576fe4f2e44c", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/069a0639-ec91-409d-b717-70c805096dc3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "203", - "x-ms-region": "West US 2", - "X-Request-ID": "830c3102-bba8-4a3c-bb61-576fe4f2e44c" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/069a0639-ec91-409d-b717-70c805096dc3", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "102fec6d-3195-41e3-b430-be1cd163f298", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "600aedd3-a14d-47b8-8da7-465a559e5ad4", - "Content-Length": "2111", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "81", - "x-ms-region": "West US 2", - "X-Request-ID": "600aedd3-a14d-47b8-8da7-465a559e5ad4" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "069a0639-ec91-409d-b717-70c805096dc3", - "name": "testdetectionconfiga528f0c9-e081-42f1-bc0d-60145d03eefe", - "description": "test metric anomaly detection configuration", - "metricId": "6bc8f0a6-4694-498e-ac17-f938ed02c0df", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "series": { - "dimension": { - "region": "Osaka", - "category": "Cell Phones" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/069a0639-ec91-409d-b717-70c805096dc3", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1962", - "Content-Type": "application/merge-patch\u002Bjson", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b9f20217-905d-477b-810c-13c92cef159b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "name": "testdetectionconfiga528f0c9-e081-42f1-bc0d-60145d03eefe", - "description": "test metric anomaly detection configuration", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "withinRange": true, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1e172026-b721-4a0e-aaab-32086e62e951", - "Content-Length": "2085", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "292", - "x-ms-region": "West US 2", - "X-Request-ID": "1e172026-b721-4a0e-aaab-32086e62e951" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "069a0639-ec91-409d-b717-70c805096dc3", - "name": "testdetectionconfiga528f0c9-e081-42f1-bc0d-60145d03eefe", - "description": "test metric anomaly detection configuration", - "metricId": "6bc8f0a6-4694-498e-ac17-f938ed02c0df", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/069a0639-ec91-409d-b717-70c805096dc3", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a4816d55-6ea1-42e7-8737-eb5f4ec5df4e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "19090410-20f5-428c-9151-5265706d6504", - "Content-Length": "2085", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "97", - "x-ms-region": "West US 2", - "X-Request-ID": "19090410-20f5-428c-9151-5265706d6504" - }, - "ResponseBody": { - "anomalyDetectionConfigurationId": "069a0639-ec91-409d-b717-70c805096dc3", - "name": "testdetectionconfiga528f0c9-e081-42f1-bc0d-60145d03eefe", - "description": "test metric anomaly detection configuration", - "metricId": "6bc8f0a6-4694-498e-ac17-f938ed02c0df", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "smartDetectionCondition": { - "sensitivity": 50.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 13, - "minRatio": 50.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [ - { - "group": { - "dimension": { - "region": "Sao Paulo" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - { - "group": { - "dimension": { - "region": "Seoul" - } - }, - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - } - ], - "seriesOverrideConfigurations": [ - { - "series": { - "dimension": { - "region": "Shenzhen", - "category": "Jewelry" - } - }, - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 63.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - }, - "hardThresholdCondition": { - "lowerBound": 0.0, - "upperBound": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 5, - "minRatio": 5.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 50.0, - "shiftPoint": 30, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - } - ] - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/069a0639-ec91-409d-b717-70c805096dc3", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "aeec7a64-6e39-4ba4-806c-66fb33446b5c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "c5f4cf1c-0f5d-4eba-9ea3-55f6c0d170d6", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "60", - "x-ms-region": "West US 2", - "X-Request-ID": "c5f4cf1c-0f5d-4eba-9ea3-55f6c0d170d6" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds/4576bc54-76c3-484a-8cde-cdaeb40b12e3", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "0a00219a-662a-48c4-9496-7d803d9a9243", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "7aa59eb6-370a-467a-8705-4a366682e1a0", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "295", - "x-ms-region": "West US 2", - "X-Request-ID": "7aa59eb6-370a-467a-8705-4a366682e1a0" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.getMetricFeedbackInvalidId[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.getMetricFeedbackInvalidId[1].json deleted file mode 100644 index f721723386d8a..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.getMetricFeedbackInvalidId[1].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Entries": [], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.getMetricFeedbackNullId[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.getMetricFeedbackNullId[1].json deleted file mode 100644 index f721723386d8a..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.getMetricFeedbackNullId[1].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Entries": [], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.testListMetricFeedbackFilterByFeedbackType[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.testListMetricFeedbackFilterByFeedbackType[1].json deleted file mode 100644 index 5a219ba2d0a1c..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackAsyncTest.testListMetricFeedbackFilterByFeedbackType[1].json +++ /dev/null @@ -1,3441 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/feedback/metric/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "76", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "a5da5151-01ee-4c6f-8d50-32b821d14916", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "feedbackType": "Anomaly" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a4595a4f-e989-4443-ba37-9b5b63426dc6", - "Content-Length": "72938", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "190", - "x-ms-region": "West US 2", - "X-Request-ID": "a4595a4f-e989-4443-ba37-9b5b63426dc6" - }, - "ResponseBody": { - "value": [ - { - "feedbackId": "6499b105-3d22-4bd4-98ec-8527ffd144af", - "createdTime": "2022-11-17T08:28:24.161Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "7e44f1f2-73e5-4da4-b6e3-6a232a1c341c", - "createdTime": "2022-11-17T08:28:14.714Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "42c85de4-7b27-42ca-8185-a29d5525c45a", - "createdTime": "2022-11-17T08:28:13.473Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "f5edbc48-f95e-43a6-81a1-829b38a51200", - "createdTime": "2022-11-16T08:38:56.029Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "4a44489e-5861-4e8c-885d-759e76a4c1e5", - "createdTime": "2022-11-16T08:34:43.298Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "882b411d-b5f7-4db0-9342-088dfb0932be", - "createdTime": "2022-11-16T08:32:46.965Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "5a5965e9-932d-4803-851e-b272c22fe9d2", - "createdTime": "2022-11-16T08:32:12.299Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "3133c8c1-3a18-4c3b-b4f8-00a686bdc925", - "createdTime": "2022-11-16T08:31:22.138Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "32220722-6b63-41d8-843a-5714493a01da", - "createdTime": "2022-11-16T08:30:11.89Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "59a42b37-54ea-4dba-928d-17ae716438e5", - "createdTime": "2022-11-16T08:29:54.202Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "dfb0ef5f-f5ed-4847-84d1-a7ee44af8272", - "createdTime": "2022-11-16T08:29:38.922Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "0c4af4b5-93af-49a1-a978-c3b68e3fa831", - "createdTime": "2022-11-16T08:29:31.839Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "82bdbddd-16e7-416b-92b5-0524e46e0f97", - "createdTime": "2022-11-16T08:28:44.548Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "dae84d60-eedb-4b0b-9c02-76de8e04027a", - "createdTime": "2022-11-16T08:27:42.576Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "11a923ff-5990-4d9f-9149-feca48064861", - "createdTime": "2022-11-16T08:26:24.323Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "0762b977-f38d-49c5-9f63-95c1fbe05376", - "createdTime": "2022-11-16T08:25:44.139Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "f7ab8fe8-bfc7-45af-b9c6-4394d344bb77", - "createdTime": "2022-11-16T08:25:41.76Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "ad442466-687b-4514-9a7d-5230ecd974a1", - "createdTime": "2022-11-15T08:36:24.682Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "0560c90f-3073-4706-8977-ddff18eb9128", - "createdTime": "2022-11-15T08:35:26.831Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "4e18805d-7d72-4a32-a08f-32a796df289e", - "createdTime": "2022-11-15T08:34:47.289Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "846167cc-2610-4276-acc6-42110869a239", - "createdTime": "2022-11-15T08:34:00.941Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "1a01e34f-bedc-4b6c-af27-0c0d935c7c55", - "createdTime": "2022-11-15T08:32:42.634Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "f4598c87-5fd6-4e7b-b0a4-9a46c4b4058e", - "createdTime": "2022-11-15T08:32:42.455Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "9ed4b24c-fea1-4b04-9948-42b8ba814f6e", - "createdTime": "2022-11-15T08:32:24.563Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "92c654bf-05bd-4e3b-befe-3616c449547e", - "createdTime": "2022-11-15T08:32:13.039Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "904baea6-d878-4acf-96d2-0cbb3415db03", - "createdTime": "2022-11-15T08:31:55.351Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "b202a8d2-a9d7-49f2-8f68-521d6e0d6c02", - "createdTime": "2022-11-15T08:30:57.564Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "7358ef56-1978-4435-82b1-67c2c0a69635", - "createdTime": "2022-11-15T08:29:51.926Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "10a53b22-2a08-4e1d-9353-5757a79a94b8", - "createdTime": "2022-11-15T08:28:20.855Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "c4773829-020d-4501-9163-8f6151a84103", - "createdTime": "2022-11-15T08:28:13.703Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "1bb2b9a7-a7a5-4a2f-a7cb-b71c4cfa0e70", - "createdTime": "2022-11-15T08:28:00.452Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "ef76ef6b-f727-4102-9a11-6745cc6bed87", - "createdTime": "2022-11-14T08:38:24.574Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "f3da4ff3-c819-4d51-b03a-f03f5ebac392", - "createdTime": "2022-11-14T08:34:43.096Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "eabdbf12-c484-48f3-a3ff-71057164e542", - "createdTime": "2022-11-14T08:34:10.318Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "2eeff6bb-87bf-458d-8863-78f07bc91191", - "createdTime": "2022-11-14T08:33:40.153Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "775e6bb2-b66c-4804-ad50-57f30c0bd3dc", - "createdTime": "2022-11-14T08:33:30.599Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "4bc9b96c-9ba6-49f0-8785-f8546be0324c", - "createdTime": "2022-11-14T08:32:32.224Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "7a0ccc0b-7dc1-4cb1-99f6-4b871051e89f", - "createdTime": "2022-11-14T08:31:43.164Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "cebb1de2-b30f-4d77-adb5-ea8727f330c4", - "createdTime": "2022-11-14T08:31:37.778Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "384b4af0-75de-4dd6-81ed-1703aa6a0769", - "createdTime": "2022-11-14T08:31:10.589Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "e0455c18-c856-4fd5-b84f-8c4e8ee21624", - "createdTime": "2022-11-14T08:30:25.698Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "3c8bd888-7339-475c-95a9-10bdf40be8f0", - "createdTime": "2022-11-14T08:29:35.559Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "ead61b26-f423-43d0-8761-fc2ce5812fbb", - "createdTime": "2022-11-14T08:28:06.776Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "982a8bdf-7070-4d61-ae9e-b73973742fb4", - "createdTime": "2022-11-14T08:27:18.149Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "5959f7c7-cea7-4075-bfa8-53331d44a132", - "createdTime": "2022-11-14T08:27:17.562Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "e1fdeec0-825c-4fd2-a07a-c8b69f326b6b", - "createdTime": "2022-11-13T15:04:23.353Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "b0308182-8205-4244-ae96-5e7e0ee85ebb", - "createdTime": "2022-11-13T15:03:30.769Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "0dc51c3f-c835-474a-b11a-d79847a52c15", - "createdTime": "2022-11-13T15:03:26.471Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "c628638d-bca6-44b2-9c77-721d79f7a279", - "createdTime": "2022-11-13T15:02:53.322Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "bd4efb2e-ae89-4535-a6af-74f3bd852e5f", - "createdTime": "2022-11-13T15:01:33.615Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "f7be759a-30ec-4395-8931-8b625b6a7842", - "createdTime": "2022-11-13T15:01:32.866Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "c72c8a81-29c8-4c77-8384-5b3f772e5d38", - "createdTime": "2022-11-13T15:01:31.727Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "23df0af6-1279-4f63-85c5-0aad4843c751", - "createdTime": "2022-11-13T14:59:52.654Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "0bd0a1c3-2b31-4faa-b15c-97c05e3c2339", - "createdTime": "2022-11-13T14:59:35.538Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "4e906a9f-a2c8-4e51-81ae-db24e69c873c", - "createdTime": "2022-11-13T14:59:34.465Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "509ee114-c15e-40b4-8920-26e33ff343b2", - "createdTime": "2022-11-13T14:58:41.129Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "dff19228-e9cd-452d-a1ca-82660a9966ec", - "createdTime": "2022-11-13T14:57:04.847Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "e9a3f92c-57e7-4a63-af9b-0203da72167b", - "createdTime": "2022-11-13T14:57:02.909Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "0aee1a34-bdd7-4248-b285-496025951bcc", - "createdTime": "2022-11-13T14:56:47.913Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "be5e8764-94ab-44c9-aafc-8d8d7bf48ae6", - "createdTime": "2022-11-11T08:35:17.416Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "80a9f41e-ead7-4233-be44-7dcf402e66e6", - "createdTime": "2022-11-11T08:35:04.33Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "0626e3c2-9f5e-4d93-8961-9f6b1e0021ce", - "createdTime": "2022-11-11T08:32:35.985Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "b334d431-1c17-41a6-bd1e-2abdfba4f84a", - "createdTime": "2022-11-11T08:32:35.795Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "75a80614-0d57-4153-a88c-5b23dd4ee9c6", - "createdTime": "2022-11-11T08:32:12.825Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "519c7104-33ce-40b7-8cf7-cefd8588af23", - "createdTime": "2022-11-11T08:31:46.624Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "8a566453-9a66-4e43-a6b6-347aaa6bf435", - "createdTime": "2022-11-11T08:31:46.199Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "be50eda0-272f-481d-afa0-286de304b0c0", - "createdTime": "2022-11-11T08:31:41.849Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "618b97a2-2dbf-4535-a276-cc9f1195a271", - "createdTime": "2022-11-11T08:31:05.615Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "cc0bb884-3ce4-4f8b-9402-1ef556affd1b", - "createdTime": "2022-11-11T08:28:21.773Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "813d3675-eb5d-4c9e-914e-507fab1363dc", - "createdTime": "2022-11-11T08:27:59.702Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "37d2d8a0-02e2-4906-af38-c372e158f827", - "createdTime": "2022-11-11T08:27:47.952Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "d081dcbe-0ac1-4a3f-812a-fea3176bcf23", - "createdTime": "2022-11-11T08:27:08.44Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "56347e86-8be5-4107-a227-85e3a1bbbb38", - "createdTime": "2022-11-11T08:27:04.564Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "45947b7c-6d17-4303-a5ef-9d838ac649ea", - "createdTime": "2022-11-10T08:36:50.275Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "c4582fca-dd79-4b26-845e-c064354ec75c", - "createdTime": "2022-11-10T08:34:25.911Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "a5fdfcf7-f2f5-4120-9616-5325311694e1", - "createdTime": "2022-11-10T08:32:28.188Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "6550eaa0-e184-41b8-bca4-c904f8b2e1b6", - "createdTime": "2022-11-10T08:31:06.324Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "161bb752-67c9-42f3-962c-00a21cc89f81", - "createdTime": "2022-11-10T08:30:59.199Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "9ee38c49-3c6f-4a36-abf8-b5392e4cdc54", - "createdTime": "2022-11-10T08:30:28.286Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "e5a140c0-0004-42d8-9fa4-b1601900a44d", - "createdTime": "2022-11-10T08:28:52.425Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "20134e53-b7a9-4323-971c-9cdacc171958", - "createdTime": "2022-11-10T08:28:43.087Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "2a0727f3-0211-4b04-b571-3b4eb569c11b", - "createdTime": "2022-11-10T08:28:35.793Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "c4f8d368-a50c-499d-ab76-20452f778565", - "createdTime": "2022-11-10T08:27:34.898Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "7178346d-f8e3-40d2-9ed2-d92983e2312c", - "createdTime": "2022-11-10T08:26:42.989Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "94fab047-2792-4ee0-a0f0-0768568197d6", - "createdTime": "2022-11-10T08:25:10.415Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "76f5ac85-e177-40ea-992a-d05f2c61fa91", - "createdTime": "2022-11-10T08:25:09.925Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "619bf00a-df7d-4827-bead-26734f804e61", - "createdTime": "2022-11-10T08:25:00.391Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "ba1fb487-be4e-4355-bdc1-875e78059784", - "createdTime": "2022-11-09T08:33:28.291Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "f4f300dc-a4a8-4783-961b-d3ad3ce8ea28", - "createdTime": "2022-11-09T08:32:13.605Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "3d682ee8-3506-4f81-89b4-ecd160c10ac2", - "createdTime": "2022-11-09T08:31:41.8Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "09639eb6-e45e-4d06-886c-5666d98338d5", - "createdTime": "2022-11-09T08:31:12.637Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "13fe35e2-17ed-4689-8d2c-7ef0838e2788", - "createdTime": "2022-11-09T08:30:43.485Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "6024b053-b892-4001-8ff7-6286fea42b10", - "createdTime": "2022-11-09T08:30:12.34Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "09f58f16-b6c9-4cdb-a2a5-24009ab8a0d1", - "createdTime": "2022-11-09T08:30:05.189Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "0de251d8-f4b3-4ea0-87ef-69214b2e7fc3", - "createdTime": "2022-11-09T08:29:21.969Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "3faacc8a-ced1-4f8a-a998-90e680febc6f", - "createdTime": "2022-11-09T08:28:24.089Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "6b824d5d-6650-45a2-a4aa-3ad478080b98", - "createdTime": "2022-11-09T08:27:33.361Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "89b20db8-0180-4642-92bc-43514d42c0a4", - "createdTime": "2022-11-09T08:27:31.157Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "56e171c8-f1d3-4be7-9789-24929d1b6fa5", - "createdTime": "2022-11-09T08:26:13.882Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "3c750d6f-b0a7-49d6-a4b7-2fe1f51c2b38", - "createdTime": "2022-11-09T08:25:31.923Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "e26e3020-6e01-4bfa-9d12-db12e076f6f8", - "createdTime": "2022-11-09T08:24:58.498Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "1a8b0df6-7542-4a2d-b2ea-baad5640e4ce", - "createdTime": "2022-11-08T08:37:45.85Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "a5a047d5-1834-4abf-9d20-db39eb042dad", - "createdTime": "2022-11-08T08:33:48.056Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "99a99c46-e16e-4aaa-ac2e-91e94793e299", - "createdTime": "2022-11-08T08:33:32.725Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "5c04a01b-3ef9-4325-a343-260d1d8cda87", - "createdTime": "2022-11-08T08:33:24.777Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "6f93b66d-dbdd-44d7-be62-907dd6c3187d", - "createdTime": "2022-11-08T08:30:46.141Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "d16c00cc-d3a1-4312-bd8a-3b1439a27529", - "createdTime": "2022-11-08T08:30:45.801Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "99abc591-576b-4b26-88bd-84580a6c7be5", - "createdTime": "2022-11-08T08:30:14.649Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "d4b10a8d-0347-414d-b17c-20b057db492e", - "createdTime": "2022-11-08T08:29:46.241Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "a16e8a0e-90ac-4969-bc77-e7e2f5cb7f2a", - "createdTime": "2022-11-08T08:29:32.589Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "6283fc79-970a-4223-aef1-9b4e4a4eceb7", - "createdTime": "2022-11-08T08:29:29.035Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "78bcf0ba-6679-4113-8059-e4fda9aea2b5", - "createdTime": "2022-11-08T08:26:53.927Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "1f996b09-e31d-4350-b785-288958b83494", - "createdTime": "2022-11-08T08:26:01.169Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "93fcb056-5999-4510-bd43-4ab9c54cb961", - "createdTime": "2022-11-08T08:25:48.02Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "dd9cdf03-0ee4-4c2a-ae9b-b11f0b37a1e6", - "createdTime": "2022-11-08T08:25:46.676Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "261e4b9e-3137-4f45-9d74-2af9a1fbf5b7", - "createdTime": "2022-11-07T08:33:39.064Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "9b6c0878-8e3f-46f7-8d3d-92fb477796b4", - "createdTime": "2022-11-07T08:33:20.55Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "0f45107e-d68e-48ce-a561-4751bbca2385", - "createdTime": "2022-11-07T08:33:06.473Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "e484150d-9d6f-49c1-a81a-08e745f18330", - "createdTime": "2022-11-07T08:31:14.457Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "73330f3f-7ced-4407-ab4e-ca83dba821a0", - "createdTime": "2022-11-07T08:30:07.557Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "c6ec92fe-b35a-42aa-a812-216e2c32ef80", - "createdTime": "2022-11-07T08:29:52.629Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "de59642e-01d4-43b7-a0af-efe67af4fec7", - "createdTime": "2022-11-07T08:29:45.967Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "06db48e1-49a2-4fde-9618-15baf002b70d", - "createdTime": "2022-11-07T08:29:35.658Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "0d03e98b-299c-4290-8f89-a504b64bdd10", - "createdTime": "2022-11-07T08:28:49.121Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "d0c8d076-d1e7-4515-af39-844d0319ba66", - "createdTime": "2022-11-07T08:28:37.291Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "17981d33-8ac8-4d7a-9cca-26bf63d6ca54", - "createdTime": "2022-11-07T08:27:43.689Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "24bff904-03fe-4050-97d5-000ac19445e2", - "createdTime": "2022-11-07T08:25:37.361Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "7719837b-d39c-4956-8fa0-854c8c833063", - "createdTime": "2022-11-07T08:24:40.19Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "17db4e3a-9e28-4477-bbe3-3ee80d1fb309", - "createdTime": "2022-11-07T08:24:38.642Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "d68ff979-cc2a-4c01-865b-a2bda8fac29d", - "createdTime": "2022-11-06T15:02:00.768Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "4bd1d053-a1bf-4201-a49e-64f9c194ba4b", - "createdTime": "2022-11-06T15:01:33.346Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "57e7ed93-b3d1-4cb1-b14d-dc153a0d2231", - "createdTime": "2022-11-06T15:01:29.345Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "3840cb8a-dace-4d20-a766-aad0480344ba", - "createdTime": "2022-11-06T15:00:27.784Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "f825c6ce-9bf8-44ec-9307-5efc281ae5e2", - "createdTime": "2022-11-06T14:59:24.15Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "011e1486-ee09-4dae-a9fd-c2175a5f9256", - "createdTime": "2022-11-06T14:58:59.727Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "a2189c76-154c-49e2-b8be-af65da75d8c5", - "createdTime": "2022-11-06T14:58:52.342Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "1526f7d4-4d5b-4b77-9508-3244b1e59a63", - "createdTime": "2022-11-06T14:58:42.028Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "75272256-ef0c-4f0b-96e8-47f3a8d8971b", - "createdTime": "2022-11-06T14:58:39.581Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "e68b9867-b64c-4770-a09f-8da4ea58387f", - "createdTime": "2022-11-06T14:57:58.699Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "96f59ad4-047c-48d8-9d71-b6049169b491", - "createdTime": "2022-11-06T14:56:05.037Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "671fb461-305c-45b3-b9de-450e698e88e0", - "createdTime": "2022-11-06T14:54:56.717Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "abf2ce83-9e1b-4811-a34a-69269c7dd91e", - "createdTime": "2022-11-06T14:54:11.197Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "27d47e05-d92c-4605-8045-8c2a50defff7", - "createdTime": "2022-11-06T14:54:10.473Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "b12478b5-81ae-4800-8506-1a9da6f3a5f1", - "createdTime": "2022-11-04T07:33:03.802Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "8b4341a5-2d40-4739-ab4f-b071a5651b6e", - "createdTime": "2022-11-04T07:32:38.095Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "4532f407-2e59-462e-87eb-9ab5b8e12121", - "createdTime": "2022-11-04T07:32:04.161Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "09c4356f-49a4-4a23-b7c5-51445bd43436", - "createdTime": "2022-11-04T07:30:27.913Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "3588fe59-6377-44ae-8bc8-5441b833230d", - "createdTime": "2022-11-04T07:30:12.966Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "b2909e4e-3698-44dd-9f22-a6c10f31f4f6", - "createdTime": "2022-11-04T07:29:38.692Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "31efab14-cc68-4ee1-b892-953f5ed97b52", - "createdTime": "2022-11-04T07:29:14.458Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "d0f1fcf8-b6b0-405a-a4a1-74ba22f50421", - "createdTime": "2022-11-04T07:29:13.175Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "94ba1cc2-e9e4-4f05-be2a-1b9611b70f4d", - "createdTime": "2022-11-04T07:29:07.563Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "af76aa3e-5d9a-4185-9113-582a5016a949", - "createdTime": "2022-11-04T07:28:26.634Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "32645c5c-b415-424e-b64a-5331b2dc5cf5", - "createdTime": "2022-11-04T07:26:07.12Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "3acee414-789b-4f67-be42-17d716e50569", - "createdTime": "2022-11-04T07:26:00.698Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "5d334162-1639-4604-8a72-33c361a9dd85", - "createdTime": "2022-11-04T07:24:42.123Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "a367eeca-9125-4145-81fc-aa77dbd1d3f9", - "createdTime": "2022-11-04T07:24:41.735Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "b9b78e2c-1096-44e7-9cbd-a66bd2b650ad", - "createdTime": "2022-11-03T07:44:27.901Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "eedc6a53-fdda-4026-929f-b31d5b98474e", - "createdTime": "2022-11-03T07:43:55.37Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "72f83379-8e39-47f1-b87d-b490fc412f85", - "createdTime": "2022-11-03T07:43:39.719Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "6d1e4c42-b831-45c7-8f7b-15e0da76cb25", - "createdTime": "2022-11-03T07:43:00.564Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "1d848441-c624-4e1f-8897-5513d7127026", - "createdTime": "2022-11-03T07:42:50.123Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "24ae495d-a088-41dc-9f74-4cf15dd9da14", - "createdTime": "2022-11-03T07:42:32.421Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "a70c0c07-339b-437a-a572-3f1c566595e6", - "createdTime": "2022-11-03T07:42:31.782Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "93dfecbc-f1f5-4688-80a6-7ddf597c904c", - "createdTime": "2022-11-03T07:40:32.334Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "5bbb44a5-f37e-4886-ab86-3918e17ee7db", - "createdTime": "2022-11-03T07:39:58.095Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "d6615a56-e8af-4cbe-a7cb-4b5c535633cf", - "createdTime": "2022-11-03T07:39:21.645Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "bd3af90d-5ada-4b17-9cb2-e9728134bb35", - "createdTime": "2022-11-03T07:38:33.599Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "7f006d3c-7319-4ac9-b14e-eecddae590b3", - "createdTime": "2022-11-03T07:38:00.824Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "84ec5052-74dc-49f7-b40e-13fbf607b935", - "createdTime": "2022-11-03T07:37:51.022Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "15872734-bdd6-4810-b54c-97c37b7b3d88", - "createdTime": "2022-11-03T07:37:45.106Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "c6bfb2ac-6b20-4553-a3fa-8450f2fb8b47", - "createdTime": "2022-11-02T16:21:55.896Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "d65a4245-ce0d-4ef3-93bc-4ff4bae329ad", - "createdTime": "2022-11-02T16:18:13.308Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "88588209-9e79-4587-b1e1-ec2549a4635a", - "createdTime": "2022-11-02T07:33:23.917Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "7788ea7c-a460-4bb9-9eb0-b557a42521a8", - "createdTime": "2022-11-02T07:33:15.896Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "351ccd09-8368-4ef3-b511-935445774ed7", - "createdTime": "2022-11-02T07:32:42.576Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "faf2dbb6-f558-4c58-902d-9e76fc52d81e", - "createdTime": "2022-11-02T07:32:07.399Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "cb8ef237-35ba-4f18-ba77-3170ce80f895", - "createdTime": "2022-11-02T07:31:21.197Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "ba120c66-f906-4dc1-85c0-b06e134b0d98", - "createdTime": "2022-11-02T07:31:13.212Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "6382eb1f-fa99-48a8-87e0-62a8313863c9", - "createdTime": "2022-11-02T07:30:57.823Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "a76717a8-98bb-4afe-a037-95d7bf47e8b4", - "createdTime": "2022-11-02T07:29:35.791Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "d51827b0-7cc7-4f1e-b742-e02934e7e267", - "createdTime": "2022-11-02T07:29:33.538Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "11877ed8-7daa-4c9f-8669-e005ca27446f", - "createdTime": "2022-11-02T07:28:34.564Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "1596530c-ec99-41ca-a2be-4c67dd699f53", - "createdTime": "2022-11-02T07:27:23.484Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "2733971f-0f22-472f-91ea-0943d5d3eb9b", - "createdTime": "2022-11-02T07:26:40.746Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "30c583c7-c169-4e00-a1fb-c338ac737f67", - "createdTime": "2022-11-02T07:26:08.292Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "b13e55e3-7add-4f60-8ecd-db5fdd2b6074", - "createdTime": "2022-11-02T07:26:05.028Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "2043010d-cdd1-40af-8de1-dfb785899b21", - "createdTime": "2022-11-01T07:33:16.295Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "f758d867-8705-4abe-a86d-4b444fd6ea11", - "createdTime": "2022-11-01T07:32:52.907Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "19676731-5741-464f-83da-e8049cf2c211", - "createdTime": "2022-11-01T07:32:40.841Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "5aca61bc-15b8-4218-bca8-1bc54abbcea7", - "createdTime": "2022-11-01T07:31:00.317Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "f4b3d592-b3cf-4b93-8eb8-028f63cdd5ff", - "createdTime": "2022-11-01T07:30:01.254Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "95304edc-93e7-489d-8329-5fce27b1cec2", - "createdTime": "2022-11-01T07:29:55.136Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "8c58f933-d279-47ab-a17b-8f726d6c553e", - "createdTime": "2022-11-01T07:29:29.314Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "25f0ebb7-6925-4acf-bdd3-532a622b4bb8", - "createdTime": "2022-11-01T07:29:24.529Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "8410510b-21dc-4df9-b1f7-68a756983b62", - "createdTime": "2022-11-01T07:29:03.207Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "a9e686da-b273-4292-ba7b-218b6cf7f547", - "createdTime": "2022-11-01T07:29:00.64Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "4f176043-11b0-4a01-aad1-e4c0879e80e8", - "createdTime": "2022-11-01T07:27:08.156Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "1d91ea0d-60dc-4735-aa40-c0621519c71c", - "createdTime": "2022-11-01T07:25:28.059Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "06844791-bd87-4aad-982c-15c77bc5ce7b", - "createdTime": "2022-11-01T07:24:57.529Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - } - ], - "@nextLink": "https://ga-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/feedback/metric/query?$maxpagesize=200\u0026$skip=200" - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackTest.getMetricFeedbackNullId[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackTest.getMetricFeedbackNullId[1].json deleted file mode 100644 index f721723386d8a..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/FeedbackTest.getMetricFeedbackNullId[1].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Entries": [], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorAdminClientBuilderTest.clientBuilderWithDefaultPipeline[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorAdminClientBuilderTest.clientBuilderWithDefaultPipeline[1].json deleted file mode 100644 index e1dfe1a65169b..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorAdminClientBuilderTest.clientBuilderWithDefaultPipeline[1].json +++ /dev/null @@ -1,399 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "e27d31fa-3b08-47aa-9bad-8ba9a10d1b18", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "16be0d89-b54c-48bc-ae05-f051e1f94a7a", - "Content-Length": "8049", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "156", - "x-ms-region": "West US 2", - "X-Request-ID": "16be0d89-b54c-48bc-ae05-f051e1f94a7a" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "f1562936-347b-4574-9c58-20bf2d4ac30b", - "dataFeedName": "java_create_data_feed_test_samplef04c819a-f432-4bfd-90c9-747e816cb135", - "metrics": [ - { - "metricId": "fb52e1c3-6f64-4376-8aa7-ca02af507a36", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "d0265351-dc5a-4e4a-a9e9-db636bf82c7d", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-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": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "fileTemplate": "adsample.json", - "accountName": "REDACTED", - "directoryTemplate": "%Y/%m/%d", - "fileSystemName": "adsample" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "f3327047-604d-4dee-a1ac-6fb127906516", - "dataFeedName": "java_data_feed_for_detectione2ac83c7-373c-4abe-b983-fae72a0f7cff", - "metrics": [ - { - "metricId": "6d07773d-656f-4bea-bdc5-f1a4ed2451fd", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "5d2a971d-3928-4012-a439-e86e9001d075", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:07Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - }, - { - "dataFeedId": "b97ce530-f0c7-4c67-bb27-4639e0adbefa", - "dataFeedName": "java_data_feed_for_detectionb82ea2b1-3a3b-4891-9e6a-b7d90adc46e9", - "metrics": [ - { - "metricId": "97f6b0c5-924a-4b04-9405-36856d0267d3", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a8f62c2b-f7e6-4f41-96e6-473281d742d8", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:06Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - }, - { - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorAdminClientBuilderTest.clientBuilderWithNullServiceVersion[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorAdminClientBuilderTest.clientBuilderWithNullServiceVersion[1].json deleted file mode 100644 index 1b2c84c2c1aa9..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorAdminClientBuilderTest.clientBuilderWithNullServiceVersion[1].json +++ /dev/null @@ -1,284 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/dataFeeds", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "8f35a695-54ec-4be7-aab5-dd611aeb21f3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4dc1bcd7-e0e5-4b07-8897-d27e1d5e1b30", - "Content-Length": "5543", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "188", - "x-ms-region": "West US 2", - "X-Request-ID": "4dc1bcd7-e0e5-4b07-8897-d27e1d5e1b30" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "b97ce530-f0c7-4c67-bb27-4639e0adbefa", - "dataFeedName": "java_data_feed_for_detectionb82ea2b1-3a3b-4891-9e6a-b7d90adc46e9", - "metrics": [ - { - "metricId": "97f6b0c5-924a-4b04-9405-36856d0267d3", - "metricName": "cost", - "metricDisplayName": "cost", - "metricDescription": "" - }, - { - "metricId": "a8f62c2b-f7e6-4f41-96e6-473281d742d8", - "metricName": "revenue", - "metricDisplayName": "revenue", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "category", - "dimensionDisplayName": "category" - }, - { - "dimensionName": "region", - "dimensionDisplayName": "region" - } - ], - "dataStartFrom": "2019-10-01T00:00:00Z", - "dataSourceType": "SqlServer", - "timestampColumn": "", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "needRollup": "NoRollup", - "fillMissingPointType": "PreviousValue", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": 0, - "viewMode": "Private", - "admins": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "status": "Active", - "createdTime": "2023-04-17T23:00:06Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "query": "select * from adsample2 where Timestamp = @StartTime" - }, - "authenticationType": "Basic" - }, - { - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": [ - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": [ - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com", - "REDACTED.microsoft.com" - ], - "viewers": [], - "creator": "REDACTED", - "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": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorClientBuilderTest.clientBuilderWithDefaultPipeline[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorClientBuilderTest.clientBuilderWithDefaultPipeline[1].json deleted file mode 100644 index a9ae0b3432005..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorClientBuilderTest.clientBuilderWithDefaultPipeline[1].json +++ /dev/null @@ -1,411 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/feedback/metric/query?$maxpagesize=10", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "51", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "dda75fd2-6f8b-4366-bb9e-99efa328fc79", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "790e0f70-22ba-4422-b1ca-c92682700126", - "Content-Length": "3663", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "142", - "x-ms-region": "West US 2", - "X-Request-ID": "790e0f70-22ba-4422-b1ca-c92682700126" - }, - "ResponseBody": { - "value": [ - { - "feedbackId": "2e157fbc-34ab-422e-aa8e-3133323a4c61", - "createdTime": "2023-03-08T23:53:53.675Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "JPN", - "Dim2": "JP" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2020-01-01T00:00:00Z", - "endTime": "2020-09-09T00:00:00Z", - "value": { - "changePointValue": "AutoDetect" - } - }, - { - "feedbackId": "e4a4c55e-486d-46dc-a857-75bbb9c30c3c", - "createdTime": "2022-11-17T08:28:26.451Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Period", - "value": { - "periodType": "AssignValue", - "periodValue": 2 - } - }, - { - "feedbackId": "68e2b300-d70c-4994-b565-4cc155b277b3", - "createdTime": "2022-11-17T08:28:25.817Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Comment", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "commentValue": "comment" - } - }, - { - "feedbackId": "2eb51c14-af15-4b9e-9410-6927db36d501", - "createdTime": "2022-11-17T08:28:25.188Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "changePointValue": "NotChangePoint" - } - }, - { - "feedbackId": "6499b105-3d22-4bd4-98ec-8527ffd144af", - "createdTime": "2022-11-17T08:28:24.161Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "8f7537f4-555a-449f-b661-09c20ca56739", - "createdTime": "2022-11-17T08:28:17.646Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Period", - "value": { - "periodType": "AssignValue", - "periodValue": 2 - } - }, - { - "feedbackId": "371ebae3-fb38-4833-b786-09d310e79c03", - "createdTime": "2022-11-17T08:28:16.894Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Comment", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "commentValue": "comment" - } - }, - { - "feedbackId": "40e31831-31a0-4da1-9c45-544a01085442", - "createdTime": "2022-11-17T08:28:15.998Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "changePointValue": "NotChangePoint" - } - }, - { - "feedbackId": "20923f71-36c5-4785-b743-e811927c2643", - "createdTime": "2022-11-17T08:28:16.046Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Period", - "value": { - "periodType": "AssignValue", - "periodValue": 2 - } - }, - { - "feedbackId": "411a192d-a69c-40e8-93ba-4e7ffa901fbe", - "createdTime": "2022-11-17T08:28:15.39Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Comment", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "commentValue": "comment" - } - } - ], - "@nextLink": "https://ga-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/feedback/metric/query?$maxpagesize=10\u0026$skip=10" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/feedback/metric/query?$maxpagesize=10\u0026$skip=10", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "51", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "62692afc-be72-4525-96cb-fd35901b6716", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9f98bfce-2e02-453b-bd26-5ffbad32cd0c", - "Content-Length": "3712", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "234", - "x-ms-region": "West US 2", - "X-Request-ID": "9f98bfce-2e02-453b-bd26-5ffbad32cd0c" - }, - "ResponseBody": { - "value": [ - { - "feedbackId": "7e44f1f2-73e5-4da4-b6e3-6a232a1c341c", - "createdTime": "2022-11-17T08:28:14.714Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "e586b348-5711-4a75-bf7b-1557bce2897f", - "createdTime": "2022-11-17T08:28:14.641Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "changePointValue": "NotChangePoint" - } - }, - { - "feedbackId": "42c85de4-7b27-42ca-8185-a29d5525c45a", - "createdTime": "2022-11-17T08:28:13.473Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "a6e7e725-7ed7-42f6-a6fe-badec96e46bb", - "createdTime": "2022-11-16T08:38:58.346Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Period", - "value": { - "periodType": "AssignValue", - "periodValue": 2 - } - }, - { - "feedbackId": "f9c117b2-ce5e-461e-b17b-041683206c2a", - "createdTime": "2022-11-16T08:38:57.54Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Comment", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "commentValue": "comment" - } - }, - { - "feedbackId": "32ae7475-7d35-4bb8-8672-8f225babd142", - "createdTime": "2022-11-16T08:38:56.901Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "changePointValue": "NotChangePoint" - } - }, - { - "feedbackId": "f5edbc48-f95e-43a6-81a1-829b38a51200", - "createdTime": "2022-11-16T08:38:56.029Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "323dd22a-2488-4963-84cd-b59c5721404d", - "createdTime": "2022-11-16T08:34:45.575Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Period", - "value": { - "periodType": "AssignValue", - "periodValue": 2 - } - }, - { - "feedbackId": "653386ef-b866-4cf4-9307-9de4e85a391b", - "createdTime": "2022-11-16T08:34:44.768Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Comment", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "commentValue": "comment" - } - }, - { - "feedbackId": "b5894399-94ae-4210-9c03-a5d557de1534", - "createdTime": "2022-11-16T08:34:44.121Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "changePointValue": "NotChangePoint" - } - } - ], - "@nextLink": "https://ga-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/feedback/metric/query?$maxpagesize=10\u0026$skip=20" - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorClientBuilderTest.clientBuilderWithNullServiceVersion[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorClientBuilderTest.clientBuilderWithNullServiceVersion[1].json deleted file mode 100644 index c348632126713..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsAdvisorClientBuilderTest.clientBuilderWithNullServiceVersion[1].json +++ /dev/null @@ -1,411 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/feedback/metric/query?$maxpagesize=10", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "51", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "0a618996-d370-4ce3-b385-a57c7365d7bd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "24e86c83-927c-4faa-a96c-d28f4437f790", - "Content-Length": "3663", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "274", - "x-ms-region": "West US 2", - "X-Request-ID": "24e86c83-927c-4faa-a96c-d28f4437f790" - }, - "ResponseBody": { - "value": [ - { - "feedbackId": "2e157fbc-34ab-422e-aa8e-3133323a4c61", - "createdTime": "2023-03-08T23:53:53.675Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "JPN", - "Dim2": "JP" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2020-01-01T00:00:00Z", - "endTime": "2020-09-09T00:00:00Z", - "value": { - "changePointValue": "AutoDetect" - } - }, - { - "feedbackId": "e4a4c55e-486d-46dc-a857-75bbb9c30c3c", - "createdTime": "2022-11-17T08:28:26.451Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Period", - "value": { - "periodType": "AssignValue", - "periodValue": 2 - } - }, - { - "feedbackId": "68e2b300-d70c-4994-b565-4cc155b277b3", - "createdTime": "2022-11-17T08:28:25.817Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Comment", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "commentValue": "comment" - } - }, - { - "feedbackId": "2eb51c14-af15-4b9e-9410-6927db36d501", - "createdTime": "2022-11-17T08:28:25.188Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "changePointValue": "NotChangePoint" - } - }, - { - "feedbackId": "6499b105-3d22-4bd4-98ec-8527ffd144af", - "createdTime": "2022-11-17T08:28:24.161Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "8f7537f4-555a-449f-b661-09c20ca56739", - "createdTime": "2022-11-17T08:28:17.646Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Period", - "value": { - "periodType": "AssignValue", - "periodValue": 2 - } - }, - { - "feedbackId": "371ebae3-fb38-4833-b786-09d310e79c03", - "createdTime": "2022-11-17T08:28:16.894Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Comment", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "commentValue": "comment" - } - }, - { - "feedbackId": "40e31831-31a0-4da1-9c45-544a01085442", - "createdTime": "2022-11-17T08:28:15.998Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "changePointValue": "NotChangePoint" - } - }, - { - "feedbackId": "20923f71-36c5-4785-b743-e811927c2643", - "createdTime": "2022-11-17T08:28:16.046Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Period", - "value": { - "periodType": "AssignValue", - "periodValue": 2 - } - }, - { - "feedbackId": "411a192d-a69c-40e8-93ba-4e7ffa901fbe", - "createdTime": "2022-11-17T08:28:15.39Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Comment", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "commentValue": "comment" - } - } - ], - "@nextLink": "https://ga-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/feedback/metric/query?$maxpagesize=10\u0026$skip=10" - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/feedback/metric/query?$maxpagesize=10\u0026$skip=10", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "51", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "9078c0cb-60e6-4e27-8dc6-50a9c97246bf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9d429c32-147c-40de-91fd-d9ae74ed3897", - "Content-Length": "3712", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "209", - "x-ms-region": "West US 2", - "X-Request-ID": "9d429c32-147c-40de-91fd-d9ae74ed3897" - }, - "ResponseBody": { - "value": [ - { - "feedbackId": "7e44f1f2-73e5-4da4-b6e3-6a232a1c341c", - "createdTime": "2022-11-17T08:28:14.714Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "e586b348-5711-4a75-bf7b-1557bce2897f", - "createdTime": "2022-11-17T08:28:14.641Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "changePointValue": "NotChangePoint" - } - }, - { - "feedbackId": "42c85de4-7b27-42ca-8185-a29d5525c45a", - "createdTime": "2022-11-17T08:28:13.473Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "a6e7e725-7ed7-42f6-a6fe-badec96e46bb", - "createdTime": "2022-11-16T08:38:58.346Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Period", - "value": { - "periodType": "AssignValue", - "periodValue": 2 - } - }, - { - "feedbackId": "f9c117b2-ce5e-461e-b17b-041683206c2a", - "createdTime": "2022-11-16T08:38:57.54Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Comment", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "commentValue": "comment" - } - }, - { - "feedbackId": "32ae7475-7d35-4bb8-8672-8f225babd142", - "createdTime": "2022-11-16T08:38:56.901Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "changePointValue": "NotChangePoint" - } - }, - { - "feedbackId": "f5edbc48-f95e-43a6-81a1-829b38a51200", - "createdTime": "2022-11-16T08:38:56.029Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Anomaly", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "anomalyValue": "NotAnomaly" - } - }, - { - "feedbackId": "323dd22a-2488-4963-84cd-b59c5721404d", - "createdTime": "2022-11-16T08:34:45.575Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Period", - "value": { - "periodType": "AssignValue", - "periodValue": 2 - } - }, - { - "feedbackId": "653386ef-b866-4cf4-9307-9de4e85a391b", - "createdTime": "2022-11-16T08:34:44.768Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "Comment", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "commentValue": "comment" - } - }, - { - "feedbackId": "b5894399-94ae-4210-9c03-a5d557de1534", - "createdTime": "2022-11-16T08:34:44.121Z", - "userPrincipal": "REDACTED.microsoft.com", - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimensionFilter": { - "dimension": { - "Dim1": "USD" - } - }, - "feedbackType": "ChangePoint", - "startTime": "2022-03-01T00:00:00Z", - "endTime": "2022-09-29T00:00:00Z", - "value": { - "changePointValue": "NotChangePoint" - } - } - ], - "@nextLink": "https://ga-metrics-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/feedback/metric/query?$maxpagesize=10\u0026$skip=20" - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricDimensionValues[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricDimensionValues[1].json deleted file mode 100644 index 72c0ff5934ae7..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricDimensionValues[1].json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/b6c0649c-0c51-4aa6-82b6-3c3b0aa55066/dimension/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "24", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "6366ebc9-7628-4c87-b2ed-6460eba82ae8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dimensionName": "Dim1" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2061d56a-0fd0-49ab-9dcf-205fcf9d6108", - "Content-Length": "33", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "106", - "x-ms-region": "West US 2", - "X-Request-ID": "2061d56a-0fd0-49ab-9dcf-205fcf9d6108" - }, - "ResponseBody": { - "value": [ - "JPN", - "__SUM__", - "USD" - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricEnrichmentStatus[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricEnrichmentStatus[1].json deleted file mode 100644 index 5913e040d7e9b..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricEnrichmentStatus[1].json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/b6c0649c-0c51-4aa6-82b6-3c3b0aa55066/status/enrichment/anomalyDetection/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "69", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b68b374e-869c-4230-8ec8-e6bcb2fca641", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2021-10-01T00:00:00Z", - "endTime": "2021-10-30T00:00:00Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8ce3c3c4-ff35-411b-854a-5f5b13af3e1a", - "Content-Length": "29", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "220", - "x-ms-region": "West US 2", - "X-Request-ID": "8ce3c3c4-ff35-411b-854a-5f5b13af3e1a" - }, - "ResponseBody": { - "value": [], - "@nextLink": null - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesData[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesData[1].json deleted file mode 100644 index 5c7c04edc2ded..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesData[1].json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/b6c0649c-0c51-4aa6-82b6-3c3b0aa55066/data/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "107", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "b2039c41-28be-4bff-96de-10d8c9a8671e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2022-01-01T00:00:00Z", - "endTime": "2022-01-01T00:00:00Z", - "series": [ - { - "Dim1": "JPN", - "Dim2": "JP" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3a1f1ac4-fde1-412d-830f-930048747240", - "Content-Length": "143", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "389", - "x-ms-region": "West US 2", - "X-Request-ID": "3a1f1ac4-fde1-412d-830f-930048747240" - }, - "ResponseBody": { - "value": [ - { - "id": { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "JPN", - "Dim2": "JP" - } - }, - "timestampList": [], - "valueList": [] - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesDefinitionsDimensionFilter[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesDefinitionsDimensionFilter[1].json deleted file mode 100644 index c7827ec16bf7d..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesDefinitionsDimensionFilter[1].json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/b6c0649c-0c51-4aa6-82b6-3c3b0aa55066/series/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "73", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "be75a417-b6fb-4976-a44e-62dd5baae9d5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "activeSince": "2022-01-01T00:00:00Z", - "dimensionFilter": { - "Dim1": [ - "JPN" - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7c55a0ed-3836-4999-a55e-a062690f22b2", - "Content-Length": "198", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "122", - "x-ms-region": "West US 2", - "X-Request-ID": "7c55a0ed-3836-4999-a55e-a062690f22b2" - }, - "ResponseBody": { - "value": [ - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "JPN", - "Dim2": "__SUM__" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "JPN", - "Dim2": "JP" - } - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesDefinitions[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesDefinitions[1].json deleted file mode 100644 index 2132d86d28d1d..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesAsyncTest.listMetricSeriesDefinitions[1].json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/b6c0649c-0c51-4aa6-82b6-3c3b0aa55066/series/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "38", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "721bf2a7-f68a-4d28-b74f-ab258b74a0b0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "activeSince": "2022-01-01T00:00:00Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a66097c9-8247-4e30-aaa3-780bda9da78f", - "Content-Length": "675", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "96", - "x-ms-region": "West US 2", - "X-Request-ID": "a66097c9-8247-4e30-aaa3-780bda9da78f" - }, - "ResponseBody": { - "value": [ - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "JPN", - "Dim2": "__SUM__" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "JPN", - "Dim2": "JP" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "__SUM__", - "Dim2": "JP" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "USD", - "Dim2": "US" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "__SUM__", - "Dim2": "US" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "USD", - "Dim2": "__SUM__" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "__SUM__", - "Dim2": "__SUM__" - } - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricDimensionValues[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricDimensionValues[1].json deleted file mode 100644 index 299b9527a30ee..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricDimensionValues[1].json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/b6c0649c-0c51-4aa6-82b6-3c3b0aa55066/dimension/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "24", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "9ca2bf6c-613b-45ac-ad4b-421c22cee731", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "dimensionName": "Dim1" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "fc566d78-e861-4d30-a2dc-45656b14081b", - "Content-Length": "33", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "100", - "x-ms-region": "West US 2", - "X-Request-ID": "fc566d78-e861-4d30-a2dc-45656b14081b" - }, - "ResponseBody": { - "value": [ - "JPN", - "__SUM__", - "USD" - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricEnrichmentStatus[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricEnrichmentStatus[1].json deleted file mode 100644 index dc3be5f6a4519..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricEnrichmentStatus[1].json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/b6c0649c-0c51-4aa6-82b6-3c3b0aa55066/status/enrichment/anomalyDetection/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "69", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "2927bfec-5e4b-466a-bc8a-5bf1bd6533aa", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2021-10-01T00:00:00Z", - "endTime": "2021-10-30T00:00:00Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b07897fb-d288-4288-8ee9-fb7bde0878d6", - "Content-Length": "29", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "327", - "x-ms-region": "West US 2", - "X-Request-ID": "b07897fb-d288-4288-8ee9-fb7bde0878d6" - }, - "ResponseBody": { - "value": [], - "@nextLink": null - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesData[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesData[1].json deleted file mode 100644 index d8464c50bcde6..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesData[1].json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/b6c0649c-0c51-4aa6-82b6-3c3b0aa55066/data/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "107", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "936aaca0-5ecb-4b70-a749-8feaea201e92", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2022-01-01T00:00:00Z", - "endTime": "2022-01-01T00:00:00Z", - "series": [ - { - "Dim1": "JPN", - "Dim2": "JP" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b5a873f7-83f9-4eee-a9dc-9a5f48fa0fbe", - "Content-Length": "143", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "423", - "x-ms-region": "West US 2", - "X-Request-ID": "b5a873f7-83f9-4eee-a9dc-9a5f48fa0fbe" - }, - "ResponseBody": { - "value": [ - { - "id": { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "JPN", - "Dim2": "JP" - } - }, - "timestampList": [], - "valueList": [] - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesDefinitionsDimensionFilter[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesDefinitionsDimensionFilter[1].json deleted file mode 100644 index 5033a4befee92..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesDefinitionsDimensionFilter[1].json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/b6c0649c-0c51-4aa6-82b6-3c3b0aa55066/series/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "73", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ee3513f4-7092-45ab-b447-7eb77bf583ee", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "activeSince": "2022-01-01T00:00:00Z", - "dimensionFilter": { - "Dim1": [ - "JPN" - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f638cc49-cc3a-4364-afca-44281022377d", - "Content-Length": "198", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "159", - "x-ms-region": "West US 2", - "X-Request-ID": "f638cc49-cc3a-4364-afca-44281022377d" - }, - "ResponseBody": { - "value": [ - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "JPN", - "Dim2": "__SUM__" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "JPN", - "Dim2": "JP" - } - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesDefinitions[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesDefinitions[1].json deleted file mode 100644 index 0479a77ac0df2..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/MetricsSeriesTest.listMetricSeriesDefinitions[1].json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/metrics/b6c0649c-0c51-4aa6-82b6-3c3b0aa55066/series/query", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "38", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "13a66c0e-94ad-4368-b53b-bda39a77b389", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "activeSince": "2022-01-01T00:00:00Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8856a171-e185-4158-85e4-f91ddff2c850", - "Content-Length": "675", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "171", - "x-ms-region": "West US 2", - "X-Request-ID": "8856a171-e185-4158-85e4-f91ddff2c850" - }, - "ResponseBody": { - "value": [ - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "JPN", - "Dim2": "__SUM__" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "JPN", - "Dim2": "JP" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "__SUM__", - "Dim2": "JP" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "USD", - "Dim2": "US" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "__SUM__", - "Dim2": "US" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "USD", - "Dim2": "__SUM__" - } - }, - { - "metricId": "b6c0649c-0c51-4aa6-82b6-3c3b0aa55066", - "dimension": { - "Dim1": "__SUM__", - "Dim2": "__SUM__" - } - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/NotificationHookAsyncTest.createWebHook[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/NotificationHookAsyncTest.createWebHook[1].json deleted file mode 100644 index e02ebbfe267f7..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/NotificationHookAsyncTest.createWebHook[1].json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "324", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 22:59:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "30294a46-e7ca-43b2-b2f6-1f81db8e5988", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "hookType": "Webhook", - "hookName": "d44b90e5-beb5-4612-9066-bc11e01a00a6", - "description": "alert_us!", - "externalLink": "https://github.com/Azure/azure-sdk-for-java/wiki", - "hookParameter": { - "endpoint": "https://httpbin.org/post", - "username": "username", - "password": "REDACTED", - "headers": { - "x-contoso-id": "123", - "x-contoso-name": "contoso" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "83d72cf3-a669-4ba1-8453-f7bf01234331", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/hooks/c55115f6-dfe2-4799-b6a3-65f57c706960", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "874", - "x-ms-region": "West US 2", - "X-Request-ID": "83d72cf3-a669-4ba1-8453-f7bf01234331" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/c55115f6-dfe2-4799-b6a3-65f57c706960", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "0af5ef6d-9448-451a-93b4-3da685a27800", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6cb5fdb5-c520-4de9-83d9-03b87dd396e6", - "Content-Length": "408", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "185", - "x-ms-region": "West US 2", - "X-Request-ID": "6cb5fdb5-c520-4de9-83d9-03b87dd396e6" - }, - "ResponseBody": { - "hookId": "c55115f6-dfe2-4799-b6a3-65f57c706960", - "hookName": "d44b90e5-beb5-4612-9066-bc11e01a00a6", - "hookType": "Webhook", - "externalLink": "https://github.com/Azure/azure-sdk-for-java/wiki", - "description": "alert_us!", - "admins": [ - "REDACTED.microsoft.com" - ], - "hookParameter": { - "endpoint": "https://httpbin.org/post", - "username": "username", - "password": "REDACTED", - "headers": { - "x-contoso-id": "123", - "x-contoso-name": "contoso" - } - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/c55115f6-dfe2-4799-b6a3-65f57c706960", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "904e71db-7e82-4629-b6a6-3e4e8a9c9b2d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "9d128b73-8021-40de-98d5-a92647dde66f", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 22:59:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "313", - "x-ms-region": "West US 2", - "X-Request-ID": "9d128b73-8021-40de-98d5-a92647dde66f" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/NotificationHookTest.createWebHook[1].json b/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/NotificationHookTest.createWebHook[1].json deleted file mode 100644 index 3ec1684b94aa2..0000000000000 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/src/test/resources/session-records/NotificationHookTest.createWebHook[1].json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "324", - "Content-Type": "application/json", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "1a03b4d0-0c0f-4995-8326-52e59e2ae734", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "hookType": "Webhook", - "hookName": "d44b90e5-beb5-4612-9066-bc11e01a00a6", - "description": "alert_us!", - "externalLink": "https://github.com/Azure/azure-sdk-for-java/wiki", - "hookParameter": { - "endpoint": "https://httpbin.org/post", - "username": "username", - "password": "REDACTED", - "headers": { - "x-contoso-id": "123", - "x-contoso-name": "contoso" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "apim-request-id": "c678b5af-320f-475c-80d6-094c403d72cb", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Location": "https://REDACTED/metricsadvisor/v1.0/hooks/daf2c4f8-3296-4909-a6e6-26e1bc5d18c9", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1101", - "x-ms-region": "West US 2", - "X-Request-ID": "c678b5af-320f-475c-80d6-094c403d72cb" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/daf2c4f8-3296-4909-a6e6-26e1bc5d18c9", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "ed3c9882-3f67-406b-9e40-f4300d1b7803", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b3615b6c-06c7-4af1-9bac-23c0c820fa80", - "Content-Length": "408", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Apr 2023 23:00:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "185", - "x-ms-region": "West US 2", - "X-Request-ID": "b3615b6c-06c7-4af1-9bac-23c0c820fa80" - }, - "ResponseBody": { - "hookId": "daf2c4f8-3296-4909-a6e6-26e1bc5d18c9", - "hookName": "d44b90e5-beb5-4612-9066-bc11e01a00a6", - "hookType": "Webhook", - "externalLink": "https://github.com/Azure/azure-sdk-for-java/wiki", - "description": "alert_us!", - "admins": [ - "REDACTED.microsoft.com" - ], - "hookParameter": { - "endpoint": "https://httpbin.org/post", - "username": "username", - "password": "REDACTED", - "headers": { - "x-contoso-id": "123", - "x-contoso-name": "contoso" - } - } - } - }, - { - "RequestUri": "https://REDACTED/metricsadvisor/v1.0/hooks/daf2c4f8-3296-4909-a6e6-26e1bc5d18c9", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:04 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-metricsadvisor/1.1.13 (11.0.9; Windows 10; 10.0)", - "x-api-key": "REDACTED", - "x-ms-client-request-id": "1042bbb7-3afa-4c0c-9650-4e6163796231", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "apim-request-id": "c0c2bab2-4801-45a2-b5e1-e41d221e338b", - "Content-Length": "0", - "Date": "Mon, 17 Apr 2023 23:00:04 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "431", - "x-ms-region": "West US 2", - "X-Request-ID": "c0c2bab2-4801-45a2-b5e1-e41d221e338b" - }, - "ResponseBody": null - } - ], - "Variables": {} -}