Get Load State

Request

GET /api/<db>/get_load_state

Description

返回指定label的导入事务的状态

Path parameters

  • <db>

    指定数据库

Query parameters

  • label

    指定导入label

Request body

Response

  1. {
  2. "msg": "success",
  3. "code": 0,
  4. "data": "VISIBLE",
  5. "count": 0
  6. }

如label不存在,则返回:

  1. {
  2. "msg": "success",
  3. "code": 0,
  4. "data": "UNKNOWN",
  5. "count": 0
  6. }

Examples

  1. 获取指定label的导入事务的状态。

    1. GET /api/example_db/get_load_state?label=my_label
    2. {
    3. "msg": "success",
    4. "code": 0,
    5. "data": "VISIBLE",
    6. "count": 0
    7. }