@Path(value="/streams/{streamId}/alerts") public class StreamAlertResource extends RestResource
userService
Constructor and Description |
---|
StreamAlertResource(StreamService streamService,
AlertService alertService,
AlarmCallbackConfigurationService alarmCallbackConfigurationService,
AlarmCallbackFactory alarmCallbackFactory) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addReceiver(String streamId,
String entity,
String type)
Deprecated.
|
Map<String,Object> |
checkConditions(String streamId) |
AlertListSummary |
list(String streamId,
@Min(value=0L) int sinceTs,
@Min(value=1L) int limit) |
AlertListSummary |
listPaginated(String streamId,
int skip,
int limit,
String state) |
void |
removeReceiver(String streamId,
String entity,
String type)
Deprecated.
|
void |
sendDummyAlert(String streamId) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
@Inject public StreamAlertResource(StreamService streamService, AlertService alertService, AlarmCallbackConfigurationService alarmCallbackConfigurationService, AlarmCallbackFactory alarmCallbackFactory)
@GET @Timed @Produces(value="application/json") public AlertListSummary list(@PathParam(value="streamId") String streamId, @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") @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="300") int limit, @QueryParam(value="state") String state) 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
@POST @Timed @Path(value="receivers") @Deprecated public javax.ws.rs.core.Response addReceiver(@PathParam(value="streamId") String streamId, @QueryParam(value="entity") String entity, @QueryParam(value="type") String type) throws NotFoundException
NotFoundException
@DELETE @Timed @Path(value="receivers") @Deprecated public void removeReceiver(@PathParam(value="streamId") String streamId, @QueryParam(value="entity") String entity, @QueryParam(value="type") String type) throws NotFoundException
NotFoundException
@POST @Timed @Path(value="sendDummyAlert") public void sendDummyAlert(@PathParam(value="streamId") String streamId) throws TransportConfigurationException, org.apache.commons.mail.EmailException, NotFoundException
TransportConfigurationException
org.apache.commons.mail.EmailException
NotFoundException
Copyright © 2012–2020 Graylog, Inc.. All rights reserved.