mirror of https://github.com/M66B/FairEmail.git
29 lines
766 B
Kotlin
29 lines
766 B
Kotlin
package com.bugsnag.android.internal
|
|
|
|
/**
|
|
* Stores internal metrics for Bugsnag use.
|
|
*/
|
|
interface InternalMetrics {
|
|
/**
|
|
* Returns a map that can be merged with the top-level JSON report.
|
|
*/
|
|
fun toJsonableMap(): Map<String, Any>
|
|
|
|
fun setConfigDifferences(differences: Map<String, Any>)
|
|
|
|
fun setCallbackCounts(newCallbackCounts: Map<String, Int>)
|
|
|
|
fun notifyAddCallback(callback: String)
|
|
|
|
fun notifyRemoveCallback(callback: String)
|
|
|
|
fun setMetadataTrimMetrics(stringsTrimmed: Int, charsRemoved: Int)
|
|
|
|
fun setBreadcrumbTrimMetrics(breadcrumbsRemoved: Int, bytesRemoved: Int)
|
|
}
|
|
|
|
internal data class TrimMetrics(
|
|
val itemsTrimmed: Int, // breadcrumbs, strings, whatever
|
|
val dataTrimmed: Int // chars, bytes, whatever
|
|
)
|