forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
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.ResourceGraph to add ver…
…sion preview/2020-04-01-preview (Azure#11070) * Add missing subscriptionId and resourceGroup * Update 2020-04-01-preview * Split 2020-04-01-preview * Reverting changes for subscriptionId/resourceGroup; Fix casing for etag field. * Adding missing ResourcesHistory API to swagger * Fix API definition; Add an example * Fix multiple issues 1) Rename PropertyChangeType to ChangeType; 2) Add resourceId ResourceChangeData; 3) Add snapshotId to ResourceSnapshotData; 4) Fix model name in resourceshistory.json * Fix linter/model issues * Fix etag casing more places * Fix ErrorResponse modeling in resourcechanges.json and resourcehistory.json * Add default response for Operations API * Revert renaming of PropertyChangeType * Add changeType to swagger * Revert "Add changeType to swagger" This reverts commit 5bfd7fb. * Fix swagger for resourcesHistory Co-authored-by: Youke Shen <yoshen@microsoft.com>
- Loading branch information
Showing
15 changed files
with
719 additions
and
314 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
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
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
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
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
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
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
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
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
60 changes: 60 additions & 0 deletions
60
...ager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesHistoryGet.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,60 @@ | ||
{ | ||
"title": "Resource History Query", | ||
"description": "A resource history query.", | ||
"parameters": { | ||
"api-version": "2020-04-01-preview", | ||
"request": { | ||
"subscriptions": [ | ||
"a7f33fdb-e646-4f15-89aa-3a360210861e" | ||
], | ||
"query": "where name =~ 'cpu-utilization' | project id, name, properties", | ||
"options": { | ||
"interval": { | ||
"start": "2020-11-12T01:00:00.0000000Z", | ||
"end": "2020-11-12T01:25:00.0000000Z" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"count": 2, | ||
"snapshots": { | ||
"columns": [ | ||
{ | ||
"name": "id", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "name", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "properties", | ||
"type": "object" | ||
} | ||
], | ||
"rows": [ | ||
[ | ||
"/subscriptions/a7f33fdb-e646-4f15-89aa-3a360210861e/resourceGroups/meya-test-rg/providers/Microsoft.Compute/virtualMachines/meya-win-eus/providers/Microsoft.WorkloadMonitor/monitors/cpu-utilization", | ||
"cpu-utilization", | ||
{ | ||
"monitorName": "", | ||
"currentStateFirstObservedTimestamp": "" | ||
} | ||
], | ||
[ | ||
"/subscriptions/a7f33fdb-e646-4f15-89aa-3a360210861e/resourceGroups/meya-test-rg/providers/Microsoft.Compute/virtualMachines/meya-win-eus/providers/Microsoft.WorkloadMonitor/monitors/cpu-utilization", | ||
"cpu-utilization", | ||
{ | ||
"monitorName": "test", | ||
"currentStateFirstObservedTimestamp": "" | ||
} | ||
] | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.