日志回放
<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">{
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;getFlightRecords&quot;,
&quot;data&quot;: {
&quot;custom&quot;: {
&quot;page&quot;: 1,
&quot;pageSize&quot;: 5,
&quot;keyword&quot;: &quot;&quot;
}
},
&quot;timestamp&quot;: 1700000000000
}</code></pre>
<ol>
<li>响应格式
响应消息中包含服务调用的结果,包括返回码和错误信息(如果有的话)。
示例响应</li>
</ol>
<pre><code class="language-json">{
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: {
&quot;page&quot;: 1,
&quot;pageSize&quot;: 5,
&quot;records&quot;: [
{
&quot;created_at&quot;: 1755663317,
&quot;distance&quot;: 1446.2879638671875,
&quot;droneId&quot;: &quot;DRONE_17170238699647056262&quot;,
&quot;duration&quot;: 167,
&quot;endTime&quot;: &quot;1755663485&quot;,
&quot;itemId&quot;: 16,
&quot;maxAltitude&quot;: 0.0,
&quot;maxSpeed&quot;: 8.0,
&quot;note&quot;: &quot;&quot;,
&quot;startTime&quot;: &quot;1755663317&quot;,
&quot;status&quot;: 1,
&quot;updated_at&quot;: 1755663485
},
{
&quot;created_at&quot;: 1755663776,
&quot;distance&quot;: 1430.8079833984375,
&quot;droneId&quot;: &quot;DRONE_17170238699647056262&quot;,
&quot;duration&quot;: 167,
&quot;endTime&quot;: &quot;1755663944&quot;,
&quot;itemId&quot;: 17,
&quot;maxAltitude&quot;: 0.0,
&quot;maxSpeed&quot;: 8.0,
&quot;note&quot;: &quot;&quot;,
&quot;startTime&quot;: &quot;1755663776&quot;,
&quot;status&quot;: 1,
&quot;updated_at&quot;: 1755663944
},
{
&quot;created_at&quot;: 1755669229,
&quot;distance&quot;: 1444.114990234375,
&quot;droneId&quot;: &quot;DRONE_17170238699647056262&quot;,
&quot;duration&quot;: 229,
&quot;endTime&quot;: &quot;1755669459&quot;,
&quot;itemId&quot;: 18,
&quot;maxAltitude&quot;: 0.0,
&quot;maxSpeed&quot;: 8.0,
&quot;note&quot;: &quot;&quot;,
&quot;startTime&quot;: &quot;1755669229&quot;,
&quot;status&quot;: 1,
&quot;updated_at&quot;: 1755669459
},
{
&quot;created_at&quot;: 1755669483,
&quot;distance&quot;: 1442.1612548828125,
&quot;droneId&quot;: &quot;DRONE_17170238699647056262&quot;,
&quot;duration&quot;: 167,
&quot;endTime&quot;: &quot;1755669651&quot;,
&quot;itemId&quot;: 19,
&quot;maxAltitude&quot;: 0.0,
&quot;maxSpeed&quot;: 9.199999809265137,
&quot;note&quot;: &quot;&quot;,
&quot;startTime&quot;: &quot;1755669483&quot;,
&quot;status&quot;: 1,
&quot;updated_at&quot;: 1755669651
},
{
&quot;created_at&quot;: 1755669672,
&quot;distance&quot;: 1446.850830078125,
&quot;droneId&quot;: &quot;DRONE_17170238699647056262&quot;,
&quot;duration&quot;: 167,
&quot;endTime&quot;: &quot;1755669839&quot;,
&quot;itemId&quot;: 20,
&quot;maxAltitude&quot;: 0.0,
&quot;maxSpeed&quot;: 8.800000190734863,
&quot;note&quot;: &quot;&quot;,
&quot;startTime&quot;: &quot;1755669672&quot;,
&quot;status&quot;: 1,
&quot;updated_at&quot;: 1755669839
}
],
&quot;total&quot;: 9,
&quot;totalPages&quot;: 2
},
&quot;message&quot;: &quot;success&quot;,
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;timestamp&quot;: 1755760883126
}</code></pre>
<h5>飞行统计 (getFlightStatistics)</h5>
<ol>
<li>服务描述 </li>
</ol>
<p>示例请求</p>
<pre><code class="language-json">{
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;getFlightStatistics&quot;,
&quot;data&quot;: {
},
&quot;timestamp&quot;: 1700000000000
}
</code></pre>
<ol>
<li>响应格式
响应消息中包含服务调用的结果,包括返回码和错误信息(如果有的话)。
示例响应</li>
</ol>
<pre><code class="language-json">{
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: {
&quot;averageDistance&quot;: 1325.6395263671875,
&quot;averageDuration&quot;: 167,
&quot;maxAltitude&quot;: 50.01100158691406,
&quot;maxSpeed&quot;: 9.300000190734863,
&quot;totalDistance&quot;: 11930.755859375,
&quot;totalDuration&quot;: 1504,
&quot;totalFlights&quot;: 9
},
&quot;message&quot;: &quot;success&quot;,
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;timestamp&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">{
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;extractFlightTrajectoryHybrid&quot;,
&quot;data&quot;: {
&quot;custom&quot;: {
&quot;recordId&quot;:18
}
},
&quot;timestamp&quot;: 1700000000000
}
</code></pre>
<ol>
<li>响应格式
响应消息中包含服务调用的结果,包括返回码和错误信息(如果有的话)。
示例响应</li>
</ol>
<pre><code class="language-json">{
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;message&quot;: &quot;success&quot;,
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;timestamp&quot;: 1755769419316,
&quot;code&quot;: 0,
&quot;data&quot;: {
&quot;pointCount&quot;: 207,
&quot;recordId&quot;: 18,
&quot;trajectory&quot;: [
{
&quot;altitude&quot;: 0.0,
&quot;battery&quot;: 0.0,
&quot;latitude&quot;: 22.324352264404297,
&quot;longitude&quot;: 113.5496826171875,
&quot;pitch&quot;: 0.2132415771484375,
&quot;roll&quot;: 0.074127197265625,
&quot;speed&quot;: 0.0,
&quot;timestamp&quot;: 1755669229,
&quot;yaw&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">{
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;deleteFlightRecord&quot;,
&quot;data&quot;: {
&quot;custom&quot;: {
&quot;recordIds&quot;:[1,2]
}
},
&quot;timestamp&quot;: 1700000000000
}
</code></pre>
<ol>
<li>响应格式
响应消息中包含服务调用的结果,包括返回码和错误信息(如果有的话)。
示例响应</li>
</ol>
<pre><code class="language-json">{
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;message&quot;: &quot;success&quot;,
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;timestamp&quot;: 1755769419316,
&quot;code&quot;: 0,
&quot;data&quot;: {
&quot;pointCount&quot;: 207,
&quot;recordId&quot;: 18,
&quot;trajectory&quot;: [
{
&quot;altitude&quot;: 0.0,
&quot;battery&quot;: 0.0,
&quot;latitude&quot;: 22.324352264404297,
&quot;longitude&quot;: 113.5496826171875,
&quot;pitch&quot;: 0.2132415771484375,
&quot;roll&quot;: 0.074127197265625,
&quot;speed&quot;: 0.0,
&quot;timestamp&quot;: 1755669229,
&quot;yaw&quot;: 87.49689483642578
}
]
}
}</code></pre>