Skip to main content

Module DashboardHelpers

Module DashboardHelpers 

Source
Expand description

Pure utility functions shared across Dashboard methods.

All functions are deterministic and side-effect-free, making them straightforward to unit-test and reuse outside the dashboard impl.

Functionsยง

generate_alert_id
Generate a new UUID v4 string for use as an alert identifier.
generate_span_id
Generate a new UUID v4 string for use as a span identifier.
generate_trace_id
Generate a new UUID v4 string for use as a trace identifier.
get_cpu_usage
Current process CPU usage percentage (stub: returns 25.0 until real platform metrics are wired).
get_memory_usage
Current process memory usage in MB (stub: returns 100.0 until real platform metrics are wired).
metric_type_name
Human-readable display name for a MetricType variant.