描述
opensearch 應用的定時索引重建任務
樣本
{
"id": "cfd5ebe9-bcdd-11ea-a58d-98039b07e4ec",
"progress": 0,
"status": 3,
"lastRanTimestamp": null,
"type": "wipe",
"running": false,
"paused": false,
"finished": false,
"idle": true,
"created": 1593747144,
"updated": 1593747144,
"cron": "0 0 * * 1,2,3,4,5,6,7",
"enabled": true,
"appId": null,
"appGroupId": "100303899",
"ownerId": "84",
"lastScheduledTimestamp": null,
"forkedAppId": "",
"appGroup": {
"id": "100303899"
},
"owner": {
"id": "84"
},
"filter": {
"field": "title",
"days": 30,
"unit": "s"
}
}結構
欄位 | 類型 | 描述 |
id | String | 任務ID |
progress | Integer | 任務運行進度 |
status | Integer | 任務狀態- 0 運行中- 1 暫停- 2 完成- 3 空閑 |
lastRanTimestamp | Integer/null | 最近已耗用時間戳 |
type | String | 定時任務類型- wipe 資料清理- fork 匯入資料加索引重建 -reindex 索引重建 - clear 清空資料 |
running | Boolean | 是否在運行中 |
paused | Boolean | 是否暫停 |
finished | Boolean | 是否完成 |
idle | Boolean | 是否空閑 |
cron | String | 定時配置參考:ScheduledTask 定時規則 |
enabled | Boolean | 是否開啟定時任務 |
appId | String | 版本ID |
appGroupId | String | 應用ID |
ownerId | String | 使用者ID |
lastScheduledTimestamp | Integer/null | 最近調度時間戳記 |
forkedAppId | String | 來源版本ID |
appGroup.id | String | 應用ID |
owner.id | String | 使用者ID |
filter | Object | 資料清理條件 |
filter.days | Integer | 到期天數擷取範圍:[7-180] |
filter.unit | String | 到期時間單位- s 秒- ms 毫秒 |
filter.field | String | 到期欄位 |