Interface MetricsService
public interface MetricsService
Retrieve test metrics from remote servers.
- Author:
- jerome
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMetrics
(RestApiFactory apiFactory, String benchResultId) Retrieves current test metrics from the server.toPrintable
(org.joda.time.DateTime startTime, MetricValues metrics) Converts the metrics into a human readable line of values
-
Field Details
-
METRICS
MetricsService
singleton instance.
-
-
Method Details
-
getMetrics
Retrieves current test metrics from the server. The returned metrics are test-wide metrics.- Parameters:
apiFactory
- rest retrofitbenchResultId
- bench result id- Returns:
- global test metrics.
- Throws:
IOException
-
toPrintable
Converts the metrics into a human readable line of values- Parameters:
startTime
- test start timemetrics
- metrics to print- Returns:
- printable output
-