public class LegacyAlertConditionMigrator extends Object
event definitions
and notification configurations
.
This class is deliberately avoiding the usage of the legacy Java classes by using the raw MongoDB client
so we can safely delete the legacy classes at one point and still run the migrations.Modifier and Type | Class and Description |
---|---|
static class |
LegacyAlertConditionMigrator.MigrationResult |
Constructor and Description |
---|
LegacyAlertConditionMigrator(MongoConnection mongoConnection,
EventDefinitionHandler eventDefinitionHandler,
NotificationResourceHandler notificationResourceHandler,
DBNotificationService dbNotificationService,
UserService userService,
int alertCheckInterval) |
Modifier and Type | Method and Description |
---|---|
LegacyAlertConditionMigrator.MigrationResult |
run(Set<String> completedAlertConditions,
Set<String> completedAlarmCallbacks) |
@Inject public LegacyAlertConditionMigrator(MongoConnection mongoConnection, EventDefinitionHandler eventDefinitionHandler, NotificationResourceHandler notificationResourceHandler, DBNotificationService dbNotificationService, UserService userService, @Named(value="alert_check_interval") int alertCheckInterval)
public LegacyAlertConditionMigrator.MigrationResult run(Set<String> completedAlertConditions, Set<String> completedAlarmCallbacks)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.