测试项目配置-新增/删除/修改操作
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>测试项目配置-新增/删除/修改操作接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/cm5g_monitor/api/submit_ping_speed_test_conf_info</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>请求报文示例</h5>
<pre><code>{
'create': [{
&quot;project_name&quot;: &quot;项目&quot;,
&quot;imei&quot;: &quot;终端&quot;,
&quot;conf_type&quot;: &quot;配置类型&quot;, # ping/speed
&quot;conf_json&quot;: {
&quot;host&quot;: &quot;PING目标主机名/地址&quot;,
&quot;package_num&quot;: &quot;包发送数量&quot;,
&quot;package_byte&quot;: &quot;包发送携带字节数&quot;,
&quot;icmp_interval&quot;: &quot;发送ICMP间隔&quot;,
&quot;timeout&quot;: &quot;等待回复的超时时间&quot;,
}
}],
'update': [{
&quot;id&quot;: &quot;id&quot;,
&quot;project_name&quot;: &quot;项目&quot;,
&quot;imei&quot;: &quot;终端&quot;,
&quot;conf_type&quot;: &quot;配置类型&quot;, # ping/speed
&quot;conf_json&quot;: {
&quot;host&quot;: &quot;FTP目标主机名/地址&quot;,
&quot;port&quot;: &quot;FTP目标主机端口&quot;,
&quot;user&quot;: &quot;登陆用户名&quot;,
&quot;password&quot;: &quot;登陆密码&quot;,
&quot;package_size&quot;: &quot;发送/接收数据包大小&quot;,
&quot;max_memory&quot;: &quot;发送/接收最大内存帧大小&quot;,
&quot;time_interval&quot;: &quot;传送中统计时间间隔&quot;,
&quot;timeout&quot;: &quot;等待回复的超时时间&quot;,
}
}],
'delete': [1, 2, 3] # id列表
}</code></pre>
<h5>返回示例</h5>
<pre><code> {
&quot;status&quot;: 200,
&quot;message&quot;: &quot;执行成功&quot;
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>