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/2021-05-01 (#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
  • Loading branch information
ToddKingMSFT authored Sep 23, 2021
1 parent 612b792 commit 9f05615
Show file tree
Hide file tree
Showing 17 changed files with 17,359 additions and 6 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1698,6 +1698,7 @@ Rolledback
Rollforward
rollouts
rolloverdetails
rollupby
rootfs
rosettanetprocessconfigurations
rotatediskencryptionkey
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"swagger": "2.0",
"info": {
"version": "2021-05-01",
"title": "Common Monitoring types"
},
"paths": {},
"definitions": {
"LocalizableString": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string",
"description": "the invariant value."
},
"localizedValue": {
"type": "string",
"description": "the locale specific value."
}
},
"description": "The localizable string class."
},
"MetricUnit": {
"type": "string",
"description": "The unit of the metric.",
"enum": [
"Count",
"Bytes",
"Seconds",
"CountPerSecond",
"BytesPerSecond",
"Percent",
"MilliSeconds",
"ByteSeconds",
"Unspecified",
"Cores",
"MilliCores",
"NanoCores",
"BitsPerSecond"
],
"x-ms-enum": {
"name": "MetricUnit",
"modelAsString": true
}
},
"ErrorContract": {
"title": "Error Response",
"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.)",
"type": "object",
"properties": {
"error": {
"description": "The error object.",
"$ref": "#/definitions/ErrorResponse"
}
}
},
"ErrorResponse": {
"description": "Describes the format of Error response.",
"type": "object",
"properties": {
"code": {
"description": "Error code",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
}
}
}
},
"parameters": {
"ResourceUriParameter": {
"name": "resourceUri",
"in": "path",
"required": true,
"type": "string",
"description": "The identifier of the resource.",
"x-ms-parameter-location": "method",
"x-ms-skip-url-encoding": true
},
"RegionParameter": {
"name": "region",
"in": "query",
"required": true,
"type": "string",
"description": "The region where the metrics you want reside.",
"x-ms-parameter-location": "method"
},
"MetricNamespaceParameter": {
"name": "metricnamespace",
"in": "query",
"required": false,
"type": "string",
"description": "Metric namespace where the metrics you want reside.",
"x-ms-parameter-location": "method"
}
}
}
Loading

0 comments on commit 9f05615

Please sign in to comment.