org.sonar.wsclient.services
Class TimeMachineQuery
java.lang.Object
org.sonar.wsclient.services.AbstractQuery<M>
org.sonar.wsclient.services.Query<TimeMachine>
org.sonar.wsclient.services.TimeMachineQuery
public class TimeMachineQuery
- extends Query<TimeMachine>
- Since:
- 2.5
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE_URL
public static final String BASE_URL
- See Also:
- Constant Field Values
TimeMachineQuery
public TimeMachineQuery(String resourceKeyOrId)
getMetrics
public String[] getMetrics()
setMetrics
public TimeMachineQuery setMetrics(String... metrics)
getFrom
public Date getFrom()
setFrom
public TimeMachineQuery setFrom(Date from)
getTo
public Date getTo()
setTo
public TimeMachineQuery setTo(Date to)
setCharacteristicKeys
public TimeMachineQuery setCharacteristicKeys(String model,
String... keys)
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<TimeMachine>
- See Also:
AbstractQuery.encode(String)
,
AbstractQuery.appendUrlParameter(StringBuilder, String, Object)
,
AbstractQuery.appendUrlParameter(StringBuilder, String, Object[])
,
AbstractQuery.appendUrlParameter(StringBuilder, String, Date, boolean)
getModelClass
public Class<TimeMachine> getModelClass()
- Specified by:
getModelClass
in class Query<TimeMachine>
createForMetrics
public static TimeMachineQuery createForMetrics(String resourceKeyOrId,
String... metricKeys)
createForMetrics
public static TimeMachineQuery createForMetrics(Resource resource,
String... metricKeys)
Copyright © 2009-2013 SonarSource. All Rights Reserved.