最後一次運行報告
產品版本:10.11
最後修改日期:2024年7月31日
產生一個檔案,其中包含指定工作執行相關的資訊,並以指定格式呈現。
終點
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, 1, null, null, 10800000, "PDF"],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域 |
類型 |
值(們) |
|---|---|---|
action
|
字串 | ReportingManagement |
method
|
字串 | createJobReport |
data
|
陣列 | 請參閱以下參數: |
type
|
字串 | rpc
|
tid
|
整數 | 1 |
資料
|
領域 |
類型 |
Description |
|---|---|---|
|
|
long
|
工作編號 |
|
|
long
|
工作執行 ID(可選) |
|
|
DateTime
|
報告期間的起始時間,已調整為 00:00。當兩個日期皆為 null時,報告將涵蓋最近一次的工作執行 |
|
|
DateTime
|
報告期間結束,時間已調整為 23:59。當兩個日期皆為 null時,報告將涵蓋最近一次的工作執行 |
|
|
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
|
字串 | 故障原因 |