-
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
[HDInsight] Support the latest azure monitor api #14496
Merged
leniatgh
merged 22 commits into
Azure:master
from
aim-for-better:SupportAzureMonitor2021519
May 27, 2021
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
46e7cb8
Add networkProperties and clusterId
afc3561
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
75a1f51
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
34c9683
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
151f917
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
f271a42
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
92044fa
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
11e9fac
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
bbe65a3
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
a858456
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
2418dfb
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
891652d
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
3a250aa
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
f22e409
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
b59b60f
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
7b642ef
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
4b4ef5a
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
c840074
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
45ff4b5
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
75fffe7
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
4d31fcc
Add Azure Monitor API
1c47f55
Add azure monitor examples and modify descriptions and add related ap…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...rosoft.HDInsight/preview/2015-03-01-preview/examples/DisableLinuxClusterAzureMonitor.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,13 @@ | ||
{ | ||
"parameters": { | ||
"clusterName": "cluster1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-03-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...crosoft.HDInsight/preview/2015-03-01-preview/examples/EnableLinuxClusterAzureMonitor.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,16 @@ | ||
{ | ||
"parameters": { | ||
"clusterName": "cluster1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-03-01-preview", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"workspaceId": "a2090ead-8c9f-4fba-b70e-533e3e003163", | ||
"primaryKey": "**********" | ||
} | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...soft.HDInsight/preview/2015-03-01-preview/examples/GetLinuxClusterAzureMonitorStatus.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,16 @@ | ||
{ | ||
"parameters": { | ||
"clusterName": "cluster1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-03-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"clusterMonitoringEnabled": true, | ||
"workspaceId": "id" | ||
} | ||
} | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
...crosoft.HDInsight/stable/2018-06-01-preview/examples/DisableLinuxClusterAzureMonitor.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,13 @@ | ||
{ | ||
"parameters": { | ||
"clusterName": "cluster1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2018-06-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...icrosoft.HDInsight/stable/2018-06-01-preview/examples/EnableLinuxClusterAzureMonitor.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,16 @@ | ||
{ | ||
"parameters": { | ||
"clusterName": "cluster1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2018-06-01-preview", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"workspaceId": "a2090ead-8c9f-4fba-b70e-533e3e003163", | ||
"primaryKey": "**********" | ||
} | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...osoft.HDInsight/stable/2018-06-01-preview/examples/GetLinuxClusterAzureMonitorStatus.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,16 @@ | ||
{ | ||
"parameters": { | ||
"clusterName": "cluster1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2018-06-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"clusterMonitoringEnabled": true, | ||
"workspaceId": "id" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The PUT request body doesn't match the ARM standard pattern at all. I see properties workspaceId, primaryKey are exposed at top-level instead of having them under properties envelope. For more details, refer RPC here https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md#resource-request-properties-envelope
However, I understand the swagger already defined the extensions API and this PR is just adding an instance of extension resource. I would give the exception for this reason and sign off.
I would recommend to have a workItem/task on your side to correct the request/response formats in future new API versions.
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 @RamyasreeChakka, Thanks for your comment and approval.
it seems that the we follow the rule: the
workspaceId
andprimaryKey
under that properties of the AzureMonitorRequest definion. Could you please help me understand better about this rule so that our service can satisfy the ARM standard pattern next time?