cloudfoundry / cloudfoundry/cf-java-client
Unable to query data between timestamp with cf-java-client
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 334
- 派生
- 319
- PR 合并指标
- 30 天内没有已合并 PR
描述
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
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 events().list 流程和 ListEventsRequest 开始,然后将其时间戳处理方式与 issue 中所示的 REST /v2/events 查询进行比较。添加对有界时间戳范围的支持,并验证请求可以表示示例中所示的开始日期和结束日期。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- api, backend
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100