service-api icon indicating copy to clipboard operation
service-api copied to clipboard

Querying launches started during the last two days

Open wiibaker opened this issue 4 years ago • 1 comments

I'm having trouble getting the ReportPortal API "launch-controller" query parameters in place. Seems that there is not really any documentation how to actually use the API or what values you can put in.

The situation is that I would like to search through the API for all the launches that has started say during the last two days. The API documentation from the ReportPortal UI shows a parameter "filter.eq.startTime", but I do not wish to "eq" on a single timestamp. It seems that you can also use filters like "filter.cnt.name=foo" as I figured from the UI filter options and by trial & error, but how to enter a time range I do not have any clue. I have tried to look from the code etc, but with no answer yet.

  1. How do you enter a time range for API search filter?
  2. Is there any documentation or examples on how to use the ReporPortal API?

wiibaker avatar Dec 15 '20 11:12 wiibaker

haven't tried this, but how about a combination of filters: filter.gt.startTime=<begin_timestamp>&filter.lt.startTime=<end_timestamp>

rplevka avatar Jun 24 '21 22:06 rplevka