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