@Path(value="/system/indices/index_sets") @Produces(value="application/json") public class IndexSetsResource extends RestResource
configuration, userService| Constructor and Description |
|---|
IndexSetsResource(Indices indices,
IndexSetService indexSetService,
IndexSetRegistry indexSetRegistry,
IndexSetValidator indexSetValidator,
IndexSetCleanupJob.Factory indexSetCleanupJobFactory,
IndexSetStatsCreator indexSetStatsCreator,
ClusterConfigService clusterConfigService,
SystemJobManager systemJobManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String id,
boolean deleteIndices) |
IndexSetSummary |
get(String id) |
IndexSetStats |
globalStats() |
IndexSetStats |
indexSetStatistics(String id) |
IndexSetResponse |
list(int skip,
int limit,
boolean computeStats) |
IndexSetSummary |
save(@Valid @NotNull IndexSetSummary indexSet) |
IndexSetSummary |
setDefault(String id) |
IndexSetSummary |
update(String id,
@Valid @NotNull IndexSetUpdateRequest updateRequest) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public IndexSetsResource(Indices indices, IndexSetService indexSetService, IndexSetRegistry indexSetRegistry, IndexSetValidator indexSetValidator, IndexSetCleanupJob.Factory indexSetCleanupJobFactory, IndexSetStatsCreator indexSetStatsCreator, ClusterConfigService clusterConfigService, SystemJobManager systemJobManager)
@GET @Timed public IndexSetResponse list(@QueryParam(value="skip") @DefaultValue(value="0") int skip, @QueryParam(value="limit") @DefaultValue(value="0") int limit, @QueryParam(value="stats") @DefaultValue(value="false") boolean computeStats)
@GET @Path(value="stats") @Timed public IndexSetStats globalStats()
@GET
@Path(value="{id}")
@Timed
public IndexSetSummary get(@PathParam(value="id")
String id)
@GET
@Path(value="{id}/stats")
@Timed
public IndexSetStats indexSetStatistics(@PathParam(value="id")
String id)
@POST @Timed @Consumes(value="application/json") public IndexSetSummary save(@Valid @NotNull @Valid @NotNull IndexSetSummary indexSet)
@PUT
@Path(value="{id}")
@Timed
public IndexSetSummary update(@PathParam(value="id")
String id,
@Valid @NotNull
@Valid @NotNull IndexSetUpdateRequest updateRequest)
@PUT
@Path(value="{id}/default")
@Timed
public IndexSetSummary setDefault(@PathParam(value="id")
String id)
@DELETE
@Path(value="{id}")
@Timed
public void delete(@PathParam(value="id")
String id,
@QueryParam(value="delete_indices") @DefaultValue(value="true")
boolean deleteIndices)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.