Notification Modules¶
- class promgen.notification.FormSenderBase(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶
- property media¶
Return all media required to render the widgets on this form.
- class promgen.notification.NotificationBase[source]¶
Base Notification class
- config(key, default=<class 'KeyError'>)[source]¶
Plugin specific configuration
This wraps our PROMGEN settings so that a plugin author does not need to be concerned with how the configuration files are handled but only about the specific key.
- form¶
alias of
FormSenderBase
- class promgen.notification.email.FormEmail(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶
- property media¶
Return all media required to render the widgets on this form.
- class promgen.notification.linenotify.FormLineNotify(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶
- property media¶
Return all media required to render the widgets on this form.
- class promgen.notification.linenotify.NotificationLineNotify[source]¶
Send messages to LINE Notify.
https://notify-bot.line.me/en/
- form¶
alias of
FormLineNotify
Simple webhook bridge Accepts alert json from Alert Manager and then POSTs individual alerts to configured webhook destinations
- class promgen.notification.webhook.FormWebhook(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶
- property media¶
Return all media required to render the widgets on this form.
- class promgen.notification.webhook.NotificationWebhook[source]¶
Post notifications to a specific web endpoint.
- form¶
alias of
FormWebhook