public class DBNotificationGracePeriodService extends PaginatedDbService<EventNotificationStatus>
db| Constructor and Description |
|---|
DBNotificationGracePeriodService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mapper,
JobSchedulerClock clock) |
| Modifier and Type | Method and Description |
|---|---|
int |
deleteStatus(String statusId) |
List<EventNotificationStatus> |
getAllStatuses() |
boolean |
inGracePeriod(EventDto event,
String notificationId,
long grace) |
void |
updateNotifiedStatus(String notificationId,
EventDto eventDto,
long grace) |
void |
updateTriggerStatus(String notificationId,
EventDto eventDto,
long grace) |
asImmutableList, delete, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, get, getSortBuilder, save, streamAll, streamByIds, streamQuery, streamQueryWithSort@Inject public DBNotificationGracePeriodService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, JobSchedulerClock clock)
public boolean inGracePeriod(EventDto event, String notificationId, long grace) throws NotFoundException
NotFoundExceptionpublic List<EventNotificationStatus> getAllStatuses()
public int deleteStatus(String statusId)
public void updateTriggerStatus(String notificationId, EventDto eventDto, long grace)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.