带宽监控
GET
/api/device/v1/monitor
请求参数
Query 参数
device_id
string
设备ID
示例值:
84b8bb72a57cb9eba28b46f6014a1b9a
start
string
开始日期
示例值:
2022-11-02
end
string
结束日期
示例值:
2022-11-02
biz_type
string
必需
示例值:
5
Header 参数
ak
string
必需
默认值:
{{ak}}
timestamp
integer
必需
默认值:
{% mock 'timestamp' , 's' %}
sign
string
必需
默认值:
{% mock 'string' , 'lower' , 32 , 32 %}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://www.bmtcloud.com.cn/api/device/v1/monitor?device_id=84b8bb72a57cb9eba28b46f6014a1b9a&start=2022-11-02&end=2022-11-02&biz_type=5' \
--header 'ak;' \
--header 'timestamp;' \
--header 'sign;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
current_time
integer
必需
event_id
string
必需
data
object
必需
code
integer
必需
message
string
必需
monitors
array [object {4}]
必需
total
integer
必需
示例
{ "code": 0, "message": "success", "current_time": 1687160810, "event_id": "20230619154650362710100000167498", "data": { "code": 0, "message": "", "monitors": [ { "timestamp": 1687104000, "upBandwidth": 7.26, "downBandwidth": 0, "cpuUsage": 0, "memUsage": 0, "diskUsage": 0, "natType": 0, "onlineCount": 0, "tcpNatType": 0, "udpNatType": 0, "packetLoss": 0, "concurrent": 0, "upFlow": 272.25 }, { "timestamp": 1687104300, "upBandwidth": 3.64, "downBandwidth": 0, "cpuUsage": 0, "memUsage": 0, "diskUsage": 0, "natType": 0, "onlineCount": 0, "tcpNatType": 0, "udpNatType": 0, "packetLoss": 0, "concurrent": 0, "upFlow": 136.5 }, { "timestamp": 1687104600, "upBandwidth": 3.02, "downBandwidth": 0, "cpuUsage": 0, "memUsage": 0, "diskUsage": 0, "natType": 0, "onlineCount": 0, "tcpNatType": 0, "udpNatType": 0, "packetLoss": 0, "concurrent": 0, "upFlow": 113.25 }, { "timestamp": 1687104900, "upBandwidth": 3.43, "downBandwidth": 0, "cpuUsage": 0, "memUsage": 0, "diskUsage": 0, "natType": 0, "onlineCount": 0, "tcpNatType": 0, "udpNatType": 0, "packetLoss": 0, "concurrent": 0, "upFlow": 128.625 }, { "timestamp": 1687105200, "upBandwidth": 1.77, "downBandwidth": 0, "cpuUsage": 0, "memUsage": 0, "diskUsage": 0, "natType": 0, "onlineCount": 0, "tcpNatType": 0, "udpNatType": 0, "packetLoss": 0, "concurrent": 0, "upFlow": 66.375 }, { "timestamp": 1687105500, "upBandwidth": 0.04, "downBandwidth": 0, "cpuUsage": 0, "memUsage": 0, "diskUsage": 0, "natType": 0, "onlineCount": 0, "tcpNatType": 0, "udpNatType": 0, "packetLoss": 0, "concurrent": 0, "upFlow": 1.5 }, { "timestamp": 1687105800, "upBandwidth": 0.05, "downBandwidth": 0, "cpuUsage": 0, "memUsage": 0, "diskUsage": 0, "natType": 0, "onlineCount": 0, "tcpNatType": 0, "udpNatType": 0, "packetLoss": 0, "concurrent": 0, "upFlow": 1.875 }, { "timestamp": 1687106100, "upBandwidth": 1.43, "downBandwidth": 0, "cpuUsage": 0, "memUsage": 0, "diskUsage": 0, "natType": 0, "onlineCount": 0, "tcpNatType": 0, "udpNatType": 0, "packetLoss": 0, "concurrent": 0, "upFlow": 53.625 }, { "timestamp": 1687106400, "upBandwidth": 9.37, "downBandwidth": 0, "cpuUsage": 0, "memUsage": 0, "diskUsage": 0, "natType": 0, "onlineCount": 0, "tcpNatType": 0, "udpNatType": 0, "packetLoss": 0, "concurrent": 0, "upFlow": 351.37499999999994 }, { "timestamp": 1687106700, "upBandwidth": 1.85, "downBandwidth": 0, "cpuUsage": 0, "memUsage": 0, "diskUsage": 0, "natType": 0, "onlineCount": 0, "tcpNatType": 0, "udpNatType": 0, "packetLoss": 0, "concurrent": 0, "upFlow": 69.375 }, { "timestamp": 1687107000, "upBandwidth": 1.55, "downBandwidth": 0,
🟢200公共响应