Skip to content

Commit e134a5f

Browse files
authored
Update swagger for Azure Monitor metrics query (#14609)
* Update swaggers for logs and metrics queries * Update version * add missing fields * include statistics * include statistics * statistics in log query result * Include metrics namespace param * Update title and client name * Include namespace param * Add namespace and region * Fix top and orderby query params * Fix linting errors * Update security to oauth2 * Remove logs query changes * Update 2018-01-01 version and revert 2017-05-01-preview
1 parent 9820e5b commit e134a5f

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"swagger": "2.0",
33
"info": {
44
"title": "MonitorManagementClient",
5-
"x-ms-code-generation-settings": {
6-
"name": "MonitorManagementClient"
7-
},
85
"version": "2017-12-01-preview"
96
},
107
"host": "management.azure.com",
@@ -99,7 +96,7 @@
9996
],
10097
"x-ms-enum": {
10198
"name": "NamespaceClassification",
102-
"modelAsString": false
99+
"modelAsString": true
103100
}
104101
},
105102
"MetricNamespace": {

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@
133133
"BitsPerSecond"
134134
],
135135
"x-ms-enum": {
136-
"name": "Unit",
137-
"modelAsString": false
136+
"name": "MetricUnit",
137+
"modelAsString": true
138138
}
139139
},
140140
"AggregationType": {

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"swagger": "2.0",
33
"info": {
44
"title": "MonitorManagementClient",
5-
"x-ms-code-generation-settings": {
6-
"name": "MonitorManagementClient"
7-
},
85
"version": "2018-01-01"
96
},
107
"host": "management.azure.com",
@@ -144,8 +141,8 @@
144141
"BitsPerSecond"
145142
],
146143
"x-ms-enum": {
147-
"name": "Unit",
148-
"modelAsString": false
144+
"name": "MetricUnit",
145+
"modelAsString": true
149146
}
150147
},
151148
"MetricValue": {

0 commit comments

Comments
 (0)