文档中心 > API类目 > 自动驾驶内部API

aliyun.adlab.fault.inject.getcaseinfo (获取故障用例信息)

获取故障用例信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
fi_case_code String 必须 GNSS_CODE 故障用例编码

响应参数

名称 类型 示例值 描述
fi_type String test 故障分类
node_name String test 节点名
template_type String test 模版类型
fi_duration Number 123 故障注入时长
channel String test 通道
fi_description String test 描述
resource_module String test 资源模块
expect_error_code String test 期望的error code
fi_case_code String test 故障注入码
custom_case_url String test 自定义脚本链接
fault_inject_script String test 故障注入脚本
user_id String test 用户Id
cyber String test cyber
fi_type_name String test 故障类型名
fi_command String test 故障指令
inject_params String test 注入参数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliyunAdlabFaultInjectGetcaseinfoRequest req = new AliyunAdlabFaultInjectGetcaseinfoRequest();
req.setFiCaseCode("GNSS_CODE");
AliyunAdlabFaultInjectGetcaseinfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliyun_adlab_fault_inject_getcaseinfo_response>
    <fi_type>test</fi_type>
    <node_name>test</node_name>
    <template_type>test</template_type>
    <fi_duration>123</fi_duration>
    <channel>test</channel>
    <fi_description>test</fi_description>
    <resource_module>test</resource_module>
    <expect_error_code>test</expect_error_code>
    <fi_case_code>test</fi_case_code>
    <custom_case_url>test</custom_case_url>
    <fault_inject_script>test</fault_inject_script>
    <user_id>test</user_id>
    <cyber>test</cyber>
    <fi_type_name>test</fi_type_name>
    <fi_command>test</fi_command>
    <inject_params>test</inject_params>
</aliyun_adlab_fault_inject_getcaseinfo_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部