2016-09-20 32 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