@Path(value="/views/search") @Produces(value="application/json") @Consumes(value="application/json") public class SearchResource extends RestResource implements PluginRestResource
configuration, userService| Constructor and Description |
|---|
SearchResource(SearchDomain searchDomain,
SearchExecutor searchExecutor,
SearchJobService searchJobService,
com.google.common.eventbus.EventBus serverEventBus) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createSearch(SearchDTO searchRequest,
SearchUser searchUser) |
javax.ws.rs.core.Response |
createSearchV2(SearchDTOv2 searchRequest,
SearchUser searchUser) |
javax.ws.rs.core.Response |
executeQuery(String id,
ExecutionState executionState,
SearchUser searchUser) |
javax.ws.rs.core.Response |
executeSyncJob(@NotNull(message="Search body is mandatory") SearchDTO searchRequest,
long timeout,
SearchUser searchUser) |
javax.ws.rs.core.Response |
executeSyncJobv2(@NotNull(message="Search body is mandatory") SearchDTOv2 searchRequest,
long timeout,
SearchUser searchUser) |
List<SearchDTO> |
getAllSearches(SearchUser searchUser) |
SearchDTO |
getSearch(String searchId,
SearchUser searchUser) |
org.graylog.plugins.views.search.rest.SearchJobDTO |
jobStatus(String jobId,
SearchUser searchUser) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public SearchResource(SearchDomain searchDomain, SearchExecutor searchExecutor, SearchJobService searchJobService, com.google.common.eventbus.EventBus serverEventBus)
@POST
@Consumes(value={"application/json","application/vnd.graylog.search.v1+json"})
@Produces(value={"application/json","application/vnd.graylog.search.v1+json"})
public javax.ws.rs.core.Response createSearch(SearchDTO searchRequest,
@Context
SearchUser searchUser)
@POST @Consumes(value="application/vnd.graylog.search.v2+json") @Produces(value="application/vnd.graylog.search.v2+json") public javax.ws.rs.core.Response createSearchV2(SearchDTOv2 searchRequest, @Context SearchUser searchUser)
@GET
@Path(value="{id}")
@Produces(value={"application/json","application/vnd.graylog.search.v1+json"})
public SearchDTO getSearch(@PathParam(value="id")
String searchId,
@Context
SearchUser searchUser)
@GET
@Produces(value={"application/json","application/vnd.graylog.search.v1+json"})
public List<SearchDTO> getAllSearches(@Context
SearchUser searchUser)
@POST
@Path(value="{id}/execute")
@Produces(value={"application/json","application/vnd.graylog.search.v1+json"})
public javax.ws.rs.core.Response executeQuery(@PathParam(value="id")
String id,
ExecutionState executionState,
@Context
SearchUser searchUser)
@POST
@Path(value="sync")
@Consumes(value={"application/json","application/vnd.graylog.search.v1+json"})
@Produces(value={"application/json","application/vnd.graylog.search.v1+json"})
public javax.ws.rs.core.Response executeSyncJob(@NotNull(message="Search body is mandatory")
@NotNull(message="Search body is mandatory") SearchDTO searchRequest,
@QueryParam(value="timeout") @DefaultValue(value="60000")
long timeout,
@Context
SearchUser searchUser)
@POST
@Path(value="sync")
@Consumes(value="application/vnd.graylog.search.v2+json")
@Produces(value="application/vnd.graylog.search.v2+json")
public javax.ws.rs.core.Response executeSyncJobv2(@NotNull(message="Search body is mandatory")
@NotNull(message="Search body is mandatory") SearchDTOv2 searchRequest,
@QueryParam(value="timeout") @DefaultValue(value="60000")
long timeout,
@Context
SearchUser searchUser)
@GET
@Path(value="status/{jobId}")
@Produces(value={"application/json","application/vnd.graylog.search.v1+json"})
public org.graylog.plugins.views.search.rest.SearchJobDTO jobStatus(@PathParam(value="jobId")
String jobId,
@Context
SearchUser searchUser)
Copyright © 2012–2022 Graylog, Inc.. All rights reserved.