org.sonar.wsclient.services
Class MetricCreateQuery
java.lang.Object
org.sonar.wsclient.services.AbstractQuery<M>
org.sonar.wsclient.services.CreateQuery<Metric>
org.sonar.wsclient.services.MetricCreateQuery
public class MetricCreateQuery
- extends CreateQuery<Metric>
- Since:
- 3.6
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static MetricCreateQuery create(String metricKey)
setName
public MetricCreateQuery setName(String name)
setDescription
public MetricCreateQuery setDescription(String description)
setDomain
public MetricCreateQuery setDomain(String domain)
setType
public MetricCreateQuery setType(String type)
getUrl
public String getUrl()
- Description copied from class:
AbstractQuery
- Must start with a slash, for example: /api/metrics
IMPORTANT: In implementations of this method we must use helper methods to construct URL.
- Specified by:
getUrl
in class AbstractQuery<Metric>
- See Also:
AbstractQuery.encode(String)
,
AbstractQuery.appendUrlParameter(StringBuilder, String, Object)
,
AbstractQuery.appendUrlParameter(StringBuilder, String, Object[])
,
AbstractQuery.appendUrlParameter(StringBuilder, String, Date, boolean)
getModelClass
public Class<Metric> getModelClass()
- Specified by:
getModelClass
in class CreateQuery<Metric>
Copyright © 2009-2014 SonarSource. All Rights Reserved.