-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.Insights to add version …
…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
1 parent
612b792
commit 9f05615
Showing
17 changed files
with
17,359 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
.../monitor/resource-manager/Microsoft.Insights/stable/2021-05-01/commonMonitoringTypes.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
Oops, something went wrong.