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
Link copied to clipboard
val effects: ERROR CLASS: Symbol not found for SharedFlow<org/meshtastic/feature/node/detail/NodeRequestEffect>
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
val lastRequestNeighborsTime: ERROR CLASS: Symbol not found for StateFlow<kotlin/Long?>
Link copied to clipboard
val lastTraceRouteTime: ERROR CLASS: Symbol not found for StateFlow<kotlin/Long?>
Link copied to clipboard
val state: ERROR CLASS: Symbol not found for StateFlow<org/meshtastic/feature/node/model/MetricsState>
Link copied to clipboard
val timeFrame: ERROR CLASS: Symbol not found for StateFlow<org/meshtastic/feature/node/model/TimeFrame>

The active time window for filtering graphed data.

Functions

Link copied to clipboard
fun clearPosition(): ERROR CLASS: Unresolved name: launch
Link copied to clipboard
fun clearTracerouteResponse(): ERROR CLASS: Unresolved name: clearTracerouteResponse
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
fun deleteLog(uuid: String): ERROR CLASS: Unresolved name: launch
Link copied to clipboard
fun getTracerouteOverlay(requestId: Int): ERROR CLASS: Symbol not found for TracerouteOverlay??
Link copied to clipboard
fun getUser(nodeNum: Int): ERROR CLASS: Unresolved name: getUser
Link copied to clipboard
open override fun onCleared()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun requestTelemetry(type: ERROR CLASS: Symbol not found for TelemetryType)
Link copied to clipboard
Link copied to clipboard
open fun savePositionCSV(uri: Any)
Link copied to clipboard
fun setNodeId(id: Int)
Link copied to clipboard
fun setTimeFrame(timeFrame: TimeFrame)
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