@Path(value="/streams/{streamId}/alerts") public class StreamAlertResource extends RestResource
objectMapper, serverStatus, userService
Constructor and Description |
---|
StreamAlertResource(StreamService streamService,
AlertService alertService) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
checkConditions(String streamid) |
Map<String,Object> |
list(String streamid,
int sinceTs) |
bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, page, restrictToMaster, setPrettyPrint
@Inject public StreamAlertResource(StreamService streamService, AlertService alertService)
@GET @Timed @Produces(value="application/json") public Map<String,Object> list(@PathParam(value="streamId") String streamid, @QueryParam(value="since") int sinceTs) throws NotFoundException
NotFoundException
@GET @Timed @Path(value="check") @Produces(value="application/json") public Map<String,Object> checkConditions(@PathParam(value="streamId") String streamid) throws NotFoundException
NotFoundException
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.