airflow.providers.amazon.aws.notifications.chime

属性

send_chime_notification

ChimeNotifier

Chime 通知器,用于通过回调向 chime 聊天室发送消息。

模块内容

class airflow.providers.amazon.aws.notifications.chime.ChimeNotifier(*, chime_conn_id, message='This is the default chime notifier message')[source]

基类: airflow.providers.common.compat.notifier.BaseNotifier

Chime 通知器,用于通过回调向 chime 聊天室发送消息。

参数:
  • chime_conn_id (str) – 要使用的 Chime 连接,其端点为 “https://hooks.chime.aws”,且 webhook token 的形式为 `{webhook.id}?token{webhook.token}`

  • message (str) – 要发送到与该 webhook 关联的 Chime 聊天室的消息。

template_fields = ('message',)[source]
chime_conn_id[source]
message = 'This is the default chime notifier message'[source]
property hook[source]

为了减少开销,缓存通知器的 hook。

notify(context)[source]

发送消息到 Chime 聊天室。

airflow.providers.amazon.aws.notifications.chime.send_chime_notification[source]

此条目有帮助吗?