Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,61 @@
"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",
Expand All @@ -253,28 +308,10 @@
"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."
"internalOperationId": {
"type": "string",
"readOnly": true,
"description": "internal operation id"
}
},
"description": "The baseline properties class."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,97 @@
"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",
"type": "Microsoft.Insights/baseline",
"name": {
"value": "PercentageCpu"
"value": "PercentageCpu",
"localizedValue": null
},
"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
]
}
]
}
"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
}
}
}
Expand Down