use of org.graylog2.rest.models.system.inputs.responses.InputDeleted in project graylog2-server by Graylog2.
the class InputStatesResource method stop.
@DELETE
@Path("/{inputId}")
@Timed
@ApiOperation(value = "Stop specified input on this node")
@ApiResponses(value = { @ApiResponse(code = 404, message = "No such input on this node.") })
@AuditEvent(type = AuditEventTypes.MESSAGE_INPUT_STOP)
public InputDeleted stop(@ApiParam(name = "inputId", required = true) @PathParam("inputId") String inputId) throws org.graylog2.database.NotFoundException {
inputService.find(inputId);
final InputDeleted result = InputDeleted.create(inputId);
this.serverEventBus.post(result);
return result;
}
Aggregations