GET /api/bot
公开接口。无需身份验证,无速率限制
接口地址
GET https://mai.chongxi.us/api/bot在线测试
响应参数
| 字段 | 类型 | 说明 |
|---|---|---|
status | string | "normal" (正常) / "anomaly" (不稳定) / "empty" (异常) |
summary | string | 摘要 |
latency.current_ms | int | 当前延迟(ms) |
latency.load_text | string | 负载 |
latency.volatility_text | string | 延迟波动 |
reports.anomaly_count | int | 最近 1 小时内的异常上报数 |
reports.normal_count | int | 最近 1 小时内的正常上报数 |
recent_logs[] | array | 最近 3 条日志记录 |
recent_logs[].time_ago | string | 相对时间 |
recent_logs[].region | string | 归属地 |
recent_logs[].type | string | 上报类型tag |
broadcast.msg | string | 公告消息(若为空则忽略) |
响应示例
{
"status": "normal",
"summary": "服务器运行正常",
"latency": {
"current_ms": 42,
"load_text": "低",
"volatility_text": "稳定"
},
"reports": {
"anomaly_count": 3,
"normal_count": 10
},
"recent_logs": [
{ "time_ago": "5分钟前", "region": "华东", "type": "机台断网" }
],
"broadcast": {
"msg": "维护公告内容(可选)"
}
}