Consumption specifications for cost insights and reporting operations#3171
Consumption specifications for cost insights and reporting operations#3171lmazuel merged 10 commits intoAzure:masterfrom shalinved:master
Conversation
Automation for azure-libraries-for-javaNothing to generate for azure-libraries-for-java |
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-nodeA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-rubyNothing to generate for azure-sdk-for-ruby |
Automation for azure-sdk-for-goA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
|
Hi @shalinved
Thanks! |
|
@lmazuel - I just pushed a commit to fix bad reference for ReportConfigDelete. |
|
@fearthecowboy Autorest fails saying this:
But all linter rules are fine and green. Is this a linter problem? Autorest problem? |
|
I would think there needs to be a linter rule for this; https://github.com/Azure/autorest.common/blob/e85fe8a6a6c89a62c93708f7da4a8c555590c436/src/AzureExtensions.cs shows that it expects the |
ravbhatnagar
left a comment
There was a problem hiding this comment.
@shalinved - lets schedule a quick sync to go over these. I have a few questions about these. Also, please loop in folks from azureapirbcore - @johanste @devigned @fearthecowboy
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/reportconfigs/{reportConfigName}": { |
There was a problem hiding this comment.
Is reportConfigs created under a resource group or under a subscription?
There was a problem hiding this comment.
Shouldnt it be created under an RG
There was a problem hiding this comment.
We allow report configurations to be created under a subscription as well as under a RG. This determines scope of the data in the report. This is similar to what we do currently in Consumption Budgets as well.
| "type": "string", | ||
| "description": "Resource type." | ||
| }, | ||
| "tags": { |
|
Had a call with Shalin - 3 things -
|
|
adding @ms-premp |
|
@shalinved - any updates on this? @ms-premp ? |
|
@ravbhatnagar - Resource id changes are done. I am waiting for a decision on the name of Insights API. |
|
The names we came up with for the API are - |
|
@marbing - Adding Matt to the discussion |
|
@ravbhatnagar - I have pushed changes that would take care of points 1 and 2 above. |
|
looks good |
| "format": "date-time", | ||
| "type": "string" | ||
| }, | ||
| "nextLink": { |
There was a problem hiding this comment.
Why would this object get a nextLink? Just checking that it's accurate, since it's not usual and SDK won't be able to do anything with that, and polling would be manual.
There was a problem hiding this comment.
Hi @imazuel
This is intentional. The response here is a single object and not a list of object. The single object however, can have a very big payload in data field. Hence, the need for pagination. We are aware that SDKs will not be able to parse it automatically and we will have additional work to support this in SDK.
This pattern is already used in one other API v.i.z. Pricesheets. We had multiple back and forth discussions with ARM team and this is the only way we can come up with since the response here is a single ARM resource object and not an array of ARM resources.
lmazuel
left a comment
There was a problem hiding this comment.
One question to confirm something unusual, otherwise LGTM
|
@AutorestCI regenerate azure-sdk-for-go |
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-versionin the path should match theapi-versionin the spec).Quality of Swagger