diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/baseline_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/baseline_API.json index fbf213aaa465..131de35b7b15 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/baseline_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/baseline_API.json @@ -36,7 +36,7 @@ } }, "paths": { - "/{resourceUri}/providers/microsoft.insights/baseline/{metricName}": { + "/{resourceUri}/providers/Microsoft.Insights/baseline/{metricName}": { "get": { "tags": [ "Baseline" @@ -103,7 +103,7 @@ } } }, - "/{resourceUri}/providers/microsoft.insights/baseline": { + "/{resourceUri}/providers/Microsoft.Insights/baseline": { "get": { "tags": [ "Baseline" @@ -312,6 +312,15 @@ "description": "A single high threshold value." }, "description": "The high thresholds of the baseline." + }, + "timestamps": { + "type": "array", + "items": { + "type": "string", + "format": "date-time", + "description": "the timestamp for the baseline value in ISO 8601 format." + }, + "description": "the array of timestamps of the baselines." } }, "required": [ diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json index 39ba5120dd9e..1a7dc013fb17 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json @@ -36,7 +36,7 @@ } }, "paths": { - "/{resourceUri}/providers/microsoft.insights/calculatebaseline": { + "/{resourceUri}/providers/Microsoft.Insights/calculatebaseline": { "post": { "tags": [ "Baseline" @@ -154,6 +154,28 @@ "$ref": "#/definitions/Baseline" }, "description": "The baseline values for each sensitivity." + }, + "statistics": { + "type": "object", + "properties": { + "isEligible": { + "type": "string", + "description": "is series eligible for dynamic threshold analysis" + }, + "status": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of extended status for calculating the baseline." + }, + "seasonalityPeriod": { + "type": "integer", + "format": "int32", + "description": "The seasonality period for calculating the baseline." + } + }, + "description": "The statistics" } }, "required": [ @@ -195,6 +217,15 @@ "description": "A single high threshold value." }, "description": "The high thresholds of the baseline." + }, + "timestamps": { + "type": "array", + "items": { + "type": "string", + "format": "date-time", + "description": "the timestamp for the baseline value in ISO 8601 format." + }, + "description": "the array of timestamps of the baselines." } }, "required": [ diff --git a/specification/monitor/resource-manager/readme.md b/specification/monitor/resource-manager/readme.md index c557b1c09a33..b309d8e165c0 100644 --- a/specification/monitor/resource-manager/readme.md +++ b/specification/monitor/resource-manager/readme.md @@ -618,6 +618,9 @@ directive: from: dataCollectionRuleAssociations_API.json where: $.paths 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)' + - suppress: R4007 + from: calculateBaseline_API.json + reason: 'Updating the error response to the new format would be a breaking change.' - suppress: R4007 from: baseline_API.json reason: 'Updating the error response to the new format would be a breaking change.'