Performance Data Item

The PerformanceDataItem class is a container of single performance data collected

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor()
Constructor to init the PerformanceDataItem class
constructor(versions: List<String>, analytics: List<PerformanceAnalytic>, analyticType: PerformanceAnalytic.PerformanceAnalyticType, customFiltered: Boolean)
Constructor to init the PerformanceDataItem class
constructor(data: Map<String, List<PerformanceAnalytic>>, analyticType: PerformanceAnalytic.PerformanceAnalyticType, customFiltered: Boolean)
Constructor to init the PerformanceDataItem class
constructor(jItem: JSONObject)
Constructor to init the PerformanceDataItem class

Properties

Link copied to clipboard
analyticType the type of the analytic collected
Link copied to clipboard
private val customFiltered: Boolean
customFiltered whether the collected data have been filtered with custom filters
Link copied to clipboard
data the collected data
Link copied to clipboard
val IS_CUSTOM_FILTERED_KEY: String = "is_custom_filtered"
IS_CUSTOM_FILTERED_KEY the key for the "is_custom_filtered" field
Link copied to clipboard
val MAX_TEMPORAL_RANGE: Long = 7776000000
MAX_TEMPORAL_RANGE the maximum temporal range allowed for the data retrieving (about 3 months)

Functions

Link copied to clipboard
Method to group the analytics by their version
Link copied to clipboard
Method to get the final date of the temporal range of each list present in the data
Link copied to clipboard
Method to get the initial date of the temporal range of each list present in the data
Link copied to clipboard
Method to get customFiltered instance
Link copied to clipboard
private open fun loadData(jData: JSONObject): Map<String, List<PerformanceAnalytic>>
Method to load from the json the data collected
Link copied to clipboard
Method to check if there are no data available in the data instance
Link copied to clipboard
Method to get keys of the data instance
Link copied to clipboard
open fun toString(): String