airflow.providers.dingding.operators.dingding

Module Contents

Classes

DingdingOperator

This operator allows to send DingTalk message using Custom Robot API.

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: Sequence[str] = ('message',)[source]
ui_color = '#4ea4d4'[source]
execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?