@Path(value="/streams/{streamId}/alerts/conditions") public class StreamAlertConditionResource extends RestResource
objectMapper, serverStatus, userService
Constructor and Description |
---|
StreamAlertConditionResource(StreamService streamService,
AlertService alertService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(String streamid,
CreateConditionRequest ccr) |
void |
delete(String streamid,
String conditionId) |
Map<String,Object> |
list(String streamid) |
void |
update(String streamid,
String conditionid,
CreateConditionRequest ccr) |
bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, page, restrictToMaster, setPrettyPrint
@Inject public StreamAlertConditionResource(StreamService streamService, AlertService alertService)
@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(@PathParam(value="streamId") String streamid, @NotNull CreateConditionRequest ccr) throws NotFoundException, ValidationException
NotFoundException
ValidationException
@PUT @Timed @Path(value="{conditionId}") @Consumes(value="application/json") @Produces(value="application/json") public void update(@PathParam(value="streamId") String streamid, @PathParam(value="conditionId") String conditionid, @NotNull CreateConditionRequest ccr) throws NotFoundException, ValidationException
NotFoundException
ValidationException
@GET @Timed @Produces(value="application/json") public Map<String,Object> list(@PathParam(value="streamId") String streamid) throws NotFoundException
NotFoundException
@DELETE @Timed @Path(value="{conditionId}") @Produces(value="application/json") public void delete(@PathParam(value="streamId") String streamid, @PathParam(value="conditionId") String conditionId) throws NotFoundException
NotFoundException
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.