Package org.camunda.bpm.engine.rest.impl
Class MetricsRestServiceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
-
- org.camunda.bpm.engine.rest.impl.MetricsRestServiceImpl
-
- All Implemented Interfaces:
MetricsRestService
public class MetricsRestServiceImpl extends AbstractRestProcessEngineAware implements MetricsRestService
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected DateConverter
dateConverter
static String
QUERY_PARAM_AGG_BY_REPORTER
static String
QUERY_PARAM_DATE
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
-
Fields inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
objectMapper, relativeRootResourcePath
-
Fields inherited from interface org.camunda.bpm.engine.rest.MetricsRestService
PATH
-
-
Constructor Summary
Constructors Constructor Description MetricsRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyQueryParams(MetricsQuery query, javax.ws.rs.core.MultivaluedMap<String,String> queryParameters)
protected List<MetricsIntervalResultDto>
convertToDtos(List<MetricIntervalValue> metrics)
javax.ws.rs.core.Response
deleteTaskMetrics(String dateString)
MetricsResource
getMetrics(String name)
List<MetricsIntervalResultDto>
interval(javax.ws.rs.core.UriInfo uriInfo)
-
Methods inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
-
-
-
-
Field Detail
-
QUERY_PARAM_NAME
public static final String QUERY_PARAM_NAME
- See Also:
- Constant Field Values
-
QUERY_PARAM_REPORTER
public static final String QUERY_PARAM_REPORTER
- See Also:
- Constant Field Values
-
QUERY_PARAM_START_DATE
public static final String QUERY_PARAM_START_DATE
- See Also:
- Constant Field Values
-
QUERY_PARAM_END_DATE
public static final String QUERY_PARAM_END_DATE
- See Also:
- Constant Field Values
-
QUERY_PARAM_FIRST_RESULT
public static final String QUERY_PARAM_FIRST_RESULT
- See Also:
- Constant Field Values
-
QUERY_PARAM_MAX_RESULTS
public static final String QUERY_PARAM_MAX_RESULTS
- See Also:
- Constant Field Values
-
QUERY_PARAM_INTERVAL
public static final String QUERY_PARAM_INTERVAL
- See Also:
- Constant Field Values
-
QUERY_PARAM_DATE
public static final String QUERY_PARAM_DATE
- See Also:
- Constant Field Values
-
QUERY_PARAM_AGG_BY_REPORTER
public static final String QUERY_PARAM_AGG_BY_REPORTER
- See Also:
- Constant Field Values
-
dateConverter
protected final DateConverter dateConverter
-
-
Constructor Detail
-
MetricsRestServiceImpl
public MetricsRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
getMetrics
public MetricsResource getMetrics(String name)
- Specified by:
getMetrics
in interfaceMetricsRestService
-
interval
public List<MetricsIntervalResultDto> interval(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
interval
in interfaceMetricsRestService
-
deleteTaskMetrics
public javax.ws.rs.core.Response deleteTaskMetrics(String dateString)
- Specified by:
deleteTaskMetrics
in interfaceMetricsRestService
-
applyQueryParams
protected void applyQueryParams(MetricsQuery query, javax.ws.rs.core.MultivaluedMap<String,String> queryParameters)
-
convertToDtos
protected List<MetricsIntervalResultDto> convertToDtos(List<MetricIntervalValue> metrics)
-
-