diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json deleted file mode 100644 index ffe96baf0ae1..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json +++ /dev/null @@ -1,328 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "MonitorManagementClient", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2017-11-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/{resourceUri}/providers/Microsoft.Insights/baseline/{metricName}": { - "get": { - "tags": [ - "Baseline" - ], - "operationId": "MetricBaseline_Get", - "description": "**Gets the baseline values for a specific metric**.", - "parameters": [ - { - "$ref": "#/parameters/ExtendedResourceUriParameter" - }, - { - "$ref": "#/parameters/MetricNameParameter" - }, - { - "$ref": "#/parameters/TimespanParameter" - }, - { - "$ref": "#/parameters/IntervalParameter" - }, - { - "$ref": "#/parameters/AggregationParameter" - }, - { - "$ref": "#/parameters/SensitivitiesParameter" - }, - { - "$ref": "#/parameters/BaselineResultTypeParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to get the list of metric values.", - "schema": { - "$ref": "#/definitions/BaselineResponse" - } - } - }, - "x-ms-examples": { - "Get Metric for data": { - "$ref": "./examples/GetBaseline.json" - }, - "Get Metric for metadata": { - "$ref": "./examples/GetBaselineMetadata.json" - } - } - } - } - }, - "definitions": { - "LocalizableString": { - "required": [ - "value" - ], - "properties": { - "value": { - "type": "string", - "description": "the invariant value." - }, - "localizedValue": { - "type": "string", - "description": "the locale specific value." - } - }, - "description": "The localizable string class." - }, - "BaselineMetadataValue": { - "properties": { - "name": { - "$ref": "#/definitions/LocalizableString", - "description": "the name of the metadata." - }, - "value": { - "type": "string", - "description": "the value of the metadata." - } - }, - "description": "Represents a baseline metadata value." - }, - "ErrorResponse": { - "description": "Describes the format of Error response.", - "type": "object", - "properties": { - "code": { - "description": "Error code", - "type": "string" - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } - } - }, - "BaselineResponse": { - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "the metric baseline Id." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "the resource type of the baseline resource." - }, - "name": { - "$ref": "#/definitions/LocalizableString", - "readOnly": true, - "description": "the name and the display name of the metric, i.e. it is localizable string." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/BaselineProperties", - "description": "the properties of the baseline." - } - }, - "description": "The response to a baseline query." - }, - "BaselineProperties": { - "properties": { - "timespan": { - "type": "string", - "description": "The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested." - }, - "interval": { - "type": "string", - "format": "duration", - "description": "The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made." - }, - "aggregation": { - "type": "string", - "description": "The aggregation type of the metric." - }, - "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." - }, - "baseline": { - "type": "array", - "items": { - "$ref": "#/definitions/Baseline" - }, - "description": "the baseline values for each sensitivity." - }, - "metadata": { - "type": "array", - "items": { - "$ref": "#/definitions/BaselineMetadataValue" - }, - "description": "the baseline metadata values." - } - }, - "description": "The baseline properties class." - }, - "Baseline": { - "type": "object", - "properties": { - "sensitivity": { - "type": "string", - "enum": [ - "Low", - "Medium", - "High" - ], - "x-ms-enum": { - "name": "Sensitivity", - "modelAsString": false - }, - "description": "the sensitivity of the baseline." - }, - "lowThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single low threshold value." - }, - "description": "The low thresholds of the baseline." - }, - "highThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "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": [ - "sensitivity", - "lowThresholds", - "highThresholds" - ], - "description": "The baseline values for a single sensitivity value." - } - }, - "parameters": { - "ExtendedResourceUriParameter": { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "MetricNameParameter": { - "name": "metricName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the metric to retrieve the baseline for.", - "x-ms-parameter-location": "method" - }, - "TimespanParameter": { - "name": "timespan", - "in": "query", - "required": false, - "type": "string", - "description": "The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.", - "x-ms-parameter-location": "method" - }, - "IntervalParameter": { - "name": "interval", - "in": "query", - "required": false, - "type": "string", - "format": "duration", - "description": "The interval (i.e. timegrain) of the query.", - "x-ms-parameter-location": "method" - }, - "AggregationParameter": { - "name": "aggregation", - "in": "query", - "required": false, - "type": "string", - "description": "The aggregation type of the metric to retrieve the baseline for.", - "x-ms-parameter-location": "method" - }, - "SensitivitiesParameter": { - "name": "sensitivities", - "in": "query", - "required": false, - "type": "string", - "description": "The list of sensitivities (comma separated) to retrieve.", - "x-ms-parameter-location": "method" - }, - "BaselineResultTypeParameter": { - "name": "resultType", - "in": "query", - "type": "string", - "enum": [ - "Data", - "Metadata" - ], - "x-ms-enum": { - "name": "ResultType", - "modelAsString": false - }, - "description": "Allows retrieving only metadata of the baseline. On data request all information is retrieved.", - "x-ms-parameter-location": "method", - "required": false - } - } -} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json deleted file mode 100644 index 07d2c07886fa..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "MonitorManagementClient", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2017-11-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/{resourceUri}/providers/Microsoft.Insights/calculatebaseline": { - "post": { - "tags": [ - "Baseline" - ], - "operationId": "MetricBaseline_CalculateBaseline", - "description": "**Lists the baseline values for a resource**.", - "parameters": [ - { - "$ref": "#/parameters/ExtendedResourceUriParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "TimeSeriesInformation", - "description": "Information that need to be specified to calculate a baseline on a time series.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/TimeSeriesInformation" - } - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to get the list of metric values.", - "schema": { - "$ref": "#/definitions/CalculateBaselineResponse" - } - } - }, - "x-ms-examples": { - "Calculate baseline": { - "$ref": "./examples/CalculateBaseline.json" - } - } - } - } - }, - "definitions": { - "ErrorResponse": { - "description": "Describes the format of Error response.", - "type": "object", - "properties": { - "code": { - "description": "Error code", - "type": "string" - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } - } - }, - "TimeSeriesInformation": { - "properties": { - "sensitivities": { - "type": "array", - "items": { - "type": "string", - "description": "the requested sensitivity for calculating the baseline." - }, - "description": "the list of sensitivities for calculating the baseline." - }, - "values": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single metric value." - }, - "description": "The metric values to calculate 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": [ - "sensitivities", - "values" - ], - "description": "The time series info needed for calculating the baseline." - }, - "CalculateBaselineResponse": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "the resource type of the baseline resource." - }, - "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." - }, - "baseline": { - "type": "array", - "items": { - "$ref": "#/definitions/Baseline" - }, - "description": "the baseline values for each sensitivity." - } - }, - "required": [ - "type", - "baseline" - ], - "description": "The response to a calculate baseline call." - }, - "Baseline": { - "type": "object", - "properties": { - "sensitivity": { - "type": "string", - "enum": [ - "Low", - "Medium", - "High" - ], - "x-ms-enum": { - "name": "Sensitivity", - "modelAsString": false - }, - "description": "the sensitivity of the baseline." - }, - "lowThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single low threshold value." - }, - "description": "The low thresholds of the baseline." - }, - "highThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "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": [ - "sensitivity", - "lowThresholds", - "highThresholds" - ], - "description": "The baseline values for a single sensitivity value." - } - }, - "parameters": { - "ExtendedResourceUriParameter": { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - } - } -} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/CalculateBaseline.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/CalculateBaseline.json deleted file mode 100644 index 706ed919758c..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/CalculateBaseline.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", - "api-version": "2017-11-01-preview", - "TimeSeriesInformation": { - "sensitivities": [ - "Low", - "Medium" - ], - "values": [ - 61.0, - 62.0 - ] - } - }, - "responses": { - "200": { - "body": { - "type": "Microsoft.Insights/calculatebaseline", - "baseline": [ - { - "sensitivity": "Low", - "lowThresholds": [ - 30.0, - 31.1 - ], - "highThresholds": [ - 90.3453, - 91.3453 - ] - }, - { - "sensitivity": "Medium", - "lowThresholds": [ - 50.0, - 51.1 - ], - "highThresholds": [ - 70.3453, - 71.3453 - ] - } - ] - } - } - } -} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaseline.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaseline.json deleted file mode 100644 index 2c84cad30ea4..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaseline.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metricName": "PercentageCpu", - "aggregation": "Average", - "interval": "PT1H", - "sensitivities": "Low,Medium", - "api-version": "2017-11-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", - "type": "Microsoft.Insights/baseline", - "name": { - "value": "PercentageCpu" - }, - "properties": { - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "aggregation": "Average", - "interval": "PT1H", - "timestamps": [ - "2017-04-14T02:20:00Z", - "2017-04-14T03:20:00Z" - ], - "baseline": [ - { - "sensitivity": "Low", - "lowThresholds": [ - 30.0, - 31.1 - ], - "highThresholds": [ - 90.3453, - 91.3453 - ] - }, - { - "sensitivity": "Medium", - "lowThresholds": [ - 50.0, - 51.1 - ], - "highThresholds": [ - 70.3453, - 71.3453 - ] - } - ] - } - } - } - } -} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaselineMetadata.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaselineMetadata.json deleted file mode 100644 index 0f6ea5ff333d..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaselineMetadata.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metricName": "PercentageCpu", - "aggregation": "Average", - "interval": "PT1H", - "resulttype": "metadata", - "api-version": "2017-11-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", - "type": "Microsoft.Insights/baseline", - "name": { - "value": "PercentageCpu" - }, - "properties": { - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "aggregation": "Average", - "interval": "PT1H", - "metadata": [ - { - "name": "CurrentTrainingState", - "value": "Trained" - }, - { - "name": "SelectedModel", - "value": "AdjustedBoxplot" - } - ] - } - } - } - } -} 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 deleted file mode 100644 index d2ba6d2ba226..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/baseline_API.json +++ /dev/null @@ -1,487 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "MonitorManagementClient", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2018-09-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/{resourceUri}/providers/Microsoft.Insights/baseline/{metricName}": { - "get": { - "tags": [ - "Baseline" - ], - "operationId": "MetricBaseline_Get", - "description": "**Gets the baseline values for a specific metric**.", - "parameters": [ - { - "$ref": "#/parameters/ExtendedResourceUriParameter" - }, - { - "$ref": "#/parameters/MetricNameParameter" - }, - { - "$ref": "#/parameters/TimespanParameter" - }, - { - "$ref": "#/parameters/IntervalParameter" - }, - { - "$ref": "#/parameters/AggregationParameter" - }, - { - "$ref": "#/parameters/SensitivitiesParameter" - }, - { - "$ref": "#/parameters/BaselineResultTypeParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/MetricNamespaceParameter" - }, - { - "name": "$filter", - "in": "query", - "type": "string", - "description": "The **$filter** is used to describe a set of dimensions with their concrete values which produce a specific metric's time series, in which a baseline is requested for.", - "required": false - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to get the list of metric values.", - "schema": { - "$ref": "#/definitions/BaselineResponse" - } - } - }, - "x-ms-examples": { - "Get Metric for data": { - "$ref": "./examples/GetBaseline.json" - }, - "Get Metric for metadata": { - "$ref": "./examples/GetBaselineMetadata.json" - } - } - } - }, - "/{resourceUri}/providers/Microsoft.Insights/baseline": { - "get": { - "tags": [ - "Baseline" - ], - "operationId": "Baseline_Get", - "description": "**Gets the baseline values for a resource**.", - "parameters": [ - { - "$ref": "#/parameters/ExtendedResourceUriParameter" - }, - { - "$ref": "#/parameters/MetricNamesParameter" - }, - { - "$ref": "#/parameters/TimespanParameter" - }, - { - "$ref": "#/parameters/IntervalParameter" - }, - { - "$ref": "#/parameters/AggregationParameter" - }, - { - "$ref": "#/parameters/SensitivitiesParameter" - }, - { - "$ref": "#/parameters/BaselineResultTypeParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/MetricNamespaceParameter" - }, - { - "name": "$filter", - "in": "query", - "type": "string", - "description": "The **$filter** is used to describe a set of dimensions with their concrete values which produce a specific metric's time series, in which a baseline is requested for.", - "required": false - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to get the list of metric values.", - "schema": { - "$ref": "#/definitions/BaselineResponse" - } - } - }, - "x-ms-examples": { - "Get Metric for data": { - "$ref": "./examples/GetBaseline.json" - } - } - } - } - }, - "definitions": { - "LocalizableString": { - "required": [ - "value" - ], - "properties": { - "value": { - "type": "string", - "description": "The invariant value." - }, - "localizedValue": { - "type": "string", - "description": "The locale specific value." - } - }, - "description": "The localizable string class." - }, - "BaselineMetadataValue": { - "properties": { - "name": { - "$ref": "#/definitions/LocalizableString", - "description": "The name of the metadata." - }, - "value": { - "type": "string", - "description": "The value of the metadata." - } - }, - "description": "Represents a baseline metadata value." - }, - "ErrorResponse": { - "description": "Describes the format of Error response.", - "type": "object", - "properties": { - "code": { - "description": "Error code", - "type": "string" - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } - } - }, - "BaselineResponse": { - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "The metric baseline ID." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "The resource type of the baseline resource." - }, - "name": { - "$ref": "#/definitions/LocalizableString", - "readOnly": true, - "description": "The name and the display name of the metric, i.e. it is localizable string." - }, - "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." - }, - "baseline": { - "type": "array", - "items": { - "$ref": "#/definitions/Baseline" - }, - "description": "The baseline values for each sensitivity." - }, - "metdata": { - "type": "array", - "items": { - "$ref": "#/definitions/BaselineMetadataValue" - }, - "description": "The baseline metadata values." - }, - "predictionResultType": { - "type": "integer", - "format": "int32", - "enum": [ - 0, - 1, - 2 - ], - "x-ms-enum": { - "name": "PredictionResultType", - "modelAsString": false - }, - "description": "The prediction result type of the baseline." - }, - "errorType": { - "type": "integer", - "format": "int32", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 100, - 200 - ], - "x-ms-enum": { - "name": "ErrorType", - "modelAsString": false - }, - "description": "The error type of the baseline." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/BaselineProperties", - "description": "The properties of the baseline." - } - }, - "description": "The response to a baseline query." - }, - "BaselineProperties": { - "properties": { - "timespan": { - "type": "string", - "description": "The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested." - }, - "interval": { - "type": "string", - "format": "duration", - "description": "The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made." - }, - "aggregation": { - "type": "string", - "description": "The aggregation type of the metric." - }, - "internalOperationId": { - "type": "string", - "readOnly": true, - "description": "internal operation id" - } - }, - "description": "The baseline properties class." - }, - "Baseline": { - "type": "object", - "properties": { - "sensitivity": { - "type": "string", - "enum": [ - "Low", - "Medium", - "High" - ], - "x-ms-enum": { - "name": "Sensitivity", - "modelAsString": false - }, - "description": "The sensitivity of the baseline." - }, - "lowThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single low threshold value." - }, - "description": "The low thresholds of the baseline." - }, - "highThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "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." - }, - "PredictionResultType": { - "type": "integer", - "format": "int32", - "enum": [ - 0, - 1, - 2 - ], - "x-ms-enum": { - "name": "PredictionResultType", - "modelAsString": false - }, - "description": "The prediction result type of the baseline." - }, - "ErrorType": { - "type": "integer", - "format": "int32", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 100, - 200 - ], - "x-ms-enum": { - "name": "ErrorType", - "modelAsString": false - }, - "description": "The error type of the baseline." - } - }, - "required": [ - "sensitivity", - "lowThresholds", - "highThresholds" - ], - "description": "The baseline values for a single sensitivity value." - } - }, - "parameters": { - "ExtendedResourceUriParameter": { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "MetricNameParameter": { - "name": "metricName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the metric to retrieve the baseline for.", - "x-ms-parameter-location": "method" - }, - "TimespanParameter": { - "name": "timespan", - "in": "query", - "required": false, - "type": "string", - "description": "The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.", - "x-ms-parameter-location": "method" - }, - "IntervalParameter": { - "name": "interval", - "in": "query", - "required": false, - "type": "string", - "format": "duration", - "description": "The interval (i.e. timegrain) of the query.", - "x-ms-parameter-location": "method" - }, - "MetricNamesParameter": { - "name": "metricnames", - "in": "query", - "required": false, - "type": "string", - "description": "The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**", - "x-ms-parameter-location": "method" - }, - "AggregationParameter": { - "name": "aggregation", - "in": "query", - "required": false, - "type": "string", - "description": "The aggregation type of the metric to retrieve the baseline for.", - "x-ms-parameter-location": "method" - }, - "SensitivitiesParameter": { - "name": "sensitivities", - "in": "query", - "required": false, - "type": "string", - "description": "The list of sensitivities (comma separated) to retrieve.", - "x-ms-parameter-location": "method" - }, - "BaselineResultTypeParameter": { - "name": "resultType", - "in": "query", - "type": "string", - "enum": [ - "Data", - "Metadata" - ], - "x-ms-enum": { - "name": "ResultType", - "modelAsString": false - }, - "description": "Allows retrieving only metadata of the baseline. On data request all information is retrieved.", - "x-ms-parameter-location": "method", - "required": false - }, - "MetricNamespaceParameter": { - "name": "metricnamespace", - "in": "query", - "required": false, - "type": "string", - "description": "Metric namespace to query metric definitions for.", - "x-ms-parameter-location": "method" - } - } -} 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 deleted file mode 100644 index cf417bea0957..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json +++ /dev/null @@ -1,222 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "MonitorManagementClient", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2018-09-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/{resourceUri}/providers/Microsoft.Insights/calculatebaseline": { - "post": { - "tags": [ - "Baseline" - ], - "operationId": "MetricBaseline_CalculateBaseline", - "description": "**Lists the baseline values for a resource**.", - "parameters": [ - { - "$ref": "#/parameters/ExtendedResourceUriParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "TimeSeriesInformation", - "description": "Information that need to be specified to calculate a baseline on a time series.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/TimeSeriesInformation" - } - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to get the list of metric values.", - "schema": { - "$ref": "#/definitions/CalculateBaselineResponse" - } - } - }, - "x-ms-examples": { - "Calculate baseline": { - "$ref": "./examples/CalculateBaseline.json" - } - } - } - } - }, - "definitions": { - "ErrorResponse": { - "description": "Describes the format of Error response.", - "type": "object", - "properties": { - "code": { - "description": "Error code", - "type": "string" - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } - } - }, - "TimeSeriesInformation": { - "properties": { - "sensitivities": { - "type": "array", - "items": { - "type": "string", - "description": "The requested sensitivity for calculating the baseline." - }, - "description": "The list of sensitivities for calculating the baseline." - }, - "values": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single metric value." - }, - "description": "The metric values to calculate 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": [ - "sensitivities", - "values" - ], - "description": "The time series info needed for calculating the baseline." - }, - "CalculateBaselineResponse": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "The resource type of the baseline resource." - }, - "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." - }, - "baseline": { - "type": "array", - "items": { - "$ref": "./baseline_API.json#/definitions/Baseline" - }, - "description": "The baseline values for each sensitivity." - }, - "statistics": { - "type": "object", - "properties": { - "isEligible": { - "type": "boolean", - "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" - }, - "internalOperationId": { - "type": "string", - "readOnly": true, - "description": "internal operation id" - }, - "errorType": { - "type": "integer", - "format": "int32", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 100, - 200 - ], - "x-ms-enum": { - "name": "ErrorType", - "modelAsString": false - }, - "description": "The error type for calculating the baseline." - } - }, - "required": [ - "type", - "baseline" - ], - "description": "The response to a calculate baseline call." - } - }, - "parameters": { - "ExtendedResourceUriParameter": { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - } - } -} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/CalculateBaseline.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/CalculateBaseline.json deleted file mode 100644 index 904f1d3a3ef7..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/CalculateBaseline.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", - "api-version": "2018-09-01", - "TimeSeriesInformation": { - "sensitivities": [ - "Low", - "Medium" - ], - "values": [ - 61.0, - 62.0 - ] - } - }, - "responses": { - "200": { - "body": { - "type": "Microsoft.Insights/calculatebaseline", - "baseline": [ - { - "sensitivity": "Low", - "lowThresholds": [ - 30.0, - 31.1 - ], - "highThresholds": [ - 90.3453, - 91.3453 - ] - }, - { - "sensitivity": "Medium", - "lowThresholds": [ - 50.0, - 51.1 - ], - "highThresholds": [ - 70.3453, - 71.3453 - ] - } - ] - } - } - } -} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaseline.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaseline.json deleted file mode 100644 index 24cb0738a22a..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaseline.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "parameters": { - "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metricName": "PercentageCpu", - "aggregation": "Average", - "interval": "PT1H", - "sensitivities": "Low,Medium", - "api-version": "2018-09-01" - }, - "responses": { - "200": { - "body": { - "type": "microsoft.insights/baseline", - "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", - "name": { - "value": "PercentageCpu", - "localizedValue": null - }, - "properties": { - "interval": "PT1H", - "aggregation": "Average", - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "internalOperationId": "ab6700cb-7579-42ea-a032-ec0be8537564" - }, - "timestamps": [ - "2021-01-08T00:00:00Z", - "2021-01-08T00:05:00Z", - "2021-01-08T00:10:00Z", - "2021-01-08T00:15:00Z", - "2021-01-08T00:20:00Z", - "2021-01-08T00:25:00Z", - "2021-01-08T00:30:00Z", - "2021-01-08T00:35:00Z", - "2021-01-08T00:40:00Z", - "2021-01-08T00:45:00Z", - "2021-01-08T00:50:00Z", - "2021-01-08T00:55:00Z", - "2021-01-08T01:00:00Z" - ], - "baseline": [ - { - "sensitivity": "Low", - "lowThresholds": [ - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6 - ], - "highThresholds": [ - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14 - ], - "timestamps": [ - "2021-01-08T00:00:00Z", - "2021-01-08T00:05:00Z", - "2021-01-08T00:10:00Z", - "2021-01-08T00:15:00Z", - "2021-01-08T00:20:00Z", - "2021-01-08T00:25:00Z", - "2021-01-08T00:30:00Z", - "2021-01-08T00:35:00Z", - "2021-01-08T00:40:00Z", - "2021-01-08T00:45:00Z", - "2021-01-08T00:50:00Z", - "2021-01-08T00:55:00Z", - "2021-01-08T01:00:00Z" - ], - "PredictionResultType": 1, - "ErrorType": 0 - } - ], - "metdata": [ - { - "name": "", - "value": "a" - }, - { - "name": "", - "value": "" - } - ], - "predictionResultType": 1, - "errorType": 0 - } - } - } -} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaselineMetadata.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaselineMetadata.json deleted file mode 100644 index 9bda89e44ccd..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaselineMetadata.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metricName": "PercentageCpu", - "aggregation": "Average", - "interval": "PT1H", - "resulttype": "metadata", - "api-version": "2018-09-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", - "type": "Microsoft.Insights/baseline", - "name": { - "value": "PercentageCpu" - }, - "properties": { - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "aggregation": "Average", - "interval": "PT1H" - }, - "metdata": [ - { - "name": "CurrentTrainingState", - "value": "Trained" - }, - { - "name": "SelectedModel", - "value": "AdjustedBoxplot" - } - ] - } - } - } -} diff --git a/specification/monitor/resource-manager/readme.md b/specification/monitor/resource-manager/readme.md index b2d612c0a861..b47dc96d0e0d 100644 --- a/specification/monitor/resource-manager/readme.md +++ b/specification/monitor/resource-manager/readme.md @@ -423,8 +423,6 @@ input-file: - Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json - Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json - Microsoft.Insights/stable/2018-01-01/metrics_API.json -- Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json -- Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json - Microsoft.Insights/stable/2018-03-01/metricAlert_API.json - Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json - Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json @@ -451,8 +449,6 @@ input-file: - Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json - Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json - Microsoft.Insights/stable/2018-01-01/metrics_API.json -- Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json -- Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json - Microsoft.Insights/stable/2018-03-01/metricAlert_API.json - Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json - Microsoft.Insights/stable/2018-09-01/metricBaselines_API.json @@ -478,8 +474,6 @@ input-file: - Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json - Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json - Microsoft.Insights/stable/2018-01-01/metrics_API.json -- Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json -- Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json - Microsoft.Insights/stable/2018-03-01/metricAlert_API.json - Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json ``` @@ -504,8 +498,6 @@ input-file: - Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json - Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json - Microsoft.Insights/stable/2018-01-01/metrics_API.json -- Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json -- Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json ``` ### Tag: package-2017-12 @@ -528,8 +520,6 @@ input-file: - Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json - Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json - Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json -- Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json -- Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json ``` ### Tag: package-2017-09 @@ -552,8 +542,6 @@ input-file: - Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json - Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json - Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json -- Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json -- Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json ``` ### Tag: package-2017-09-preview-only @@ -629,8 +617,6 @@ These settings apply only when `--tag=package-2018-09-01-only` is specified on t ``` yaml $(tag) == 'package-2018-09-01-only' input-file: - Microsoft.Insights/stable/2018-09-01/actionGroups_API.json -- Microsoft.Insights/stable/2018-09-01/baseline_API.json -- Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json ``` ### Tag: package-2018-06-01-preview-only @@ -681,16 +667,6 @@ input-file: - Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json ``` -### Tag: package-2017-11-01-preview-only - -These settings apply only when `--tag=package-2017-11-01-preview-only` is specified on the command line. - -``` yaml $(tag) == 'package-2017-11-01-preview-only' -input-file: -- Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json -- Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json -``` - ### Tag: package-2017-05-01-preview-only These settings apply only when `--tag=package-2017-05-01-preview-only` is specified on the command line. diff --git a/specification/monitor/resource-manager/readme.python.md b/specification/monitor/resource-manager/readme.python.md index fc394a53844a..9cbfd5c2b5f3 100644 --- a/specification/monitor/resource-manager/readme.python.md +++ b/specification/monitor/resource-manager/readme.python.md @@ -36,7 +36,6 @@ batch: - tag: package-2018-03-01-only - tag: package-2018-01-01-only - tag: package-2017-12-01-preview-only - - tag: package-2017-11-01-preview-only - tag: package-2017-05-01-preview-only - tag: package-2017-04-01-only - tag: package-2017-03-01-preview-only @@ -241,16 +240,6 @@ namespace: $(python-base-namespace).v2017_12_01_preview output-folder: $(python-sdks-folder)/$(python-base-folder)/v2017_12_01_preview ``` -### Tag: package-2017-11-01-preview-only and python - -These settings apply only when `--tag=package-2017-11-01-preview-only --python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(tag) == 'package-2017-11-01-preview-only' -namespace: $(python-base-namespace).v2017_11_01_preview -output-folder: $(python-sdks-folder)/$(python-base-folder)/v2017_11_01_preview -``` - ### Tag: package-2017-05-01-preview-only and python These settings apply only when `--tag=package-2017-05-01-preview-only --python` is specified on the command line.