MetricsViewModel
open class MetricsViewModel(val destNum: Int, dispatchers: ERROR CLASS: Symbol not found for CoroutineDispatchers, meshLogRepository: ERROR CLASS: Symbol not found for MeshLogRepository, serviceRepository: ERROR CLASS: Symbol not found for ServiceRepository, nodeRepository: ERROR CLASS: Symbol not found for NodeRepository, tracerouteSnapshotRepository: ERROR CLASS: Symbol not found for TracerouteSnapshotRepository, nodeRequestActions: NodeRequestActions, alertManager: ERROR CLASS: Symbol not found for AlertManager, getNodeDetailsUseCase: GetNodeDetailsUseCase) : <ERROR CLASS> ERROR CLASS: Symbol not found for ViewModel(source)
ViewModel responsible for managing and graphing metrics (telemetry, signal strength, paxcount) for a specific node.
Constructors
Link copied to clipboard
constructor(destNum: Int, dispatchers: ERROR CLASS: Symbol not found for CoroutineDispatchers, meshLogRepository: ERROR CLASS: Symbol not found for MeshLogRepository, serviceRepository: ERROR CLASS: Symbol not found for ServiceRepository, nodeRepository: ERROR CLASS: Symbol not found for NodeRepository, tracerouteSnapshotRepository: ERROR CLASS: Symbol not found for TracerouteSnapshotRepository, nodeRequestActions: NodeRequestActions, alertManager: ERROR CLASS: Symbol not found for AlertManager, getNodeDetailsUseCase: GetNodeDetailsUseCase)
Properties
Link copied to clipboard
val availableTimeFrames: ERROR CLASS: Symbol not found for StateFlow<kotlin/collections/List<org/meshtastic/feature/node/model/TimeFrame>>
Returns the list of time frames that are actually available based on the oldest data point.
Link copied to clipboard
val environmentGraphingData: ERROR CLASS: Symbol not found for StateFlow<org/meshtastic/feature/node/metrics/EnvironmentGraphingData>
Exposes graphing data specifically for the filtered environment metrics.
Link copied to clipboard
val filteredEnvironmentMetrics: ERROR CLASS: Symbol not found for StateFlow<kotlin/collections/List<ERROR CLASS: Symbol not found for Telemetry>>
Exposes filtered and unit-converted environment metrics for the UI.
Link copied to clipboard
val filteredPaxMetrics: ERROR CLASS: Symbol not found for StateFlow<kotlin/collections/List<ERROR CLASS: Symbol not found for Pair<ERROR CLASS: Symbol not found for MeshLog, ERROR CLASS: Symbol not found for ProtoPaxcount>>>
Exposes filtered and decoded pax metrics for the UI.
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun decodePaxFromLog(log: ERROR CLASS: Symbol not found for MeshLog): ERROR CLASS: Symbol not found for ProtoPaxcount??
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun showLogDetail(titleRes: ERROR CLASS: Symbol not found for StringResource, annotatedMessage: ERROR CLASS: Symbol not found for AnnotatedString)
Link copied to clipboard
fun showTracerouteDetail(annotatedMessage: ERROR CLASS: Symbol not found for AnnotatedString, requestId: Int, responseLogUuid: String, overlay: ERROR CLASS: Symbol not found for TracerouteOverlay??, onViewOnMap: (Int, String) -> Unit, onShowError: (ERROR CLASS: Symbol not found for StringResource) -> Unit)
Link copied to clipboard
fun tracerouteSnapshotPositions(logUuid: String): ERROR CLASS: Unresolved name: getSnapshotPositions