Class SimulatorResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog.plugins.pipelineprocessor.rest.SimulatorResource
- All Implemented Interfaces:
PluginRestResource
@Path("/system/pipelines/simulate")
@Consumes("application/json")
@Produces("application/json")
public class SimulatorResource
extends RestResource
implements PluginRestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionSimulatorResource
(PipelineInterpreter pipelineInterpreter, ConfigurationStateUpdater pipelineStateUpdater, StreamService streamService) -
Method Summary
Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
SimulatorResource
@Inject public SimulatorResource(PipelineInterpreter pipelineInterpreter, ConfigurationStateUpdater pipelineStateUpdater, StreamService streamService)
-
-
Method Details
-
simulate
@POST public SimulationResponse simulate(@NotNull @NotNull SimulationRequest request) throws NotFoundException - Throws:
NotFoundException
-