@Path(value="/streams/{streamId}/alerts")
public class StreamAlertReceiverResource
extends RestResource
objectMapper, 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) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, 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@POST
@Timed
@Path(value="sendDummyAlert")
public javax.ws.rs.core.Response sendDummyAlert(@PathParam(value="streamId")
String streamid)
throws TransportConfigurationException,
org.apache.commons.mail.EmailException,
NotFoundException
TransportConfigurationExceptionorg.apache.commons.mail.EmailExceptionNotFoundExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.