Class PipelineConnectionsResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog.plugins.pipelineprocessor.rest.PipelineConnectionsResource
- All Implemented Interfaces:
PluginRestResource
@Path("/system/pipelines/connections")
@Consumes("application/json")
@Produces("application/json")
@RequiresAuthentication
public class PipelineConnectionsResource
extends RestResource
implements PluginRestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionPipelineConnectionsResource
(PipelineStreamConnectionsService connectionsService, PipelineService pipelineService, StreamService streamService) -
Method Summary
Modifier and TypeMethodDescriptionconnectPipelines
(@NotNull PipelineConnections connection) connectStreams
(@NotNull PipelineReverseConnections connection) getAll()
getPipelinesForStream
(String streamId) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
PipelineConnectionsResource
@Inject public PipelineConnectionsResource(PipelineStreamConnectionsService connectionsService, PipelineService pipelineService, StreamService streamService)
-
-
Method Details
-
connectPipelines
@POST @Path("/to_stream") @RequiresPermissions("pipeline_connection:edit") public PipelineConnections connectPipelines(@NotNull @NotNull PipelineConnections connection) throws NotFoundException - Throws:
NotFoundException
-
connectStreams
@POST @Path("/to_pipeline") @RequiresPermissions("pipeline_connection:edit") public Set<PipelineConnections> connectStreams(@NotNull @NotNull PipelineReverseConnections connection) throws NotFoundException - Throws:
NotFoundException
-
getPipelinesForStream
@GET @Path("/{streamId}") @RequiresPermissions("pipeline_connection:read") public PipelineConnections getPipelinesForStream(@PathParam("streamId") String streamId) throws NotFoundException - Throws:
NotFoundException
-
getAll
@GET @RequiresPermissions("pipeline_connection:read") public Set<PipelineConnections> getAll() throws NotFoundException- Throws:
NotFoundException
-