Download OpenAPI specification:
Vega Backend Catalog 健康检查计划 API。
每个 physical Catalog 对应一条健康检查计划。计划是 Catalog 的独立子资源,Catalog 详情与
列表响应不会内嵌该对象。创建 physical Catalog 时可通过 health_check_schedule 组合创建;
创建后的查询和修改使用本文件定义的独立端点。
每个外部接口都有一一对应的内部版本,路径前缀为 /api/vega-backend/in/v1,请求体与
响应结构与外部完全一致;区别仅在于鉴权方式。本文档仅描述外部接口。
仅 physical Catalog 支持;需要该 Catalog 的 view_detail 权限。
| id required | string physical Catalog ID |
{- "catalog_id": "string",
- "mode": "inherit",
- "cron_expr": "string",
- "last_run": 0,
- "next_run": 0,
- "creator": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "create_time": 0,
- "updater": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "update_time": 0
}仅 physical Catalog 支持,需要该 Catalog 的 modify 权限。不支持 DELETE 或单独的启停接口:
使用 mode=inherit、enabled、disabled 完成全量状态切换。
必须传入 expected_update_time 进行乐观并发控制。该值应取自最近一次查询响应的
update_time;若计划已被其他请求更新,返回 409
VegaBackend.CatalogHealthCheckSchedule.UpdateConflict。
| id required | string physical Catalog ID |
| expected_update_time required | integer <int64> >= 1 仅独立 PUT 使用的必填乐观锁版本,取自最近一次查询响应的 |
| mode required | string Enum: "inherit" "enabled" "disabled"
|
| cron_expr | string non-empty 仅当 |
{- "expected_update_time": 1,
- "mode": "inherit",
- "cron_expr": "string"
}{- "catalog_id": "string",
- "mode": "inherit",
- "cron_expr": "string",
- "last_run": 0,
- "next_run": 0,
- "creator": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "create_time": 0,
- "updater": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "update_time": 0
}