-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[Hub Generated] Review request for Microsoft.Insights to add version preview/2023-03-01-preview #23336
[Hub Generated] Review request for Microsoft.Insights to add version preview/2023-03-01-preview #23336
Conversation
Hi, @ToddKingMSFT Thanks for your PR. I am workflow bot for review process. Here are some small tips. Any feedback about review process or workflow bot, pls contact swagger and tools team. vscswagger@microsoft.com |
Swagger Validation Report
|
compared tags (via openapi-validator v2.0.0) | new version | base version |
---|---|---|
package-preview-2023-03 | package-preview-2023-03(6b48ede) | default(main) |
[must fix]The following errors/warnings are introduced by current PR:
Rule | Message | Related RPC [For API reviewers] |
---|---|---|
Operation might be pageable. Consider adding the x-ms-pageable extension. Location: Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json#L30 |
||
Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json#L37 |
||
The error property in the error response schema should be required.Location: Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json#L86 |
||
Error schema should define code and message properties as required.Location: Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json#L86 |
️⚠️
Avocado: 1 Warnings warning [Detail]
Rule | Message |
---|---|
The default tag contains multiple API versions swaggers. readme: specification/monitor/data-plane/readme.md tag: specification/monitor/data-plane/readme.md#tag-package-preview-2023-03 |
️️✔️
ApiReadinessCheck succeeded [Detail] [Expand]
️⚠️
~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]
API Test is not triggered due to precheck failure. Check pipeline log for details.
️️✔️
SwaggerAPIView succeeded [Detail] [Expand]
️️✔️
CadlAPIView succeeded [Detail] [Expand]
️️✔️
TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️
PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️
SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️
Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️
CadlValidation succeeded [Detail] [Expand]
Validation passes for CadlValidation.
️️✔️
TypeSpec Validation succeeded [Detail] [Expand]
Validation passes for TypeSpec Validation.
️️✔️
PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
Swagger Generation Artifacts
|
Generated ApiView
|
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.
Took a look and I think the examples should be updated and I think we should consider not documenting the region param
...or/data-plane/Microsoft.Insights/preview/2023-03-01-preview/examples/MetricBatchExample.json
Show resolved
Hide resolved
...or/data-plane/Microsoft.Insights/preview/2023-03-01-preview/examples/MetricBatchExample.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
...or/data-plane/Microsoft.Insights/preview/2023-03-01-preview/examples/MetricBatchExample.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Show resolved
Hide resolved
Has this API been reviewed by the API Stewardship Board? |
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
@ToddKingMSFT Why is this new API in data-plane but the existing API is in control plane? |
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.
I made a first pass on this API left a bunch of comments. Please have a look and resolve what you can before the API Review meeting.
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
The metric service is processing 13 billion requests a day and the ARM team has complained that this represents a dataplane API that is in the ARM control plane and has asked us to move to a dataplane. Additionally our customers are complaining that querying metrics is causing them to hit ARM throttling limits frequently thus why we are moving to a dataplane. |
Hi @ToddKingMSFT, Your PR has some issues. Please fix the CI sequentially by following the order of
|
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Outdated
Show resolved
Hide resolved
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Show resolved
Hide resolved
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.
Thanks for the fixes. This looks good for preview.
@azure/azure-sdk-api-approvers Anyone else want to give this a quick review? |
specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
Show resolved
Hide resolved
…preview/2023-03-01-preview (Azure#23336) * Adds base for updating preview from version 2018-09-01-preview/examples to version 2023-03-01-preview * Updates readme * Updates API version in new specs and examples * Add metricsbatch swagger * Convert dataplane swagger to openapi 2.0 * Fix response type * Update response schema * Lint fixes * Unexpected token fix * Prettier * PR comments * Comments * Add resourceid to custom words * More PR comments * Fix model * PR comment * Small fix to example request * Address feedback from review * Update custom words * Small fix * Change descriptions for localizable string * Add missing description * More feedback changes * Small grammar fixes * Update endpoint name * Update interval description --------- Co-authored-by: gulopesd <73562152+gulopesd@users.noreply.github.com>
This is a PR generated at OpenAPI Hub. You can view your work branch via this link.
Data Plane API - Pull Request
API Info: The Basics
Most of the information about your service should be captured in the issue that serves as your engagement record.
Is this review for (select one):
Change Scope
This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous Open API document (swagger) if applicable, and the root paths that have been updated.
❔Got questions? Need additional info?? We are here to help!
Contact us!
The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.
Click here for links to tools, specs, guidelines & other good stuff
Tooling
Guidelines & Specifications
Helpful Links
fix #23386