public class MetricsRestServiceImpl extends AbstractRestProcessEngineAware implements MetricsRestService
Modifier and Type | Field and Description |
---|---|
static String |
QUERY_PARAM_AGG_BY_REPORTER |
static String |
QUERY_PARAM_END_DATE |
static String |
QUERY_PARAM_FIRST_RESULT |
static String |
QUERY_PARAM_INTERVAL |
static String |
QUERY_PARAM_MAX_RESULTS |
static String |
QUERY_PARAM_NAME |
static String |
QUERY_PARAM_REPORTER |
static String |
QUERY_PARAM_START_DATE |
objectMapper, relativeRootResourcePath
processEngine
PATH
Constructor and Description |
---|
MetricsRestServiceImpl(String engineName,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyQueryParams(MetricsQuery query,
javax.ws.rs.core.MultivaluedMap<String,String> queryParameters) |
protected List<MetricsIntervalResultDto> |
convertToDtos(List<MetricIntervalValue> metrics) |
MetricsResource |
getMetrics(String name) |
List<MetricsIntervalResultDto> |
interval(javax.ws.rs.core.UriInfo uriInfo) |
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
public static final String QUERY_PARAM_NAME
public static final String QUERY_PARAM_REPORTER
public static final String QUERY_PARAM_START_DATE
public static final String QUERY_PARAM_END_DATE
public static final String QUERY_PARAM_FIRST_RESULT
public static final String QUERY_PARAM_MAX_RESULTS
public static final String QUERY_PARAM_INTERVAL
public static final String QUERY_PARAM_AGG_BY_REPORTER
public MetricsRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public MetricsResource getMetrics(String name)
getMetrics
in interface MetricsRestService
public List<MetricsIntervalResultDto> interval(javax.ws.rs.core.UriInfo uriInfo)
interval
in interface MetricsRestService
protected void applyQueryParams(MetricsQuery query, javax.ws.rs.core.MultivaluedMap<String,String> queryParameters)
protected List<MetricsIntervalResultDto> convertToDtos(List<MetricIntervalValue> metrics)
Copyright © 2021. All rights reserved.