MultipathStats
- Flutter
更新时间
用于汇总多路径传输中各网络路径的统计数据。
class MultipathStats implements AgoraSerializable {
const MultipathStats(
{this.lanTxBytes,
this.lanRxBytes,
this.wifiTxBytes,
this.wifiRxBytes,
this.mobileTxBytes,
this.mobileRxBytes,
this.activePathNum,
this.pathStats});
@JsonKey(name: 'lanTxBytes')
final int? lanTxBytes;
@JsonKey(name: 'lanRxBytes')
final int? lanRxBytes;
@JsonKey(name: 'wifiTxBytes')
final int? wifiTxBytes;
@JsonKey(name: 'wifiRxBytes')
final int? wifiRxBytes;
@JsonKey(name: 'mobileTxBytes')
final int? mobileTxBytes;
@JsonKey(name: 'mobileRxBytes')
final int? mobileRxBytes;
@JsonKey(name: 'activePathNum')
final int? activePathNum;
@JsonKey(name: 'pathStats')
final List<PathStats>? pathStats;
factory MultipathStats.fromJson(Map<String, dynamic> json) =>
_$MultipathStatsFromJson(json);
@override
Map<String, dynamic> toJson() => _$MultipathStatsToJson(this);
}自从
自 v6.6.2 版本新增。
属性
| 参数名 | 描述 |
|---|---|
lanTxBytes | 通过 LAN 路径发送的字节总数。 |
lanRxBytes | 通过 LAN 路径接收的字节总数。 |
wifiTxBytes | 通过 Wi-Fi 路径发送的字节总数。 |
wifiRxBytes | 通过 Wi-Fi 路径接收的字节总数。 |
mobileTxBytes | 通过移动网络路径发送的字节总数。 |
mobileRxBytes | 通过移动网络路径接收的字节总数。 |
activePathNum | 当前活跃的传输路径数量。 |
pathStats | 每个活跃传输路径的统计信息数组。详见 PathStats。 |