Class ActionResource

java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog.plugins.sidecar.rest.resources.ActionResource
All Implemented Interfaces:
PluginRestResource

@Path("/sidecar/action") @Consumes("application/json") @Produces("application/json") @RequiresAuthentication public class ActionResource extends RestResource implements PluginRestResource
  • Constructor Details

    • ActionResource

      @Inject public ActionResource(ActionService actionService)
  • Method Details

    • getAction

      @GET @Timed @Path("/{sidecarId}") @RequiresPermissions("sidecars:read") public List<CollectorAction> getAction(@PathParam("sidecarId") @NotEmpty @NotEmpty String sidecarId)
    • setAction

      @PUT @Timed @Path("/{sidecarId}") @RequiresPermissions("sidecars:update") public javax.ws.rs.core.Response setAction(@PathParam("sidecarId") @NotEmpty @NotEmpty String sidecarId, @Valid @NotNull @Valid @NotNull List<CollectorAction> request)