Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d3a283a
Add swagger specification for Application Insights Components & Synth…
d3r3kk Mar 1, 2017
68edd50
Correcting some descriptions and adding further documentation
Mar 1, 2017
c5991c9
Last cleanup pass before submitting to Github
d3r3kk Mar 3, 2017
a720d68
Correct swagger spec for packaging
d3r3kk Mar 3, 2017
d305f0f
Correct swagger spec for packaging once again
d3r3kk Mar 3, 2017
cfcfe0f
Make ApiVersionParameter consistent
d3r3kk Mar 3, 2017
7db4824
PR Request: Add example json for Component.
d3r3kk Mar 3, 2017
66d9c4a
Remove 404 expected responses from components
d3r3kk Mar 3, 2017
6d92719
Correct example JSON for AI Components
d3r3kk Mar 4, 2017
5b0bb80
Correct SyntheticMonitor examples
d3r3kk Mar 4, 2017
43781ef
Retarget PR to arm-monitor folder
d3r3kk Mar 8, 2017
13a189d
Remove AI Component & Synthetic Monitor API from arm-insights folder
d3r3kk Mar 8, 2017
b401717
Move Application Insights APIs to arm-appinsights
d3r3kk Mar 9, 2017
94cdb66
Correct names of the _List operations
d3r3kk Mar 9, 2017
307e5e1
Change names back from Components to Component
d3r3kk Mar 9, 2017
804ba20
PR Request fixes
d3r3kk Mar 28, 2017
a0e297d
Correct required fields in WebTestProperties
d3r3kk Mar 28, 2017
afd4217
Default value fields corrections
d3r3kk Mar 28, 2017
7876a19
Correct WebTest example JSON
d3r3kk Mar 28, 2017
7f34b8b
Fix linter error with aiOperations.json
d3r3kk Mar 28, 2017
6f10918
Revert test/linter.js
d3r3kk Mar 29, 2017
a05877e
Fix misspelled word in description
d3r3kk Mar 29, 2017
300d68e
Correct mismatch of required values in examples
d3r3kk Mar 29, 2017
95818c5
Correct enum values in example
d3r3kk Mar 29, 2017
64b6271
PR Fixes example values corrected
d3r3kk Mar 30, 2017
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
45 changes: 45 additions & 0 deletions arm-appinsights/2015-05-01/examples/ComponentsCreate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"api-version": "2015-05-01",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"resourceName": "my-component",
"InsightProperties": {
"name": "my-component",
"location": "South Central US",
"kind": "web",
"properties": {
"Application_Type": "web",
"ApplicationId": "my-component",
"Flow_Type": "Bluefield",
"Request_Source": "rest"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component",
"name": "my-component",
"type": "microsoft.insights/components",
"location": "South Central US",
"tags": "",
"kind": "web",
"properties": {
"ApplicationId": "my-component",
"AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc",
"Application_Type": "web",
"Flow_Type": "Bluefield",
"Request_Source": "rest",
"InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc",
"CreationDate": "2017-01-24T01:05:38.5934061+00:00",
"TenantId": "f438d567-7177-4fe1-a5e3-123456789abc",
"HockeyAppId": "",
"HockeyAppToken": "",
"provisioningState": "Succeeded",
"SamplingPercentage": 100.0
}
}
}
}
}
35 changes: 35 additions & 0 deletions arm-appinsights/2015-05-01/examples/ComponentsGet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"api-version": "2015-05-01",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"resourceName": "my-component"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component",
"name": "my-component",
"type": "microsoft.insights/components",
"location": "South Central US",
"tags": "",
"kind": "web",
"properties": {
"ApplicationId": "my-component",
"AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc",
"Application_Type": "web",
"Flow_Type": "Bluefield",
"Request_Source": "rest",
"InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc",
"CreationDate": "2017-01-24T01:05:38.5934061+00:00",
"TenantId": "f438d567-7177-4fe1-a5e3-123456789abc",
"HockeyAppId": "",
"HockeyAppToken": "",
"provisioningState": "Succeeded",
"SamplingPercentage": 100.0
}
}
}
}
}

