Search in sources :

Example 1 with InputDeleted

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;
}
Also used : InputDeleted(org.graylog2.rest.models.system.inputs.responses.InputDeleted) Path(javax.ws.rs.Path) DELETE(javax.ws.rs.DELETE) Timed(com.codahale.metrics.annotation.Timed) ApiOperation(io.swagger.annotations.ApiOperation) AuditEvent(org.graylog2.audit.jersey.AuditEvent) ApiResponses(io.swagger.annotations.ApiResponses)

Aggregations

Timed (com.codahale.metrics.annotation.Timed)1 ApiOperation (io.swagger.annotations.ApiOperation)1 ApiResponses (io.swagger.annotations.ApiResponses)1 DELETE (javax.ws.rs.DELETE)1 Path (javax.ws.rs.Path)1 AuditEvent (org.graylog2.audit.jersey.AuditEvent)1 InputDeleted (org.graylog2.rest.models.system.inputs.responses.InputDeleted)1