NetworkTransactionStore

Functions

Link copied to clipboard
abstract fun find(id: String): NetworkTransaction?
Link copied to clipboard
Link copied to clipboard
abstract fun record(transaction: NetworkTransaction)
Link copied to clipboard
fun NetworkTransactionStore.resolveExportSelection(selection: ExportSelection, baseQuery: NetworkTransactionQuery = NetworkTransactionQuery(limit = NetworkTransactionQuery.MAX_PAGE_LIMIT)): List<NetworkTransaction>?

Resolves selection against this store, bounded to NetworkTransactionQuery.MAX_PAGE_LIMIT rows. baseQuery supplies any additional filters (method, host, status, free-text search, ...) layered on top of ExportSelection.All or ExportSelection.TimeRange; it is ignored for ExportSelection.Ids, which is always an exact match regardless of filters -- a caller who picked specific rows expects exactly those rows back, not a filtered subset of them.

Link copied to clipboard
abstract fun statusDistribution(): Map<String, Int>