cloudfoundry / cloudfoundry/cf-java-client
Unable to query data between timestamp with cf-java-client
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 334
- Forks
- 319
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am trying to query the /v1/events api using the java client, but there is no provision to query for a particular range with timestamp. Below is the code,
cloudFoundryClient.events()
.list(ListEventsRequest.builder()
.timestamp(startDate)
.build())
Say if startDate is 2017-11-01, then java api gives the response from 2017-11-01 to current date (2017-11-21).
But the range is supported when I try to consume it via REST client.
/v2/events?order-by=timestamp&order-by=id&order-direction=asc&q=timestamp>=2017-11-01&q=timestamp<=2017-11-03
Could you please help on this ?
Thanks
Sundar
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the events().list flow and ListEventsRequest, then compare its timestamp handling with the REST /v2/events query shown in the issue. Add support for a bounded timestamp range and verify that requests can represent both the start and end dates shown in the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100