59 changes: 59 additions & 0 deletions arm-appinsights/2015-05-01/examples/ComponentsList.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"parameters": {
"api-version": "2015-05-01",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component",
"name": "my-component",
"type": "microsoft.insights/components",
"location": "South Central US",
"tags": "",
"kind": "web",
"properties": {
"ApplicationId": "my-component",
"AppId": "16526d1a-dfba-4362-a9e9-123456789abc",
"Application_Type": "web",
"Flow_Type": "Bluefield",
"Request_Source": "rest",
"InstrumentationKey": "dc5931c7-a7ad-4ad0-89d6-123456789abc",
"CreationDate": "2017-02-14T12:24:05.0041213+00:00",
"TenantId": "f438d567-7177-4fe1-a5e3-123456789abc",
"HockeyAppId": "",
"HockeyAppToken": "",
"provisioningState": "Succeeded",
"SamplingPercentage": 75.0
}
},
{
"id": "/subscriptions/subid/resourceGroups/my-other-resource-group/providers/microsoft.insights/components/my-other-component",
"name": "my-other-component",
"type": "microsoft.insights/components",
"location": "South Central US",
"tags": "",
"kind": "web",
"properties": {
"ApplicationId": "my-other-component",
"AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc",
"Application_Type": "web",
"Flow_Type": "Bluefield",
"Request_Source": "rest",
"InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc",
"CreationDate": "2017-01-24T01:05:38.5934061+00:00",
"TenantId": "f438d567-7177-4fe1-a5e3-123456789abc",
"HockeyAppId": "",
"HockeyAppToken": "",
"provisioningState": "Succeeded",
"SamplingPercentage": 30.0
}
}
],
"nextLink": ""
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"parameters": {
"api-version": "2015-05-01",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component",
"name": "my-component",
"type": "microsoft.insights/components",
"location": "South Central US",
"tags": "",
"kind": "web",
"properties": {
"ApplicationId": "my-component",
"AppId": "16526d1a-dfba-4362-a9e9-123456789abc",
"Application_Type": "web",
"Flow_Type": "Bluefield",
"Request_Source": "rest",
"InstrumentationKey": "dc5931c7-a7ad-4ad0-89d6-123456789abc",
"CreationDate": "2017-02-14T12:24:05.0041213+00:00",
"TenantId": "f438d567-7177-4fe1-a5e3-123456789abc",
"HockeyAppId": "",
"HockeyAppToken": "",
"provisioningState": "Succeeded",
"SamplingPercentage": 100.0
}
},
{
"id": "/subscriptions/subid/resourceGroups/my-other-resource-group/providers/microsoft.insights/components/my-other-component",
"name": "my-other-component",
"type": "microsoft.insights/components",
"location": "South Central US",
"tags": "",
"kind": "web",
"properties": {
"ApplicationId": "my-other-component",
"AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc",
"Application_Type": "web",
"Flow_Type": "Bluefield",
"Request_Source": "rest",
"InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc",
"CreationDate": "2017-01-24T01:05:38.5934061+00:00",
"TenantId": "f438d567-7177-4fe1-a5e3-123456789abc",
"HockeyAppId": "",
"HockeyAppToken": "",
"provisioningState": "Succeeded",
"SamplingPercentage": 50.0
}
}
],
"nextLink": ""
}
}
}
}
46 changes: 46 additions & 0 deletions arm-appinsights/2015-05-01/examples/ComponentsUpdate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"api-version": "2015-05-01",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"resourceName": "my-component",
"InsightProperties": {
"name": "my-component",
"location": "South Central US",
"kind": "web",
"tags": {
"ApplicationGatewayType": "Internal-Only",
"BillingEntity": "Self"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component",
"name": "my-component",
"type": "microsoft.insights/components",
"location": "South Central US",
"tags": {
"ApplicationGatewayType": "Internal-Only",
"BillingEntity": "Self"
},
"kind": "web",
"properties": {
"ApplicationId": "my-component",
"AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc",
"Application_Type": "web",
"Flow_Type": "Bluefield",
"Request_Source": "rest",
"InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc",
"CreationDate": "2017-01-24T01:05:38.5934061+00:00",
"TenantId": "f438d567-7177-4fe1-a5e3-123456789abc",
"HockeyAppId": "",
"HockeyAppToken": "",
"provisioningState": "Succeeded",
"SamplingPercentage": 100.0
}
}
}
}
}
49 changes: 49 additions & 0 deletions arm-appinsights/2015-05-01/examples/ComponentsUpdateTagsOnly.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"api-version": "2015-05-01",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"resourceName": "my-component",
"ComponentTags": {
"tags": {
"ApplicationGatewayType": "Internal-Only",
"BillingEntity": "Self",
"Color": "AzureBlue",
"CustomField_01": "Custom text in some random field named randomly",
"NodeType": "Edge"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component",
"name": "my-component",
"type": "microsoft.insights/components",
"location": "South Central US",
"tags": {
"ApplicationGatewayType": "Internal-Only",
"BillingEntity": "Self",
"Color": "AzureBlue",
"CustomField_01": "Custom text in some random field named randomly",
"NodeType": "Edge"
},
"kind": "web",
"properties": {
"ApplicationId": "my-component",
"AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc",
"Application_Type": "web",
"Flow_Type": "Bluefield",
"Request_Source": "rest",
"InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc",
"CreationDate": "2017-01-24T01:05:38.5934061+00:00",
"TenantId": "f438d567-7177-4fe1-a5e3-123456789abc",
"HockeyAppId": "",
"HockeyAppToken": "",
"provisioningState": "Succeeded",
"SamplingPercentage": 100.0
}
}
}
}
}
64 changes: 64 additions & 0 deletions arm-appinsights/2015-05-01/examples/WebTestCreate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"parameters": {
"api-version": "2015-05-01",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"webTestName": "my-webtest-my-component",
"WebTestDefinition": {
"location": "South Central US",
"kind": "ping",
"properties": {
"Name": "my-webtest-my-component",
"SyntheticMonitorId": "my-webtest-my-component",
"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>"
},
"Description": "Ping web test alert for mytestwebapp",
"Enabled": true,
"Frequency": 900,
"Timeout": 120,
"Kind": "ping",
"RetryEnabled": true,
"Locations": [
{
"Id": "us-fl-mia-edge"
}
]
}
}
},
"responses": {
"200": {
"body": {
"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": {
"Name": "my-webtest-my-component",
"SyntheticMonitorId": "my-webtest-my-component",
"Description": "Ping web test alert for mytestwebapp",
"Enabled": true,
"Frequency": 900,
"Timeout": 120,
"Kind": "ping",
"RetryEnabled": true,
"Locations": [
{
"Id": "us-fl-mia-edge"
}
],
"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"
}
}
}
}
}
Loading