{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yunqi/json-schema/yunqi-multi-rt-di-execute-request-schema.json",
  "title": "MultiRtDiExecuteRequest",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yunqi-multirealtimeditask-api-openapi.yml#/components/schemas/MultiRtDiExecuteRequest",
  "type": "object",
  "properties": {
    "taskId": {
      "type": "integer",
      "format": "int64",
      "title": "任务ID/文件ID"
    },
    "startupParams": {
      "$ref": "#/$defs/MutiRtDiStartupParams"
    },
    "startupMode": {
      "type": "string",
      "enum": [
        "INITIAL",
        "SAVEPOINT",
        "TIMESTAMP",
        "OFFSET"
      ]
    },
    "tenantId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "userId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "instance": {
      "type": "string",
      "description": "实例名"
    }
  },
  "required": [
    "taskId",
    "startupParams"
  ],
  "$defs": {
    "MutiRtDiStartupParams": {
      "type": "object",
      "properties": {
        "engineType": {
          "type": "integer",
          "format": "int32"
        },
        "snapshotTaskSwitch": {
          "type": "integer",
          "format": "int32"
        },
        "config": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {}
          }
        },
        "startupMode": {
          "type": "string",
          "enum": [
            "INITIAL",
            "SAVEPOINT",
            "TIMESTAMP",
            "OFFSET"
          ]
        }
      },
      "required": [
        "engineType",
        "snapshotTaskSwitch",
        "config"
      ]
    }
  }
}