exporters.notifications package¶
Submodules¶
exporters.notifications.base_notifier module¶
-
class
exporters.notifications.base_notifier.
BaseNotifier
(options, metadata, *args, **kwargs)[source]¶ Bases:
exporters.pipeline.base_pipeline_item.BasePipelineItem
This module takes care of notifications delivery. It has a slightly different architecture than the others due to the support of multiple notification endpoints to be loaded at the same time. As you can see in the provided example, the notifications parameter is an array of notification objects. To extend and add notification endpoints, they can implement the following methods:
-
notify_failed_job
(mgs, stack_trace, receivers=None)[source]¶ Notifies the failure of a dump to the receivers
-
supported_options
= {}¶
-
exporters.notifications.notifiers_list module¶
exporters.notifications.receiver_groups module¶
exporters.notifications.s3_mail_notifier module¶
exporters.notifications.webhook_notifier module¶
-
class
exporters.notifications.webhook_notifier.
WebhookNotifier
(*args, **kwargs)[source]¶ Bases:
exporters.notifications.base_notifier.BaseNotifier
Performs a POST request to provided endpoints
- endpoints (list)
- Endpoints waiting for a start notification
-
supported_options
= {'endpoints': {'default': [], 'type': <class 'exporters.utils.list[unicode]'>}}¶