ComponentsOperations Class
ComponentsOperations operations.
You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.
- Inheritance
-
builtins.objectComponentsOperations
Constructor
ComponentsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- api_version
The API version to use for this operation. Constant value: "2020-02-02-preview".
Methods
| create_or_update |
Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. |
| delete |
Deletes an Application Insights component. |
| get |
Returns an Application Insights component. |
| get_purge_status |
Get status for an ongoing purge operation. |
| list |
Gets a list of all Application Insights components within a subscription. |
| list_by_resource_group |
Gets a list of Application Insights components within a resource group. |
| purge |
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. |
| update_tags |
Updates an existing component's tags. To update other fields use the CreateOrUpdate method. |
create_or_update
Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
create_or_update(resource_group_name, resource_name, insight_properties, custom_headers=None, raw=False, **operation_config)
Parameters
- insight_properties
- ApplicationInsightsComponent
Properties that need to be specified to create an Application Insights component.
- operation_config
Operation configuration overrides.
Returns
ApplicationInsightsComponent or ClientRawResponse if raw=true
Return type
Exceptions
delete
Deletes an Application Insights component.
delete(resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
None or ClientRawResponse if raw=true
Return type
Exceptions
get
Returns an Application Insights component.
get(resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
ApplicationInsightsComponent or ClientRawResponse if raw=true
Return type
Exceptions
get_purge_status
Get status for an ongoing purge operation.
get_purge_status(resource_group_name, resource_name, purge_id, custom_headers=None, raw=False, **operation_config)
Parameters
- purge_id
- str
In a purge status request, this is the Id of the operation the status of which is returned.
- operation_config
Operation configuration overrides.
Returns
ComponentPurgeStatusResponse or ClientRawResponse if raw=true
Return type
Exceptions
list
Gets a list of all Application Insights components within a subscription.
list(custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
An iterator like instance of ApplicationInsightsComponent
Return type
Exceptions
list_by_resource_group
Gets a list of Application Insights components within a resource group.
list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
An iterator like instance of ApplicationInsightsComponent
Return type
Exceptions
purge
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.
purge(resource_group_name, resource_name, table, filters, custom_headers=None, raw=False, **operation_config)
Parameters
- filters
- list[ComponentPurgeBodyFilters]
The set of columns and filters (queries) to run over them to purge the resulting data.
- operation_config
Operation configuration overrides.
Returns
ComponentPurgeResponse or ClientRawResponse if raw=true
Return type
Exceptions
update_tags
Updates an existing component's tags. To update other fields use the CreateOrUpdate method.
update_tags(resource_group_name, resource_name, tags=None, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
ApplicationInsightsComponent or ClientRawResponse if raw=true
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.applicationinsights.v2020_02_02_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\applicationinsights\\v2020_02_02_preview\\models\\__init__.py'>
Feedback
Submit and view feedback for