交换机流量

概述


查询交换机的流量


URL

/index.php?m=api&a=switchFlow


▍请求参数


字段名
变量名
必填
类型
描述
交换机ID
id

int
查询的交换机ID
时间段
type

string
流量时间段(week:一周内,month:一个月内,year:一年内)

返回参数


字段名
变量名
类型
描述
交换机流量
data
array
二维数组(交换机名下多个日期作为键值的数组)
date  日期
in_bw_add  进流量
out_bw_add  出流量
根据查询条件查询到的交换机流量数据
时间段
dateperiod
string具体时间段
交换机ID
switchid
int
交换机ID
提示信息
msg
string
出错信息
状态
status
string
success 成功  error 失败