@Path(value="/streams/alerts") @Produces(value="application/json") public class AlertResource extends RestResource
configuration, userService| Constructor and Description |
|---|
AlertResource(StreamService streamService,
AlertService alertService) |
| Modifier and Type | Method and Description |
|---|---|
AlertSummary |
get(String alertId) |
AlertListSummary |
listPaginated(int skip,
int limit,
String state) |
AlertListSummary |
listRecent(@Min(value=0L) int sinceTs,
@Min(value=1L) int limit) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public AlertResource(StreamService streamService, AlertService alertService)
@GET @Timed public AlertListSummary listRecent(@QueryParam(value="since") @DefaultValue(value="0") @Min(value=0L) @Min(value=0L) int sinceTs, @QueryParam(value="limit") @DefaultValue(value="300") @Min(value=1L) @Min(value=1L) int limit) throws NotFoundException
NotFoundException@GET @Timed @Path(value="paginated") public AlertListSummary listPaginated(@QueryParam(value="skip") @DefaultValue(value="0") int skip, @QueryParam(value="limit") @DefaultValue(value="300") int limit, @QueryParam(value="state") String state)
@GET
@Timed
@Path(value="{alertId}")
public AlertSummary get(@PathParam(value="alertId")
String alertId)
throws NotFoundException
NotFoundExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.