handlers.subscription_limiter_handler
Allow a maximum of 'n' subscriptions of a single role per fact sheet.
Configuration:
limits: key/value pairs of subscription role names and the limit, e.g.:
"limits": {
"System Owner": 1,
"RESPONSIBLE": 2,
}
def
handle(self, event, fact_sheet, **kwargs):
Called automatically whenever an event comes in via Webhook.
Inherited Members
- handlers.eventhandler.EventHandler
- EventHandler
- supports_initial_sync
- get_trigger
- get_event_types
- get_fs_types
- get
- all
- lx_client
- data_requirements
- initial_sync_event
- update_with_uniqueness_check
- facet_matches
- is_tag_key
- SUBSCRIPTION_TYPES
- parse_subscription_key
- get_mapped_subscriptions
- get_notification_users
- get_send_email_for_users
- get_email_callback
- get_due_date