towerops/lib/towerops/monitoring
Graham McIntire 139a42531f
Refactor credo issues: reduce complexity and nesting depth
- Refactor check_threshold_violation: extract threshold checks into separate functions (complexity 10→~3)
- Refactor load_sensor_chart_data: extract helper functions to reduce nesting
- Refactor save_equipment: extract SNMP discovery logic into helpers
- Refactor poll_sensors: extract error handling and result processing
- Refactor handle_status_change: extract equipment down/up handlers
- Refactor mount_current_scope: extract session scope building
- Refactor load_traffic_chart_data: extract aggregation and calculation helpers
- Refactor load_overall_traffic_chart_data: similar pattern to traffic chart
- Refactor load_sensor_chart_data in equipment_live/show: extract dataset builders
- Refactor discover_storage_sensors: extract storage sensor building
- Refactor perform_poll: extract device polling logic into separate functions

All 254 tests passing. Credo reports no issues.
2026-01-06 13:55:16 -06:00
..
check.ex mix format 2025-12-21 17:17:35 -06:00
equipment_monitor.ex Refactor credo issues: reduce complexity and nesting depth 2026-01-06 13:55:16 -06:00
ping.ex snmp bits 2026-01-03 14:41:28 -06:00
ping_behaviour.ex snmp bits 2026-01-03 14:41:28 -06:00
supervisor.ex Add error handling and logging to monitoring supervisor 2026-01-04 13:24:33 -06:00