获取方案的状态
POST
/ModelRun/GetScenarioesStatus
ModelRun
对于未查询到的方案,不报错,会返回默认计算状态(进度为0,状态为已完成,日志为空),对于可以查询到的方案,将根据计算进度返回真实的状态。
请求参数
Body 参数application/json
方案id
projectName
string
项目名称
scenarioIdStrings
array[string]
方案Id列表
示例
{
"projectName": "bz",
"scenarioIdStrings": [
"903cfe80-779e-4e9e-a308-610f242596b1"
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://online-products.dhichina.cn/gateway/global-model-driver-service/ModelRun/GetScenarioesStatus' \
--header 'Content-Type: application/json' \
--data-raw '{
"projectName": "bz",
"scenarioIdStrings": [
"903cfe80-779e-4e9e-a308-610f242596b1"
]
}'
返回响应
🟢200成功
text/plain
Body
array of:
appId
string | null
计算服务id
projectName
string | null
项目名称
scenarioId
string <uuid>
方案Id
serialNo
string <uuid>
序列Id
stage
enum<integer> <int32>
可选
1-PreHandling
2-PreHandled
3-Running
4-Run
5-PostHanding
6-PostHandled
7-Cancelling
8-Canceled
1000-Finished
枚举值:
0123456781000
processStatus
number <float>
进度状态
dateTime
string <date-time>
状态更新时间
hasError
boolean
是否存在错误
message
string | null
可选
示例
{
"appId": "wwtcCompute",
"projectName": "bz",
"scenarioId": "903cfe80-779e-4e9e-a308-610f242596b1",
"serialNo": "8fe20539-3963-42bc-bcbe-d270b89c0cea",
"stage": 1,
"processStatus": 0,
"dateTime": "2024-08-24T14:15:22.123Z",
"hasError": false,
"message": "模型模板下载"
}