Extracted SNMP configuration extraction and connection testing into separate helper functions, reducing cyclomatic complexity from 11 to ~5. - extract_snmp_config/1: Consolidates form data and params - normalize_port/1: Handles port type conversion - test_snmp_connection/1: Performs test and formats result This makes the handle_event callback simpler and each concern easier to test independently. |
||
|---|---|---|
| .. | ||
| admin | ||
| alert_live | ||
| equipment_live | ||
| graph_live | ||
| org_live | ||
| site_live | ||
| dashboard_live.ex | ||
| dashboard_live.html.heex | ||