airflow.providers.alibaba.cloud.links.maxcompute¶
Classes¶
Helper class for constructing MaxCompute Log View Link. |
Module Contents¶
- class airflow.providers.alibaba.cloud.links.maxcompute.MaxComputeLogViewLink[source]¶
Bases:
airflow.sdk.BaseOperatorLink
Helper class for constructing MaxCompute Log View Link.
- name = 'MaxCompute Log View'[source]¶
Name of the link. This will be the button name on the task UI.
- get_link(operator, *, ti_key)[source]¶
Link to external system.
- 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
- Return type:
- static persist(context, task_instance, log_view_url)[source]¶
Persist the log view URL to XCom for later retrieval.
- Parameters:
context (airflow.utils.context.Context) – The context of the task instance.
task_instance (airflow.models.BaseOperator) – The task instance.
log_view_url (str) – The log view URL to persist.