Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.Insights to add version …
Browse files Browse the repository at this point in the history
…stable/2018-09-01 (#12496)

* fixing swagger correctness stuff

* changed example file

* unfixed typo

* PR fixes

* PR fixes

* some PR fixes

* try to change to metdata

* trying to fix metadatajson

* added metdata to custom-words

* refer to baseline def from calc baselines

* changed timestamps

* changed location of metdata custom word

* changed reference

* changed back timestamps
  • Loading branch information
yashmuel authored Jan 28, 2021
1 parent b5e19dc commit fc24857
Show file tree
Hide file tree
Showing 5 changed files with 191 additions and 119 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2071,6 +2071,7 @@ ProviderHub
checkin
regionality
Resource
metdata
Metastores
maintenancewindows
Logix
Expand Down
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 Expand Up @@ -321,6 +358,38 @@
"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": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"baseline": {
"type": "array",
"items": {
"$ref": "#/definitions/Baseline"
"$ref": "./baseline_API.json#/definitions/Baseline"
},
"description": "The baseline values for each sensitivity."
},
Expand Down Expand Up @@ -188,57 +188,6 @@
"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": {
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
"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"
}
]
}
"interval": "PT1H"
},
"metdata": [
{
"name": "CurrentTrainingState",
"value": "Trained"
},
{
"name": "SelectedModel",
"value": "AdjustedBoxplot"
}
]
}
}
}
Expand Down

0 comments on commit fc24857

Please sign in to comment.