@Path(value="/sidecars") @Consumes(value="application/json") @Produces(value="application/json") public class SidecarResource extends RestResource implements PluginRestResource
| Modifier and Type | Field and Description |
|---|---|
protected static com.google.common.collect.ImmutableMap<String,SearchQueryField> |
SEARCH_FIELD_MAPPING |
configuration, userService| Constructor and Description |
|---|
SidecarResource(SidecarService sidecarService,
ActionService actionService,
ClusterConfigService clusterConfigService,
SidecarStatusMapper sidecarStatusMapper) |
| Modifier and Type | Method and Description |
|---|---|
SidecarListResponse |
all() |
javax.ws.rs.core.Response |
assignConfiguration(@Valid @NotNull NodeConfigurationRequest request) |
SidecarSummary |
get(@NotEmpty String sidecarId) |
javax.ws.rs.core.Response |
register(@NotEmpty String sidecarId,
@Valid @NotNull RegistrationRequest request,
@NotEmpty String sidecarVersion) |
SidecarListResponse |
sidecars(int page,
int perPage,
String query,
String sort,
String order,
boolean onlyActive) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrintprotected static final com.google.common.collect.ImmutableMap<String,SearchQueryField> SEARCH_FIELD_MAPPING
@Inject public SidecarResource(SidecarService sidecarService, ActionService actionService, ClusterConfigService clusterConfigService, SidecarStatusMapper sidecarStatusMapper)
@GET @Timed @Path(value="/all") public SidecarListResponse all()
@GET @Timed public SidecarListResponse sidecars(@QueryParam(value="page") @DefaultValue(value="1") int page, @QueryParam(value="per_page") @DefaultValue(value="50") int perPage, @QueryParam(value="query") @DefaultValue(value="") String query, @DefaultValue(value="node_name") @QueryParam(value="sort") String sort, @DefaultValue(value="asc") @QueryParam(value="order") String order, @QueryParam(value="only_active") @DefaultValue(value="false") boolean onlyActive)
@GET
@Timed
@Path(value="/{sidecarId}")
public SidecarSummary get(@PathParam(value="sidecarId") @NotEmpty
@NotEmpty String sidecarId)
@PUT
@Timed
@Path(value="/{sidecarId}")
public javax.ws.rs.core.Response register(@PathParam(value="sidecarId") @NotEmpty
@NotEmpty String sidecarId,
@Valid @NotNull
@Valid @NotNull RegistrationRequest request,
@HeaderParam(value="X-Graylog-Sidecar-Version") @NotEmpty
@NotEmpty String sidecarVersion)
@PUT
@Timed
@Path(value="/configurations")
public javax.ws.rs.core.Response assignConfiguration(@Valid @NotNull
@Valid @NotNull NodeConfigurationRequest request)
throws javax.ws.rs.NotFoundException
javax.ws.rs.NotFoundExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.