@Path(value="/system/inputs/{inputId}/extractors") public class ExtractorsResource extends RestResource
userService
Constructor and Description |
---|
ExtractorsResource(InputService inputService,
ActivityWriter activityWriter,
com.codahale.metrics.MetricRegistry metricRegistry,
ExtractorFactory extractorFactory,
ConverterFactory converterFactory,
PersistedInputs persistedInputs) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(String inputId,
@Valid @NotNull CreateExtractorRequest cer) |
ExtractorSummaryList |
list(String inputId) |
void |
order(String inputPersistId,
OrderExtractorsRequest oer) |
ExtractorSummary |
single(String inputId,
String extractorId) |
void |
terminate(String inputId,
String extractorId) |
ExtractorSummary |
update(String inputId,
String extractorId,
@Valid @NotNull CreateExtractorRequest cer) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
@Inject public ExtractorsResource(InputService inputService, ActivityWriter activityWriter, com.codahale.metrics.MetricRegistry metricRegistry, ExtractorFactory extractorFactory, ConverterFactory converterFactory, PersistedInputs persistedInputs)
@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(@PathParam(value="inputId") String inputId, @Valid @NotNull @Valid @NotNull CreateExtractorRequest cer) throws NotFoundException
NotFoundException
@PUT @Timed @Consumes(value="application/json") @Produces(value="application/json") @Path(value="/{extractorId}") public ExtractorSummary update(@PathParam(value="inputId") String inputId, @PathParam(value="extractorId") String extractorId, @Valid @NotNull @Valid @NotNull CreateExtractorRequest cer) throws NotFoundException
NotFoundException
@GET @Timed @Produces(value="application/json") public ExtractorSummaryList list(@PathParam(value="inputId") String inputId) throws NotFoundException
NotFoundException
@GET @Timed @Path(value="/{extractorId}") @Produces(value="application/json") public ExtractorSummary single(@PathParam(value="inputId") String inputId, @PathParam(value="extractorId") String extractorId) throws NotFoundException
NotFoundException
@DELETE @Timed @Path(value="/{extractorId}") @Produces(value="application/json") public void terminate(@PathParam(value="inputId") String inputId, @PathParam(value="extractorId") String extractorId) throws NotFoundException
NotFoundException
@POST @Timed @Consumes(value="application/json") @Path(value="order") public void order(@PathParam(value="inputId") String inputPersistId, OrderExtractorsRequest oer) throws NotFoundException
NotFoundException
Copyright © 2012–2019 Graylog, Inc.. All rights reserved.