Skip to content
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/2020-02-10-preview #8383

Merged
Show file tree
Hide file tree
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 Feb 10, 2020
3df1350
Updates readme
aarongas Feb 10, 2020
da14d92
Updates API version in new specs and examples
aarongas Feb 10, 2020
71cf989
Added WebTestResults API
aarongas Feb 10, 2020
81b51a2
Adjusted tiles
aarongas Feb 10, 2020
4a1f5d2
made changes to example file.
aarongas Feb 10, 2020
592f6f1
Adjusted example to have better sample values
aarongas Feb 10, 2020
d3e9517
Updated doc to produce better help file.
aarongas Feb 10, 2020
708c6ef
corrected example file.
aarongas Feb 11, 2020
aa787e9
added _get to operationId to match GetInOperationName requirement
aarongas Feb 11, 2020
ec09a23
Adjustments from review
aarongas Feb 11, 2020
7b55652
Adjusted enum for downloadAs
aarongas Feb 11, 2020
d8b4308
aarongas Feb 11, 2020
62acef8
aarongas Feb 11, 2020
0028a21
Adjusted file to make more readable.
aarongas Feb 11, 2020
e0d4f84
Added better descriptions to the file format enum.
aarongas Feb 11, 2020
bc0d6eb
Removed partition ID from the example.
aarongas Feb 12, 2020
aa42562
Updated description
aarongas Feb 12, 2020
f9b1ecf
aarongas Feb 12, 2020
619447d
aarongas Feb 12, 2020
4d68ea9
Changes made based on Igors review.
aarongas Feb 12, 2020
d57d7da
removed dashes from example and removed _Get from operationId
aarongas Feb 20, 2020
957aeb2
Fixes typeo
aarongas Feb 27, 2020
d31ce9b
adjusted with prettier
aarongas Feb 27, 2020
e163ece
adjusted json
aarongas Feb 27, 2020
51c86e1
adjusted to a put call and added operationslist as per code review fr…
aarongas Mar 5, 2020
1c8fb3e
corrected to post
aarongas Mar 5, 2020
00e8ecb
added operatinsList.json example file
aarongas Mar 5, 2020
3bbe3f9
adjusted file name.
aarongas Mar 5, 2020
2cbbfdc
adjusted example file.
aarongas Mar 5, 2020
b8efc86
adjusted case of microsoft.insights
aarongas Mar 5, 2020
f997381
minor fix
aarongas Mar 5, 2020
eb688e8
ran prettier-fix
aarongas Mar 6, 2020
76beccf
changes per code review.
aarongas Mar 7, 2020
898cedc
Fixed case in example file.
aarongas Mar 9, 2020
f468396
removed nextLink from Operations
aarongas Mar 9, 2020
3aa9f41
aarongas Mar 9, 2020
1897d6b
aarongas Mar 9, 2020
1b58ec8
aarongas Mar 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ getkey
getsas
getskus
getssotoken
gettestresultfile
getvpnclientipsecparameters
getvpnprofilepackageurl
gibibytes
Expand Down Expand Up @@ -1475,6 +1476,7 @@ testall
testallroutes
testnew
testnewroute
testresultfile
textanalytics
Tful
Tfvc
Expand Down Expand Up @@ -1654,6 +1656,7 @@ websearch
webservices
Webspace
webtest
webtestresult
webtests
westcentralus
westeurope
Expand Down
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"
}
}
}
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"
}
]
}
}
}
}
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&timestamp=1566823240&downloadAs=webtestresult&testSuccessfulCriteria=true&continuationToken=10&api-version=2020-10-01-preview"
}
}
}
}
Loading