def list(from = nil, to = Time.now, limit = 100, cursor = nil)
      raise ArgumentError unless from && to
      wf_event_id?(cursor) if cursor

      from = parse_time(from, true)
      to   = parse_time(to, true)

      wf_ms_ts?(from)
      wf_ms_ts?(to)

      body = { earliestStartTimeEpochMillis: from,
               latestStartTimeEpochMillis:   to,
               cursor:                       cursor,
               limit:                        limit }

      api.get('', body.cleanse)
    end
def list(from = nil, to = Time.now, limit = 100, cursor = nil)
      raise ArgumentError unless from && to
      wf_event_id?(cursor) if cursor

      from = parse_time(from, true)
      to   = parse_time(to, true)

      wf_ms_ts?(from)
      wf_ms_ts?(to)

      body = { earliestStartTimeEpochMillis: from,
               latestStartTimeEpochMillis:   to,
               cursor:                       cursor,
               limit:                        limit }

      api.get('', body.cleanse)
    end
GET /api/v2/event
 List all the events for a customer within a time range.

 @param from [Time, Integer] start of time range. The API
   requires this time as epoch milliseconds, but we will also
   accept it as a Ruby Time object.
 @param to [Time, Integer] end ot time range. Can be epoch
   millisecods or a Ruby time. If not supplied, defaults to the
   current time.
 @param cursor [String] event from which to start listing
 @param limit [Integer] the number of events to return
 @return [Wavefront::Response]