Class StatisticsResource
java.lang.Object
io.nflow.rest.v1.ResourceBase
io.nflow.rest.v1.springweb.SpringWebResource
io.nflow.rest.v1.springweb.StatisticsResource
@RestController
@RequestMapping(value="/${nflow.rest.path.prefix}/v1/statistics",
produces="application/json")
@Component
public class StatisticsResource
extends SpringWebResource
-
Field Summary
Fields inherited from class ResourceBase
DEPRECATED_INCLUDE_PARAM_DESC, INCLUDES_PARAM_DESC, QUERY_ARCHIVED_DEFAULT, QUERY_ARCHIVED_DEFAULT_STR -
Constructor Summary
ConstructorsConstructorDescriptionStatisticsResource(SchedulerService scheduler, StatisticsConverter statisticsConverter, StatisticsService statisticsService) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ResponseEntity<?>> getStatistics(String type, org.joda.time.DateTime createdAfter, org.joda.time.DateTime createdBefore, org.joda.time.DateTime modifiedAfter, org.joda.time.DateTime modifiedBefore) reactor.core.publisher.Mono<ResponseEntity<?>> Methods inherited from class SpringWebResource
handleExceptions, wrapBlockingMethods inherited from class ResourceBase
fetchWorkflowInstance, handleExceptions, listWorkflowDefinitions, listWorkflowInstances, resolveExceptionHttpStatus, updateWorkflowInstance
-
Constructor Details
-
StatisticsResource
@Inject public StatisticsResource(SchedulerService scheduler, StatisticsConverter statisticsConverter, StatisticsService statisticsService)
-
-
Method Details
-
queryStatistics
-
getStatistics
@GetMapping(path="/workflow/{type}") public reactor.core.publisher.Mono<ResponseEntity<?>> getStatistics(@PathVariable("type") String type, @RequestParam(value="createdAfter",required=false) org.joda.time.DateTime createdAfter, @RequestParam(value="createdBefore",required=false) org.joda.time.DateTime createdBefore, @RequestParam(value="modifiedAfter",required=false) org.joda.time.DateTime modifiedAfter, @RequestParam(value="modifiedBefore",required=false) org.joda.time.DateTime modifiedBefore)
-