fetchMonitorLogsSince

abstract suspend fun fetchMonitorLogsSince(connection: MockzillaConnectionConfig, since: Long?, clientSessionStart: Long): Result<MonitorLogsResponse>

Non-destructively polls log entries since the given timestamp. Safe to call repeatedly without losing entries.

Return

Result.success wrapping the log response, or Result.failure if the request could not be completed.

Parameters

connection

The device to target.

since

Only return entries with timestamp strictly after this value (epoch ms). Pass null to retrieve all buffered entries.

clientSessionStart

A stable epoch-millisecond timestamp representing when the current management-UI session started. Pass the same value on every poll for the lifetime of the process. The server uses this to drive disk-cache cleanup: when it detects a new session (changed value), it deletes full-body files older than min(oldest_in_memory_entry, clientSessionStart).