{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yunqi/json-schema/yunqi-realtime-task-get-detail-response-schema.json",
  "title": "RealtimeTaskGetDetailResponse",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yunqi-realtimetask-api-openapi.yml#/components/schemas/RealtimeTaskGetDetailResponse",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string"
    },
    "success": {
      "type": "boolean"
    },
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "data": {
      "$ref": "#/$defs/RealtimeTaskDetailResult"
    }
  },
  "required": [
    "requestId",
    "success",
    "code",
    "message"
  ],
  "$defs": {
    "RealtimeTaskDetailResult": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "name": {
          "type": "string",
          "title": "任务名"
        },
        "tenantId": {
          "type": "integer",
          "format": "int64"
        },
        "userId": {
          "type": "integer",
          "format": "int64"
        },
        "projectId": {
          "type": "integer",
          "format": "int64"
        },
        "projectName": {
          "type": "string"
        },
        "taskOwner": {
          "type": "string"
        },
        "createdBy": {
          "type": "string"
        },
        "vcName": {
          "type": "string"
        },
        "createTime": {
          "type": "string",
          "format": "date"
        },
        "updateTime": {
          "type": "string",
          "format": "date"
        },
        "taskStatus": {
          "type": "string",
          "enum": [
            "UN_EXECUTE",
            "STARTING",
            "EXECUTING",
            "STOPPING",
            "STOPPED",
            "FAILURE"
          ]
        },
        "taskType": {
          "type": "string",
          "title": "流批实时任务类型",
          "enum": [
            "CDC",
            "CDC_REALTIME",
            "STREAMING_INTEGRATION",
            "SNAPSHOT_SYNCHRONIZATION",
            "INCREMENTAL_SYNCHRONIZATION",
            "DYNAMIC_TABLE",
            "CONTINUOUS_JOB"
          ]
        }
      },
      "required": [
        "id",
        "tenantId",
        "userId",
        "projectId",
        "projectName",
        "name",
        "taskStatus",
        "taskType"
      ]
    }
  }
}