azure.mgmt.applicationinsights.v2018_05_01_preview.operations module
- class azure.mgmt.applicationinsights.v2018_05_01_preview.operations.ComponentsOperations(*args, **kwargs)[source]
Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
ApplicationInsightsManagementClient
’scomponents
attribute.- create_or_update(resource_group_name: str, resource_name: str, insight_properties: ApplicationInsightsComponent | IO[bytes], **kwargs: Any) ApplicationInsightsComponent [source]
Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
- Parameters:
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
resource_name (str) – The name of the Application Insights component resource. Required.
insight_properties (ApplicationInsightsComponent or IO[bytes]) – Properties that need to be specified to create an Application Insights component. Is either a ApplicationInsightsComponent type or a IO[bytes] type. Required.
- Returns:
ApplicationInsightsComponent or the result of cls(response)
- Return type:
- Raises:
- delete(resource_group_name: str, resource_name: str, **kwargs: Any) None [source]
Deletes an Application Insights component.
- Parameters:
- Returns:
None or the result of cls(response)
- Return type:
None
- Raises:
- get(resource_group_name: str, resource_name: str, **kwargs: Any) ApplicationInsightsComponent [source]
Returns an Application Insights component.
- Parameters:
- Returns:
ApplicationInsightsComponent or the result of cls(response)
- Return type:
- Raises:
- get_purge_status(resource_group_name: str, resource_name: str, purge_id: str, **kwargs: Any) ComponentPurgeStatusResponse [source]
Get status for an ongoing purge operation.
- Parameters:
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
resource_name (str) – The name of the Application Insights component resource. Required.
purge_id (str) – In a purge status request, this is the Id of the operation the status of which is returned. Required.
- Returns:
ComponentPurgeStatusResponse or the result of cls(response)
- Return type:
- Raises:
- list(**kwargs: Any) Iterable[ApplicationInsightsComponent] [source]
Gets a list of all Application Insights components within a subscription.
- Returns:
An iterator like instance of either ApplicationInsightsComponent or the result of cls(response)
- Return type:
- Raises:
- list_by_resource_group(resource_group_name: str, **kwargs: Any) Iterable[ApplicationInsightsComponent] [source]
Gets a list of Application Insights components within a 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 ApplicationInsightsComponent or the result of cls(response)
- Return type:
- Raises:
- purge(resource_group_name: str, resource_name: str, body: ComponentPurgeBody | IO[bytes], **kwargs: Any) ComponentPurgeResponse [source]
Purges data in an Application Insights component by a set of user-defined filters.
In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.
- Parameters:
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
resource_name (str) – The name of the Application Insights component resource. Required.
body (ComponentPurgeBody or IO[bytes]) – Describes the body of a request to purge data in a single table of an Application Insights component. Is either a ComponentPurgeBody type or a IO[bytes] type. Required.
- Returns:
ComponentPurgeResponse or the result of cls(response)
- Return type:
- Raises:
- update_tags(resource_group_name: str, resource_name: str, component_tags: TagsResource | IO[bytes], **kwargs: Any) ApplicationInsightsComponent [source]
Updates an existing component’s tags. To update other fields use the CreateOrUpdate method.
- Parameters:
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
resource_name (str) – The name of the Application Insights component resource. Required.
component_tags (TagsResource or IO[bytes]) – Updated tag information to set into the component instance. Is either a TagsResource type or a IO[bytes] type. Required.
- Returns:
ApplicationInsightsComponent or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.applicationinsights.v2018_05_01_preview.models' from '/mnt/vss/_work/1/s/sdk/applicationinsights/azure-mgmt-applicationinsights/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/applicationinsights/v2018_05_01_preview/models/__init__.py'>
- class azure.mgmt.applicationinsights.v2018_05_01_preview.operations.Operations(*args, **kwargs)[source]
Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
ApplicationInsightsManagementClient
’soperations
attribute.- list(**kwargs: Any) Iterable[Operation] [source]
List available operations.
List the available operations supported by the Microsoft.EventGrid resource provider.
- Returns:
An iterator like instance of either Operation or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.applicationinsights.v2018_05_01_preview.models' from '/mnt/vss/_work/1/s/sdk/applicationinsights/azure-mgmt-applicationinsights/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/applicationinsights/v2018_05_01_preview/models/__init__.py'>
- class azure.mgmt.applicationinsights.v2018_05_01_preview.operations.ProactiveDetectionConfigurationsOperations(*args, **kwargs)[source]
Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
ApplicationInsightsManagementClient
’sproactive_detection_configurations
attribute.- get(resource_group_name: str, resource_name: str, configuration_id: str, **kwargs: Any) ApplicationInsightsComponentProactiveDetectionConfiguration [source]
Get the ProactiveDetection configuration for this configuration id.
- Parameters:
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
resource_name (str) – The name of the Application Insights component resource. Required.
configuration_id (str) – The ProactiveDetection configuration ID. This is unique within a Application Insights component. Required.
- Returns:
ApplicationInsightsComponentProactiveDetectionConfiguration or the result of cls(response)
- Return type:
- Raises:
- list(resource_group_name: str, resource_name: str, **kwargs: Any) List[ApplicationInsightsComponentProactiveDetectionConfiguration] [source]
Gets a list of ProactiveDetection configurations of an Application Insights component.
- Parameters:
- Returns:
list of ApplicationInsightsComponentProactiveDetectionConfiguration or the result of cls(response)
- Return type:
list[ApplicationInsightsComponentProactiveDetectionConfiguration]
- Raises:
- update(resource_group_name: str, resource_name: str, configuration_id: str, proactive_detection_properties: ApplicationInsightsComponentProactiveDetectionConfiguration | IO[bytes], **kwargs: Any) ApplicationInsightsComponentProactiveDetectionConfiguration [source]
Update the ProactiveDetection configuration for this configuration id.
- Parameters:
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
resource_name (str) – The name of the Application Insights component resource. Required.
configuration_id (str) – The ProactiveDetection configuration ID. This is unique within a Application Insights component. Required.
proactive_detection_properties (ApplicationInsightsComponentProactiveDetectionConfiguration or IO[bytes]) – Properties that need to be specified to update the ProactiveDetection configuration. Is either a ApplicationInsightsComponentProactiveDetectionConfiguration type or a IO[bytes] type. Required.
- Returns:
ApplicationInsightsComponentProactiveDetectionConfiguration or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.applicationinsights.v2018_05_01_preview.models' from '/mnt/vss/_work/1/s/sdk/applicationinsights/azure-mgmt-applicationinsights/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/applicationinsights/v2018_05_01_preview/models/__init__.py'>
- class azure.mgmt.applicationinsights.v2018_05_01_preview.operations.WebTestsOperations(*args, **kwargs)[source]
Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
ApplicationInsightsManagementClient
’sweb_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:
- Raises:
- delete(resource_group_name: str, web_test_name: str, **kwargs: Any) None [source]
Deletes an Application Insights web test.
- Parameters:
- Returns:
None or the result of cls(response)
- Return type:
None
- Raises:
- get(resource_group_name: str, web_test_name: str, **kwargs: Any) WebTest [source]
Get a specific Application Insights web test definition.
- Parameters:
- Returns:
WebTest or the result of cls(response)
- Return type:
- Raises:
- list(**kwargs: Any) Iterable[WebTest] [source]
Get all Application Insights web test alerts definitions within a subscription.
- Returns:
An iterator like instance of either WebTest or the result of cls(response)
- Return type:
- Raises:
- 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:
- Returns:
An iterator like instance of either WebTest or the result of cls(response)
- Return type:
- Raises:
- list_by_resource_group(resource_group_name: str, **kwargs: Any) Iterable[WebTest] [source]
Get all Application Insights web tests defined within a 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:
- Raises:
- update_tags(resource_group_name: str, web_test_name: str, web_test_tags: TagsResource | 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_tags (TagsResource or IO[bytes]) – Updated tag information to set into the web test instance. Is either a TagsResource type or a IO[bytes] type. Required.
- Returns:
WebTest or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.applicationinsights.v2018_05_01_preview.models' from '/mnt/vss/_work/1/s/sdk/applicationinsights/azure-mgmt-applicationinsights/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/applicationinsights/v2018_05_01_preview/models/__init__.py'>