Class MetricsResourceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.rest.sub.metrics.MetricsResourceImpl
-
- All Implemented Interfaces:
MetricsResource
public class MetricsResourceImpl extends Object implements MetricsResource
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected String
metricsName
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected ProcessEngine
processEngine
-
Constructor Summary
Constructors Constructor Description MetricsResourceImpl(String metricsName, ProcessEngine processEngine, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyQueryParams(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters, DateConverter dateConverter, MetricsQuery query)
protected Date
extractEndDate(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters, DateConverter dateConverter)
protected Date
extractStartDate(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters, DateConverter dateConverter)
MetricsResultDto
sum(javax.ws.rs.core.UriInfo uriInfo)
-
-
-
Field Detail
-
metricsName
protected String metricsName
-
processEngine
protected ProcessEngine processEngine
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Detail
-
MetricsResourceImpl
public MetricsResourceImpl(String metricsName, ProcessEngine processEngine, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
sum
public MetricsResultDto sum(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
sum
in interfaceMetricsResource
-
applyQueryParams
protected void applyQueryParams(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters, DateConverter dateConverter, MetricsQuery query)
-
extractEndDate
protected Date extractEndDate(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters, DateConverter dateConverter)
-
extractStartDate
protected Date extractStartDate(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters, DateConverter dateConverter)
-
-