code: def cancel(self, event):
          
  
          topic = event.data.get('topic', None)
          if topic is None:
              self.log('No alert topic to cancel', lvl=warn)
              return
          self._cancel(topic)
docs: AlertManager event handler for incoming events
  
          :param event with incoming AlertManager message