用户流量预警详情
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ClientTrafficWarningModel::clientTrafficWarningIndex |
| 所属业务 | 用户管理 |
| 来源模块/系统 | 用户流量预警模型 |
功能说明
用户流量预警详情
调用示例
$param = [['client_id' => 1, 'module' => 'string']];
$result = (new \app\common\model\ClientTrafficWarningModel())->clientTrafficWarningIndex($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param | array | 是 | — | require | 请求参数 |
param.client_id | int | 是 | — | require | 用户ID |
param.module | string | 是 | — | require | 模块标识 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
module | string | 模块标识 |
warning_switch | int | 预警开关(0=关闭,1=开启) |
leave_percent | int | 预警百分比 |
正常返回
{
"module": "string",
"warning_switch": 1,
"leave_percent": 1
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |