Skip to content

Adding LogAnalytics to Compute spec#2383

Merged
jianghaolu merged 13 commits intoAzure:masterfrom
waynekuo:master
Feb 2, 2018
Merged

Adding LogAnalytics to Compute spec#2383
jianghaolu merged 13 commits intoAzure:masterfrom
waynekuo:master

Conversation

@waynekuo
Copy link
Contributor

@waynekuo waynekuo commented Jan 31, 2018

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

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@AutorestCI
Copy link

Did a commit to Azure/azure-sdk-for-python:
Azure/azure-sdk-for-python@f440fbc

@AutorestCI
Copy link

Did a commit to Azure/azure-sdk-for-go:
Azure/azure-sdk-for-go@5727437

@huangpf
Copy link
Contributor

huangpf commented Jan 31, 2018

@AutorestCI
Can you do a commit to Azure/azure-sdk-for-net?

@AutorestCI
Copy link

Did a commit to Azure/azure-sdk-for-python:
Azure/azure-sdk-for-python@713bf84

@AutorestCI
Copy link

This commit was treated and no generation was made for Azure/azure-sdk-for-go

@AutorestCI
Copy link

Did a commit to Azure/azure-sdk-for-python:
Azure/azure-sdk-for-python@4d053f6

@AutorestCI
Copy link

This commit was treated and no generation was made for Azure/azure-sdk-for-go

Copy link
Contributor

@jianghaolu jianghaolu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to reference the examples from the Swagger spec using x-ms-examples.

@AutorestCI
Copy link

This commit was treated and no generation was made for Azure/azure-sdk-for-go

@waynekuo
Copy link
Contributor Author

waynekuo commented Feb 1, 2018

Added references to example files.

@AutorestCI
Copy link

This commit was treated and no generation was made for Azure/azure-sdk-for-go

@AutorestCI
Copy link

This commit was treated and no generation was made for Azure/azure-sdk-for-python

1 similar comment
@AutorestCI
Copy link

This commit was treated and no generation was made for Azure/azure-sdk-for-python

},
"responses": {
"200": {
"body": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the Swagger, 200 doesn't return a response body.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the Swagger file now. 200 should return a response body. Missed the copy from our internal repo.

}
},
"responses": {
"200": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the Swagger, 200 doesn't return a response body.

"subscriptionId": "{subscription-id}",
"api-version": "2017-12-01",
"parameters": {
"location": "westus",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"location" is a top-level parameter.

"subscriptionId": "{subscription-id}",
"api-version": "2017-12-01",
"parameters": {
"location": "westus",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"location" is a top-level parameter.

@AutorestCI
Copy link

This commit was treated and no generation was made for Azure/azure-sdk-for-python

@AutorestCI
Copy link

Did a commit to Azure/azure-sdk-for-go:
Azure/azure-sdk-for-go@b89e10d

"location": "westus",
"api-version": "2017-12-01",
"parameters": {
"properties": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please extract everything out of both "RequestRateByIntervalInput" and "properties". The "parameters" section should contain the parameters in this format:

"<parameter-name>": <actual payload>

In this case, the actual payload is

{
  "intervalLength": "FiveMins",
  "blobContainerSasUri": "https://somesasuri",
  "fromTime": "2018-01-21T01:54:06.862601Z",
  "toTime": "2018-01-23T01:54:06.862601Z",
  "groupByResourceName": true
 }

You can see another example in compute here: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAScaleSetFromACustomImage.json#L8

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for the other example.

"body": ""
},
"202": {
"body": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

202 doesn't have a body either :) Same for the other example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reacted too quickly to your comment. Actually 202 doesn't have a response, but the long running async will give a response on 200. I just somehow missed that update from our internal repo.

@azuresdkciprbot
Copy link

Hi There,

I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result:

File: specification/compute/resource-manager/readme.md
Before the PR: Warning(s): 0 Error(s): 39
After the PR: Warning(s): 0 Error(s): 39

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

1 similar comment
@azuresdkciprbot
Copy link

Hi There,

I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result:

File: specification/compute/resource-manager/readme.md
Before the PR: Warning(s): 0 Error(s): 39
After the PR: Warning(s): 0 Error(s): 39

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@AutorestCI
Copy link

This commit was treated and no generation was made for Azure/azure-sdk-for-go

1 similar comment
@AutorestCI
Copy link

This commit was treated and no generation was made for Azure/azure-sdk-for-go

@AutorestCI
Copy link

Did a commit to Azure/azure-sdk-for-python:
Azure/azure-sdk-for-python@80a076c

@jianghaolu jianghaolu merged commit 0609009 into Azure:master Feb 2, 2018
@AutorestCI
Copy link

This commit was treated and no generation was made for Azure/azure-sdk-for-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants