public class AnalyticsServiceRESTClient extends Object implements AnalyticsService
| Constructor and Description |
|---|
AnalyticsServiceRESTClient() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHeaders(HttpURLConnection connection,
String tenantId)
Add the header values to the supplied connection.
|
protected void |
buildQueryString(StringBuilder builder,
BusinessTransactionCriteria criteria)
This method builds the URL query string based on the supplied criteria.
|
int |
getAlertCount(String tenantId,
String name) |
String |
getBaseUrl() |
List<String> |
getBoundURIs(String tenantId,
String businessTransaction,
long startTime,
long endTime) |
long |
getCompletionCount(String tenantId,
BusinessTransactionCriteria criteria) |
long |
getCompletionFaultCount(String tenantId,
BusinessTransactionCriteria criteria) |
Percentiles |
getCompletionPercentiles(String tenantId,
BusinessTransactionCriteria criteria) |
String |
getPassword() |
List<URIInfo> |
getUnboundURIs(String tenantId,
long startTime,
long endTime) |
String |
getUsername() |
void |
setBaseUrl(String baseUrl) |
void |
setPassword(String password) |
void |
setUsername(String username) |
void |
storeCompletionTimes(String tenantId,
List<CompletionTime> completionTimes) |
void |
storeResponseTimes(String tenantId,
List<ResponseTime> responseTimes) |
public String getUsername()
public void setUsername(String username)
username - the username to setpublic String getPassword()
public void setPassword(String password)
password - the password to setpublic String getBaseUrl()
public void setBaseUrl(String baseUrl)
baseUrl - the baseUrl to setpublic List<URIInfo> getUnboundURIs(String tenantId, long startTime, long endTime)
getUnboundURIs in interface AnalyticsServicepublic List<String> getBoundURIs(String tenantId, String businessTransaction, long startTime, long endTime)
getBoundURIs in interface AnalyticsServicepublic long getCompletionCount(String tenantId, BusinessTransactionCriteria criteria)
getCompletionCount in interface AnalyticsServicepublic long getCompletionFaultCount(String tenantId, BusinessTransactionCriteria criteria)
getCompletionFaultCount in interface AnalyticsServicepublic Percentiles getCompletionPercentiles(String tenantId, BusinessTransactionCriteria criteria)
getCompletionPercentiles in interface AnalyticsServiceprotected void buildQueryString(StringBuilder builder, BusinessTransactionCriteria criteria)
builder - The urlcriteria - The criteriapublic int getAlertCount(String tenantId, String name)
getAlertCount in interface AnalyticsServiceprotected void addHeaders(HttpURLConnection connection, String tenantId)
connection - The connectiontenantId - The optional tenant idpublic void storeResponseTimes(String tenantId, List<ResponseTime> responseTimes) throws Exception
storeResponseTimes in interface AnalyticsServiceExceptionpublic void storeCompletionTimes(String tenantId, List<CompletionTime> completionTimes) throws Exception
storeCompletionTimes in interface AnalyticsServiceExceptionCopyright © 2015 Red Hat, Inc.. All rights reserved.