-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.Insights to add version …
…stable/2022-06-15 (#19148) * Adds base for updating Microsoft.Insights from version preview/2020-10-05-preview to version 2022-06-15 * Updates readme * Updates API version in new specs and examples * web test API for 2022-06-15 version * updates * remove Operations_List * new tag * Adds suppression to readme * Adds suppression to readme * Adds suppression to readme * Adds suppression to readme * Add x-ms-identifiers * delete extra character * update enum * styling * update Co-authored-by: Gustavo Lima <[email protected]>
- Loading branch information
Showing
11 changed files
with
1,198 additions
and
42 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
...nsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreate.json
This file contains 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,63 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-06-15", | ||
"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" | ||
}, | ||
"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" | ||
} | ||
} | ||
} | ||
} | ||
} |
93 changes: 93 additions & 0 deletions
93
...resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreateStandard.json
This file contains 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,93 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-06-15", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "my-resource-group", | ||
"webTestName": "my-webtest-my-component", | ||
"WebTestDefinition": { | ||
"location": "South Central US", | ||
"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": "standard", | ||
"RetryEnabled": true, | ||
"Request": { | ||
"RequestUrl": "https://bing.com", | ||
"Headers": [ | ||
{ | ||
"key": "Content-Language", | ||
"value": "de-DE" | ||
}, | ||
{ | ||
"key": "Accept-Language", | ||
"value": "de-DE" | ||
} | ||
], | ||
"HttpVerb": "POST", | ||
"RequestBody": "SGVsbG8gd29ybGQ=" | ||
}, | ||
"ValidationRules": { | ||
"SSLCheck": true, | ||
"SSLCertRemainingLifetimeCheck": 100 | ||
}, | ||
"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" | ||
}, | ||
"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": "standard", | ||
"RetryEnabled": true, | ||
"Locations": [ | ||
{ | ||
"Id": "us-fl-mia-edge" | ||
} | ||
], | ||
"Request": { | ||
"RequestUrl": "https://bing.com", | ||
"Headers": [ | ||
{ | ||
"key": "Content-Language", | ||
"value": "de-DE" | ||
}, | ||
{ | ||
"key": "Accept-Language", | ||
"value": "de-DE" | ||
} | ||
], | ||
"HttpVerb": "POST", | ||
"RequestBody": "SGVsbG8gd29ybGQ=" | ||
}, | ||
"ValidationRules": { | ||
"SSLCheck": true, | ||
"SSLCertRemainingLifetimeCheck": 100 | ||
}, | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...nsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestDelete.json
This file contains 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": { | ||
"api-version": "2022-06-15", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "my-resource-group", | ||
"webTestName": "my-webtest-01-mywebservice" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...oninsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestGet.json
This file contains 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,44 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-06-15", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "my-resource-group", | ||
"webTestName": "my-webtest-01-mywebservice" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/my-test-resources/providers/Microsoft.Insights/webtests/my-webtest-01-mywebservice", | ||
"name": "my-webtest-01-mywebservice", | ||
"type": "Microsoft.Insights/webtests", | ||
"location": "southcentralus", | ||
"tags": { | ||
"hidden-link:/subscriptions/subid/resourceGroups/my-test-resources/providers/Microsoft.Insights/components/mytester": "Resource" | ||
}, | ||
"kind": "ping", | ||
"properties": { | ||
"SyntheticMonitorId": "my-webtest-01-mywebservice", | ||
"Name": "mytest-webtest-01", | ||
"Description": "", | ||
"Enabled": false, | ||
"Frequency": 900, | ||
"Timeout": 30, | ||
"Kind": "ping", | ||
"RetryEnabled": true, | ||
"Locations": [ | ||
{ | ||
"Id": "us-fl-mia-edge" | ||
}, | ||
{ | ||
"Id": "apac-hk-hkn-azr" | ||
} | ||
], | ||
"Configuration": { | ||
"WebTest": "<WebTest Name=\"mytest-webtest-01\" Id=\"0317d26b-8672-4370-bd6b-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" 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=\"a55ce143-4f1e-a7e6-b69e-123456789abc\" Version=\"1.1\" Url=\"http://mytester.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"False\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>" | ||
}, | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...ninsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestList.json
This file contains 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,67 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-06-15", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "my-resource-group" | ||
}, | ||
"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" | ||
}, | ||
"kind": "ping", | ||
"properties": { | ||
"SyntheticMonitorId": "my-webtest-my-component", | ||
"Name": "my-webtest", | ||
"Description": "", | ||
"Enabled": false, | ||
"Frequency": 900, | ||
"Timeout": 120, | ||
"Kind": "ping", | ||
"RetryEnabled": true, | ||
"Locations": [], | ||
"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" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/my-other-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-other-component", | ||
"name": "my-webtest-my-other-component", | ||
"type": "Microsoft.Insights/webtests", | ||
"location": "southcentralus", | ||
"tags": { | ||
"Test": "You can delete this synthetic monitor anytime", | ||
"hidden-link:/subscriptions/subid/resourceGroups/my-other-resource-group/providers/Microsoft.Insights/components/my-other-component": "Resource" | ||
}, | ||
"kind": "ping", | ||
"properties": { | ||
"SyntheticMonitorId": "my-webtest-my-other-component", | ||
"Name": "342bccf4-722f-496d-b064-123456789abc", | ||
"Description": "", | ||
"Enabled": false, | ||
"Frequency": 900, | ||
"Timeout": 120, | ||
"Kind": "ping", | ||
"RetryEnabled": false, | ||
"Locations": [], | ||
"Configuration": { | ||
"WebTest": "<WebTest Name=\"342bccf4-722f-496d-b064-123456789abc\" Id=\"00a15cc1-c903-4f97-9af4-123456789abc\" Enabled=\"False\" 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=\"347e1924-9899-4c6e-ad78-123456789abc\" Version=\"1.1\" Url=\"http://my-other-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": null | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...esource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestListByComponent.json
This file contains 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,46 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-06-15", | ||
"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" | ||
}, | ||
"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": null | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.