public class MetricCreateQuery extends CreateQuery<Metric>
DEFAULT_TIMEOUT_MILLISECONDS
Modifier and Type | Method and Description |
---|---|
static MetricCreateQuery |
create(String metricKey) |
Class<Metric> |
getModelClass() |
String |
getUrl()
Must start with a slash, for example: /api/metrics
|
MetricCreateQuery |
setDescription(String description) |
MetricCreateQuery |
setDomain(String domain) |
MetricCreateQuery |
setName(String name) |
MetricCreateQuery |
setType(String type) |
appendUrlParameter, appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getBody, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMilliseconds
public static MetricCreateQuery create(String metricKey)
public MetricCreateQuery setName(String name)
public MetricCreateQuery setDescription(String description)
public MetricCreateQuery setDomain(String domain)
public MetricCreateQuery setType(String type)
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 CreateQuery<Metric>
Copyright © 2009–2015 SonarSource. All rights reserved.