@Path(value="/streams/{streamId}/alerts") public class StreamAlertReceiverResource extends RestResource
objectMapper, serverStatus, userService
Constructor and Description |
---|
StreamAlertReceiverResource(StreamService streamService,
AlarmCallbackConfigurationService alarmCallbackConfigurationService,
EmailAlarmCallback emailAlarmCallback,
AlarmCallbackFactory alarmCallbackFactory) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addReceiver(String streamid,
String entity,
String type) |
void |
removeReceiver(String streamid,
String entity,
String type) |
javax.ws.rs.core.Response |
sendDummyAlert(String streamid) |
bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, page, restrictToMaster, setPrettyPrint
@Inject public StreamAlertReceiverResource(StreamService streamService, AlarmCallbackConfigurationService alarmCallbackConfigurationService, EmailAlarmCallback emailAlarmCallback, AlarmCallbackFactory alarmCallbackFactory)
@POST @Timed @Path(value="receivers") 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") public void removeReceiver(@PathParam(value="streamId") String streamid, @QueryParam(value="entity") String entity, @QueryParam(value="type") String type) throws NotFoundException
NotFoundException
@GET @Timed @Path(value="sendDummyAlert") public javax.ws.rs.core.Response sendDummyAlert(@PathParam(value="streamId") String streamid) throws TransportConfigurationException, org.apache.commons.mail.EmailException, NotFoundException
TransportConfigurationException
org.apache.commons.mail.EmailException
NotFoundException
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.