azure.mgmt.applicationinsights.v2022_06_15.operations module

class azure.mgmt.applicationinsights.v2022_06_15.operations.WebTestsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ApplicationInsightsManagementClient’s web_tests attribute.

create_or_update(resource_group_name: str, web_test_name: str, web_test_definition: WebTest | IO[bytes], **kwargs: Any) WebTest[source]

Creates or updates an Application Insights web test definition.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • web_test_name (str) – The name of the Application Insights WebTest resource. Required.

  • web_test_definition (WebTest or IO[bytes]) – Properties that need to be specified to create or update an Application Insights web test definition. Is either a WebTest type or a IO[bytes] type. Required.

Returns:

WebTest or the result of cls(response)

Return type:

WebTest

Raises:

HttpResponseError

delete(resource_group_name: str, web_test_name: str, **kwargs: Any) None[source]

Deletes an Application Insights web test.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • web_test_name (str) – The name of the Application Insights WebTest resource. Required.

Returns:

None or the result of cls(response)

Return type:

None

Raises:

HttpResponseError

get(resource_group_name: str, web_test_name: str, **kwargs: Any) WebTest[source]

Get a specific Application Insights web test definition.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • web_test_name (str) – The name of the Application Insights WebTest resource. Required.

Returns:

WebTest or the result of cls(response)

Return type:

WebTest

Raises:

HttpResponseError

list(**kwargs: Any) Iterable[WebTest][source]

Get all Application Insights web test definitions for the specified subscription.

Returns:

An iterator like instance of either WebTest or the result of cls(response)

Return type:

ItemPaged[WebTest]

Raises:

HttpResponseError

list_by_component(component_name: str, resource_group_name: str, **kwargs: Any) Iterable[WebTest][source]

Get all Application Insights web tests defined for the specified component.

Parameters:
  • component_name (str) – The name of the Application Insights component resource. Required.

  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

Returns:

An iterator like instance of either WebTest or the result of cls(response)

Return type:

ItemPaged[WebTest]

Raises:

HttpResponseError

list_by_resource_group(resource_group_name: str, **kwargs: Any) Iterable[WebTest][source]

Get all Application Insights web tests defined for the specified resource group.

Parameters:

resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

Returns:

An iterator like instance of either WebTest or the result of cls(response)

Return type:

ItemPaged[WebTest]

Raises:

HttpResponseError

update_tags(resource_group_name: str, web_test_name: str, web_test_tags: TagsResource | IO[bytes], **kwargs: Any) WebTest[source]

Updates the tags associated with an Application Insights web test.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • web_test_name (str) – The name of the Application Insights WebTest resource. Required.

  • web_test_tags (TagsResource or IO[bytes]) – Updated tag information to associate with the web test resource. Is either a TagsResource type or a IO[bytes] type. Required.

Returns:

WebTest or the result of cls(response)

Return type:

WebTest

Raises:

HttpResponseError

models = <module 'azure.mgmt.applicationinsights.v2022_06_15.models' from '/mnt/vss/_work/1/s/sdk/applicationinsights/azure-mgmt-applicationinsights/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/applicationinsights/v2022_06_15/models/__init__.py'>