bonus-edge-proxy/config/alarms.json

89 lines
3.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"rule_id": "RTU_TEMP_HIGH_CRITICAL",
"device_id": "rtu_temp_sensor_lab",
"data_point_name": "temperature",
"compare_type": "GT",
"threshold": 30.0,
"level": "CRITICAL",
"debounce_seconds": 60,
"message_template": "RTU温度传感器'{device_id}' 检测到温度过高 ({value}°C),已达临界值 {threshold}°C!"
},
{
"rule_id": "RTU_HUMIDITY_LOW_WARNING",
"device_id": "rtu_temp_sensor_lab",
"data_point_name": "humidity",
"compare_type": "LT",
"threshold": 40.0,
"level": "WARNING",
"message_template": "RTU温度传感器'{device_id}' 的湿度 ({value}%) 低于警告值 {threshold}%!"
},
{
"rule_id": "ROTARY_ENCODER_COUNT_EXCEED",
"device_id": "rotary encoder",
"data_point_name": "count",
"compare_type": "GT",
"threshold": 1000.0,
"level": "INFO",
"message_template": "旋转编码器 '{device_id}' 计数 ({value}) 超过 {threshold}!"
},
{
"rule_id": "PLC_PRESSURE_HIGH_CRITICAL",
"device_id": "plc_workshop1",
"data_point_name": "pressure",
"compare_type": "GT",
"threshold": 10.5,
"level": "CRITICAL",
"debounce_seconds": 120,
"message_template": "PLC设备 '{device_id}' 检测到压力异常升高 ({value} bar),已达临界值 {threshold} bar!"
},
{
"rule_id": "PLC_MOTOR_SPEED_WARNING",
"device_id": "plc_workshop1",
"data_point_name": "motor_speed",
"compare_type": "GT",
"threshold": 1500.0,
"level": "WARNING",
"message_template": "PLC设备 '{device_id}' 电机转速 ({value} RPM) 超过警告值 {threshold} RPM!"
},
{
"rule_id": "PLC_VALVE_STATUS_WARN",
"device_id": "plc_workshop1",
"data_point_name": "valve_status",
"compare_type": "EQ",
"threshold": 0.0,
"level": "WARNING",
"message_template": "PLC设备 '{device_id}' 阀门状态异常 (当前值: {value},期望值: {threshold}不等于0)!"
},
{
"rule_id": "ANY_TEMP_CRITICAL",
"device_id": "*",
"data_point_name": "temperature",
"compare_type": "GT",
"threshold": 40.0,
"level": "CRITICAL",
"debounce_seconds": 300,
"message_template": "【全局报警】任意设备 '{device_id}' 的温度 ({value}°C) 达到或超过 {threshold}°C。请立即关注"
},
{
"rule_id": "SYSTEM_CPU_HIGH",
"device_id": "proxy_system",
"data_point_name": "cpu_usage",
"compare_type": "GT",
"threshold": 90.0,
"level": "WARNING",
"debounce_seconds": 30,
"message_template": "代理系统 CPU 利用率 ({value}%) 超过 {threshold}%,请检查!"
},
{
"rule_id": "SYSTEM_MEM_HIGH",
"device_id": "proxy_system",
"data_point_name": "mem_usage_percentage",
"compare_type": "GT",
"threshold": 80.0,
"level": "WARNING",
"debounce_seconds": 30,
"message_template": "代理系统内存使用率 ({value}%) 超过 {threshold}%,请检查!"
}
]