/** * Provide core information on store and available sub resources. */ @GET @Produces(MediaType.APPLICATION_JSON) @ApiOperation(value= "Display <b>Monitoring</b> information for <b><u>all</u></b> features", notes= "The <b>EventRepository</b> handle to store audit events is not required", response=EventRepositoryApiBean.class) @ApiResponses({ @ApiResponse(code = 200, message= "Status of event repository bean", response=EventRepositoryApiBean.class), @ApiResponse(code = 404, message= "No event repository defined", response=String.class) }) public Response getMonitoringStatus( @ApiParam(required=false, name="start", value="Start of window <br>(default is today 00:00)") @QueryParam(PARAM_START) Long start, @ApiParam(required=false, name="end", value="End of window <br>(default is tomorrow 00:00)") @QueryParam(PARAM_END) Long end) { if (null == getRepo()) { return Response.status(Status.NOT_FOUND).entity("No monitoring has been defined").build(); } return Response.ok(new EventRepositoryApiBean(getRepo(), start, end)).build(); }
eventRepository = new EventRepositoryApiBean(ff4j.getEventRepository(), null, null);