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 java.lang.String
QUERY_PARAM_AGG_BY_REPORTER
static java.lang.String
QUERY_PARAM_DATE
static java.lang.String
QUERY_PARAM_END_DATE
static java.lang.String
QUERY_PARAM_FIRST_RESULT
static java.lang.String
QUERY_PARAM_INTERVAL
static java.lang.String
QUERY_PARAM_MAX_RESULTS
static java.lang.String
QUERY_PARAM_NAME
static java.lang.String
QUERY_PARAM_REPORTER
static java.lang.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(java.lang.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<java.lang.String,java.lang.String> queryParameters)
protected java.util.List<MetricsIntervalResultDto>
convertToDtos(java.util.List<MetricIntervalValue> metrics)
javax.ws.rs.core.Response
deleteTaskMetrics(java.lang.String dateString)
MetricsResource
getMetrics(java.lang.String name)
java.util.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 java.lang.String QUERY_PARAM_NAME
- See Also:
- Constant Field Values
-
QUERY_PARAM_REPORTER
public static final java.lang.String QUERY_PARAM_REPORTER
- See Also:
- Constant Field Values
-
QUERY_PARAM_START_DATE
public static final java.lang.String QUERY_PARAM_START_DATE
- See Also:
- Constant Field Values
-
QUERY_PARAM_END_DATE
public static final java.lang.String QUERY_PARAM_END_DATE
- See Also:
- Constant Field Values
-
QUERY_PARAM_FIRST_RESULT
public static final java.lang.String QUERY_PARAM_FIRST_RESULT
- See Also:
- Constant Field Values
-
QUERY_PARAM_MAX_RESULTS
public static final java.lang.String QUERY_PARAM_MAX_RESULTS
- See Also:
- Constant Field Values
-
QUERY_PARAM_INTERVAL
public static final java.lang.String QUERY_PARAM_INTERVAL
- See Also:
- Constant Field Values
-
QUERY_PARAM_DATE
public static final java.lang.String QUERY_PARAM_DATE
- See Also:
- Constant Field Values
-
QUERY_PARAM_AGG_BY_REPORTER
public static final java.lang.String QUERY_PARAM_AGG_BY_REPORTER
- See Also:
- Constant Field Values
-
dateConverter
protected final DateConverter dateConverter
-
-
Method Detail
-
getMetrics
public MetricsResource getMetrics(java.lang.String name)
- Specified by:
getMetrics
in interfaceMetricsRestService
-
interval
public java.util.List<MetricsIntervalResultDto> interval(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
interval
in interfaceMetricsRestService
-
deleteTaskMetrics
public javax.ws.rs.core.Response deleteTaskMetrics(java.lang.String dateString)
- Specified by:
deleteTaskMetrics
in interfaceMetricsRestService
-
applyQueryParams
protected void applyQueryParams(MetricsQuery query, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> queryParameters)
-
convertToDtos
protected java.util.List<MetricsIntervalResultDto> convertToDtos(java.util.List<MetricIntervalValue> metrics)
-
-