Skip to content

Commit 412750c

Browse files
authored
New API: QPI Reset (#11884)
1 parent c624926 commit 412750c

File tree

7 files changed

+391
-0
lines changed

7 files changed

+391
-0
lines changed

specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/QueryPerformanceInsights.json

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@
6969
"schema": {
7070
"$ref": "#/definitions/QueryText"
7171
}
72+
},
73+
"default": {
74+
"description": "Error response describing why the operation failed.",
75+
"schema": {
76+
"$ref": "#/definitions/CloudError"
77+
}
7278
}
7379
}
7480
}
@@ -116,6 +122,12 @@
116122
"schema": {
117123
"$ref": "#/definitions/QueryTextsResultList"
118124
}
125+
},
126+
"default": {
127+
"description": "Error response describing why the operation failed.",
128+
"schema": {
129+
"$ref": "#/definitions/CloudError"
130+
}
119131
}
120132
},
121133
"x-ms-pageable": {
@@ -158,6 +170,12 @@
158170
"schema": {
159171
"$ref": "#/definitions/QueryStatistic"
160172
}
173+
},
174+
"default": {
175+
"description": "Error response describing why the operation failed.",
176+
"schema": {
177+
"$ref": "#/definitions/CloudError"
178+
}
161179
}
162180
}
163181
}
@@ -203,6 +221,12 @@
203221
"schema": {
204222
"$ref": "#/definitions/TopQueryStatisticsResultList"
205223
}
224+
},
225+
"default": {
226+
"description": "Error response describing why the operation failed.",
227+
"schema": {
228+
"$ref": "#/definitions/CloudError"
229+
}
206230
}
207231
},
208232
"x-ms-pageable": {
@@ -245,6 +269,12 @@
245269
"schema": {
246270
"$ref": "#/definitions/WaitStatistic"
247271
}
272+
},
273+
"default": {
274+
"description": "Error response describing why the operation failed.",
275+
"schema": {
276+
"$ref": "#/definitions/CloudError"
277+
}
248278
}
249279
}
250280
}
@@ -290,12 +320,60 @@
290320
"schema": {
291321
"$ref": "#/definitions/WaitStatisticsResultList"
292322
}
323+
},
324+
"default": {
325+
"description": "Error response describing why the operation failed.",
326+
"schema": {
327+
"$ref": "#/definitions/CloudError"
328+
}
293329
}
294330
},
295331
"x-ms-pageable": {
296332
"nextLinkName": "nextLink"
297333
}
298334
}
335+
},
336+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/resetQueryPerformanceInsightData": {
337+
"post": {
338+
"tags": [
339+
"ResetQueryPerformanceInsightData"
340+
],
341+
"operationId": "ResetQueryPerformanceInsightData",
342+
"x-ms-examples": {
343+
"QueryPerformanceInsightResetData": {
344+
"$ref": "./examples/QueryPerformanceInsightResetData.json"
345+
}
346+
},
347+
"description": "Reset data for Query Performance Insight.",
348+
"parameters": [
349+
{
350+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
351+
},
352+
{
353+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
354+
},
355+
{
356+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
357+
},
358+
{
359+
"$ref": "#/parameters/ServerNameParameter"
360+
}
361+
],
362+
"responses": {
363+
"200": {
364+
"description": "OK",
365+
"schema": {
366+
"$ref": "#/definitions/QueryPerformanceInsightResetDataResult"
367+
}
368+
},
369+
"default": {
370+
"description": "Error response describing why the operation failed.",
371+
"schema": {
372+
"$ref": "#/definitions/CloudError"
373+
}
374+
}
375+
}
376+
}
299377
}
300378
},
301379
"definitions": {
@@ -602,6 +680,37 @@
602680
"readOnly": true
603681
}
604682
}
683+
},
684+
"QueryPerformanceInsightResetDataResult": {
685+
"description": "Result of Query Performance Insight data reset.",
686+
"type": "object",
687+
"properties": {
688+
"status": {
689+
"type": "string",
690+
"enum": [
691+
"Succeeded",
692+
"Failed"
693+
],
694+
"x-ms-enum": {
695+
"name": "QueryPerformanceInsightResetDataResultState",
696+
"modelAsString": true
697+
},
698+
"description": "Indicates result of the operation."
699+
},
700+
"message": {
701+
"type": "string",
702+
"description": "operation message."
703+
}
704+
}
705+
},
706+
"CloudError": {
707+
"x-ms-external": true,
708+
"properties": {
709+
"error": {
710+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
711+
}
712+
},
713+
"description": "An error response from the Batch service."
605714
}
606715
},
607716
"parameters": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-06-01",
4+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
5+
"resourceGroupName": "testResourceGroupName",
6+
"serverName": "testServerName"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"status": "Succeeded",
12+
"message": "QPI reset data successful"
13+
}
14+
}
15+
}
16+
}

specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2018-06-01/QueryPerformanceInsights.json

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@
6969
"schema": {
7070
"$ref": "#/definitions/QueryText"
7171
}
72+
},
73+
"default": {
74+
"description": "Error response describing why the operation failed.",
75+
"schema": {
76+
"$ref": "#/definitions/CloudError"
77+
}
7278
}
7379
}
7480
}
@@ -116,6 +122,12 @@
116122
"schema": {
117123
"$ref": "#/definitions/QueryTextsResultList"
118124
}
125+
},
126+
"default": {
127+
"description": "Error response describing why the operation failed.",
128+
"schema": {
129+
"$ref": "#/definitions/CloudError"
130+
}
119131
}
120132
},
121133
"x-ms-pageable": {
@@ -158,6 +170,12 @@
158170
"schema": {
159171
"$ref": "#/definitions/QueryStatistic"
160172
}
173+
},
174+
"default": {
175+
"description": "Error response describing why the operation failed.",
176+
"schema": {
177+
"$ref": "#/definitions/CloudError"
178+
}
161179
}
162180
}
163181
}
@@ -203,6 +221,12 @@
203221
"schema": {
204222
"$ref": "#/definitions/TopQueryStatisticsResultList"
205223
}
224+
},
225+
"default": {
226+
"description": "Error response describing why the operation failed.",
227+
"schema": {
228+
"$ref": "#/definitions/CloudError"
229+
}
206230
}
207231
},
208232
"x-ms-pageable": {
@@ -245,6 +269,12 @@
245269
"schema": {
246270
"$ref": "#/definitions/WaitStatistic"
247271
}
272+
},
273+
"default": {
274+
"description": "Error response describing why the operation failed.",
275+
"schema": {
276+
"$ref": "#/definitions/CloudError"
277+
}
248278
}
249279
}
250280
}
@@ -290,12 +320,60 @@
290320
"schema": {
291321
"$ref": "#/definitions/WaitStatisticsResultList"
292322
}
323+
},
324+
"default": {
325+
"description": "Error response describing why the operation failed.",
326+
"schema": {
327+
"$ref": "#/definitions/CloudError"
328+
}
293329
}
294330
},
295331
"x-ms-pageable": {
296332
"nextLinkName": "nextLink"
297333
}
298334
}
335+
},
336+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/resetQueryPerformanceInsightData": {
337+
"post": {
338+
"tags": [
339+
"ResetQueryPerformanceInsightData"
340+
],
341+
"operationId": "ResetQueryPerformanceInsightData",
342+
"x-ms-examples": {
343+
"QueryPerformanceInsightResetData": {
344+
"$ref": "./examples/QueryPerformanceInsightResetData.json"
345+
}
346+
},
347+
"description": "Reset data for Query Performance Insight.",
348+
"parameters": [
349+
{
350+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
351+
},
352+
{
353+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
354+
},
355+
{
356+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
357+
},
358+
{
359+
"$ref": "#/parameters/ServerNameParameter"
360+
}
361+
],
362+
"responses": {
363+
"200": {
364+
"description": "OK",
365+
"schema": {
366+
"$ref": "#/definitions/QueryPerformanceInsightResetDataResult"
367+
}
368+
},
369+
"default": {
370+
"description": "Error response describing why the operation failed.",
371+
"schema": {
372+
"$ref": "#/definitions/CloudError"
373+
}
374+
}
375+
}
376+
}
299377
}
300378
},
301379
"definitions": {
@@ -602,6 +680,37 @@
602680
"readOnly": true
603681
}
604682
}
683+
},
684+
"QueryPerformanceInsightResetDataResult": {
685+
"description": "Result of Query Performance Insight data reset.",
686+
"type": "object",
687+
"properties": {
688+
"status": {
689+
"type": "string",
690+
"enum": [
691+
"Succeeded",
692+
"Failed"
693+
],
694+
"x-ms-enum": {
695+
"name": "QueryPerformanceInsightResetDataResultState",
696+
"modelAsString": true
697+
},
698+
"description": "Indicates result of the operation."
699+
},
700+
"message": {
701+
"type": "string",
702+
"description": "operation message."
703+
}
704+
}
705+
},
706+
"CloudError": {
707+
"x-ms-external": true,
708+
"properties": {
709+
"error": {
710+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
711+
}
712+
},
713+
"description": "An error response from the Batch service."
605714
}
606715
},
607716
"parameters": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-06-01",
4+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
5+
"resourceGroupName": "testResourceGroupName",
6+
"serverName": "testServerName"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"status": "Succeeded",
12+
"message": "QPI reset data successful"
13+
}
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)