Skip to content

Commit 10f3923

Browse files
authored
[Hub Generated] Review request for Microsoft.Insights to add version stable/2018-09-01 (#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
1 parent cb2676d commit 10f3923

File tree

3 files changed

+454
-0
lines changed

3 files changed

+454
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"parameters": {
3+
"resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1",
4+
"timespan": "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z",
5+
"metricName": "Percentage Cpu",
6+
"aggregation": "average",
7+
"interval": "PT1H",
8+
"sensitivities": "Low,Medium",
9+
"api-version": "2018-09-01"
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"interval": "PT1H",
15+
"timespan": "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z",
16+
"namespace": "microsoft.compute/virtualmachines",
17+
"value": [
18+
{
19+
"id": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/SmartAnalytics-DEV-VM/providers/Microsoft.Compute/virtualMachines/DemoVM1/providers/microsoft.insights/metricBaselines/Percentage CPU",
20+
"type": "microsoft.insights/metricBaselines",
21+
"metricName": "Percentage CPU",
22+
"baselines": [
23+
{
24+
"aggregation": "average",
25+
"dimensions": [],
26+
"metadataValues": [
27+
{
28+
"name": "ErrorType",
29+
"value": "TooManyAnomalies"
30+
},
31+
{
32+
"name": "SeasonalityFrequency",
33+
"value": "288"
34+
}
35+
],
36+
"timestamps": [
37+
"2019-03-12T11:00:00.000Z",
38+
"2019-03-12T12:00:00.000Z"
39+
],
40+
"data": [
41+
{
42+
"sensitivity": "Low",
43+
"lowThresholds": [
44+
30.0,
45+
31.1
46+
],
47+
"highThresholds": [
48+
90.3453,
49+
91.3453
50+
]
51+
},
52+
{
53+
"sensitivity": "Medium",
54+
"lowThresholds": [
55+
50.0,
56+
51.1
57+
],
58+
"highThresholds": [
59+
70.3453,
60+
71.3453
61+
]
62+
}
63+
]
64+
}
65+
]
66+
}
67+
]
68+
}
69+
}
70+
}
71+
}

0 commit comments

Comments
 (0)