@Produces(value="application/json") public class MetricsRestService extends AbstractAdminPluginResource
Modifier and Type | Class and Description |
---|---|
protected class |
MetricsRestService.CountUniqueTaskWorkersCmd |
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
static String |
PATH |
static String |
QUERY_PARAM_END_DATE |
static String |
QUERY_PARAM_START_DATE |
engineName, runtimeDelegate
Constructor and Description |
---|
MetricsRestService(String engineName) |
Modifier and Type | Method and Description |
---|---|
protected Date |
convertToDate(DateConverter dateConverter,
String dateAsString) |
MetricsResultDto |
countUniqueTaskWorkers(String startDateAsString,
String endDateAsString) |
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
getProcessEngine
public static final String PATH
public static final String QUERY_PARAM_START_DATE
public static final String QUERY_PARAM_END_DATE
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public MetricsRestService(String engineName)
@GET @Path(value="/task-worker/sum") @Produces(value="application/json") public MetricsResultDto countUniqueTaskWorkers(@QueryParam(value="startDate") String startDateAsString, @QueryParam(value="endDate") String endDateAsString)
protected Date convertToDate(DateConverter dateConverter, String dateAsString)
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Copyright © 2021. All rights reserved.