docs: def put(self, event_type, event_data={}, **kwargs):
          """
          Create/update an event.
          """
          event = dict(type=event_type, data=event_data)
  
          event["time"] = kwargs.get("time", datetime.utcnow().isoformat())
  
          if kwargs.get("id"):
              event["id"] = kwargs.get("id")
  
          data = json.dumps([event])
  
          r = requests.post(self.collector_url + 'event/put',
                            data=data,
                            headers={'content-type': 'application/json'})
          r.raise_for_status()
  
          return [event]