2016-09-20 33 views
0

我正在寻找UrabanCode Deploy中的REST API选项以获取特定时间范围内的所有部署过程。比方说,如何使用UrabanCode部署REST API在一个时间范围内获取所有部署过程请求?

- All deployment process request id submitted within 24 hours. 
- All Deploy process request submitted in Last 7 Days etc. 

我已经检查了可能性applicationProcessRequest REST API与filterValue选项,如this question但没有运气建议。它显示所有的处理请求。

http://localhost:8443/rest/deploy/applicationProcessRequest/table?filterValue_submittedTime=1473282726868 

我在寻找过滤器选项来限制基于日期字段的结果。
有谁知道UrbanCode REST API返回所有applicationProcessRequest id在一个时间范围内?

我真的很感谢你的帮助。谢谢。

回答

0

我们可以从/rest/report/adhoc端点获取部署进程请求标识列表。
参数是:

  • DATERANGE:定制,currentWeek,currentMonth
  • date_low:UnixTimestamp以毫秒为单位(必填,如果日期范围是 定制)
  • date_hi:UnixTimestamp以毫秒为单位(必填如果 dateRange是自定义的)
  • orderField:订单场
  • sortType:排序类型递增/递减
  • 类型:报告类型 com.urbancode.ds.subsys.report.domain.deployment_report.DeploymentReport

语法:

http://localhost:8443/rest/report/adHoc?dateRange=custom&date_low=<START_DATE>&date_hi=<END_DATE>&orderField=application&sortType=asc&type=com.urbancode.ds.subsys.report.domain.deployment_report.DeploymentReport 

http://localhost:8443/rest/report/adHoc?dateRange=custom&date_low=1472702400000&date_hi=1474430400000&orderField=application&sortType=asc&type=com.urbancode.ds.subsys.report.domain.deployment_report.DeploymentReport