🎉 Arcadia 1.0.0-beta.8(现已发布)
Arcadia

数据监控

获取指标数据

GET/cron/dashboard/stats

请求

参数

类型

响应

参数

类型

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

获取任务运行趋势

GET/cron/dashboard/trend

请求

参数

类型

响应

返回数组对象

参数

类型

示例
[
    {
        "timestamp": 1773161661000,
        "taskId": 1,
        "taskName": "更新仓库",
        "taskType": "user",
        "duration": 21749,
        "success": true
    },
    {
        "timestamp": 1773233647000,
        "taskId": 1,
        "taskName": "更新仓库",
        "taskType": "user",
        "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"
    }
    ...
]