code: def read_event(self, check_result):
          '''
          Convert the piped check result (json) into a global 'event' dict
          '''
          try:
              event = json.loads(check_result)
              event['occurrences'] = event.get('occurrences', 1)
              event['check'] = event.get('check', {})
              event['client'] = event.get('client', {})
              return event
          except Exception:
              raise ValueError('error reading event: ' + check_resultf read_event(self, check_result):
          '''
          Convert the piped check result (json) into a global 'event' dict
          '''
          try:
              event = json.loads(check_result)
              event['occurrences'] = event.get('occurrences', 1)
              event['check'] = event.get('check', {})
              event['client'] = event.get('client', {})
              return event
          except Exception:
              raise ValueError('error reading event: ' + check_result)
docs: Convert the piped check result (json) into a global 'event' dict