handlers.subscription_approval_handler

class SubscriptionApprovalHandler(handlers.eventhandler.EventHandler):

Whenever a non-admin adds a subscription, an admin/architect has to approve first.
Legacy automation, there are more elegant solutions today. If you need to approve subscriptions, please contact Aronis support.

name = 'Subscription Approval'
description = 'Subscriptions need to be approved by the admin first.'
conditions = {'event_types': ['SubscriptionCreatedEvent']}
config_template = {'roles': ['System Owner', 'Manager L1', 'RESPONSIBLE', 'ACCOUNTABLE']}
def handle(self, event, fact_sheet, **kwargs):

Called automatically whenever an event comes in via Webhook.