@Path(value="/system/inputs/{inputId}/extractors")
public class ExtractorsResource
extends RestResource
objectMapper, userService| Constructor and Description |
|---|
ExtractorsResource(InputService inputService,
ActivityWriter activityWriter,
InputRegistry inputs,
com.codahale.metrics.MetricRegistry metricRegistry,
ExtractorFactory extractorFactory,
PersistedInputs persistedInputs) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(String inputId,
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,
CreateExtractorRequest cer) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public ExtractorsResource(InputService inputService, ActivityWriter activityWriter, InputRegistry inputs, com.codahale.metrics.MetricRegistry metricRegistry, ExtractorFactory extractorFactory, PersistedInputs persistedInputs)
@POST
@Timed
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response create(@PathParam(value="inputId")
String inputId,
@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,
@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
NotFoundExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.