Vehicle_Road_Counter/config/alarms.json

38 lines
1.6 KiB
JSON

[
{
"rule_id": "RTU_TEMP_HIGH_CRITICAL",
"device_id": "rtu_temp_sensor_lab",
"data_point_name": "temperature",
"compare_type": "GT",
"threshold": 30,
"level": "CRITICAL",
"debounce_seconds": 60,
"alarm_mqtt_topic": "alarms/rtu_lab",
"message_template": "RTU温度传感器'{device_id}' 检测到温度过高 ({value}°C),已达临界值 {threshold}°C!",
"clear_message_template": "RTU温度传感器'{device_id}' 温度已恢复正常 ({value}°C)。"
},
{
"rule_id": "TEST_TEMP_GT_10_WARNING",
"device_id": "rtu_temp_sensor_lab",
"data_point_name": "temperature",
"compare_type": "GT",
"threshold": 10,
"level": "CRITICAL",
"debounce_seconds": 0,
"alarm_mqtt_topic": "alarms/rtu_temp_sensor_lab",
"message_template": "测试告警 设备 '{device_id}' 温度 ({value}°C) 高于测试阈值 {threshold}°C!",
"clear_message_template": "【测试告警解除】设备 '{device_id}' 温度 ({value}°C) 已恢复正常。"
},
{
"rule_id": "SYSTEM_MEM_HIGH",
"device_id": "proxy_system",
"data_point_name": "mem_usage_percentage",
"compare_type": "GT",
"threshold": 80,
"level": "WARNING",
"debounce_seconds": 30,
"alarm_mqtt_topic": "alarms/proxy",
"message_template": "代理系统内存使用率 ({value}%) 超过 {threshold}%,请检查!",
"clear_message_template": "代理系统内存使用率已恢复 ({value}%)。"
}
]