get Metric Sample
fun <P : TimestampedEntity, T> getMetricSample(context: Context, apiKey: String, score: Metric<P, T>, from: Long = Instant.now().minus(60, ChronoUnit.DAYS).toEpochMilli(), to: Long = Instant.now().toEpochMilli()): Flow<TimeSeries<T>>
Get a QA metric relative to a fictitious test device. Check the the list of available metrics from Metric. The function returns an object of type TimeSeries which contains timestamps and values of the requested metric. The call is asynchronous ans returns a flow. You can use this function to test your data workflow and visualization.
Return
A flow wrapping a TimeSeries
Parameters
context
Android application context
score
Object of type Metric indicating which metric to retrieve
from
first Timestamp (in ms) to included in the returned metric TimeSeries
to
last Timestamp (in ms) to included in the returned metric TimeSeries