@Path(value="/system/collectors") @Consumes(value="application/json") @Produces(value="application/json") public class CollectorResource extends RestResource
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CollectorResource.LostCollectorFunction |
objectMapper, userService| Constructor and Description |
|---|
CollectorResource(CollectorService collectorService,
com.github.joschi.jadconfig.util.Duration inactiveThreshold) |
| Modifier and Type | Method and Description |
|---|---|
CollectorSummary |
get(String collectorId) |
CollectorList |
list() |
javax.ws.rs.core.Response |
register(String collectorId,
CollectorRegistrationRequest request,
String collectorVersion) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public CollectorResource(CollectorService collectorService, @Named(value="collector_inactive_threshold") com.github.joschi.jadconfig.util.Duration inactiveThreshold)
@GET @Timed public CollectorList list()
@GET
@Timed
@Path(value="/{collectorId}")
public CollectorSummary get(@PathParam(value="collectorId")@NotEmpty
String collectorId)
@PUT
@Timed
@Path(value="/{collectorId}")
public javax.ws.rs.core.Response register(@PathParam(value="collectorId")@NotEmpty
String collectorId,
@NotNull
CollectorRegistrationRequest request,
@HeaderParam(value="X-Graylog-Collector-Version")@NotEmpty
String collectorVersion)
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.