airflow.providers.microsoft.azure.hooks.analysis_services¶
Attributes¶
Exceptions¶
Indicate that an Azure Analysis Services model refresh operation failed. |
Classes¶
Azure Analysis Services model refresh statuses. |
|
Interact with the Azure Analysis Services asynchronous refresh REST API. |
Module Contents¶
- airflow.providers.microsoft.azure.hooks.analysis_services.TOKEN_SCOPE = 'https://*.asazure.windows.net/.default'[source]¶
- airflow.providers.microsoft.azure.hooks.analysis_services.VALID_REFRESH_TYPES: frozenset[str][source]¶
- class airflow.providers.microsoft.azure.hooks.analysis_services.AzureAnalysisServicesRefreshStatus[source]¶
Azure Analysis Services model refresh statuses.
- exception airflow.providers.microsoft.azure.hooks.analysis_services.AzureAnalysisServicesRefreshException[source]¶
Bases:
airflow.providers.common.compat.sdk.AirflowExceptionIndicate that an Azure Analysis Services model refresh operation failed.
- class airflow.providers.microsoft.azure.hooks.analysis_services.AzureAnalysisServicesHook(azure_analysis_services_conn_id=default_conn_name, request_timeout=60)[source]¶
Bases:
airflow.providers.common.compat.sdk.BaseHookInteract with the Azure Analysis Services asynchronous refresh REST API.
All request methods are asynchronous and are meant to be awaited from a trigger. Call
aclose()when done so the HTTP client and the credential release their resources.- Parameters:
The connection must define the region endpoint in
host, the service principal client ID inlogin, the client secret inpassword, and the Microsoft Entra tenant ID in thetenantIdextra field.- property connection: airflow.sdk.Connection[source]¶
Return the Azure Analysis Services connection.
- classmethod get_connection_form_widgets()[source]¶
Return connection widgets to add to the connection form.
- classmethod get_ui_field_behaviour()[source]¶
Return custom field behaviour for the connection form.
- async get_refresh_status(server_name, database, refresh_id)[source]¶
Return the validated status of an Azure Analysis Services model refresh.