public class MetricDataHelper extends Object
Modifier and Type | Method and Description |
---|---|
static BuildPerformanceData |
getMetricData(String agentSpecifier,
String metricSpecifier,
String strategyName,
BuildInfo build)
This method return all the performance metrics for a given metric name
for given agent specifier, metric specifier and the time range selected
|
static void |
setAPMConnectionInfo(APMConnectionInfo apmConnectionInfo) |
static void |
setApplicationName(String applicationName) |
static void |
setMetricClamp(String metricClamp) |
static void |
testConnection()
This method is used to test the connection with APM REST APIs, which
provide metric performance data for build performance comparison
|
public static void setAPMConnectionInfo(APMConnectionInfo apmConnectionInfo)
public static void setMetricClamp(String metricClamp)
public static void setApplicationName(String applicationName)
public static void testConnection() throws BuildComparatorException
BuildComparatorException
public static BuildPerformanceData getMetricData(String agentSpecifier, String metricSpecifier, String strategyName, BuildInfo build) throws BuildComparatorException, BuildExecutionException
agentSpecifier
- A regex for agent specifiermetricSpecifier
- A regex for metric specifier The metric_path will be
constructed as .*metricRegex.*metricNamebuild
- Object BuildInfoBuildComparatorException
- Throws when any error occurs during execution, proper message
is supplied to the exceptionBuildExecutionException
Copyright © 2016–2019. All rights reserved.