{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yunqi/json-schema/yunqi-task-instance-list-request-schema.json",
  "title": "TaskInstanceListRequest",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yunqi-scheduletask-api-openapi.yml#/components/schemas/TaskInstanceListRequest",
  "type": "object",
  "properties": {
    "pageIndex": {
      "type": "integer",
      "default": 1
    },
    "pageSize": {
      "type": "integer",
      "default": 10
    },
    "orderBy": {
      "type": "string",
      "title": "DESC/ASC"
    },
    "sortBy": {
      "type": "string",
      "title": "排序字段"
    },
    "projectId": {
      "type": "integer",
      "format": "int64",
      "title": "与workspace二选一"
    },
    "taskNodeType": {
      "type": "string",
      "enum": [
        "VIRTUAL",
        "PROJECT_EMPTY_TASK",
        "DATA_INTEGRATION",
        "SPARK",
        "HIVE",
        "LAKE_HOUSE",
        "SHELL",
        "HTTP_CONTROLLER",
        "PYTHON3",
        "PYTHON2",
        "STREAM_DATA_INTEGRATION",
        "JDBC"
      ]
    },
    "taskNodeIds": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "taskInstanceId": {
      "type": "integer",
      "format": "int64"
    },
    "ownerId": {
      "type": "integer",
      "format": "int64"
    },
    "bizDataStartTime": {
      "type": "string",
      "format": "date"
    },
    "bizDataEndTime": {
      "type": "string",
      "format": "date"
    },
    "queryStartPlanTime": {
      "type": "string",
      "format": "date"
    },
    "queryEndPlanTime": {
      "type": "string",
      "format": "date"
    },
    "queryStartTriggerTime": {
      "type": "string",
      "format": "date"
    },
    "queryEndTriggerTime": {
      "type": "string",
      "format": "date"
    },
    "taskInstanceStatusList": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "SUCCESS",
          "UN_EXECUTE",
          "FAIL",
          "EXECUTING",
          "WAITING_QUEUE",
          "WAITING_DEPENDENCY",
          "WAITING_DEPENDENCY_SUCCES",
          "STOP",
          "FAILED_RETRY",
          "DISABLED"
        ]
      }
    },
    "executorUserId": {
      "type": "integer",
      "format": "int64"
    },
    "workspace": {
      "type": [
        "string",
        "null"
      ],
      "title": "工作空间"
    },
    "schema": {
      "type": [
        "string",
        "null"
      ],
      "title": "schema"
    },
    "tenantId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "title": "账号ID"
    },
    "userId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "title": "用户ID"
    },
    "instance": {
      "type": [
        "string",
        "null"
      ],
      "title": "实例名"
    },
    "scheduleType": {
      "type": "string",
      "enum": [
        "CYCLE",
        "MANUAL",
        "COMPLEMENT",
        "ACTUAL"
      ],
      "title": "调度类型"
    },
    "taskInstanceType": {
      "type": "string",
      "enum": [
        "SCHEDULE_INSTANCE",
        "TEST_INSTANCE",
        "TEMP_INSTANCE",
        "COMPLEMENT_INSTANCE",
        "MANUAL_INSTANCE"
      ]
    }
  },
  "required": [
    "queryEndPlanTime",
    "pageIndex",
    "pageSize",
    "workspace",
    "instance"
  ]
}