ApiRequestsAnalyser

Interface for analyse requests of the SDK. It can be use to understand how the SDK is calling the backend API.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun clearAll()

Clears all the information of the analyser. Should be used to avoid batches of data that are too big to understand.

Link copied to clipboard
abstract fun clearRequestContaining(queryText: String)

Clear an specific requests containing some string in its name. Return -1 it the request is not found.

Link copied to clipboard
abstract fun countAllRequests(): Int

Counts all the requests made.

Link copied to clipboard
abstract fun countRequestContaining(requestName: String): Int

Returns the number of times that a requests was made using name.

Link copied to clipboard
abstract fun dumpAll(): String

Gets all the information in the analyser.

Link copied to clipboard
abstract fun dumpRequestByName(requestName: String): String

Gets the information about the request by name

Link copied to clipboard
abstract fun registerRequest(requestName: String, data: Map<String, String>)

Registers the request using the name as an ID.