@Path(value="/events/notifications") @Produces(value="application/json") @Consumes(value="application/json") public class EventNotificationsResource extends RestResource implements PluginRestResource
configuration, userService| Constructor and Description |
|---|
EventNotificationsResource(DBNotificationService dbNotificationService,
Set<AlarmCallback> availableLegacyAlarmCallbacks,
NotificationResourceHandler resourceHandler) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(NotificationDto dto,
UserContext userContext) |
void |
delete(@NotBlank String notificationId) |
NotificationDto |
get(@NotBlank String notificationId) |
javax.ws.rs.core.Response |
legacyTypes() |
PaginatedResponse<NotificationDto> |
listNotifications(int page,
int perPage,
String query) |
javax.ws.rs.core.Response |
test(NotificationDto dto) |
javax.ws.rs.core.Response |
test(@NotBlank String notificationId) |
javax.ws.rs.core.Response |
update(@NotBlank String notificationId,
NotificationDto dto) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public EventNotificationsResource(DBNotificationService dbNotificationService, Set<AlarmCallback> availableLegacyAlarmCallbacks, NotificationResourceHandler resourceHandler)
@GET public PaginatedResponse<NotificationDto> listNotifications(@QueryParam(value="page") @DefaultValue(value="1") int page, @QueryParam(value="per_page") @DefaultValue(value="50") int perPage, @QueryParam(value="query") @DefaultValue(value="") String query)
@GET
@Path(value="/{notificationId}")
public NotificationDto get(@PathParam(value="notificationId") @NotBlank
@NotBlank String notificationId)
@POST public javax.ws.rs.core.Response create(NotificationDto dto, @Context UserContext userContext)
@PUT
@Path(value="/{notificationId}")
public javax.ws.rs.core.Response update(@PathParam(value="notificationId") @NotBlank
@NotBlank String notificationId,
NotificationDto dto)
@DELETE
@Path(value="/{notificationId}")
public void delete(@PathParam(value="notificationId") @NotBlank
@NotBlank String notificationId)
@POST
@Timed
@Path(value="/{notificationId}/test")
public javax.ws.rs.core.Response test(@PathParam(value="notificationId") @NotBlank
@NotBlank String notificationId)
@POST @Timed @Path(value="/test") public javax.ws.rs.core.Response test(NotificationDto dto)
@GET @Path(value="/legacy/types") public javax.ws.rs.core.Response legacyTypes()
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.