-
- All Implemented Interfaces:
public interface ApiRequestsAnalyserInterface for analyse requests of the SDK. It can be use to understand how the SDK is calling the backend API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classApiRequestsAnalyser.Companion
-
Method Summary
Modifier and Type Method Description abstract UnitregisterRequest(String requestName, Map<String, String> data)Registers the request using the name as an ID. abstract StringdumpRequestByName(String requestName)Gets the information about the request by name abstract StringdumpAll()Gets all the information in the analyser. abstract UnitclearAll()Clears all the information of the analyser. abstract UnitclearRequestContaining(String queryText)Clear an specific requests containing some string in its name. abstract IntegercountRequestContaining(String requestName)Returns the number of times that a requests was made using name. abstract IntegercountAllRequests()Counts all the requests made. -
-
Method Detail
-
registerRequest
abstract Unit registerRequest(String requestName, Map<String, String> data)
Registers the request using the name as an ID.
- Parameters:
data- All the data that should be included in the analyser about the request.
-
dumpRequestByName
abstract String dumpRequestByName(String requestName)
Gets the information about the request by name
- Parameters:
requestName- The name of the request.
-
clearAll
abstract Unit clearAll()
Clears all the information of the analyser. Should be used to avoid batches of data that are too big to understand.
-
clearRequestContaining
abstract Unit clearRequestContaining(String queryText)
Clear an specific requests containing some string in its name. Return -1 it the request is not found.
-
countRequestContaining
abstract Integer countRequestContaining(String requestName)
Returns the number of times that a requests was made using name.
-
countAllRequests
abstract Integer countAllRequests()
Counts all the requests made.
-
-
-
-