-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reports API moved from stable to preview version with addition of doc…
…umentation of a couple of new APIs (#3640) * Consumption specifications for cost insights and reporting operations * Fixed $ref for ReportConfigDelete * Silly me!! Fixed bad reference again * Fixed schema validation issues * Fixing validation errors around datetime and dynamic respones * Fixed parameters in examples * Fixed parameter name in example * Removed x-ms-odata method for POST op * Fixed ARM review comments * Moved reports and usage analysis from microsoft.consumption to microsoft.costmanagament * Merged with master again * Updated reports api documentation * Undo remove of API from stable version
- Loading branch information
1 parent
d087618
commit 21d580e
Showing
11 changed files
with
653 additions
and
175 deletions.
There are no files selected for viewing
488 changes: 376 additions & 112 deletions
488
.../resource-manager/Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
12 changes: 12 additions & 0 deletions
12
...manager/Microsoft.CostManagement/preview/2018-08-01-preview/examples/ReportExecution.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,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-09-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "MYDEVTESTRG", | ||
"reportName": "TestReport" | ||
}, | ||
"responses": { | ||
"200": { | ||
} | ||
} | ||
} |
203 changes: 203 additions & 0 deletions
203
...ger/Microsoft.CostManagement/preview/2018-08-01-preview/examples/ReportExecutionList.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,203 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-09-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "MYDEVTESTRG" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", | ||
"name": null, | ||
"type": null, | ||
"eTag": null, | ||
"properties": { | ||
"executionType": "OnDemand", | ||
"status": "Completed", | ||
"submittedBy": "john.doe@gmail.com", | ||
"submittedTime": "2018-08-03T07:52:15.6016681Z", | ||
"processingStartTime": "2018-08-03T07:52:16.9123797Z", | ||
"processingEndTime": "2018-08-03T07:52:28.0373318Z", | ||
"fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", | ||
"reportSettings": { | ||
"format": "Csv", | ||
"deliveryInfo": { | ||
"destination": { | ||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", | ||
"container": "reports", | ||
"rootFolderPath": "ScheduledTestsForJohnDoe" | ||
} | ||
}, | ||
"definition": { | ||
"type": "Usage", | ||
"timeframe": "Custom", | ||
"timePeriod": { | ||
"from": "2018-06-01T00:00:00Z", | ||
"to": "2018-10-31T00:00:00Z" | ||
}, | ||
"dataset": { | ||
"granularity": "Daily", | ||
"configuration": { | ||
"columns": [ | ||
"Date", | ||
"MeterId", | ||
"InstanceId", | ||
"ResourceLocation", | ||
"PreTaxCost" | ||
] | ||
}, | ||
"aggregation": { | ||
"costSum": { | ||
"name": "PreTaxCost", | ||
"function": "Sum" | ||
} | ||
}, | ||
"grouping": [ | ||
{ | ||
"type": "Dimension", | ||
"name": "SubscriptionName" | ||
} | ||
], | ||
"filter": { | ||
"and": [ | ||
{ | ||
"or": [ | ||
{ | ||
"dimension": { | ||
"name": "ResourceLocation", | ||
"operator": "In", | ||
"values": [ | ||
"East US", | ||
"West Europe" | ||
] | ||
} | ||
}, | ||
{ | ||
"tag": { | ||
"name": "Environment", | ||
"operator": "In", | ||
"values": [ | ||
"UAT", | ||
"Prod" | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"dimension": { | ||
"name": "ResourceGroup", | ||
"operator": "In", | ||
"values": [ | ||
"API" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", | ||
"name": null, | ||
"type": null, | ||
"eTag": null, | ||
"properties": { | ||
"executionType": "Scheduled", | ||
"status": "Completed", | ||
"submittedBy": "System", | ||
"submittedTime": "2018-08-03T09:03:58.5710244Z", | ||
"processingStartTime": "2018-08-03T09:03:58.5710244Z", | ||
"processingEndTime": "2018-08-03T09:04:19.7223808Z", | ||
"fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", | ||
"reportSettings": { | ||
"format": "Csv", | ||
"deliveryInfo": { | ||
"destination": { | ||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", | ||
"container": "reports", | ||
"rootFolderPath": "ScheduledTestsForJohnDoe" | ||
} | ||
}, | ||
"definition": { | ||
"type": "Usage", | ||
"timeframe": "Custom", | ||
"timePeriod": { | ||
"from": "2018-06-01T00:00:00Z", | ||
"to": "2018-10-31T00:00:00Z" | ||
}, | ||
"dataset": { | ||
"granularity": "Daily", | ||
"configuration": { | ||
"columns": [ | ||
"Date", | ||
"MeterId", | ||
"InstanceId", | ||
"ResourceLocation", | ||
"PreTaxCost" | ||
] | ||
}, | ||
"aggregation": { | ||
"costSum": { | ||
"name": "PreTaxCost", | ||
"function": "Sum" | ||
} | ||
}, | ||
"grouping": [ | ||
{ | ||
"type": "Dimension", | ||
"name": "SubscriptionName" | ||
} | ||
], | ||
"filter": { | ||
"and": [ | ||
{ | ||
"or": [ | ||
{ | ||
"dimension": { | ||
"name": "ResourceLocation", | ||
"operator": "In", | ||
"values": [ | ||
"East US", | ||
"West Europe" | ||
] | ||
} | ||
}, | ||
{ | ||
"tag": { | ||
"name": "Environment", | ||
"operator": "In", | ||
"values": [ | ||
"UAT", | ||
"Prod" | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"dimension": { | ||
"name": "ResourceGroup", | ||
"operator": "In", | ||
"values": [ | ||
"API" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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.