Package org.graylog.events.legacy
Class LegacyAlertConditionMigrator
java.lang.Object
org.graylog.events.legacy.LegacyAlertConditionMigrator
Takes care of migrating legacy alert condition and alarm callback configurations to new
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.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionLegacyAlertConditionMigrator
(MongoConnection mongoConnection, EventDefinitionHandler eventDefinitionHandler, NotificationResourceHandler notificationResourceHandler, DBNotificationService dbNotificationService, UserService userService, int alertCheckInterval) -
Method Summary
-
Constructor Details
-
Method Details
-
run
public LegacyAlertConditionMigrator.MigrationResult run(Set<String> completedAlertConditions, Set<String> completedAlarmCallbacks)
-