code: def send(transport, time, state, host, description, service, tag, attribute,
           ttl, metric_f, echo):
      
      client = CommandLineClient(transport)
      event = client.create_event({
          'time': time,
          'state': state,
          'host': host,
          'description': description,
          'service': service,
          'tags': tag,
          'attributes': dict(attribute),
          'ttl': ttl,
          'metric_f': metric_f
      })
  
      with client:
          client.send_event(event)
      if echo:
          echo_event(client.create_dict(event))
docs: Send a single event to Riemann