Class PipelineResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog.plugins.pipelineprocessor.rest.PipelineResource
- All Implemented Interfaces:
PluginRestResource
@Path("/system/pipelines/pipeline")
@Consumes("application/json")
@Produces("application/json")
@RequiresAuthentication
public class PipelineResource
extends RestResource
implements PluginRestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionPipelineResource
(PipelineService pipelineService, PaginatedPipelineService paginatedPipelineService, PipelineRuleParser pipelineRuleParser) -
Method Summary
Modifier and TypeMethodDescriptioncreateFromParser
(@NotNull PipelineSource pipelineSource) void
getAll()
parse
(@NotNull PipelineSource pipelineSource) update
(String id, @NotNull PipelineSource update) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
PipelineResource
@Inject public PipelineResource(PipelineService pipelineService, PaginatedPipelineService paginatedPipelineService, PipelineRuleParser pipelineRuleParser)
-
-
Method Details
-
createFromParser
@POST @RequiresPermissions("pipeline:create") public PipelineSource createFromParser(@NotNull @NotNull PipelineSource pipelineSource) throws ParseException - Throws:
ParseException
-
parse
@POST @Path("/parse") public PipelineSource parse(@NotNull @NotNull PipelineSource pipelineSource) throws ParseException - Throws:
ParseException
-
getAll
-
getPage
@GET @Path("/paginated") @Produces("application/json") public PaginatedResponse<PipelineSource> getPage(@QueryParam("page") @DefaultValue("1") int page, @QueryParam("per_page") @DefaultValue("50") int perPage, @QueryParam("query") @DefaultValue("") String query, @DefaultValue("title") @QueryParam("sort") String sort, @DefaultValue("asc") @QueryParam("order") String order) -
get
- Throws:
NotFoundException
-
update
@Path("/{id}") @PUT public PipelineSource update(@PathParam("id") String id, @NotNull @NotNull PipelineSource update) throws NotFoundException - Throws:
NotFoundException
-
delete
- Throws:
NotFoundException
-