-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consumption specifications for cost insights and reporting operations #3171
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is reportConfigs created under a resource group or under a subscription?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldnt it be created under an RG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is readonly?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-version
in the path should match theapi-version
in the spec).Quality of Swagger