特定時間點報告
產品版本:10.11
最後修改日期:2024年7月31日
產生指定時間點的 PDF 格式工作報告。
終點
https://<Director_IP_address>:4443/c/router
請求範例
複製
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "ReportingManagement",
"method": "createJobReport",
"data": [1, null, "2022-06-07T18:00:00.000+03:00", "2022-06-07T18:00:00.000+03:00", 10800000, "PDF"],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域 |
類型 |
值(們) |
|---|---|---|
action
|
字串 |
ReportingManagement
|
method
|
字串 |
createJobReport
|
data
|
陣列 | 請參閱以下參數: |
type
|
字串 | rpc
|
tid
|
整數 | 1 |
資料
|
領域 |
類型 |
Description |
|---|---|---|
|
|
long
|
工作編號 |
|
|
long
|
工作執行 ID(可選) |
|
|
DateTime |
工作經歷起始日期 |
|
|
DateTime
|
工作經歷結束日期(與 startDate) |
|
|
Integer
|
與 UTC 時區的偏移量(以毫秒為單位)(可選) |
|
|
字串 | 匯出檔案的格式。可以是「CSV」、「PDF」或「HTML」 |
錯誤回應範例
複製
{
"action": "ReportingManagement",
"method": "createJobReport",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
回應欄位
|
領域 |
價值 |
Description |
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 關於發生問題的方法的說明 |
cause
|
字串 | 故障原因 |