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]

此條目有幫助嗎?