airflow.providers.dingding.operators.dingding¶
Classes¶
This operator allows to send DingTalk message using Custom Robot API. |
Module Contents¶
- class airflow.providers.dingding.operators.dingding.DingdingOperator(*, dingding_conn_id='dingding_default', message_type='text', message=None, at_mobiles=None, at_all=False, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
This operator allows to send DingTalk message using Custom Robot API.
See also
For more information on how to use this operator, take a look at the guide: Basic Usage
- Parameters:
dingding_conn_id (str) – Dingding connection id that has access token in the password field, and optional host name in host field, if host not set than default
https://oapi.dingtalk.com
will use.message_type (str) – Message type you want to send to Dingding, support five type so far including
text
,link
,markdown
,actionCard
,feedCard
.message (str | dict | None) – The message send to chat group
at_mobiles (list[str] | None) – Remind specific users with this message
at_all (bool) – Remind all people in group or not. If True, will overwrite
at_mobiles
- template_fields: collections.abc.Sequence[str] = ('message',)[source]¶