bmtcloud
  1. 通用
bmtcloud
  • 🦊说明
  • 通用
    • 删除设备
      GET
    • 带宽监控
      GET
    • 收益列表
      GET
    • 修改备注
      POST
  • A/B/M/Z业务
    • 绑定设备
      POST
    • 设备列表
      GET
    • 申请压测
      POST
    • 查询压测结果
      GET
    • 同步网卡信息
      POST
    • 获取网卡列表
      GET
    • 获取拨号信息
      GET
    • 获取业务列表
      GET
    • 编辑拨号信息
      POST
    • 开始拨号
      POST
    • 指定管理网卡
      POST
  • G业务
    • G业务对接流程说明
    • 设备列表
      GET
    • 带宽监控
      GET
    • 绑定设备
      POST
    • 收益列表
      GET
    • 查询压测结果
      GET
  • C业务(废弃)
    • 压测接口
      POST
    • 绑定设备
      POST
    • 设备列表
      GET
  • D业务(废弃)
    • 设备列表
    • 绑定设备
  • 废弃
    • 质量监控
    • SLA
  1. 通用

带宽监控

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公共响应
上一页
删除设备
下一页
收益列表
Built with