AI开发平台MODELARTS-获取Execution列表:响应示例

时间:2024-04-30 18:34:12

响应示例

状态码: 200

OK

{
  "total" : 1,
  "count" : 1,
  "items" : [ {
    "created_at" : "2022-06-17T17:08:16.91019+08:00",
    "name" : "execution-064",
    "execution_id" : "918cd9bd-62dd-4179-b5f0-773dd7184a56",
    "description" : "",
    "status" : "completed",
    "workspace_id" : "0",
    "workflow_id" : "f1642618-43eb-4ab1-a0b1-9cc584182c60",
    "workflow_name" : "workflow_model_service_no_modify_xiahou_copy",
    "steps_execution" : [ {
      "created_at" : "2022-06-17T17:08:16.920281+08:00",
      "uuid" : "d6148a4a-4a5e-47a3-bc90-3183905b4941",
      "instance_id" : "{\"model_id\":\"253aba02-4bd6-4f64-8d37-66022ae7af4d\"}",
      "step_name" : "model_step",
      "step_title" : "model release",
      "status" : "completed",
      "duration" : 16,
      "inputs" : [ {
        "name" : "model_input",
        "type" : "obs",
        "data" : "$ref/data_requirements/model_input",
        "value" : {
          "object_type" : [ "DIRECTORY" ],
          "obs_url" : "/test-crq/train_output/"
        }
      } ],
      "outputs" : [ {
        "name" : "model_output",
        "type" : "model",
        "config" : {
          "model_id" : "253aba02-4bd6-4f64-8d37-66022ae7af4d"
        }
      } ],
      "properties" : {
        "model_name" : "lh-xh",
        "model_type" : "TensorFlow"
      },
      "events" : [ "2022-06-17 17:08:17 change status from init to creating", "2022-06-17 17:08:19 change status from creating to created", "2022-06-17 17:08:20 change status from created to running", "2022-06-17 17:08:33 change status from running to completed" ],
      "policy" : { }
    }, {
      "created_at" : "2022-06-17T17:08:33.038184+08:00",
      "uuid" : "b34b2b54-eb70-4c7f-a92d-05f849d8c39a",
      "instance_id" : {
        "type" : "deploy",
        "service_id" : "81f22d60-5488-4e3d-bba9-08c812ae84b0",
        "status" : "",
        "update_time" : 0
      },
      "step_name" : "service_step",
      "step_title" : "service install",
      "status" : "completed",
      "duration" : 83430,
      "inputs" : [ {
        "name" : "service_input",
        "type" : "model_list",
        "data" : "$ref/data_requirements/service_model",
        "value" : {
          "model_list" : [ {
            "envs" : { },
            "instance_count" : 1,
            "model_id" : "253aba02-4bd6-4f64-8d37-66022ae7af4d",
            "model_name" : "lh-xh",
            "model_version" : "0.0.62",
            "specification" : "modelarts.vm.ai1",
            "weight" : 100
          } ]
        }
      } ],
      "outputs" : [ {
        "name" : "service_output",
        "type" : "service",
        "config" : {
          "service_id" : "81f22d60-5488-4e3d-bba9-08c812ae84b0"
        }
      } ],
      "properties" : {
        "infer_type" : "real-time",
        "schedule" : -1
      },
      "events" : [ "2022-06-17 17:08:34 change status from init to wait_inputs", "2022-06-18 16:16:58 change status from wait_inputs to creating", "2022-06-18 16:17:01 change status from creating to created", "2022-06-18 16:17:02 change status from created to running", "2022-06-18 16:19:03 change status from running to completed" ],
      "policy" : { }
    } ],
    "duration" : 11852428,
    "events" : [ "2022-06-17 17:08:17 step model_step change status from init to creating", "2022-06-17 17:08:19 step model_step change status from creating to created", "2022-06-17 17:08:20 step model_step change status from created to running", "2022-06-17 17:08:33 step model_step change status from running to completed", "2022-06-17 17:08:34 step service_step change status from init to wait_inputs", "2022-06-18 16:16:58 step service_step change status from wait_inputs to creating", "2022-06-18 16:17:01 step service_step change status from creating to created", "2022-06-18 16:17:02 step service_step change status from created to running", "2022-06-18 16:19:03 step service_step change status from running to completed" ],
    "data_requirements" : [ {
      "name" : "model_input",
      "type" : "obs",
      "conditions" : [ {
        "attribute" : "object_type",
        "operator" : "equal",
        "value" : "directory"
      } ],
      "value" : {
        "object_type" : [ "DIRECTORY" ],
        "obs_url" : "/test-crq/train_output/"
      },
      "used_steps" : [ "model_step" ]
    }, {
      "name" : "service_model",
      "type" : "model_list",
      "delay" : true,
      "conditions" : [ {
        "attribute" : "model_name",
        "operator" : "equal",
        "value" : "lh-xh"
      } ],
      "value" : {
        "model_list" : [ {
          "envs" : { },
          "instance_count" : 1,
          "model_id" : "253aba02-4bd6-4f64-8d37-66022ae7af4d",
          "model_name" : "lh-xh",
          "model_version" : "0.0.62",
          "specification" : "modelarts.vm.ai1",
          "weight" : 100
        } ]
      },
      "used_steps" : [ "service_step" ]
    } ],
    "parameters" : [ {
      "name" : "schedule_d5sm",
      "type" : "int",
      "format" : "schedule",
      "description" : "Set how long the deployed service will stop in hours, where -1 means the service will always run",
      "delay" : true,
      "value" : -1,
      "used_steps" : [ "service_step" ]
    } ],
    "policies" : { }
  } ]
}
support.huaweicloud.com/api-modelarts/ListWorkflowExecutions.html