public class RestConnection extends Object
Constructor and Description |
---|
RestConnection(String restUri,
String username,
String password,
String applicationName) |
Modifier and Type | Method and Description |
---|---|
MetricData |
fetchMetricData(String metricPath,
int durationInMinutes) |
MetricData |
fetchMetricData(String metricPath,
int durationInMinutes,
long buildStartTime) |
static boolean |
validateApplicationName(String applicationName) |
boolean |
validateConnection() |
static boolean |
validatePassword(String password) |
static boolean |
validateRestUri(String restUri) |
static boolean |
validateUsername(String username) |
public boolean validateConnection()
public MetricData fetchMetricData(String metricPath, int durationInMinutes)
public MetricData fetchMetricData(String metricPath, int durationInMinutes, long buildStartTime)
public static boolean validateRestUri(String restUri)
public static boolean validateApplicationName(String applicationName)
public static boolean validateUsername(String username)
public static boolean validatePassword(String password)
Copyright © 2016–2019. All rights reserved.