handlers.application_compliance_handler

class ApplicationComplianceHandler(handlers.eventhandler.EventHandler):

Whenever an Application is updated, we calculate its compliance status based on its components and risk sign-off.
Customer-specific automation, requires a special data model. Should not be used for testing.

name = 'Set application compliance'
description = 'Whenever an Application is updated, we calculate its compliance status based on its components.'
conditions = {'event_types': ['FactSheetUpdatedEvent'], 'fs_types': ['Application', 'ITComponent']}
config_template = {}
@staticmethod
def calculate_compliance_status(event, application):
def handle(self, event, fact_sheet):

Called automatically whenever a FactSheetUpdated event comes in via webhook.