1. 人数统计布控相关接口

人数统计布控相关接口


1.1. 分析源新增人数统计布控

基础信息

路径: /v1/api/personNumber/rule/point/add

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
resourcesType integer 算力资源类型,1:中心算力,2:边端算力(默认)
ruleBeanList object[] 规则信息
pointUuid string 分析源uuid
|─drawLineBeans object[] 画线信息(门禁点布控人数统计无需划线)
  |─areaId integer 画线布控所属区域(计数区域id,计数区域2 ...)
  |─nodeDetail string 画线详情
|─scheduleUuid string 时间计划uuid
|─drawType integer 画线类型,1-周界(多区域),4-单向多绊线,6-全局;出入口传4,人数密度传1或6
|─intervalAlarmTime integer 间隔报警时间,单位:分钟
|─threshold integer 超员&报警阈值
|─delayAlarmTime integer 延迟报警时间,单位:秒
|─type integer 布控类型
|─retention integer 是否开启滞留人数超员
0 :未启动
1 :启用
|─status integer 布控规则状态
1 :开启
0 :关闭

Body示例:

1.算力中心布控
{
    "resourcesType": 1,
    "pointUuid":"f5e8b3356acc4645b38fd3f55ef6a6cd",
    "ruleBeanList": [
        {
            "type": 0,
            "drawType": 5,
            "timePlanUuid": "851b75f2d16b40a18b17e281b1f74444",
            "delayAlarmTime": 0,
            "intervalAlarmTime": 1,
            "threshold": 2,
            "status": 1,
            "retention": 1,
            "uuid": null,
            "drawLineBeans": [
                {
                    "areaId": 1,
                    "nodeDetail": "[[{\"x\":0.0684,\"y\":0.5482},{\"x\":0.0758,\"y\":0.5482},{\"x\":0.8706,\"y\":0.5349}]]"
                }
            ]
        }
    ]
}
2.边缘算力布控
{
    "resourcesType": 2,
    "pointUuid":"f5e8b3356acc4645b38fd3f55ef6a6cd",
    "ruleBeanList": [
        {
            "type": 0,
            "devicePointUuid": "403dd753b091477eb04262aaac3cad7f",
            "drawType": 4,
            "timePlanUuid": "851b75f2d16b40a18b17e281b1f74444",
            "delayAlarmTime": 0,
            "intervalAlarmTime": 1,
            "threshold": 2,
            "status": 1,
            "retention": 1,
            "uuid": null,
            "drawLineBeans": [
                {
                    "areaId": 1,
                    "nodeDetail": "[[{\"x\":0.0333,\"y\":0.3654},{\"x\":0.9593,\"y\":0.4718}]]"
                }
            ]
        }
    ]
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值

响应示例:

{
    "code":0,
    "msg":"成功"
}

1.2. 分析源更新布控

基础信息

路径: /v1/api/personNumber/rule/point/update

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
resourcesType integer 算力资源类型,1:中心算力,2:边端算力(默认)
ruleBeanList object[] 规则信息
|─drawLineBeans object[] 画线信息
  |─areaId integer 画线布控所属区域id(计数区域id,计数区域2 ...)
  |─nodeDetail string 画线详情
  |─uuid string 画线的uuid
|─scheduleUuid string 时间计划uuid
|─drawType integer 画线类型,1-周界(多区域),4-单向多绊线,6-全局;出入口传4,人数密度传1或6
|─intervalAlarmTime integer 间隔报警时间,单位:分钟
|─threshold integer 超员&报警阈值
|─delayAlarmTime integer 延迟报警时间,单位:秒
|─type integer 布控类型
|─uuid string 布控规则uuid
|─retention integer 是否开启滞留人数超员是否开启滞留人数超员
0 :未启动
1 :启用
|─status integer 布控规则状态
1 :开启
0 :关闭
pointUuid string 分析源uuid
uuid string 布控uuid

Body示例:

{
    "resourcesType":2,
    "pointUuid":"a596487a231241a5ae0a0f13bc7fcf04",
    "uuid":"fae4c9b18c794e06b82abb8f11d1af9d",
    "status":1,
    "ruleBeanList":[
        {
            "drawLineBeans":[
                {
                    "uuid":"438af4d0189949d7b345046af1bb0494",
                    "areaId":1,
                    "nodeDetail":"[[{\"x\":0.0735,\"y\":0.6498},{\"x\":0.6731,\"y\":0.2383}]]"
                }
            ],
            "type":0,
            "drawType":4,
            "scheduleUuid":"851b75f2d16b40a18b17e281b1f74444",
            "delayAlarmTime":0,
            "intervalAlarmTime":1,
            "threshold":20,
            "status":1,
            "retention":1,
            "uuid":"98c8c551751a40a6a699d0e8ee5f9d9d" 
        }
    ]
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值

响应示例:

{
    "code":0,
    "msg":"成功"
}

1.3. 分析源组新增人数统计布控

基础信息

路径: /v1/api/personNumber/rule/pointGroup/add

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
resourcesType integer 算力资源类型,1:中心算力,2:边端算力(默认)
ruleBeanList object[] 分析源信息
|─drawLineBeans object[] 画线信息
  |─areaId integer 画线布控所属区域(计数区域id,计数区域2 ...)
  |─nodeDetail string 画线详情(门禁点布控人数统计无需划线)
|─pointUuid string 分析源
groupRuleBean object groupRuleBean
|─pointGroupUuid string 监控点组uuid
|─scheduleUuid string 时间计划uuid
|─drawType integer 画线类型,1-周界(多区域),4-单向多绊线,6-全局;出入口传4,人数密度传1或6
|─intervalAlarmTime integer 间隔报警时间,单位:分钟
|─threshold integer 超员&报警阈值
|─delayAlarmTime integer 延迟报警时间,单位:秒
|─type integer 布控类型
|─retention integer 是否开启滞留人数超员
0 :未启动
1 :启用
|─status integer 布控规则状态
1 :开启
0 :关闭

Body示例:

{
  "resourcesType":2,
  "ruleBeanList": [
    {
      "drawLineBeans": [
        {
          "areaId": 1,
          "nodeDetail": "[[{\"x\":0.0735,\"y\":0.6498},{\"x\":0.6731,\"y\":0.2383}]]"
        }
      ],
      "pointUuid": "6c4b27896a014e3aba4cce0c80bb4f28"
    }
  ],
  "groupRuleBean": {
    "pointGroupUuid": "758c2d44156340e0a506930a9492d33e",
    "type": 0,
    "drawType": 4,
    "scheduleUuid": "851b75f2d16b40a18b17e281b1f74444",
    "delayAlarmTime": 0,
    "intervalAlarmTime": 0,
    "threshold": 3,
    "status": 1,
    "retention": 1
  }
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值

响应示例:

{
    "code":0,
    "msg":"成功"
}

1.4. 分析源组更新布控

基础信息

路径: /v1/api/personNumber/rule/pointGroup/update

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
resourcesType integer 算力资源类型,1:中心算力,2:边端算力(默认)
ruleBeanList object[] 分析源信息
|─drawLineBeans object[] 画线信息
  |─areaId integer 画线布控所属区域id(计数区域id,计数区域2 ...)
  |─nodeDetail string 画线详情
  |─uuid string 画线的uuid
|─pointUuid string 分析源
|─uuid string 规则uuid
groupRuleBean object groupRuleBean
|─pointGroupUuid string 监控点组uuid
|─scheduleUuid string 时间计划uuid
|─drawType integer 画线类型,1-周界(多区域),4-单向多绊线,6-全局;出入口传4,人数密度传1或6
|─intervalAlarmTime integer 间隔报警时间,单位:分钟
|─threshold integer 超员&报警阈值
|─delayAlarmTime integer 延迟报警时间,单位:秒
|─type integer 布控类型 0-人数统计 1-人口密度 分析源组布控类型只能是人数统计
|─uuid string 规则uuid
|─retention integer 是否开启滞留人数超员
0 :未启动
1 :启用
|─status integer 布控规则状态
1 :开启
0 :关闭
uuid string 布控uuid

Body示例:

{
    "resourcesType":2,
    "uuid":"06a322478977457991785c5adf5e552f",
    "ruleBeanList":[
        {
            "drawLineBeans":[
                {
                    "uuid":"d2d56d01afd14f8fa145562f54b73ef4",
                    "areaId":1,
                    "nodeDetail":"[[{\"x\":0.0735,\"y\":0.6498},{\"x\":0.6731,\"y\":0.2383}]]"
                }
            ],
            "uuid":"e05480d4ef534efda4d4a60d71b45ba4",
            "pointUuid":"a596487a231241a5ae0a0f13bc7fcf04"
        }
    ],
    "groupRuleBean":{
        "type":0,
        "uuid":"02659870ffaa44239dda5fc5b48f7a8c",
        "drawType":4,
        "pointGroupUuid":"7832ff5412e34c1287a1e23ddf6e0594",
        "scheduleUuid":"851b75f2d16b40a18b17e281b1f74444",
        "delayAlarmTime":0,
        "intervalAlarmTime":0,
        "threshold":2,
        "status":1,
        "retention":1
    }
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值

响应示例:

{
    "code":0,
    "msg":"成功"
}

1.5. 分析源(组)更新布控状态

基础信息

路径: /v1/api/personNumber/rule/updateStatus

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
uuid string uuid
status integer status
1 :开启
0 :关闭

Body示例:

{
    "uuid":"06a322478977457991785c5adf5e552f",
    "status":1
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值

响应示例:

{
    "code":0,
    "msg":"成功"
}

1.6. 删除分析源(组)布控

基础信息

路径: /v1/api/personNumber/rule/delete

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
uuid string UUID

Body示例:

{
    "uuid":"a7add5d120264573b86831c9a9fe027b"
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值

响应示例:

{
    "code":0,
    "msg":"成功"
}

1.7. 布控列表查询

基础信息

路径: /v1/api/personNumber/rule/list

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
pageNum integer 1 当前页,默认为1
pageSize integer 10 每页条数,默认为10
type integer 类型
0 :分析源
1 :分析源组
pointUuidTypes array 类型_分析源(组)uuid
  |─ string

Body示例:

{
  "pageNum": 1,
  "pageSize": 10
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值
  |─pageNum integer 页码,从1开始
当前页码
  |─pageSize integer 页面大小
分页大小
  |─total integer 总记录数
总数
  |─list array
    |─ object
      |─type integer 人数统计布控类型
      |─pointUuid string 分析源(组)uuid
      |─pointName string 分析源(组)名称
      |─status integer 布控状态
1 :开启
0 :关闭
      |─ruleBeanList array 人数统计分析源规则列表
        |─ object
          |─uuid string 分析源布控uuid
          |─status integer 布控规则状态
1 :开启
0 :关闭
          |─type integer 布控类型
0 :滞留超员
1 :人数过密
          |─scheduleUuid string 时间计划uuid
          |─scheduleName string 时间计划名称
      |─groupRuleBean object 人数统计分析源组规则
        |─uuid string 分析源布控uuid
        |─status integer 布控规则状态
1 :开启
0 :关闭
        |─type integer 布控类型
0 :滞留超员
1 :人数过密
        |─scheduleUuid string 时间计划uuid
        |─scheduleName string 时间计划名称
      |─uuid string 整体布控的uuid

响应示例:

{
    "code":0,
    "data":{
        "list":[
            {
                "pointName":"哈哈哈哈",
                "pointUuid":"7832ff5412e34c1287a1e23ddf6e0594",
                "ruleBeanList":[
                    {
                        "scheduleName":"人数统计默认时间计划",
                        "scheduleUuid":"851b75f2d16b40a18b17e281b1f74444",
                        "status":1,
                        "type":0,
                        "uuid":"02659870ffaa44239dda5fc5b48f7a8c"
                    }
                ],
                "status":1,
                "type":1,
                "uuid":"06a322478977457991785c5adf5e552f"
            },
            {
                "pointName":"算力引擎1-通道5",
                "pointUuid":"c958c59d707c4765b0a4482ac3b0fded",
                "ruleBeanList":[
                    {
                        "scheduleName":"人数统计默认时间计划",
                        "scheduleUuid":"851b75f2d16b40a18b17e281b1f74444",
                        "status":1,
                        "type":0,
                        "uuid":"580aebb2bcc94cf8b47d5a217f0e6700"
                    },
                    {
                        "scheduleName":"人数统计默认时间计划",
                        "scheduleUuid":"851b75f2d16b40a18b17e281b1f74444",
                        "status":1,
                        "type":1,
                        "uuid":"bcfc44637d9a434cbb9b9f81166d32ca"
                    }
                ],
                "status":1,
                "type":0,
                "uuid":"070c25f7b1e242b08cd48828a61ef906"
            },
            {
                "pointName":"算力引擎1-通道4",
                "pointUuid":"a596487a231241a5ae0a0f13bc7fcf04",
                "ruleBeanList":[
                    {
                        "scheduleName":"test",
                        "scheduleUuid":"d29689d10ee24803880579f60658d8a1",
                        "status":1,
                        "type":0,
                        "uuid":"98c8c551751a40a6a699d0e8ee5f9d9d"
                    },
                    {
                        "type":1,
                        "uuid":"c075142456ee4a6f885f8d4a5b3804c6"
                    }
                ],
                "status":1,
                "type":0,
                "uuid":"fae4c9b18c794e06b82abb8f11d1af9d"
            }
        ],
        "pageNum":1,
        "pageSize":10,
        "total":3
    },
    "msg":"成功"
}

1.8. 单个布控查询

基础信息

路径: /v1/api/personNumber/rule/query

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
uuid string UUID

Body示例:

{
    "uuid":"070c25f7b1e242b08cd48828a61ef906"
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值
  |─resourcesType integer 算力资源类型,1:中心算力,2:边端算力(默认)
  |─type integer 人数统计布控类型
0 :分析源
1 :分析源组
  |─ruleBeanList array 人数统计分析源规则列表
    |─ object
      |─uuid string 分析源布控uuid
      |─status integer 状态
1 :开启
0 :关闭
      |─drawLineBeans array 画线信息
        |─ object
          |─uuid string 画线uuid
          |─areaId integer 画线布控所属区域id(计数区域id,计数区域2 ...)
画线布控所属区域id(计数区域id,计数区域2 ...)
          |─nodeDetail string 画线详情
画线详情信息
      |─pointName string 监控点name
      |─pointUuid string 监控点uuid
      |─type integer 布控类型
0 :滞留超员
1 :人数过密
      |─drawType integer 画线类型,1-周界(多区域),4-单向多绊线,6-全局;出入口传4,人数密度传1或6
      |─scheduleUuid string 时间计划uuid
      |─scheduleName string 时间计划名称
      |─delayAlarmTime integer 延迟报警时间
      |─intervalAlarmTime integer 间隔报警时间,单位:分钟
      |─threshold integer 超员&报警阈值
      |─retention integer 是否开启滞留人数超员
0 :未启动
1 :启用
  |─groupRuleBean object 人数统计分析源组规则
    |─pointGroupUuid string 分析源组uuid
    |─pointGroupName string 分析源组名称
    |─scheduleUuid string 时间计划uuid
    |─scheduleName string 时间计划名称
    |─uuid string 布控规则uuid
    |─type integer 布控类型
0 :滞留超员
1 :人数过密
    |─drawType integer 画线类型,1-周界(多区域),4-单向多绊线,6-全局;出入口传4,人数密度传1或6
    |─delayAlarmTime integer 延迟报警时间,单位:秒
    |─intervalAlarmTime integer 间隔报警时间,单位:分钟
    |─threshold integer 超员&报警阈值
    |─status integer 布控规则状态
1 :开启
0 :关闭
    |─retention integer 是否开启滞留人数超员
0 :未启动
1 :启用
  |─uuid string 整体布控的uuid

响应示例:

{
    "code":0,
    "data":{
        "ruleBeanList":[
            {
                "delayAlarmTime":0,
                "drawLineBeans":[
                    {
                        "areaId":1,
                        "nodeDetail":"[[{\"x\":0.2611,\"y\":0.6931},{\"x\":0.6596,\"y\":0.4549}]]"
                    }
                ],
                "drawType":4,
                "intervalAlarmTime":1,
                "pointName":"算力引擎1-通道5",
                "pointUuid":"c958c59d707c4765b0a4482ac3b0fded",
                "retention":1,
                "scheduleName":"人数统计默认时间计划",
                "scheduleUuid":"851b75f2d16b40a18b17e281b1f74444",
                "status":1,
                "threshold":2,
                "type":0,
                "uuid":"580aebb2bcc94cf8b47d5a217f0e6700"
            },
            {
                "delayAlarmTime":0,
                "drawLineBeans":[
                    {
                        "areaId":1,
                        "nodeDetail":"[{\"x\":0,\"y\":0},{\"x\":0,\"y\":1},{\"x\":1,\"y\":1},{\"x\":1,\"y\":0}]"
                    }
                ],
                "drawType":6,
                "intervalAlarmTime":1,
                "pointName":"算力引擎1-通道5",
                "pointUuid":"c958c59d707c4765b0a4482ac3b0fded",
                "retention":1,
                "scheduleName":"人数统计默认时间计划",
                "scheduleUuid":"851b75f2d16b40a18b17e281b1f74444",
                "status":1,
                "threshold":20,
                "type":1,
                "uuid":"bcfc44637d9a434cbb9b9f81166d32ca"
            }
        ],
        "type":0,
        "resourcesType":2,
        "uuid":"070c25f7b1e242b08cd48828a61ef906"
    },
    "msg":"成功"
}

1.9. 清零

基础信息

路径: /v1/api/personNumber/rule/setZero

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
uuids array 布控uuids
uuid string 布控uuid (两个参数不能同时为空)

Body示例:

{
    "uuids":["070c25f7b1e242b08cd48828a61ef906"]
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值

响应示例:

{
    "code":0,
    "msg":"成功"
}

results matching ""

    No results matching ""