@Component @Scope(value="prototype") public class MeasurementsRestService extends Object
Constructor and Description |
---|
MeasurementsRestService() |
Modifier and Type | Method and Description |
---|---|
protected static javax.ws.rs.WebApplicationException |
getException(javax.ws.rs.core.Response.Status status,
String msg,
Object... params) |
protected static javax.ws.rs.WebApplicationException |
getException(javax.ws.rs.core.Response.Status status,
Throwable t,
String msg,
Object... params) |
List<FilterMetaData> |
getFilterMetadata() |
FilterMetaData |
getFilterMetadata(String name) |
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 fallbackAttribute,
String aggregation,
boolean relaxed)
Retrieves the measurements for a single attribute.
|
public List<FilterMetaData> getFilterMetadata()
public FilterMetaData getFilterMetadata(String name)
@Transactional(readOnly=true) public QueryResponse simpleQuery(String resourceId, String attribute, long start, long end, long step, int maxrows, String fallbackAttribute, String aggregation, boolean relaxed)
@Transactional(readOnly=true) public QueryResponse query(QueryRequest request)
protected static javax.ws.rs.WebApplicationException getException(javax.ws.rs.core.Response.Status status, String msg, Object... params) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
Copyright © 2021. All rights reserved.