@Path(value="/streams/{streamId}/alerts")
public class StreamAlertResource
extends RestResource
objectMapper, userService| Constructor and Description |
|---|
StreamAlertResource(StreamService streamService,
AlertService alertService) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
checkConditions(String streamid) |
AlertListSummary |
list(String streamid,
int sinceTs) |
AlertListSummary |
listPaginated(String streamid,
int skip,
int limit) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public StreamAlertResource(StreamService streamService, AlertService alertService)
@GET @Timed @Produces(value="application/json") public AlertListSummary list(@PathParam(value="streamId") String streamid, @QueryParam(value="since") int sinceTs) throws NotFoundException
NotFoundException@GET @Timed @Path(value="paginated") @Produces(value="application/json") public AlertListSummary listPaginated(@PathParam(value="streamId") String streamid, @QueryParam(value="skip") @DefaultValue(value="0") int skip, @QueryParam(value="limit") @DefaultValue(value="0") int limit) throws NotFoundException
NotFoundException@GET @Timed @Path(value="check") @Produces(value="application/json") public Map<String,Object> checkConditions(@PathParam(value="streamId") String streamid) throws NotFoundException
NotFoundExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.