Performance
Data
Fetcher
The PerformanceDataFetcher
class is
useful to fetch the performance data and format them to transfer to the clients
Author
N7ghtm4r3 - Tecknobit
Constructors
Link copied to clipboard
constructor(applicationId: String, platformName: String, filters: JsonHelper, performanceRepository: PerformanceRepository)
Constructor to init the PerformanceDataFetcher
Properties
Link copied to clipboard
applicationId
the identifier
of the application
Link copied to clipboard
EMPTY_JSON_HELPER
constant
value of an empty json helper
Link copied to clipboard
performanceRepository
the repository used to retrieve the performance data from
the database
Link copied to clipboard
platformName
the name of the
platform
Functions
Link copied to clipboard
private open fun fetchDateFromPayload(type: PerformanceAnalytic.PerformanceAnalyticType): Triple<Long, Long, Boolean>
Method to fetch the specific performance
data from json payload
Link copied to clipboard
private open fun fetchVersionsFromPayload(type: PerformanceAnalytic.PerformanceAnalyticType): Pair<List<String>, Boolean>
Method to fetch the specific versions filter
from json payload
Link copied to clipboard
Method to get the ISSUES_PER_SESSION
performance data
Link copied to clipboard
Method to get the LAUNCH_TIME performance
data
Link copied to clipboard
Method to get the NETWORK_REQUESTS
performance data
Link copied to clipboard
private open fun getPerformanceData(type: PerformanceAnalytic.PerformanceAnalyticType): PerformanceData.PerformanceDataItem
Method to get the specific performance data
based on the type
Link copied to clipboard
Method to get the TOTAL_ISSUES performance
data