-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add specs for microsoft.monitor RP #20026
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d0ea548
Add specs for microsoft.monitor RP
divyajay 103cf32
Split up operations API spec
divyajay 7643e5d
Prettier fixes
divyajay 9a025fe
Fix avocado warning
divyajay a92a9af
Delete unused example
divyajay 6f492f1
Attempt to fix ServiceAPIReadiness
divyajay 7599a69
Fix name of body parameter in examples
divyajay a03644d
Updates based on PR comments
divyajay c7927a4
Remove second reference to systemData
divyajay b0739e1
Switch operations api-version
divyajay 4fcc9f7
Empty commit to re-trigger build
divyajay ce2090e
Fix description
divyajay 45bcf0a
Fix SDK APIs
divyajay bb865cd
Add Canceled to possible values of provisioning state
divyajay 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
112 changes: 112 additions & 0 deletions
112
...resource-manager/Microsoft.Monitor/preview/2021-06-01-preview/examples/OperationsGet.json
This file contains hidden or 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,112 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "microsoft.monitor/accounts/read", | ||
"display": { | ||
"provider": "Microsoft Monitoring", | ||
"resource": "Monitoring Accounts", | ||
"operation": "Read Monitoring Accounts", | ||
"description": "Read any Monitoring Account" | ||
}, | ||
"isDataAction": false, | ||
"origin": "user, system" | ||
}, | ||
{ | ||
"name": "microsoft.monitor/accounts/write", | ||
"display": { | ||
"provider": "Microsoft Monitoring", | ||
"resource": "Monitoring Accounts", | ||
"operation": "Create or Update Monitoring Accounts", | ||
"description": "Create or Update any Monitoring Account" | ||
}, | ||
"isDataAction": false, | ||
"origin": "user, system" | ||
}, | ||
{ | ||
"name": "microsoft.monitor/accounts/delete", | ||
"display": { | ||
"provider": "Microsoft Monitoring", | ||
"resource": "Monitoring Accounts", | ||
"operation": "Delete Monitoring Accounts", | ||
"description": "Delete any Monitoring Account" | ||
}, | ||
"isDataAction": false, | ||
"origin": "user, system" | ||
}, | ||
{ | ||
"name": "microsoft.monitor/accounts/metrics/read", | ||
"display": { | ||
"provider": "Microsoft Monitoring", | ||
"resource": "Monitoring Accounts", | ||
"operation": "Read Monitoring Account metrics", | ||
"description": "Read Monitoring Account metrics" | ||
}, | ||
"isDataAction": false, | ||
"origin": "user, system" | ||
}, | ||
{ | ||
"name": "microsoft.monitor/accounts/metrics/namespaces/read", | ||
"display": { | ||
"provider": "Microsoft Monitoring", | ||
"resource": "Monitoring Accounts", | ||
"operation": "Read Monitoring Account metrics namespaces", | ||
"description": "Read Monitoring Account metrics namespaces" | ||
}, | ||
"isDataAction": false, | ||
"origin": "user, system" | ||
}, | ||
{ | ||
"name": "microsoft.monitor/accounts/metrics/namespaces/metrics/read", | ||
"display": { | ||
"provider": "Microsoft Monitoring", | ||
"resource": "Monitoring Accounts", | ||
"operation": "Read Monitoring Account metrics namespaces metrics", | ||
"description": "Read Monitoring Account metrics namespaces metrics" | ||
}, | ||
"isDataAction": false, | ||
"origin": "user, system" | ||
}, | ||
{ | ||
"name": "microsoft.monitor/accounts/metrics/namespaces/metrics/write", | ||
"display": { | ||
"provider": "Microsoft Monitoring", | ||
"resource": "Monitoring Accounts", | ||
"operation": "Create or update Monitoring Account metrics namespaces metrics", | ||
"description": "Create or update Monitoring Account metrics namespaces metrics" | ||
}, | ||
"isDataAction": false, | ||
"origin": "user, system" | ||
}, | ||
{ | ||
"name": "microsoft.monitor/accounts/metrics/namespaces/metrics/delete", | ||
"display": { | ||
"provider": "Microsoft Monitoring", | ||
"resource": "Monitoring Accounts", | ||
"operation": "Delete Monitoring Account metrics namespaces metrics", | ||
"description": "Delete Monitoring Account metrics namespaces metrics" | ||
}, | ||
"isDataAction": false, | ||
"origin": "user, system" | ||
}, | ||
{ | ||
"name": "microsoft.monitor/accounts/data/metrics/read", | ||
"display": { | ||
"provider": "Microsoft Monitoring", | ||
"resource": "Monitoring Accounts", | ||
"operation": "Read Metrics Data", | ||
"description": "Read metrics data in any Monitoring Account" | ||
}, | ||
"isDataAction": true, | ||
"origin": "user, system" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
89 changes: 89 additions & 0 deletions
89
...monitor/resource-manager/Microsoft.Monitor/preview/2021-06-01-preview/operations_API.json
This file contains hidden or 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,89 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Azure Monitoring Accounts Control Plane API", | ||
"description": "Provides operations for working with Azure Monitoring Accounts", | ||
"version": "2021-06-01-preview", | ||
"x-ms-code-generation-settings": { | ||
"name": "MonitorManagementClient" | ||
}, | ||
"contact": { | ||
"email": "[email protected]" | ||
} | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
], | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"flow": "implicit", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
}, | ||
"description": "Azure Active Directory OAuth2 Flow" | ||
} | ||
}, | ||
"tags": [ | ||
{ | ||
"name": "Operations", | ||
"description": "List available operations API" | ||
} | ||
], | ||
"paths": { | ||
"/providers/Microsoft.Monitor/operations": { | ||
"get": { | ||
"tags": [ | ||
"Operations" | ||
], | ||
"description": "Lists available Operations for this Resource Provider", | ||
"operationId": "Monitor_Operations_List", | ||
"produces": [ | ||
"application/json" | ||
], | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Success", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": "nextLink" | ||
}, | ||
"x-ms-examples": { | ||
"Get operations list": { | ||
"$ref": "./examples/OperationsGet.json" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
...nager/Microsoft.Monitor/preview/2021-06-03-preview/examples/MonitoringAccountsCreate.json
This file contains hidden or 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,68 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", | ||
"resourceGroupName": "myResourceGroup", | ||
"monitoringAccountName": "myMonitoringAccount", | ||
"api-version": "2021-06-03-preview", | ||
"monitoringAccountProperties": { | ||
"location": "eastus" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myMonitoringAccount", | ||
"name": "myMonitoringAccount", | ||
"type": "Microsoft.Monitor/accounts", | ||
"location": "eastus", | ||
"tags": { | ||
"tag1": "A", | ||
"tag2": "B" | ||
}, | ||
"properties": { | ||
"accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", | ||
"metrics": { | ||
"prometheusQueryEndpoint": "https://myMonitoringAccount-v8hx.eastus.prometheus.monitor.azure.com", | ||
"internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" | ||
}, | ||
"provisioningState": "Succeeded", | ||
"defaultIngestionSettings": { | ||
"dataCollectionRule": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myMonitoringAccount_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/myMonitoringAccount", | ||
"dataCollectionEndpoint": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myMonitoringAccount_eastus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/myMonitoringAccount" | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2021-04-01T12:34:56.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-04-02T12:34:56.1234567Z" | ||
}, | ||
"etag": "070057da-0000-0000-0000-5ba70d6c0000" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myMonitoringAccount", | ||
"name": "myMonitoringAccount", | ||
"type": "Microsoft.Monitor/accounts", | ||
"location": "eastus", | ||
"tags": { | ||
"tag1": "A", | ||
"tag2": "B" | ||
}, | ||
"properties": {}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2021-04-01T12:34:56.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-04-02T12:34:56.1234567Z" | ||
}, | ||
"etag": "070057da-0000-0000-0000-5ba70d6c0000" | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...nager/Microsoft.Monitor/preview/2021-06-03-preview/examples/MonitoringAccountsDelete.json
This file contains hidden or 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,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", | ||
"resourceGroupName": "myResourceGroup", | ||
"monitoringAccountName": "myMonitoringAccount", | ||
"api-version": "2021-06-03-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...-manager/Microsoft.Monitor/preview/2021-06-03-preview/examples/MonitoringAccountsGet.json
This file contains hidden or 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,43 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", | ||
"resourceGroupName": "myResourceGroup", | ||
"monitoringAccountName": "myMonitoringAccount", | ||
"api-version": "2021-06-03-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myMonitoringAccount", | ||
"name": "myMonitoringAccount", | ||
"type": "Microsoft.Monitor/accounts", | ||
"location": "eastus", | ||
"tags": { | ||
"tag1": "A", | ||
"tag2": "B" | ||
}, | ||
"properties": { | ||
"accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", | ||
"metrics": { | ||
"prometheusQueryEndpoint": "https://myMonitoringAccount-v8hx.eastus.prometheus.monitor.azure.com", | ||
"internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" | ||
}, | ||
"provisioningState": "Succeeded", | ||
"defaultIngestionSettings": { | ||
"dataCollectionRule": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myMonitoringAccount_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/myMonitoringAccount", | ||
"dataCollectionEndpoint": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myMonitoringAccount_eastus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/myMonitoringAccount" | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2021-04-01T12:34:56.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-04-02T12:34:56.1234567Z" | ||
}, | ||
"etag": "070057da-0000-0000-0000-5ba70d6c0000" | ||
} | ||
} | ||
} | ||
} |
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.
Uh oh!
There was an error while loading. Please reload this page.