org.camunda.bpm.engine.rest.impl
Class MetricsRestServiceImpl

java.lang.Object
  extended by org.camunda.bpm.engine.rest.spi.impl.AbstractProcessEngineAware
      extended by org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
          extended by org.camunda.bpm.engine.rest.impl.MetricsRestServiceImpl
All Implemented Interfaces:
MetricsRestService

public class MetricsRestServiceImpl
extends AbstractRestProcessEngineAware
implements MetricsRestService

Author:
Daniel Meyer

Field Summary
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 class org.camunda.bpm.engine.rest.spi.impl.AbstractProcessEngineAware
processEngine
 
Fields inherited from interface org.camunda.bpm.engine.rest.MetricsRestService
PATH
 
Constructor Summary
MetricsRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
           
 
Method Summary
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)
           
 
Methods inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
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 interface MetricsRestService

interval

public List<MetricsIntervalResultDto> interval(javax.ws.rs.core.UriInfo uriInfo)
Specified by:
interval in interface MetricsRestService

applyQueryParams

protected void applyQueryParams(MetricsQuery query,
                                javax.ws.rs.core.MultivaluedMap<String,String> queryParameters)

convertToDtos

protected List<MetricsIntervalResultDto> convertToDtos(List<MetricIntervalValue> metrics)


Copyright © 2016 camunda services GmbH. All rights reserved.