Skip to content

Commit 7c06dc7

Browse files
authored
[Hub Generated] Review request for Microsoft.Insights to add version stable/2018-09-01 (#12233)
* Fix swagger validation for 2018-09-01 version * Fixed swagger validations for version 2017-11-01 * reverted 2017 changes! * reverted ErrorResponse thing and add a suppresion * added suppresion for baseline_API * fixed enum * fixed the statistics * renamed suppression rule * added missing timestamps * added int format * fixed namespace * fixed suppression * added missing API * fixed 4007 thing * deleted api version i've added
1 parent ae379e1 commit 7c06dc7

File tree

3 files changed

+46
-3
lines changed

3 files changed

+46
-3
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737
},
3838
"paths": {
39-
"/{resourceUri}/providers/microsoft.insights/baseline/{metricName}": {
39+
"/{resourceUri}/providers/Microsoft.Insights/baseline/{metricName}": {
4040
"get": {
4141
"tags": [
4242
"Baseline"
@@ -103,7 +103,7 @@
103103
}
104104
}
105105
},
106-
"/{resourceUri}/providers/microsoft.insights/baseline": {
106+
"/{resourceUri}/providers/Microsoft.Insights/baseline": {
107107
"get": {
108108
"tags": [
109109
"Baseline"
@@ -312,6 +312,15 @@
312312
"description": "A single high threshold value."
313313
},
314314
"description": "The high thresholds of the baseline."
315+
},
316+
"timestamps": {
317+
"type": "array",
318+
"items": {
319+
"type": "string",
320+
"format": "date-time",
321+
"description": "the timestamp for the baseline value in ISO 8601 format."
322+
},
323+
"description": "the array of timestamps of the baselines."
315324
}
316325
},
317326
"required": [

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

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737
},
3838
"paths": {
39-
"/{resourceUri}/providers/microsoft.insights/calculatebaseline": {
39+
"/{resourceUri}/providers/Microsoft.Insights/calculatebaseline": {
4040
"post": {
4141
"tags": [
4242
"Baseline"
@@ -154,6 +154,28 @@
154154
"$ref": "#/definitions/Baseline"
155155
},
156156
"description": "The baseline values for each sensitivity."
157+
},
158+
"statistics": {
159+
"type": "object",
160+
"properties": {
161+
"isEligible": {
162+
"type": "string",
163+
"description": "is series eligible for dynamic threshold analysis"
164+
},
165+
"status": {
166+
"type": "array",
167+
"items": {
168+
"type": "string"
169+
},
170+
"description": "The list of extended status for calculating the baseline."
171+
},
172+
"seasonalityPeriod": {
173+
"type": "integer",
174+
"format": "int32",
175+
"description": "The seasonality period for calculating the baseline."
176+
}
177+
},
178+
"description": "The statistics"
157179
}
158180
},
159181
"required": [
@@ -195,6 +217,15 @@
195217
"description": "A single high threshold value."
196218
},
197219
"description": "The high thresholds of the baseline."
220+
},
221+
"timestamps": {
222+
"type": "array",
223+
"items": {
224+
"type": "string",
225+
"format": "date-time",
226+
"description": "the timestamp for the baseline value in ISO 8601 format."
227+
},
228+
"description": "the array of timestamps of the baselines."
198229
}
199230
},
200231
"required": [

specification/monitor/resource-manager/readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,9 @@ directive:
618618
from: dataCollectionRuleAssociations_API.json
619619
where: $.paths
620620
reason: 'Operations API is defined in a separate swagger spec for Microsoft.Insights namespace (https://github.com/Azure/azure-rest-api-specs/blob/master/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/operations_API.json)'
621+
- suppress: R4007
622+
from: calculateBaseline_API.json
623+
reason: 'Updating the error response to the new format would be a breaking change.'
621624
- suppress: R4007
622625
from: baseline_API.json
623626
reason: 'Updating the error response to the new format would be a breaking change.'

0 commit comments

Comments
 (0)