Skip to content

Commit

Permalink
[AppInsights] Added webtests-by-component API to 2015-05-01 (#3126)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMilos authored and hovsepm committed May 23, 2018
1 parent d828ff3 commit 0d97bd1
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters": {
"api-version": "2015-05-01",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"componentName": "my-component"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component",
"name": "my-webtest-my-component",
"type": "Microsoft.Insights/webtests",
"location": "southcentralus",
"tags": {
"hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource",
"hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource"
},
"kind": "ping",
"properties": {
"SyntheticMonitorId": "my-webtest-my-component",
"Name": "my-webtest",
"Description": "",
"Enabled": false,
"Frequency": 900,
"Timeout": 120,
"Kind": "ping",
"RetryEnabled": true,
"Locations": [
{
"Id": "apac-hk-hkn-azr"
}
],
"Configuration": {
"WebTest": "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\"><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"
},
"provisioningState": "Succeeded"
}
}
],
"nextLink": ""
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,42 @@
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{componentName}/webtests": {
"get": {
"description": "Get all Application Insights web tests defined for the specified component.",
"operationId": "WebTests_ListByComponent",
"parameters": [
{
"$ref": "#/parameters/ComponentNameParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "A list containing 0 or more web test definitions.",
"schema": {
"$ref": "#/definitions/webTestListResult"
}
}
},
"x-ms-examples": {
"webTestListByComponent": {
"$ref": "./examples/WebTestListByComponent.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -457,6 +493,14 @@
"description": "The name of the resource group.",
"x-ms-parameter-location": "method"
},
"ComponentNameParameter": {
"name": "componentName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the Application Insights component resource.",
"x-ms-parameter-location": "method"
},
"WebTestNameParameter": {
"name": "webTestName",
"in": "path",
Expand Down

0 comments on commit 0d97bd1

Please sign in to comment.