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 (Azure#12314)

* copied metricBaselines from 2019

* Added 2018 api version for metricBaselines

* Added example file of new api

* fixed prettier

* fixed api version

* added object type

* fixed api version and semantic error

* added metricBaselines to readme

* fixed prettier for 2019 version

* removed metricBaselines 2018 from package

* added back the reference to 2018

* removed reference

* added reference

* Trying to edit description

* Trying to fix linting error

* reverted description

* changed description due to validation error

* trying to reference to api version from types

* added reference to 2018-09
  • Loading branch information
yashmuel authored and mkarmark committed Jul 20, 2021
1 parent 6c35868 commit 88926a1
Show file tree
Hide file tree
Showing 3 changed files with 454 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"parameters": {
"resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1",
"timespan": "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z",
"metricName": "Percentage Cpu",
"aggregation": "average",
"interval": "PT1H",
"sensitivities": "Low,Medium",
"api-version": "2018-09-01"
},
"responses": {
"200": {
"body": {
"interval": "PT1H",
"timespan": "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z",
"namespace": "microsoft.compute/virtualmachines",
"value": [
{
"id": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/SmartAnalytics-DEV-VM/providers/Microsoft.Compute/virtualMachines/DemoVM1/providers/microsoft.insights/metricBaselines/Percentage CPU",
"type": "microsoft.insights/metricBaselines",
"metricName": "Percentage CPU",
"baselines": [
{
"aggregation": "average",
"dimensions": [],
"metadataValues": [
{
"name": "ErrorType",
"value": "TooManyAnomalies"
},
{
"name": "SeasonalityFrequency",
"value": "288"
}
],
"timestamps": [
"2019-03-12T11:00:00.000Z",
"2019-03-12T12:00:00.000Z"
],
"data": [
{
"sensitivity": "Low",
"lowThresholds": [
30.0,
31.1
],
"highThresholds": [
90.3453,
91.3453
]
},
{
"sensitivity": "Medium",
"lowThresholds": [
50.0,
51.1
],
"highThresholds": [
70.3453,
71.3453
]
}
]
}
]
}
]
}
}
}
}
Loading

0 comments on commit 88926a1

Please sign in to comment.