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
…preview/2017-09-01-preview (#14104)

* Adds base for updating Microsoft.Insights from version preview/2017-05-01-preview to version 2017-09-01-preview

* Updates readme

* Updates API version in new specs and examples

* Update readme.md

* Delete diagnosticsSettingsCategories_API.json

* Delete diagnosticsSettings_API.json

* Delete subscriptionDiagnosticsSettings_API.json

* Delete listSubscriptionDiagnosticSettings.json

* Delete listDiagnosticSettingsCategories.json

* Delete listDiagnosticSettings.json

* Delete getSubscriptionDiagnosticSetting.json

* Delete getDiagnosticSettingsCategory.json

* Delete getDiagnosticSetting.json

* Delete deleteSubscriptionDiagnosticSetting.json

* Delete deleteDiagnosticSetting.json

* Delete createOrUpdateSubscriptionDiagnosticSetting.json

* Delete createOrUpdateDiagnosticSetting.json

* Update GetMetric.json

* Update GetMetricDefinitions.json

* Update GetMetricMetadata.json

* Update metricDefinitions_API.json

* Update metrics_API.json

* Update metrics_API.json

Make the Unit description casing consistent to fix lint error

* Update metricDefinitions_API.json

Make the units enum in metricsDefinitions_API consistent with the one in metrics_API

* Add operations API

Add operations API

* Create operations api example

* Update readme.md to include 2017-09-01-preview operations api

* Incorporate PR feedback

* Update operations_API.json

* Update operations_API.json

* Update OperationList.json

* Update OperationList.json

Add error example

* Update operations_API.json

Add error contract

* Update metricDefinitions_API.json

Fix lint errors and use standard error response format

* Update metrics_API.json

Fix lint errors and use standard error response format

* Update operations_API.json

Fix autorest generation problems

* Update operations_API.json

* Update readme.md

Add suppressions for the error response format

* Update metricDefinitions_API.json

Go back to the same ErrorResponse the rest of Azure Monitor uses

* Update metrics_API.json

Go back to the same ErrorResponse the rest of Azure Monitor uses

* Update metricDefinitions_API.json

Fix new lint errors

* Update metrics_API.json

Fix lint errors

* Update operations_API.json

Fix lint errors
  • Loading branch information
ToddKingMSFT authored Jun 11, 2021
1 parent e92d236 commit 6384b6c
Show file tree
Hide file tree
Showing 8 changed files with 11,097 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
{
"parameters": {
"resourceUri": "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default",
"timespan": "2021-04-21T01:00:00.000Z/2021-04-24T02:00:00.000Z",
"metric": "BlobCapacity",
"$filter": "BlobType eq '*'",
"top": "3",
"orderby": "Average asc",
"aggregation": "Average,count",
"interval": "PT1H",
"api-version": "2017-05-01-preview"
},
"responses": {
"200": {
"body": {
"cost": 659,
"timespan": "2021-04-21T01:00:00Z/2021-04-21T12:00:00Z",
"interval": "PT1H",
"value": [
{
"id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "BlobCapacity",
"localizedValue": "Blob Capacity"
},
"displayDescription": "The amount of storage used by the storage account’s Blob service in bytes.",
"unit": "Bytes",
"timeseries": [
{
"metadatavalues": [
{
"name": {
"value": "blobtype",
"localizedValue": "blobtype"
},
"value": "PageBlob"
}
],
"data": [
{
"timeStamp": "2021-04-21T01:00:00Z",
"average": 621492.0
},
{
"timeStamp": "2021-04-21T02:00:00Z",
"average": 621492.0
},
{
"timeStamp": "2021-04-21T03:00:00Z",
"average": 621492.0
},
{
"timeStamp": "2021-04-21T04:00:00Z",
"average": 621492.0
},
{
"timeStamp": "2021-04-21T05:00:00Z",
"average": 621492.0
},
{
"timeStamp": "2021-04-21T06:00:00Z",
"average": 621492.0
},
{
"timeStamp": "2021-04-21T07:00:00Z",
"average": 621492.0
},
{
"timeStamp": "2021-04-21T08:00:00Z",
"average": 621492.0
},
{
"timeStamp": "2021-04-21T09:00:00Z",
"average": 621492.0
},
{
"timeStamp": "2021-04-21T10:00:00Z",
"average": 621492.0
},
{
"timeStamp": "2021-04-21T11:00:00Z",
"average": 621492.0
}
]
},
{
"metadatavalues": [
{
"name": {
"value": "blobtype",
"localizedValue": "blobtype"
},
"value": "BlockBlob"
}
],
"data": [
{
"timeStamp": "2021-04-21T01:00:00Z",
"average": 4733.0
},
{
"timeStamp": "2021-04-21T02:00:00Z",
"average": 4733.0
},
{
"timeStamp": "2021-04-21T03:00:00Z",
"average": 4733.0
},
{
"timeStamp": "2021-04-21T04:00:00Z",
"average": 4733.0
},
{
"timeStamp": "2021-04-21T05:00:00Z",
"average": 4733.0
},
{
"timeStamp": "2021-04-21T06:00:00Z",
"average": 4733.0
},
{
"timeStamp": "2021-04-21T07:00:00Z",
"average": 4733.0
},
{
"timeStamp": "2021-04-21T08:00:00Z",
"average": 4733.0
},
{
"timeStamp": "2021-04-21T09:00:00Z",
"average": 4733.0
},
{
"timeStamp": "2021-04-21T10:00:00Z",
"average": 4733.0
},
{
"timeStamp": "2021-04-21T11:00:00Z",
"average": 4733.0
}
]
},
{
"metadatavalues": [
{
"name": {
"value": "blobtype",
"localizedValue": "blobtype"
},
"value": "Azure Data Lake Storage"
}
],
"data": [
{
"timeStamp": "2021-04-21T01:00:00Z",
"average": 0.0
},
{
"timeStamp": "2021-04-21T02:00:00Z",
"average": 0.0
},
{
"timeStamp": "2021-04-21T03:00:00Z",
"average": 0.0
},
{
"timeStamp": "2021-04-21T04:00:00Z",
"average": 0.0
},
{
"timeStamp": "2021-04-21T05:00:00Z",
"average": 0.0
},
{
"timeStamp": "2021-04-21T06:00:00Z",
"average": 0.0
},
{
"timeStamp": "2021-04-21T07:00:00Z",
"average": 0.0
},
{
"timeStamp": "2021-04-21T08:00:00Z",
"average": 0.0
},
{
"timeStamp": "2021-04-21T09:00:00Z",
"average": 0.0
},
{
"timeStamp": "2021-04-21T10:00:00Z",
"average": 0.0
},
{
"timeStamp": "2021-04-21T11:00:00Z",
"average": 0.0
}
]
}
],
"errorCode": "Success"
}
]
}
},
"default": {
"body": {
"code": "BadRequest",
"message": "Failed to find metric configuration for provider: Microsoft.Storage, resource Type: storageAccounts/blobServices, metric: BlobCsdapacity, Valid metrics: BlobCapacity,BlobCount,ContainerCount,IndexCapacity,Transactions,Ingress,Egress,SuccessServerLatency,SuccessE2ELatency,Availability"
}
}
}
}
Loading

0 comments on commit 6384b6c

Please sign in to comment.