-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Hub Generated] Review request for Microsoft.Insights to add version preview/2020-02-10-preview #8383
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
zikalino
merged 39 commits into
Azure:master
from
aarongas:dev-applicationinsights-Microsoft.Insights-2020-02-10-preview
May 7, 2020
Merged
[Hub Generated] Review request for Microsoft.Insights to add version preview/2020-02-10-preview #8383
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
2f952c7
Adds base for updating Microsoft.Insights from version preview/2019-1…
aarongas 3df1350
Updates readme
aarongas da14d92
Updates API version in new specs and examples
aarongas 71cf989
Added WebTestResults API
aarongas 81b51a2
Adjusted tiles
aarongas 4a1f5d2
made changes to example file.
aarongas 592f6f1
Adjusted example to have better sample values
aarongas d3e9517
Updated doc to produce better help file.
aarongas 708c6ef
corrected example file.
aarongas aa787e9
added _get to operationId to match GetInOperationName requirement
aarongas ec09a23
Adjustments from review
aarongas 7b55652
Adjusted enum for downloadAs
aarongas d8b4308
62acef8
0028a21
Adjusted file to make more readable.
aarongas e0d4f84
Added better descriptions to the file format enum.
aarongas bc0d6eb
Removed partition ID from the example.
aarongas aa42562
Updated description
aarongas f9b1ecf
619447d
4d68ea9
Changes made based on Igors review.
aarongas d57d7da
removed dashes from example and removed _Get from operationId
aarongas 957aeb2
Fixes typeo
aarongas d31ce9b
adjusted with prettier
aarongas e163ece
adjusted json
aarongas 51c86e1
adjusted to a put call and added operationslist as per code review fr…
aarongas 1c8fb3e
corrected to post
aarongas 00e8ecb
added operatinsList.json example file
aarongas 3bbe3f9
adjusted file name.
aarongas 2cbbfdc
adjusted example file.
aarongas b8efc86
adjusted case of microsoft.insights
aarongas f997381
minor fix
aarongas eb688e8
ran prettier-fix
aarongas 76beccf
changes per code review.
aarongas 898cedc
Fixed case in example file.
aarongas f468396
removed nextLink from Operations
aarongas 3aa9f41
1897d6b
1b58ec8
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
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
294 changes: 294 additions & 0 deletions
294
...ts/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/WebTestResults_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,294 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "ApplicationInsightsManagementClient", | ||
| "description": "Azure Application Insights client for web test results.", | ||
| "version": "2020-02-10-preview" | ||
| }, | ||
| "host": "management.azure.com", | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "security": [ | ||
| { | ||
| "azure_auth": [ | ||
| "user_impersonation" | ||
| ] | ||
| } | ||
| ], | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "flow": "implicit", | ||
| "description": "Azure Active Directory OAuth2 Flow", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| }, | ||
| "paths": { | ||
| "/providers/microsoft.insights/operations": { | ||
| "get": { | ||
| "tags": [ | ||
| "Operations" | ||
| ], | ||
| "summary": "List available operations.", | ||
| "description": "List the available operations supported by the Microsoft.EventGrid resource provider.", | ||
| "operationId": "Operations_List", | ||
| "consumes": [], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/OperationsListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| }, | ||
| "x-ms-examples": { | ||
| "Operations_List": { | ||
| "$ref": "./examples/Operations_List.json" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}/getTestResultFile": { | ||
| "post": { | ||
| "tags": [ | ||
| "WebTests_GetTestResultFile" | ||
| ], | ||
| "operationId": "getTestResultFile", | ||
| "description": "Returns a file test result for the matching test", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/WebTestNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/GeolocationIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/TimeStampParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/DownloadAsParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/TestSuccessfulCriteriaParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ContinuationTokenParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| }, | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/TestResultFileResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "Example Get call:": { | ||
| "$ref": "./examples/WebTestResultsTestResultFile.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "ErrorResponse": { | ||
| "description": "Describes the format of Error response.", | ||
| "type": "object", | ||
| "properties": { | ||
| "code": { | ||
| "description": "Error code", | ||
| "type": "string" | ||
| }, | ||
| "message": { | ||
| "description": "Error message indicating why the operation failed.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "TestResultFileResponse": { | ||
| "description": "Test result.", | ||
| "type": "object", | ||
| "properties": { | ||
| "data": { | ||
| "description": "File contents.", | ||
| "type": "string" | ||
| }, | ||
| "nextLink": { | ||
| "description": "The URI that can be used to request the next section of the result file in the event the file is too large for a single request.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "OperationsListResult": { | ||
| "description": "Result of the List Operations operation", | ||
| "type": "object", | ||
| "properties": { | ||
| "value": { | ||
| "description": "A collection of operations", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/Operation" | ||
| } | ||
| }, | ||
| "nextLink": { | ||
| "type": "string", | ||
| "description": "URL to get the next set of operation list results if there are any." | ||
| } | ||
| } | ||
| }, | ||
| "Operation": { | ||
| "description": "Represents an operation returned by the GetOperations request", | ||
| "type": "object", | ||
| "properties": { | ||
| "name": { | ||
| "description": "Name of the operation", | ||
| "type": "string" | ||
| }, | ||
| "display": { | ||
| "$ref": "#/definitions/OperationInfo", | ||
| "description": "Display name of the operation" | ||
| }, | ||
| "origin": { | ||
| "description": "Origin of the operation", | ||
| "type": "string" | ||
| }, | ||
| "properties": { | ||
| "description": "Properties of the operation", | ||
| "type": "object", | ||
| "x-ms-client-flatten": true | ||
| } | ||
| } | ||
| }, | ||
| "OperationInfo": { | ||
| "description": "Information about an operation", | ||
| "type": "object", | ||
| "properties": { | ||
| "provider": { | ||
| "description": "Name of the provider", | ||
| "type": "string" | ||
| }, | ||
| "resource": { | ||
| "description": "Name of the resource type", | ||
| "type": "string" | ||
| }, | ||
| "operation": { | ||
| "description": "Name of the operation", | ||
| "type": "string" | ||
| }, | ||
| "description": { | ||
| "description": "Description of the operation", | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "WebTestNameParameter": { | ||
| "name": "webTestName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the Application Insights webtest resource.", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "GeolocationIdParameter": { | ||
| "name": "geoLocationId", | ||
| "in": "query", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The location ID where the webtest was physically run.", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "TimeStampParameter": { | ||
| "name": "timeStamp", | ||
| "in": "query", | ||
| "required": true, | ||
| "type": "integer", | ||
| "format": "int64", | ||
| "description": "The posix (epoch) time stamp for the webtest result.", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "DownloadAsParameter": { | ||
| "name": "downloadAs", | ||
| "in": "query", | ||
| "required": true, | ||
| "type": "string", | ||
| "enum": [ | ||
| "WebTestResult", | ||
| "Json" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "downloadAs", | ||
| "modelAsString": true, | ||
| "values": [ | ||
| { | ||
| "value": "WebTestResult", | ||
| "description": "Returned file will be in visual studio webtestresult file format." | ||
| }, | ||
| { | ||
| "value": "Json", | ||
| "description": "Returned file will be in json file format." | ||
| } | ||
| ] | ||
| }, | ||
| "description": "The format to use when returning the webtest result.", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "TestSuccessfulCriteriaParameter": { | ||
| "name": "testSuccessfulCriteria", | ||
| "in": "query", | ||
| "required": false, | ||
| "type": "boolean", | ||
| "description": "The success state criteria for the webtest result.", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "ContinuationTokenParameter": { | ||
| "name": "continuationToken", | ||
| "in": "query", | ||
| "required": false, | ||
| "type": "string", | ||
| "description": "The continuation token.", | ||
| "x-ms-parameter-location": "method" | ||
| } | ||
| } | ||
| } | ||
23 changes: 23 additions & 0 deletions
23
...ource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/Operations_List.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,23 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2020-02-10-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "microsoft.insights/webtests/gettestresultfile", | ||
| "display": { | ||
| "provider": "Microsoft Container Instance", | ||
| "resource": "webtests", | ||
| "operation": "Get test results file", | ||
| "description": "Get the requested webtest result" | ||
| }, | ||
| "origin": "User" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
21 changes: 21 additions & 0 deletions
21
.../Microsoft.Insights/preview/2020-02-10-preview/examples/WebTestResultsTestResultFile.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,21 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2020-02-10-preview", | ||
| "subscriptionId": "123subid", | ||
| "resourceGroupName": "myresourcegroup", | ||
| "webTestName": "my-test-name", | ||
| "geoLocationId": "brs", | ||
| "timeStamp": 1566819054, | ||
| "downloadAs": "WebTestResult", | ||
| "testSuccessfulCriteria": true, | ||
| "continuationToken": "0" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "data": "xxxxxxxxxx", | ||
| "nextLink": "https://management.azure.com/subscriptions/123subid/resourcegroups/myresourcegroup/providers/microsoft.insights/webtests/my-test-name/testresultfile?geoLocationId=brs×tamp=1566823240&downloadAs=webtestresult&testSuccessfulCriteria=true&continuationToken=10&api-version=2020-10-01-preview" | ||
| } | ||
| } | ||
| } | ||
| } |
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.