Package org.graylog.events.notifications
Class DBNotificationGracePeriodService
java.lang.Object
org.graylog2.database.PaginatedDbService<EventNotificationStatus>
org.graylog.events.notifications.DBNotificationGracePeriodService
-
Field Summary
Fields inherited from class org.graylog2.database.PaginatedDbService
db -
Constructor Summary
ConstructorsConstructorDescriptionDBNotificationGracePeriodService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, JobSchedulerClock clock) -
Method Summary
Modifier and TypeMethodDescriptionintdeleteStatus(String statusId) booleaninGracePeriod(EventDto event, String notificationId, long grace) voidupdateNotifiedStatus(String notificationId, EventDto eventDto, long grace) voidupdateTriggerStatus(String notificationId, EventDto eventDto, long grace) Methods inherited from class org.graylog2.database.PaginatedDbService
asImmutableList, delete, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, findPaginatedWithQueryFilterAndSortWithGrandTotal, get, getMultiFieldSortBuilder, getPage, getSortBuilder, save, streamAll, streamByIds, streamQuery, streamQueryWithSort
-
Constructor Details
-
DBNotificationGracePeriodService
@Inject public DBNotificationGracePeriodService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, JobSchedulerClock clock)
-
-
Method Details
-
inGracePeriod
public boolean inGracePeriod(EventDto event, String notificationId, long grace) throws NotFoundException - Throws:
NotFoundException
-
getAllStatuses
-
deleteStatus
-
updateTriggerStatus
-
updateNotifiedStatus
-