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/2015-07-01 (#14103)

* Create metricDefinitions_API.json

* Update readme.md

* Create GetMetricDefinitions.json

* Update metricDefinitions_API.json

Fix resource provider casing

* Update metricDefinitions_API.json

Use standardized error response format

* Update metricDefinitions_API.json

Need to use same error response format for all apis in this api version

* Create operations_API.json

Add operations API

* Create OperationList.json

Add operations example

* Update readme.md

Add operations API

* Update operations_API.json

Fix the operations API

* Update readme.md

Add suppressions for DefaultErrorResponseSchema

* Update metricDefinitions_API.json

Fix autorest, lint, etc issues

* Update operations_API.json

Fix autorest / lint / etc issues

* Update GetMetricDefinitions.json

Update example to better match what is being returned now.

* Add OperationsAPI Lint suppression

Add OperationsAPI Lint suppression

* Suppress R3023 due to a bug with the rule not realizing the operations API is specified.

* Modify the suppression reason

* Make ResourceUriParameter in sync with the one in service diagnostics settings API

* Update readme.md

Revert back to package-2021-04 tag for the SDK to fix build breaks
  • Loading branch information
ToddKingMSFT authored Aug 24, 2021
1 parent 6de27dc commit 0efd11a
Show file tree
Hide file tree
Showing 5 changed files with 7,879 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,300 @@
{
"parameters": {
"resourceUri": "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
"api-version": "2015-07-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2/providers/microsoft.insights/metricdefinitions",
"value": [
{
"name": {
"value": "\\Processor Information(_Total)\\% Processor Time",
"localizedValue": "\\Processor Information(_Total)\\% Processor Time"
},
"category": "AllMetrics",
"startTime": "0001-01-01T00:00:00Z",
"endTime": "0001-01-01T00:00:00Z",
"unit": "Percent",
"primaryAggregationType": "Average",
"resourceUri": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
"resourceId": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
"metricAvailabilities": [
{
"timeGrain": "PT1H",
"retention": "P10675199DT2H48M5.4775807S",
"location": {
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
"tableInfo": [
{
"tableName": "WADMetricsPT1HP10DV2S20210320",
"startTime": "2021-03-20T00:00:00Z",
"endTime": "2021-03-30T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.9017747Z"
},
{
"tableName": "WADMetricsPT1HP10DV2S20210330",
"startTime": "2021-03-30T00:00:00Z",
"endTime": "2021-04-09T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.9017747Z"
},
{
"tableName": "WADMetricsPT1HP10DV2S20210409",
"startTime": "2021-04-09T00:00:00Z",
"endTime": "2021-04-19T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.9017747Z"
},
{
"tableName": "WADMetricsPT1HP10DV2S20210419",
"startTime": "2021-04-19T00:00:00Z",
"endTime": "2021-04-29T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.9017747Z"
}
],
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
}
},
{
"timeGrain": "PT1M",
"retention": "P10675199DT2H48M5.4775807S",
"location": {
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
"tableInfo": [
{
"tableName": "WADMetricsPT1MP10DV2S20210320",
"startTime": "2021-03-20T00:00:00Z",
"endTime": "2021-03-30T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.9477303Z"
},
{
"tableName": "WADMetricsPT1MP10DV2S20210330",
"startTime": "2021-03-30T00:00:00Z",
"endTime": "2021-04-09T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.9477303Z"
},
{
"tableName": "WADMetricsPT1MP10DV2S20210409",
"startTime": "2021-04-09T00:00:00Z",
"endTime": "2021-04-19T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.9477303Z"
},
{
"tableName": "WADMetricsPT1MP10DV2S20210419",
"startTime": "2021-04-19T00:00:00Z",
"endTime": "2021-04-29T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.9477303Z"
}
],
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
}
}
],
"id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2/providers/microsoft.insights/metricdefinitions/\\Processor Information(_Total)\\% Processor Time",
"supportedAggregationTypes": null
},
{
"name": {
"value": "\\Processor Information(_Total)\\% Privileged Time",
"localizedValue": "\\Processor Information(_Total)\\% Privileged Time"
},
"category": "AllMetrics",
"startTime": "0001-01-01T00:00:00Z",
"endTime": "0001-01-01T00:00:00Z",
"unit": "Percent",
"primaryAggregationType": "Average",
"resourceUri": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
"resourceId": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
"metricAvailabilities": [
{
"timeGrain": "PT1H",
"retention": "P10675199DT2H48M5.4775807S",
"location": {
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
"tableInfo": [
{
"tableName": "WADMetricsPT1HP10DV2S20210320",
"startTime": "2021-03-20T00:00:00Z",
"endTime": "2021-03-30T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
},
{
"tableName": "WADMetricsPT1HP10DV2S20210330",
"startTime": "2021-03-30T00:00:00Z",
"endTime": "2021-04-09T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
},
{
"tableName": "WADMetricsPT1HP10DV2S20210409",
"startTime": "2021-04-09T00:00:00Z",
"endTime": "2021-04-19T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
},
{
"tableName": "WADMetricsPT1HP10DV2S20210419",
"startTime": "2021-04-19T00:00:00Z",
"endTime": "2021-04-29T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
}
],
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
}
},
{
"timeGrain": "PT1M",
"retention": "P10675199DT2H48M5.4775807S",
"location": {
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
"tableInfo": [
{
"tableName": "WADMetricsPT1MP10DV2S20210320",
"startTime": "2021-03-20T00:00:00Z",
"endTime": "2021-03-30T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.8227259Z"
},
{
"tableName": "WADMetricsPT1MP10DV2S20210330",
"startTime": "2021-03-30T00:00:00Z",
"endTime": "2021-04-09T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.8227259Z"
},
{
"tableName": "WADMetricsPT1MP10DV2S20210409",
"startTime": "2021-04-09T00:00:00Z",
"endTime": "2021-04-19T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.8227259Z"
},
{
"tableName": "WADMetricsPT1MP10DV2S20210419",
"startTime": "2021-04-19T00:00:00Z",
"endTime": "2021-04-29T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.8227259Z"
}
],
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
}
}
],
"id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2/providers/microsoft.insights/metricdefinitions/\\Processor Information(_Total)\\% Privileged Time",
"supportedAggregationTypes": null
},
{
"name": {
"value": "\\Processor Information(_Total)\\% User Time",
"localizedValue": "\\Processor Information(_Total)\\% User Time"
},
"category": "AllMetrics",
"startTime": "0001-01-01T00:00:00Z",
"endTime": "0001-01-01T00:00:00Z",
"unit": "Percent",
"primaryAggregationType": "Average",
"resourceUri": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
"resourceId": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
"metricAvailabilities": [
{
"timeGrain": "PT1H",
"retention": "P10675199DT2H48M5.4775807S",
"location": {
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
"tableInfo": [
{
"tableName": "WADMetricsPT1HP10DV2S20210320",
"startTime": "2021-03-20T00:00:00Z",
"endTime": "2021-03-30T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7317955Z"
},
{
"tableName": "WADMetricsPT1HP10DV2S20210330",
"startTime": "2021-03-30T00:00:00Z",
"endTime": "2021-04-09T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7317955Z"
},
{
"tableName": "WADMetricsPT1HP10DV2S20210409",
"startTime": "2021-04-09T00:00:00Z",
"endTime": "2021-04-19T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7317955Z"
},
{
"tableName": "WADMetricsPT1HP10DV2S20210419",
"startTime": "2021-04-19T00:00:00Z",
"endTime": "2021-04-29T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7317955Z"
}
],
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
}
},
{
"timeGrain": "PT1M",
"retention": "P10675199DT2H48M5.4775807S",
"location": {
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
"tableInfo": [
{
"tableName": "WADMetricsPT1MP10DV2S20210320",
"startTime": "2021-03-20T00:00:00Z",
"endTime": "2021-03-30T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
},
{
"tableName": "WADMetricsPT1MP10DV2S20210330",
"startTime": "2021-03-30T00:00:00Z",
"endTime": "2021-04-09T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
},
{
"tableName": "WADMetricsPT1MP10DV2S20210409",
"startTime": "2021-04-09T00:00:00Z",
"endTime": "2021-04-19T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
},
{
"tableName": "WADMetricsPT1MP10DV2S20210419",
"startTime": "2021-04-19T00:00:00Z",
"endTime": "2021-04-29T00:00:00Z",
"sasToken": "omitted",
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
}
],
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
}
}
],
"id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2/providers/microsoft.insights/metricdefinitions/\\Processor Information(_Total)\\% User Time",
"supportedAggregationTypes": null
}
]
}
},
"default": {
"body": {
"code": "BadRequest",
"message": "The $filter parameter is not supported or not formatted correctly."
}
}
}
}
Loading

0 comments on commit 0efd11a

Please sign in to comment.