@Component @Scope(value="prototype") public class MeasurementsRestService extends Object
| Constructor and Description |
|---|
MeasurementsRestService() |
| Modifier and Type | Method and Description |
|---|---|
protected static <T> javax.ws.rs.WebApplicationException |
getException(javax.ws.rs.core.Response.Status status,
String msg,
Object... params) |
protected static <T> javax.ws.rs.WebApplicationException |
getException(javax.ws.rs.core.Response.Status status,
Throwable t,
String msg,
Object... params) |
QueryResponse |
query(QueryRequest request)
Retrieves the measurements of many resources and performs
arbitrary calculations on these.
|
QueryResponse |
simpleQuery(String resourceId,
String attribute,
long start,
long end,
long step,
int maxrows,
String aggregation)
Retrieves the measurements for a single attribute.
|
@Transactional(readOnly=true) public QueryResponse simpleQuery(String resourceId, String attribute, long start, long end, long step, int maxrows, String aggregation)
@Transactional(readOnly=true) public QueryResponse query(QueryRequest request)
protected static <T> javax.ws.rs.WebApplicationException getException(javax.ws.rs.core.Response.Status status,
String msg,
Object... params)
throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationExceptionCopyright © 2015. All rights reserved.