public final class MetricQuery extends Query<Metric>
Modifier and Type | Field and Description |
---|---|
static String |
BASE_URL |
DEFAULT_TIMEOUT_MILLISECONDS
Modifier and Type | Method and Description |
---|---|
static MetricQuery |
all() |
static MetricQuery |
byKey(String metricKey) |
Class<Metric> |
getModelClass() |
String |
getUrl()
Must start with a slash, for example: /api/metrics
|
appendUrlParameter, appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getBody, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMilliseconds
public static final String BASE_URL
public String getUrl()
AbstractQuery
IMPORTANT: In implementations of this method we must use helper methods to construct URL.
public Class<Metric> getModelClass()
getModelClass
in class Query<Metric>
public static MetricQuery all()
public static MetricQuery byKey(String metricKey)
Copyright © 2009-2013 SonarSource. All Rights Reserved.