@Path(value="/search/saved") public class SavedSearchesResource extends SearchResource
DEFAULT_SCROLL_BATCH_SIZE, searchesuserService| Constructor and Description |
|---|
SavedSearchesResource(Searches searches,
SavedSearchService savedSearchService,
ClusterConfigService clusterConfigService,
DecoratorProcessor decoratorProcessor) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(@Valid @NotNull CreateSavedSearchRequest cr) |
void |
delete(String searchId) |
Map<String,Object> |
get(String searchId) |
Map<String,Object> |
list() |
Map<String,Object> |
update(String searchId,
@Valid @NotNull CreateSavedSearchRequest cr) |
buildChunkedOutput, buildFieldStatsResult, buildHistogramResult, buildSearchResponse, buildSorting, buildTermsResult, buildTermsStatsResult, checkSearchPermission, createScrollChunkProducer, fieldHistogram, fieldStats, indexRangeListToValueList, parseFields, parseOptionalFields, restrictTimeRange, resultMessageListtoValueList, splitStackedFields, validateIntervalcheckAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public SavedSearchesResource(Searches searches, SavedSearchService savedSearchService, ClusterConfigService clusterConfigService, DecoratorProcessor decoratorProcessor)
@POST
@Timed
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response create(@Valid @NotNull
@Valid @NotNull CreateSavedSearchRequest cr)
throws ValidationException
ValidationException@PUT
@Path(value="/{searchId}")
@Timed
@Consumes(value="application/json")
@Produces(value="application/json")
public Map<String,Object> update(@PathParam(value="searchId")
String searchId,
@Valid @NotNull
@Valid @NotNull CreateSavedSearchRequest cr)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@GET
@Path(value="/{searchId}")
@Timed
public Map<String,Object> get(@PathParam(value="searchId")
String searchId)
throws NotFoundException
NotFoundException@DELETE
@Path(value="/{searchId}")
@Timed
public void delete(@PathParam(value="searchId")
String searchId)
throws NotFoundException
NotFoundExceptionCopyright © 2012–2020 Graylog, Inc.. All rights reserved.