towerops/lib/towerops
Graham McIntire 4e7d3612e2
Add agent statistics and monitoring queries
- Created Towerops.Agents.Stats module with health monitoring functions
- get_organization_agent_health/1: Online status, equipment counts, metrics
- get_equipment_assignment_breakdown/1: Count by assignment source
- get_agent_metric_stats/1: 24-hour metric submission statistics
- get_offline_agents/1: Agents not seen in 5+ minutes
- get_high_load_agents/2: Agents with >50 devices (configurable)
- get_unmonitored_equipment/1: Equipment with no agent assigned

Uses hierarchical agent assignment logic via list_agent_polling_targets/1
to properly count equipment across all assignment levels.
2026-01-14 09:02:01 -06:00
..
accounts add passkey 2026-01-09 12:26:32 -06:00
admin Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00
agents Add agent statistics and monitoring queries 2026-01-14 09:02:01 -06:00
alerts more tests and logging around email 2026-01-06 16:00:41 -06:00
equipment Add sensor value change tracking and threshold monitoring 2026-01-05 14:01:35 -06:00
monitoring Refactor credo issues: reduce complexity and nesting depth 2026-01-06 13:55:16 -06:00
organizations add remote agent setup 2026-01-09 13:15:31 -06:00
proto protobufs 2026-01-09 17:33:01 -06:00
sites Implement hierarchical agent assignment for SNMP polling 2026-01-14 08:38:50 -06:00
snmp add MIB-based validation and generic profile tests 2026-01-08 08:57:21 -06:00
accounts.ex Streamline login flow and fix test failures 2026-01-13 13:08:24 -06:00
admin.ex Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00
agents.ex Implement hierarchical agent assignment for SNMP polling 2026-01-14 08:38:50 -06:00
alerts.ex fix a few bits 2026-01-03 14:58:06 -06:00
application.ex event pubsub 2026-01-05 12:23:15 -06:00
equipment.ex Implement event logging system and fix sensor display 2026-01-05 10:42:34 -06:00
mailer.ex format 2025-12-21 11:31:08 -06:00
monitoring.ex Add TimescaleDB aggregate tests, implement on-demand calculation 2026-01-13 08:09:12 -06:00
organizations.ex fix dialyzer things 2026-01-03 12:56:40 -06:00
release.ex fix dialyzer things 2026-01-03 12:56:40 -06:00
repo.ex init 2025-12-21 11:10:43 -06:00
sites.ex 1. Sites Management 2025-12-21 13:39:19 -06:00
snmp.ex snmp bits 2026-01-03 14:41:28 -06:00