|
@@ -62,6 +62,9 @@ class NotificationSettingTypes(Enum):
|
|
|
# Sub category of quotas for spend allocation notifications
|
|
|
QUOTA_SPEND_ALLOCATIONS = 55
|
|
|
|
|
|
+ # Notifications about spikes
|
|
|
+ SPIKE_PROTECTION = 60
|
|
|
+
|
|
|
|
|
|
NOTIFICATION_SETTING_TYPES = {
|
|
|
NotificationSettingTypes.DEFAULT: "default",
|
|
@@ -76,6 +79,7 @@ NOTIFICATION_SETTING_TYPES = {
|
|
|
NotificationSettingTypes.QUOTA_ATTACHMENTS: "quotaAttachments",
|
|
|
NotificationSettingTypes.QUOTA_WARNINGS: "quotaWarnings",
|
|
|
NotificationSettingTypes.QUOTA_SPEND_ALLOCATIONS: "quotaSpendAllocations",
|
|
|
+ NotificationSettingTypes.SPIKE_PROTECTION: "spikeProtection",
|
|
|
}
|
|
|
|
|
|
|
|
@@ -147,6 +151,7 @@ class UserOptionsSettingsKey(Enum):
|
|
|
ACTIVE_RELEASE = "activeReleaseNotifications"
|
|
|
APPROVAL = "approvalNotifications"
|
|
|
QUOTA = "quotaNotifications"
|
|
|
+ SPIKE_PROTECTION = "spikeProtectionNotifications"
|
|
|
|
|
|
|
|
|
VALID_VALUES_FOR_KEY = {
|
|
@@ -196,6 +201,10 @@ VALID_VALUES_FOR_KEY = {
|
|
|
NotificationSettingOptionValues.ALWAYS,
|
|
|
NotificationSettingOptionValues.NEVER,
|
|
|
},
|
|
|
+ NotificationSettingTypes.SPIKE_PROTECTION: {
|
|
|
+ NotificationSettingOptionValues.ALWAYS,
|
|
|
+ NotificationSettingOptionValues.NEVER,
|
|
|
+ },
|
|
|
}
|
|
|
|
|
|
|