{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "API",
    "description" : "Batch is a basic module which allows certain sets of system programs to run at scheduled times. It aims to help automate the running of some system programs or withstand the pressure of system performance in an asynchronous way. It is actually a scheduling component that can help users automatically or manually schedule batch programs with a set of SDKs based on the Spring Batch framework, streamlining the development of batch programs.",
    "version" : "1.0/batch-v2",
    "x-mo-original-description" : "API Documentation",
    "x-mo-overwrite-description" : "Batch is a basic module which allows certain sets of system programs to run at scheduled times. It aims to help automate the running of some system programs or withstand the pressure of system performance in an asynchronous way. It is actually a scheduling component that can help users automatically or manually schedule batch programs with a set of SDKs based on the Spring Batch framework, streamlining the development of batch programs."
  },
  "servers" : [ {
    "url" : "http://batch-v2.platform"
  } ],
  "paths" : {
    "/batch-v2/batchExecutionWatch/v2/getJobExecution" : {
      "get" : {
        "tags" : [ "BatchExecutionWatch" ],
        "summary" : "Get Job Execution By ExecutionId",
        "operationId" : "getJobExecution",
        "parameters" : [ {
          "name" : "jobExecutionId",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/BatchExecutionBase"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        }
      }
    },
    "/batch-v2/batchExecutionWatch/v2/getSpringBatchJobExecution" : {
      "get" : {
        "tags" : [ "BatchExecutionWatch" ],
        "summary" : "Get SpringBatch Execution By ExecutionId",
        "operationId" : "getBatchJobExecution",
        "parameters" : [ {
          "name" : "jobExecutionId",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SpringBatchJobExecutionVO"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        }
      }
    },
    "/batch-v2/batchExecutionWatch/v2/queryJobExecutionByBusinessKey" : {
      "get" : {
        "tags" : [ "BatchExecutionWatch" ],
        "summary" : "Query Job Execution By BusinessKey",
        "operationId" : "queryJobExecutionByBusinessKey",
        "parameters" : [ {
          "name" : "jobBindBusinessKey",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "jobStatus",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          },
          "x-mo-overwrite-x-mo-codetable" : "Batch_v2_JobStatus",
          "x-mo-codetable" : "Batch_v2_JobStatus"
        }, {
          "name" : "jobName",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/BatchExecutionBase"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        }
      }
    },
    "/batch-v2/batchRuntime/v2/submitJob" : {
      "post" : {
        "tags" : [ "BatchRuntime" ],
        "summary" : "Submit Job With Parameters",
        "description" : "Submit Job With Parameters",
        "operationId" : "submitJob",
        "parameters" : [ {
          "name" : "jobName",
          "in" : "query",
          "description" : "Job Name",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "description" : "JobParameters With Map",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : { }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "jobParameters"
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/BatchExecutionBase"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        }
      }
    },
    "/batch-v2/batchRuntime/v2/submitJobWithBusinessKey" : {
      "post" : {
        "tags" : [ "BatchRuntime" ],
        "summary" : "Submit Job With BusinessKey And Parameters",
        "description" : "Submit Job With BusinessKey And Parameters",
        "operationId" : "submitJobWithBusinessKey",
        "parameters" : [ {
          "name" : "jobName",
          "in" : "query",
          "description" : "Job Name",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "jobBindBusinessKey",
          "in" : "query",
          "description" : "Job Bind BusinessKey",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "description" : "JobParameters With Map",
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : { }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "jobParameters"
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/BatchExecutionBase"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        }
      }
    }
  },
  "components" : {
    "schemas" : {
      "BatchExecutionBase" : {
        "type" : "object",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "Application" : {
            "type" : "string"
          },
          "CreateTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "CreateTimeUtc" : {
            "type" : "string",
            "format" : "date-time"
          },
          "DepenWaitTimeoutWarningTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "DependJobNames" : {
            "type" : "string"
          },
          "DueTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "ErrMessage" : {
            "type" : "string"
          },
          "ExecClientHost" : {
            "type" : "string"
          },
          "ExecClientIp" : {
            "type" : "string"
          },
          "ExecConsuming" : {
            "type" : "string"
          },
          "ExecMinutes" : {
            "type" : "integer",
            "format" : "int32"
          },
          "ExecPrecent" : {
            "type" : "integer",
            "format" : "int32"
          },
          "FinishTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "FireTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "HasFailure" : {
            "type" : "string"
          },
          "IsDepenWaitTimeOut" : {
            "type" : "string"
          },
          "IsDepenWaitTimeOutReported" : {
            "type" : "string"
          },
          "IsStatSyncSuccess" : {
            "type" : "string"
          },
          "IsTimeOut" : {
            "type" : "string"
          },
          "IsTimeOutReported" : {
            "type" : "string"
          },
          "JobBindBusinessKey" : {
            "type" : "string"
          },
          "JobExecutionId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "JobFrequencyType" : {
            "type" : "string"
          },
          "JobId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "JobName" : {
            "type" : "string"
          },
          "JobParams" : {
            "type" : "string"
          },
          "JobStatus" : {
            "type" : "string",
            "x-mo-overwrite-x-mo-codetable" : "Batch_v2_JobStatus",
            "x-mo-codetable" : "Batch_v2_JobStatus"
          },
          "LastStatSyncTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "NextDueTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "RealDueTimeList" : {
            "type" : "string"
          },
          "SpringBatchJobExecutionId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "SpringBatchStatus" : {
            "type" : "string"
          },
          "SpringBatchTotalCommit" : {
            "type" : "integer",
            "format" : "int32"
          },
          "SpringBatchTotalRead" : {
            "type" : "integer",
            "format" : "int32"
          },
          "SpringBatchTotalRollback" : {
            "type" : "integer",
            "format" : "int32"
          },
          "SpringBatchTotalWrite" : {
            "type" : "integer",
            "format" : "int32"
          },
          "SpringBatchTotalWriteSkip" : {
            "type" : "integer",
            "format" : "int32"
          },
          "SpringExitCode" : {
            "type" : "string"
          },
          "SpringExitMessage" : {
            "type" : "string"
          },
          "StatSyncFailedTimes" : {
            "type" : "integer",
            "format" : "int32"
          },
          "StatusTrace" : {
            "type" : "string"
          },
          "StopType" : {
            "type" : "string"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "TimeoutStopTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "TimeoutWarningTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "TraceId" : {
            "type" : "string"
          },
          "TriggerType" : {
            "type" : "string"
          },
          "UserName" : {
            "type" : "string"
          }
        }
      },
      "ExitStatus" : {
        "type" : "object",
        "properties" : {
          "ExitCode" : {
            "type" : "string"
          },
          "ExitDescription" : {
            "type" : "string"
          }
        }
      },
      "JobParameter" : {
        "type" : "object",
        "properties" : {
          "Identifying" : {
            "type" : "boolean"
          },
          "Parameter" : {
            "type" : "object"
          },
          "ParameterType" : {
            "type" : "object"
          }
        }
      },
      "JobParameters" : {
        "type" : "object",
        "properties" : {
          "Parameters" : {
            "type" : "object",
            "additionalProperties" : {
              "$ref" : "#/components/schemas/JobParameter"
            }
          }
        }
      },
      "SpringBatchJobExecutionVO" : {
        "type" : "object",
        "properties" : {
          "Abandonable" : {
            "type" : "boolean"
          },
          "CreateDate" : {
            "type" : "string",
            "format" : "date-time"
          },
          "EndTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "ExecutionContext" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "ExecutionId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "ExitStatus" : {
            "$ref" : "#/components/schemas/ExitStatus"
          },
          "FailureExceptions" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "StackTrace" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "ClassLoaderName" : {
                        "type" : "string"
                      },
                      "FileName" : {
                        "type" : "string"
                      },
                      "LineNumber" : {
                        "type" : "integer",
                        "format" : "int32"
                      },
                      "MethodName" : {
                        "type" : "string"
                      },
                      "ModuleName" : {
                        "type" : "string"
                      },
                      "ModuleVersion" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "JobId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "JobParameters" : {
            "$ref" : "#/components/schemas/JobParameters"
          },
          "LastUpdated" : {
            "type" : "string",
            "format" : "date-time"
          },
          "Restartable" : {
            "type" : "boolean"
          },
          "StartTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "Status" : {
            "type" : "string",
            "enum" : [ "COMPLETED", "STARTING", "STARTED", "STOPPING", "STOPPED", "FAILED", "ABANDONED", "UNKNOWN" ]
          },
          "StepExecutionCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "StepExecutions" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/SpringBatchStepExecutionVO"
            }
          },
          "Stoppable" : {
            "type" : "boolean"
          },
          "Version" : {
            "type" : "integer",
            "format" : "int32"
          },
          "name" : {
            "type" : "string"
          }
        }
      },
      "SpringBatchStepExecutionVO" : {
        "type" : "object",
        "properties" : {
          "CommitCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "EndTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "ExecutionContext" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "ExecutionId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "ExitStatus" : {
            "$ref" : "#/components/schemas/ExitStatus"
          },
          "FailureExceptions" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "StackTrace" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "ClassLoaderName" : {
                        "type" : "string"
                      },
                      "FileName" : {
                        "type" : "string"
                      },
                      "LineNumber" : {
                        "type" : "integer",
                        "format" : "int32"
                      },
                      "MethodName" : {
                        "type" : "string"
                      },
                      "ModuleName" : {
                        "type" : "string"
                      },
                      "ModuleVersion" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "FilterCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "JobExecutionId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "LastUpdated" : {
            "type" : "string",
            "format" : "date-time"
          },
          "ProcessSkipCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "ReadCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "ReadSkipCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "RollbackCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "StartTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "Status" : {
            "type" : "string",
            "enum" : [ "COMPLETED", "STARTING", "STARTED", "STOPPING", "STOPPED", "FAILED", "ABANDONED", "UNKNOWN" ]
          },
          "StepName" : {
            "type" : "string"
          },
          "StepType" : {
            "type" : "string"
          },
          "TerminateOnly" : {
            "type" : "boolean"
          },
          "Version" : {
            "type" : "integer",
            "format" : "int32"
          },
          "WriteCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "WriteSkipCount" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      }
    }
  },
  "x-mo-gateway-auth-enabled" : true,
  "x-mo-gateway-cors-enabled" : false
}