Class V20220622071600_MigratePagerDutyV1
java.lang.Object
org.graylog2.migrations.Migration
org.graylog.integrations.migrations.V20220622071600_MigratePagerDutyV1
- All Implemented Interfaces:
Comparable<Migration>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionV20220622071600_MigratePagerDutyV1
(MongoConnection mongoConnection, ClusterConfigService clusterConfigService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
upgrade()
This migration modifies the config.type field forPagerDutyNotificationConfig
that were created before it was migrated into Graylog Core.
-
Constructor Details
-
V20220622071600_MigratePagerDutyV1
@Inject public V20220622071600_MigratePagerDutyV1(MongoConnection mongoConnection, ClusterConfigService clusterConfigService)
-
-
Method Details
-
createdAt
-
upgrade
public void upgrade()This migration modifies the config.type field forPagerDutyNotificationConfig
that were created before it was migrated into Graylog Core. Previous configurations had config.type 'pagerduty-notification-v1' and the type was updated to 'pagerduty-notification-v2' in the migration. No other fields were added/modified/deleted in the migration, so only the config.type field is updated.
-