1. 报警
rtls
  • REST API
    • 说明
    • 设置
      • 获取
      • 设置
    • 认证
      • 设置 Auth
      • 获取 Auth
      • 删除 Auth
      • 获取 JWT
      • 刷新 JWT
      • 重置密码
    • 文件
      • 获取文件
      • 设置文件
      • 删除文件
    • RTLS
      • 地图映射
        • 获取
        • 设置
      • 区域
        • 获取
        • 设置
      • 围栏
        • 获取
        • 设置
      • 高度差分站
        • 获取
        • 设置
        • 上报传感数据
        • 获取传感数据
        • 获取传感数据数量
      • RSSI 锚点
        • 获取
        • 设置
        • 上报传感数据
      • 位置
        • 上报位置
        • 获取最新位置
        • 历史轨迹
        • 历史轨迹计数
      • 标签
        • 获取
    • 报警
      • 获取报警规则
        GET
      • 设置报警规则
        PUT
      • 新增告警记录
        POST
      • 告警记录分页
        PATCH
      • 告警记录分页计数
        HEAD
      • 告警记录统计
        GET
      • 新增告警处理
        POST
      • 告警处理列表
        GET
      • 告警记录统计 - 未处理
        GET
      • 围栏切换记录分页
        GET
      • 区域切换记录分页
        GET
    • 数据
      • 数据库状态
      • 文件存储状态
  • 数据模型
    • UpdateResult
    • DeleteResult
    • Auth
    • AuthWithPua
    • HeightDatum
    • HeightDatumValue
    • RssiAnchor
    • RssiAnchorValue
    • Map
    • Area
    • Fence
    • Setting
    • AlarmRule
    • AlarmData
    • Individual
    • Collective
    • Sos
    • Battery
    • FenceInside
    • FenceOutside
    • FenceEnter
    • FenceExit
    • FenceStay
    • FenceLeave
    • FenceInside (count)
    • FenceOutside (count)
    • FenceCongestion
    • AreaCongestion
    • Custom
    • AlarmRecord
    • RecordBody
  1. 报警

获取报警规则

GET
/alarm/rules

请求参数

无

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/alarm/rules'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
[
    {
        "id": "001",
        "level": 4,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Individual": {
                "Sos": {}
            }
        }
    },
    {
        "id": "002",
        "level": 2,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Individual": {
                "Battery": {
                    "battery": 74
                }
            }
        }
    },
    {
        "id": "003",
        "level": 3,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Individual": {
                "FenceInside": {
                    "fences": [
                        1,
                        2
                    ]
                }
            }
        }
    },
    {
        "id": "004",
        "level": 3,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Individual": {
                "FenceOutside": {
                    "fences": [
                        1,
                        2
                    ]
                }
            }
        }
    },
    {
        "id": "005",
        "level": 3,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Individual": {
                "FenceOutside": {
                    "fences": [
                        1,
                        2
                    ]
                }
            }
        }
    },
    {
        "id": "006",
        "level": 3,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Individual": {
                "FenceEnter": {
                    "fence": 1
                }
            }
        }
    },
    {
        "id": "007",
        "level": 3,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Individual": {
                "FenceExit": {
                    "fence": 1
                }
            }
        }
    },
    {
        "id": "008",
        "level": 3,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Individual": {
                "FenceStay": {
                    "fence": 1,
                    "duration": 60000
                }
            }
        }
    },
    {
        "id": "009",
        "level": 3,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Individual": {
                "FenceLeave": {
                    "fences": [
                        1,
                        2
                    ],
                    "duration": 60000
                }
            }
        }
    },
    {
        "id": "011",
        "level": 3,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Collective": {
                "check_interval_ms": 5000,
                "data": {
                    "FenceInside": {
                        "fence": 1,
                        "count": 5
                    }
                }
            }
        }
    },
    {
        "id": "012",
        "level": 3,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Collective": {
                "check_interval_ms": 5000,
                "data": {
                    "FenceOutside": {
                        "fence": 1,
                        "count": 5
                    }
                }
            }
        }
    },
    {
        "id": "013",
        "level": 4,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Collective": {
                "check_interval_ms": 5000,
                "data": {
                    "FenceCongestion": {
                        "count": 5,
                        "max_distance": 5,
                        "fences": [
                            0,
                            1
                        ]
                    }
                }
            }
        }
    },
    {
        "id": "014",
        "level": 4,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Collective": {
                "check_interval_ms": 5000,
                "data": {
                    "AreaCongestion": {
                        "count": 5,
                        "max_distance": 5,
                        "areas": [
                            0,
                            1
                        ]
                    }
                }
            }
        }
    },
    {
        "id": "021",
        "level": 4,
        "time_window_ms": 15000,
        "cron": null,
        "data": {
            "Custom": {
                "expr": "!(prev > curr || prev >= 100.0) && curr >= 100.0",
                "index": 0
            }
        }
    }
]
修改于 2026-07-18 17:01:36
上一页
获取
下一页
设置报警规则
Built with