查询在线列表
select * from attribute_kv where attribute_type=‘SERVER_SCOPE’ and attribute_key= ‘active’ and bool_v=‘t’
查询离线列表
select * from attribute_kv where attribute_type=‘SERVER_SCOPE’ and attribute_key= ‘active’ and bool_v=‘f’
attribute_kv 属性
作用 类型 长度 注释
字段 | 作用 | 类型 | 注释 |
---|---|---|---|
entity_type | 实体类型 | TENANT:租户, CUSTOMER:客户, USER:用户, DASHBOARD:仪表盘, ASSET:资产, DEVICE:设备, ALARM:警报, RULE_CHAIN:规则引擎, RULE_NODE:规则节点, ENTITY_VIEW:实体视图 | |
entity_id | 实体id | varchar | |
attribute_type | 属性类型 | varchar | SERVER_SCOPE:服务器端属性, CLIENT_SCOPE:客户端属性, SHARED_SCOPE:共享属性 |
bool_v | 存放属性的布尔值 | bool | |
str_v | 存放属性的字符串值 | varchar | |
long_v | 存放属性的数字值 | int8 | |
dbl_v | 存放属性的小数值 | float8 | |
last_update_ts | 最后更新时间 | int8 |