Class StreamDestinationFiltersResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.streams.destinations.filters.StreamDestinationFiltersResource
@Path("/streams/{streamId}/destinations")
@Produces("application/json")
@Consumes("application/json")
@RequiresAuthentication
public class StreamDestinationFiltersResource
extends RestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService -
Constructor Summary
ConstructorsConstructorDescriptionStreamDestinationFiltersResource(StreamDestinationFilterService filterService, StreamService streamService, ValidatorService validatorService) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsecreateFilter(@NotBlank String streamId, @Valid StreamDestinationFilterRuleDTO dto) jakarta.ws.rs.core.ResponsedeleteFilter(@NotBlank String streamId, @NotBlank String filterId) jakarta.ws.rs.core.ResponsegetPaginatedFiltersForStream(@NotBlank String streamId, PaginationParameters paginationParams) getPaginatedFiltersForStreamAndTarget(@NotBlank String streamId, @NotBlank String targetId, PaginationParameters paginationParams) jakarta.ws.rs.core.ResponseupdateFilter(@NotBlank String streamId, @NotBlank String filterId, @Valid StreamDestinationFilterRuleDTO dto) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
StreamDestinationFiltersResource
@Inject public StreamDestinationFiltersResource(StreamDestinationFilterService filterService, StreamService streamService, ValidatorService validatorService)
-
-
Method Details
-
getPaginatedFiltersForStream
@GET @Path("/filters") public PaginatedResponse<StreamDestinationFilterRuleDTO> getPaginatedFiltersForStream(@PathParam("streamId") @NotBlank @NotBlank String streamId, @BeanParam PaginationParameters paginationParams) -
getPaginatedFiltersForStreamAndTarget
@GET @Path("/target/{targetId}/filters") public PaginatedResponse<StreamDestinationFilterRuleDTO> getPaginatedFiltersForStreamAndTarget(@PathParam("streamId") @NotBlank @NotBlank String streamId, @PathParam("targetId") @NotBlank @NotBlank String targetId, @BeanParam PaginationParameters paginationParams) -
getFilter
-
createFilter
@POST @Path("/filters") public jakarta.ws.rs.core.Response createFilter(@PathParam("streamId") @NotBlank @NotBlank String streamId, @Valid @Valid StreamDestinationFilterRuleDTO dto) -
updateFilter
@PUT @Path("/filters/{filterId}") public jakarta.ws.rs.core.Response updateFilter(@PathParam("streamId") @NotBlank @NotBlank String streamId, @PathParam("filterId") @NotBlank @NotBlank String filterId, @Valid @Valid StreamDestinationFilterRuleDTO dto) -
deleteFilter
-