airflow.providers.microsoft.azure.operators.powerbi
¶
Module Contents¶
Classes¶
Construct a link to monitor a dataset in Power BI. |
|
Refreshes a Power BI dataset. |
- class airflow.providers.microsoft.azure.operators.powerbi.PowerBILink[source]¶
Bases:
airflow.models.BaseOperatorLink
Construct a link to monitor a dataset in Power BI.
- get_link(operator, *, ti_key)[source]¶
Link to external system.
Note: The old signature of this function was
(self, operator, dttm: datetime)
. That is still supported at runtime but is deprecated.- Parameters
operator (airflow.models.BaseOperator) – The Airflow operator object this link is associated to.
ti_key (airflow.models.taskinstancekey.TaskInstanceKey) – TaskInstance ID to return link for.
- Returns
link to external system
- class airflow.providers.microsoft.azure.operators.powerbi.PowerBIDatasetRefreshOperator(*, dataset_id, group_id, conn_id=PowerBIHook.default_conn_name, timeout=60 * 60 * 24 * 7, proxies=None, api_version=None, check_interval=60, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
Refreshes a Power BI dataset.
- Parameters
dataset_id (str) – The dataset id.
group_id (str) – The workspace id.
conn_id (str) – Airflow Connection ID that contains the connection information for the Power BI account used for authentication.
timeout (float) – Time in seconds to wait for a dataset to reach a terminal status for asynchronous waits. Used only if
wait_for_termination
is True.check_interval (int) – Number of seconds to wait before rechecking the refresh status.