For devices with device_role="backhaul", traffic graphs now show capacity reference lines that update over time based on which interfaces are active. Features: - Calculates total capacity per timestamp from active monitored interfaces - Uses configured_capacity_bps if set, falls back to if_speed - Capacity adjusts as interfaces go up/down throughout the time period - Shows as dashed lines at +capacity (inbound) and -capacity (outbound) - Matches the existing 0-axis graph style Implementation: - Small graph (device detail page): Updated build_traffic_json_datasets/2 and add_capacity_datasets/3 in device_live/show.ex - Full-page graph: Updated build_traffic_datasets/2 and add_capacity_to_full_graph/4 in graph_live/show.ex The capacity lines provide visual reference for backhaul link saturation, showing how close actual throughput is to maximum capacity at each point in time. Reviewed-on: graham/towerops-web#113 |
||
|---|---|---|
| .. | ||
| channels | ||
| components | ||
| controllers | ||
| graphql | ||
| helpers | ||
| live | ||
| plugs | ||
| changelog_parser.ex | ||
| endpoint.ex | ||
| gettext.ex | ||
| gettext_helpers.ex | ||
| graphql_socket.ex | ||
| permissions.ex | ||
| plug_exceptions.ex | ||
| remote_ip.ex | ||
| router.ex | ||
| scoped_resource.ex | ||
| telemetry.ex | ||
| telemetry_filter.ex | ||
| user_auth.ex | ||