From 0ec3d6af721780c258e5a6bc38af42d69c2225f7 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Mon, 7 Mar 2022 10:44:39 +0800 Subject: [PATCH 1/2] metricsadvisor, fix incorrect swagger for pageble as POST --- .../data-plane/MetricsAdvisor/readme.md | 1 + .../stable/v1.0/MetricsAdvisor.json | 417 ++++++++++++++++++ 2 files changed, 418 insertions(+) diff --git a/specification/cognitiveservices/data-plane/MetricsAdvisor/readme.md b/specification/cognitiveservices/data-plane/MetricsAdvisor/readme.md index 3d588fcab50e..330472d785e8 100644 --- a/specification/cognitiveservices/data-plane/MetricsAdvisor/readme.md +++ b/specification/cognitiveservices/data-plane/MetricsAdvisor/readme.md @@ -31,4 +31,5 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-net-track2 + - repo: azure-sdk-for-java ``` diff --git a/specification/cognitiveservices/data-plane/MetricsAdvisor/stable/v1.0/MetricsAdvisor.json b/specification/cognitiveservices/data-plane/MetricsAdvisor/stable/v1.0/MetricsAdvisor.json index 51df945b91d5..1ee7590ec61f 100644 --- a/specification/cognitiveservices/data-plane/MetricsAdvisor/stable/v1.0/MetricsAdvisor.json +++ b/specification/cognitiveservices/data-plane/MetricsAdvisor/stable/v1.0/MetricsAdvisor.json @@ -6903,5 +6903,422 @@ "$ref": "#/parameters/Endpoint" } ] + }, + "x-ms-paths": { + "/{nextlink}?getAlertsByAnomalyAlertingConfigurationNext": { + "post": { + "tags": [ + "AnomalyAlerting" + ], + "summary": "Query alerts under anomaly alerting configuration", + "operationId": "getAlertsByAnomalyAlertingConfigurationNext", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "nextLink", + "description": "the next link", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "in": "body", + "name": "body", + "description": "query alerting result request", + "required": true, + "schema": { + "$ref": "#/definitions/AlertingResultQuery" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AlertResultList" + } + }, + "default": { + "description": "Client error or server error (4xx or 5xx)", + "schema": { + "$ref": "#/definitions/ErrorCode" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/{nextlink}?getAnomaliesByAnomalyDetectionConfigurationNext": { + "post": { + "tags": [ + "AnomalyDetection" + ], + "summary": "Query anomalies under anomaly detection configuration", + "operationId": "getAnomaliesByAnomalyDetectionConfigurationNext", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "nextLink", + "description": "the next link", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "in": "body", + "name": "body", + "description": "query detection anomaly result request", + "required": true, + "schema": { + "$ref": "#/definitions/DetectionAnomalyResultQuery" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AnomalyResultList" + } + }, + "default": { + "description": "Client error or server error (4xx or 5xx)", + "schema": { + "$ref": "#/definitions/ErrorCode" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null, + "operationName": "getAnomaliesByAnomalyDetectionConfigurationNext" + } + } + }, + "/{nextlink}?getDimensionOfAnomaliesByAnomalyDetectionConfigurationNext": { + "post": { + "tags": [ + "AnomalyDetection" + ], + "summary": "Query dimension values of anomalies", + "operationId": "getDimensionOfAnomaliesByAnomalyDetectionConfigurationNext", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "nextLink", + "description": "the next link", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "in": "body", + "name": "body", + "description": "query dimension values request", + "required": true, + "schema": { + "$ref": "#/definitions/AnomalyDimensionQuery" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AnomalyDimensionList" + } + }, + "default": { + "description": "Client error or server error (4xx or 5xx)", + "schema": { + "$ref": "#/definitions/ErrorCode" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null, + "operationName": "getDimensionOfAnomaliesByAnomalyDetectionConfigurationNext" + } + } + }, + "/{nextlink}?listMetricFeedbacksNext": { + "post": { + "tags": [ + "Feedback" + ], + "summary": "List feedback on the given metric", + "operationId": "listMetricFeedbacksNext", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "nextLink", + "description": "the next link", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "in": "body", + "name": "body", + "description": "metric feedback filter", + "required": true, + "schema": { + "$ref": "#/definitions/MetricFeedbackFilter" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MetricFeedbackList" + } + }, + "default": { + "description": "Client error or server error (4xx or 5xx)", + "schema": { + "$ref": "#/definitions/ErrorCode" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null, + "operationName": "listMetricFeedbacksNext" + } + } + }, + "/{nextlink}?getDataFeedIngestionStatusNext": { + "post": { + "tags": [ + "IngestionStatus" + ], + "summary": "Get data ingestion status by data feed", + "operationId": "getDataFeedIngestionStatusNext", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "nextLink", + "description": "the next link", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "in": "body", + "name": "body", + "description": "The query time range", + "required": true, + "schema": { + "$ref": "#/definitions/IngestionStatusQueryOptions" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/IngestionStatusList" + } + }, + "default": { + "description": "Client error or server error (4xx or 5xx)", + "schema": { + "$ref": "#/definitions/ErrorCode" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null, + "operationName": "getDataFeedIngestionStatusNext" + } + } + }, + "/{nextlink}?getMetricSeriesNext": { + "post": { + "tags": [ + "Metric" + ], + "summary": "List series (dimension combinations) from metric", + "operationId": "getMetricSeriesNext", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "nextLink", + "description": "the next link", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "in": "body", + "name": "body", + "description": "filter to query series", + "required": true, + "schema": { + "$ref": "#/definitions/MetricSeriesQueryOptions" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MetricSeriesList" + } + }, + "default": { + "description": "Client error or server error (4xx or 5xx)", + "schema": { + "$ref": "#/definitions/ErrorCode" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null, + "operationName": "getMetricSeriesNext" + } + } + }, + "/{nextlink}?getMetricDimensionNext": { + "post": { + "tags": [ + "Metric" + ], + "summary": "List dimension from certain metric", + "operationId": "getMetricDimensionNext", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "nextLink", + "description": "the next link", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "in": "body", + "name": "body", + "description": "query dimension option", + "required": true, + "schema": { + "$ref": "#/definitions/MetricDimensionQueryOptions" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MetricDimensionList" + } + }, + "default": { + "description": "Client error or server error (4xx or 5xx)", + "schema": { + "$ref": "#/definitions/ErrorCode" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null, + "operationName": "getMetricDimensionNext" + } + } + }, + "/{nextlink}?getEnrichmentStatusByMetricNext": { + "post": { + "tags": [ + "Metric" + ], + "summary": "Query anomaly detection status", + "operationId": "getEnrichmentStatusByMetricNext", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "nextLink", + "description": "the next link", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "in": "body", + "name": "body", + "description": "query options", + "required": true, + "schema": { + "$ref": "#/definitions/EnrichmentStatusQueryOption" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/EnrichmentStatusList" + } + }, + "default": { + "description": "Client error or server error (4xx or 5xx)", + "schema": { + "$ref": "#/definitions/ErrorCode" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null, + "operationName": "getEnrichmentStatusByMetricNext" + } + } + } } } From 500050cc90e4d9905af8c440ed8572e9f65c789a Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Mon, 21 Mar 2022 15:15:14 +0800 Subject: [PATCH 2/2] fix --- .../stable/v1.0/MetricsAdvisor.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/cognitiveservices/data-plane/MetricsAdvisor/stable/v1.0/MetricsAdvisor.json b/specification/cognitiveservices/data-plane/MetricsAdvisor/stable/v1.0/MetricsAdvisor.json index 1ee7590ec61f..a823612c29a0 100644 --- a/specification/cognitiveservices/data-plane/MetricsAdvisor/stable/v1.0/MetricsAdvisor.json +++ b/specification/cognitiveservices/data-plane/MetricsAdvisor/stable/v1.0/MetricsAdvisor.json @@ -6905,7 +6905,7 @@ ] }, "x-ms-paths": { - "/{nextlink}?getAlertsByAnomalyAlertingConfigurationNext": { + "{nextLink}?getAlertsByAnomalyAlertingConfigurationNext": { "post": { "tags": [ "AnomalyAlerting" @@ -6956,7 +6956,7 @@ } } }, - "/{nextlink}?getAnomaliesByAnomalyDetectionConfigurationNext": { + "{nextLink}?getAnomaliesByAnomalyDetectionConfigurationNext": { "post": { "tags": [ "AnomalyDetection" @@ -7008,7 +7008,7 @@ } } }, - "/{nextlink}?getDimensionOfAnomaliesByAnomalyDetectionConfigurationNext": { + "{nextLink}?getDimensionOfAnomaliesByAnomalyDetectionConfigurationNext": { "post": { "tags": [ "AnomalyDetection" @@ -7060,7 +7060,7 @@ } } }, - "/{nextlink}?listMetricFeedbacksNext": { + "{nextLink}?listMetricFeedbacksNext": { "post": { "tags": [ "Feedback" @@ -7112,7 +7112,7 @@ } } }, - "/{nextlink}?getDataFeedIngestionStatusNext": { + "{nextLink}?getDataFeedIngestionStatusNext": { "post": { "tags": [ "IngestionStatus" @@ -7164,7 +7164,7 @@ } } }, - "/{nextlink}?getMetricSeriesNext": { + "{nextLink}?getMetricSeriesNext": { "post": { "tags": [ "Metric" @@ -7216,7 +7216,7 @@ } } }, - "/{nextlink}?getMetricDimensionNext": { + "{nextLink}?getMetricDimensionNext": { "post": { "tags": [ "Metric" @@ -7268,7 +7268,7 @@ } } }, - "/{nextlink}?getEnrichmentStatusByMetricNext": { + "{nextLink}?getEnrichmentStatusByMetricNext": { "post": { "tags": [ "Metric"