Class EventNotificationsResource

java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog.events.rest.EventNotificationsResource
All Implemented Interfaces:
PluginRestResource

@Path("/events/notifications") @Produces("application/json") @Consumes("application/json") public class EventNotificationsResource extends RestResource implements PluginRestResource
  • Constructor Details

  • Method Details

    • listNotifications

      @GET public PaginatedResponse<NotificationDto> listNotifications(@QueryParam("page") @DefaultValue("1") int page, @QueryParam("per_page") @DefaultValue("50") int perPage, @QueryParam("query") @DefaultValue("") String query)
    • get

      @GET @Path("/{notificationId}") public NotificationDto get(@PathParam("notificationId") @NotBlank @NotBlank String notificationId)
    • create

      @POST public javax.ws.rs.core.Response create(NotificationDto dto, @Context UserContext userContext)
    • update

      @PUT @Path("/{notificationId}") public javax.ws.rs.core.Response update(@PathParam("notificationId") @NotBlank @NotBlank String notificationId, NotificationDto dto)
    • delete

      @DELETE @Path("/{notificationId}") public void delete(@PathParam("notificationId") @NotBlank @NotBlank String notificationId)
    • test

      @POST @Timed @Path("/{notificationId}/test") public javax.ws.rs.core.Response test(@PathParam("notificationId") @NotBlank @NotBlank String notificationId)
    • test

      @POST @Timed @Path("/test") public javax.ws.rs.core.Response test(NotificationDto dto)
    • legacyTypes

      @GET @Path("/legacy/types") public javax.ws.rs.core.Response legacyTypes()