Skip to content

Commit f615a4e

Browse files
ToddKingMSFTLeiwang3SQL
authored andcommitted
[Hub Generated] Review request for Microsoft.Insights to add version stable/2021-05-01 (Azure#16037)
* Adds base for updating Microsoft.Insights from version stable/2019-07-01 to version 2021-05-01 * Updates readme * Updates API version in new specs and examples * Copy 2018-01-01 metric definitions API and examples * Changes to add subscription scope metrics API * Fix post request example after fixing casing of parameter names * Addressed PR comments and moved common types to a common json file * Fix commonMonitoringTypes API version and formatting
1 parent d910bce commit f615a4e

17 files changed

+17359
-6
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,6 +1698,7 @@ Rolledback
16981698
Rollforward
16991699
rollouts
17001700
rolloverdetails
1701+
rollupby
17011702
rootfs
17021703
rosettanetprocessconfigurations
17031704
rotatediskencryptionkey
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2021-05-01",
5+
"title": "Common Monitoring types"
6+
},
7+
"paths": {},
8+
"definitions": {
9+
"LocalizableString": {
10+
"type": "object",
11+
"required": [
12+
"value"
13+
],
14+
"properties": {
15+
"value": {
16+
"type": "string",
17+
"description": "the invariant value."
18+
},
19+
"localizedValue": {
20+
"type": "string",
21+
"description": "the locale specific value."
22+
}
23+
},
24+
"description": "The localizable string class."
25+
},
26+
"MetricUnit": {
27+
"type": "string",
28+
"description": "The unit of the metric.",
29+
"enum": [
30+
"Count",
31+
"Bytes",
32+
"Seconds",
33+
"CountPerSecond",
34+
"BytesPerSecond",
35+
"Percent",
36+
"MilliSeconds",
37+
"ByteSeconds",
38+
"Unspecified",
39+
"Cores",
40+
"MilliCores",
41+
"NanoCores",
42+
"BitsPerSecond"
43+
],
44+
"x-ms-enum": {
45+
"name": "MetricUnit",
46+
"modelAsString": true
47+
}
48+
},
49+
"ErrorContract": {
50+
"title": "Error Response",
51+
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)",
52+
"type": "object",
53+
"properties": {
54+
"error": {
55+
"description": "The error object.",
56+
"$ref": "#/definitions/ErrorResponse"
57+
}
58+
}
59+
},
60+
"ErrorResponse": {
61+
"description": "Describes the format of Error response.",
62+
"type": "object",
63+
"properties": {
64+
"code": {
65+
"description": "Error code",
66+
"type": "string"
67+
},
68+
"message": {
69+
"description": "Error message indicating why the operation failed.",
70+
"type": "string"
71+
}
72+
}
73+
}
74+
},
75+
"parameters": {
76+
"ResourceUriParameter": {
77+
"name": "resourceUri",
78+
"in": "path",
79+
"required": true,
80+
"type": "string",
81+
"description": "The identifier of the resource.",
82+
"x-ms-parameter-location": "method",
83+
"x-ms-skip-url-encoding": true
84+
},
85+
"RegionParameter": {
86+
"name": "region",
87+
"in": "query",
88+
"required": true,
89+
"type": "string",
90+
"description": "The region where the metrics you want reside.",
91+
"x-ms-parameter-location": "method"
92+
},
93+
"MetricNamespaceParameter": {
94+
"name": "metricnamespace",
95+
"in": "query",
96+
"required": false,
97+
"type": "string",
98+
"description": "Metric namespace where the metrics you want reside.",
99+
"x-ms-parameter-location": "method"
100+
}
101+
}
102+
}

0 commit comments

Comments
 (0)