📢 Release 1.0.0-beta.11(2026-06-03)现已推出
Arcadia

数据监控

获取指标数据

GET/cron/dashboard/stats

请求

参数

类型

响应

参数

类型

示例
{
    "todaySuccessCount": 8,
    "todayFailureCount": 0,
    "yesterdaySuccessCount": 13,
    "yesterdayFailureCount": 1,
    "enabledCount": 18,
    "disabledCount": 23,
    "runningCount": 0
}

获取任务运行趋势

GET/cron/dashboard/trend

请求

参数

类型

响应

返回对象,包含趋势数据数组和耗时排行数据

参数

类型

durationRanking.shortest[] 的字段结构与 durationRanking.longest[] 完全一致。

示例
{
    "trend": [
        {
            "timestamp": 1773161661000,
            "taskId": 1,
            "taskName": "更新仓库",
            "taskType": "user",
            "duration": 21749,
            "success": true
        },
        {
            "timestamp": 1773233647000,
            "taskId": 1,
            "taskName": "更新仓库",
            "taskType": "user",
            "duration": 7042,
            "success": true
        }
    ],
    "durationRanking": {
        "longest": [
            {
                "taskId": 1,
                "taskName": "更新仓库",
                "taskType": "user",
                "execTimestamp": 1773161661000,
                "duration": 21749,
                "success": true
            }
        ],
        "shortest": [
            {
                "taskId": 1,
                "taskName": "更新仓库",
                "taskType": "user",
                "execTimestamp": 1773233647000,
                "duration": 7042,
                "success": true
            }
        ]
    }
}

获取正在运行中的任务

GET/cron/dashboard/running

请求

参数

类型

响应

返回数组对象

参数

类型

示例
[
    {
        "id": 1,
        "name": "更新仓库",
        "type": "user",
        "cron": "54 */2 * * *",
        "shell": "arcadia update repo"
    },
    {
        "id": 2,
        "name": "清理日志",
        "type": "system",
        "cron": "48 5 * * *",
        "shell": "arcadia rmlog 7"
    }
    ...
]