zy上云api


日志回放

<p>[TOC]</p> <h4>日志管理</h4> <h5>分页获取飞行记录 (getFlightRecords)</h5> <ol> <li>服务描述 </li> </ol> <table> <thead> <tr> <th>参数</th> <th>类型</th> <th>描述</th> <th>是否必传</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>page</td> <td>int</td> <td>- 页码</td> <td>是</td> <td></td> </tr> <tr> <td>pageSize</td> <td>int</td> <td>-页码大小</td> <td>是</td> <td></td> </tr> <tr> <td>keyword</td> <td>int `</td> <td>模糊查询</td> <td>是</td> <td></td> </tr> </tbody> </table> <p>示例请求</p> <pre><code class="language-json">{ &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;getFlightRecords&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;custom&amp;quot;: { &amp;quot;page&amp;quot;: 1, &amp;quot;pageSize&amp;quot;: 5, &amp;quot;keyword&amp;quot;: &amp;quot;&amp;quot; } }, &amp;quot;timestamp&amp;quot;: 1700000000000 }</code></pre> <ol> <li>响应格式 响应消息中包含服务调用的结果,包括返回码和错误信息(如果有的话)。 示例响应</li> </ol> <pre><code class="language-json">{ &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: { &amp;quot;page&amp;quot;: 1, &amp;quot;pageSize&amp;quot;: 5, &amp;quot;records&amp;quot;: [ { &amp;quot;created_at&amp;quot;: 1755663317, &amp;quot;distance&amp;quot;: 1446.2879638671875, &amp;quot;droneId&amp;quot;: &amp;quot;DRONE_17170238699647056262&amp;quot;, &amp;quot;duration&amp;quot;: 167, &amp;quot;endTime&amp;quot;: &amp;quot;1755663485&amp;quot;, &amp;quot;itemId&amp;quot;: 16, &amp;quot;maxAltitude&amp;quot;: 0.0, &amp;quot;maxSpeed&amp;quot;: 8.0, &amp;quot;note&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;startTime&amp;quot;: &amp;quot;1755663317&amp;quot;, &amp;quot;status&amp;quot;: 1, &amp;quot;updated_at&amp;quot;: 1755663485 }, { &amp;quot;created_at&amp;quot;: 1755663776, &amp;quot;distance&amp;quot;: 1430.8079833984375, &amp;quot;droneId&amp;quot;: &amp;quot;DRONE_17170238699647056262&amp;quot;, &amp;quot;duration&amp;quot;: 167, &amp;quot;endTime&amp;quot;: &amp;quot;1755663944&amp;quot;, &amp;quot;itemId&amp;quot;: 17, &amp;quot;maxAltitude&amp;quot;: 0.0, &amp;quot;maxSpeed&amp;quot;: 8.0, &amp;quot;note&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;startTime&amp;quot;: &amp;quot;1755663776&amp;quot;, &amp;quot;status&amp;quot;: 1, &amp;quot;updated_at&amp;quot;: 1755663944 }, { &amp;quot;created_at&amp;quot;: 1755669229, &amp;quot;distance&amp;quot;: 1444.114990234375, &amp;quot;droneId&amp;quot;: &amp;quot;DRONE_17170238699647056262&amp;quot;, &amp;quot;duration&amp;quot;: 229, &amp;quot;endTime&amp;quot;: &amp;quot;1755669459&amp;quot;, &amp;quot;itemId&amp;quot;: 18, &amp;quot;maxAltitude&amp;quot;: 0.0, &amp;quot;maxSpeed&amp;quot;: 8.0, &amp;quot;note&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;startTime&amp;quot;: &amp;quot;1755669229&amp;quot;, &amp;quot;status&amp;quot;: 1, &amp;quot;updated_at&amp;quot;: 1755669459 }, { &amp;quot;created_at&amp;quot;: 1755669483, &amp;quot;distance&amp;quot;: 1442.1612548828125, &amp;quot;droneId&amp;quot;: &amp;quot;DRONE_17170238699647056262&amp;quot;, &amp;quot;duration&amp;quot;: 167, &amp;quot;endTime&amp;quot;: &amp;quot;1755669651&amp;quot;, &amp;quot;itemId&amp;quot;: 19, &amp;quot;maxAltitude&amp;quot;: 0.0, &amp;quot;maxSpeed&amp;quot;: 9.199999809265137, &amp;quot;note&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;startTime&amp;quot;: &amp;quot;1755669483&amp;quot;, &amp;quot;status&amp;quot;: 1, &amp;quot;updated_at&amp;quot;: 1755669651 }, { &amp;quot;created_at&amp;quot;: 1755669672, &amp;quot;distance&amp;quot;: 1446.850830078125, &amp;quot;droneId&amp;quot;: &amp;quot;DRONE_17170238699647056262&amp;quot;, &amp;quot;duration&amp;quot;: 167, &amp;quot;endTime&amp;quot;: &amp;quot;1755669839&amp;quot;, &amp;quot;itemId&amp;quot;: 20, &amp;quot;maxAltitude&amp;quot;: 0.0, &amp;quot;maxSpeed&amp;quot;: 8.800000190734863, &amp;quot;note&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;startTime&amp;quot;: &amp;quot;1755669672&amp;quot;, &amp;quot;status&amp;quot;: 1, &amp;quot;updated_at&amp;quot;: 1755669839 } ], &amp;quot;total&amp;quot;: 9, &amp;quot;totalPages&amp;quot;: 2 }, &amp;quot;message&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;timestamp&amp;quot;: 1755760883126 }</code></pre> <h5>飞行统计 (getFlightStatistics)</h5> <ol> <li>服务描述 </li> </ol> <p>示例请求</p> <pre><code class="language-json">{ &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;getFlightStatistics&amp;quot;, &amp;quot;data&amp;quot;: { }, &amp;quot;timestamp&amp;quot;: 1700000000000 } </code></pre> <ol> <li>响应格式 响应消息中包含服务调用的结果,包括返回码和错误信息(如果有的话)。 示例响应</li> </ol> <pre><code class="language-json">{ &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: { &amp;quot;averageDistance&amp;quot;: 1325.6395263671875, &amp;quot;averageDuration&amp;quot;: 167, &amp;quot;maxAltitude&amp;quot;: 50.01100158691406, &amp;quot;maxSpeed&amp;quot;: 9.300000190734863, &amp;quot;totalDistance&amp;quot;: 11930.755859375, &amp;quot;totalDuration&amp;quot;: 1504, &amp;quot;totalFlights&amp;quot;: 9 }, &amp;quot;message&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;timestamp&amp;quot;: 1755762971857 }</code></pre> <table> <thead> <tr> <th>指标 (Metric)</th> <th>数值 (Value)</th> <th>单位 (Unit)</th> </tr> </thead> <tbody> <tr> <td><strong>飞行距离</strong></td> <td>1325.64</td> <td>米</td> </tr> <tr> <td><strong>飞行时长</strong></td> <td>167</td> <td>秒</td> </tr> <tr> <td><strong>最大飞行高度</strong></td> <td>50.01</td> <td>米</td> </tr> <tr> <td><strong>最大飞行速度</strong></td> <td>9.30</td> <td>米/秒</td> </tr> <tr> <td><strong>总飞行距离</strong></td> <td>11930.76</td> <td>米</td> </tr> <tr> <td><strong>总飞行时长</strong></td> <td>1504</td> <td>秒</td> </tr> <tr> <td><strong>总飞行次数</strong></td> <td>9</td> <td>次</td> </tr> </tbody> </table> <h5>提取飞行轨迹 (extractFlightTrajectoryHybrid)</h5> <ol> <li>服务描述 </li> </ol> <table> <thead> <tr> <th>参数</th> <th>类型</th> <th>描述</th> <th>是否必传</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>recordId</td> <td>int</td> <td>飞行任务id</td> <td>是</td> <td></td> </tr> </tbody> </table> <p>示例请求</p> <pre><code class="language-json">{ &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;extractFlightTrajectoryHybrid&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;custom&amp;quot;: { &amp;quot;recordId&amp;quot;:18 } }, &amp;quot;timestamp&amp;quot;: 1700000000000 } </code></pre> <ol> <li>响应格式 响应消息中包含服务调用的结果,包括返回码和错误信息(如果有的话)。 示例响应</li> </ol> <pre><code class="language-json">{ &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;message&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;timestamp&amp;quot;: 1755769419316, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: { &amp;quot;pointCount&amp;quot;: 207, &amp;quot;recordId&amp;quot;: 18, &amp;quot;trajectory&amp;quot;: [ { &amp;quot;altitude&amp;quot;: 0.0, &amp;quot;battery&amp;quot;: 0.0, &amp;quot;latitude&amp;quot;: 22.324352264404297, &amp;quot;longitude&amp;quot;: 113.5496826171875, &amp;quot;pitch&amp;quot;: 0.2132415771484375, &amp;quot;roll&amp;quot;: 0.074127197265625, &amp;quot;speed&amp;quot;: 0.0, &amp;quot;timestamp&amp;quot;: 1755669229, &amp;quot;yaw&amp;quot;: 87.49689483642578 } ] } }</code></pre> <h5>删除飞行记录 (deleteFlightRecord)</h5> <ol> <li>服务描述 </li> </ol> <table> <thead> <tr> <th>参数</th> <th>类型</th> <th>描述</th> <th>是否必传</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>recordId</td> <td>int</td> <td>飞行任务id</td> <td>是</td> <td></td> </tr> </tbody> </table> <p>示例请求</p> <pre><code class="language-json">{ &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;deleteFlightRecord&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;custom&amp;quot;: { &amp;quot;recordIds&amp;quot;:[1,2] } }, &amp;quot;timestamp&amp;quot;: 1700000000000 } </code></pre> <ol> <li>响应格式 响应消息中包含服务调用的结果,包括返回码和错误信息(如果有的话)。 示例响应</li> </ol> <pre><code class="language-json">{ &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;message&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;timestamp&amp;quot;: 1755769419316, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: { &amp;quot;pointCount&amp;quot;: 207, &amp;quot;recordId&amp;quot;: 18, &amp;quot;trajectory&amp;quot;: [ { &amp;quot;altitude&amp;quot;: 0.0, &amp;quot;battery&amp;quot;: 0.0, &amp;quot;latitude&amp;quot;: 22.324352264404297, &amp;quot;longitude&amp;quot;: 113.5496826171875, &amp;quot;pitch&amp;quot;: 0.2132415771484375, &amp;quot;roll&amp;quot;: 0.074127197265625, &amp;quot;speed&amp;quot;: 0.0, &amp;quot;timestamp&amp;quot;: 1755669229, &amp;quot;yaw&amp;quot;: 87.49689483642578 } ] } }</code></pre>

页面列表

ITEM_HTML