Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(alerts): add every_15_minutes interval schema and model (#59102)

Matt Puacb085e76560d
diff --git a/frontend/src/lib/components/Alerts/alertFormLogic.ts b/frontend/src/lib/components/Alerts/alertFormLogic.ts
index afa116cf0006..fd9ab792191a 100644
--- a/frontend/src/lib/components/Alerts/alertFormLogic.ts
+++ b/frontend/src/lib/components/Alerts/alertFormLogic.ts
@@ -58,6 +58,7 @@ export function canCheckOngoingInterval(alert?: AlertType | AlertFormType): bool
export function getDefaultSimulationRange(interval: AlertCalculationInterval): string {
switch (interval) {
+ case AlertCalculationInterval.EVERY_15_MINUTES:
case AlertCalculationInterval.HOURLY:
return '-48h'
case AlertCalculationInterval.DAILY:
@@ -242,9 +243,10 @@ export const alertFormLogic = kea<alertFormLogicType>([
...alert,
subscribed_users: alert.subscribed_users?.map(({ id }) => id),
insight: props.insightId,
- // can only skip weekends for hourly/daily alerts
+ // can only skip weekends for sub-daily alerts
skip_weekend:
- (alert.calculation_interval === AlertCalculationInterval.DAILY ||
+ (alert.calculation_interval === AlertCalculationInterval.EVERY_15_MINUTES ||
+ alert.calculation_interval === AlertCalculationInterval.DAILY ||
alert.calculation_interval === AlertCalculationInterval.HOURLY) &&
alert.skip_weekend,
// can only check ongoing interval for absolute value/increase alerts with upper threshold
diff --git a/frontend/src/lib/components/Alerts/views/DetectorSelector.tsx b/frontend/src/lib/components/Alerts/views/DetectorSelector.tsx
index efeca718b792..a86b154deed2 100644
--- a/frontend/src/lib/components/Alerts/views/DetectorSelector.tsx
+++ b/frontend/src/lib/components/Alerts/views/DetectorSelector.tsx
@@ -28,9 +28,11 @@ import {
const DEFAULT_THRESHOLD = 0.95
/** Default window size based on how often the alert checks.
- * Hourly: 168 (7 days), Daily: 90, Weekly: 26 (6 months), Monthly: 12 (1 year). */
+ * Every 15 minutes: 672 (7 days), Hourly: 168 (7 days), Daily: 90, Weekly: 26 (6 months), Monthly: 12 (1 year). */
export function getDefaultWindow(interval?: AlertCalculationInterval): number {
switch (interval) {
+ case AlertCalculationInterval.EVERY_15_MINUTES:
+ return 672
case AlertCalculationInterval.HOURLY:
return 168
case AlertCalculationInterval.WEEKLY:
diff --git a/frontend/src/lib/components/Alerts/views/EditAlertModal.tsx b/frontend/src/lib/components/Alerts/views/EditAlertModal.tsx
index c3d887eb7f37..2a7fb9c6e6a9 100644
--- a/frontend/src/lib/components/Alerts/views/EditAlertModal.tsx
+++ b/frontend/src/lib/components/Alerts/views/EditAlertModal.tsx
@@ -52,6 +52,7 @@ import { SimulationSummary } from './SimulationSummary'
function getSimulationRangeOptions(interval: AlertCalculationInterval): { label: string; value: string }[] {
switch (interval) {
+ case AlertCalculationInterval.EVERY_15_MINUTES:
case AlertCalculationInterval.HOURLY:
return [
{ label: 'Last 24h', value: '-24h' },
@@ -84,6 +85,8 @@ function getSimulationRangeOptions(interval: AlertCalculationInterval): { label:
function alertCalculationIntervalToLabel(interval: AlertCalculationInterval): string {
switch (interval) {
+ case AlertCalculationInterval.EVERY_15_MINUTES:
+ return '15 minutes'
case AlertCalculationInterval.HOURLY:
return 'hour'
case AlertCalculationInterval.DAILY:
@@ -209,7 +212,8 @@ export function EditAlertModal({
n += 1
}
if (
- (alertForm.calculation_interval === AlertCalculationInterval.DAILY ||
+ (alertForm.calculation_interval === AlertCalculationInterval.EVERY_15_MINUTES ||
+ alertForm.calculation_interval === AlertCalculationInterval.DAILY ||
alertForm.calculation_interval === AlertCalculationInterval.HOURLY) &&
alertForm.skip_weekend
) {
@@ -769,7 +773,9 @@ export function EditAlertModal({
<LemonCheckbox
checked={
(alertForm?.calculation_interval ===
- AlertCalculationInterval.DAILY ||
+ AlertCalculationInterval.EVERY_15_MINUTES ||
+ alertForm?.calculation_interval ===
+ AlertCalculationInterval.DAILY ||
alertForm?.calculation_interval ===
AlertCalculationInterval.HOURLY) &&
alertForm?.skip_weekend
@@ -778,11 +784,13 @@ export function EditAlertModal({
fullWidth
label="Skip checking on weekends"
disabledReason={
+ alertForm?.calculation_interval !==
+ AlertCalculationInterval.EVERY_15_MINUTES &&
alertForm?.calculation_interval !==
AlertCalculationInterval.DAILY &&
alertForm?.calculation_interval !==
AlertCalculationInterval.HOURLY &&
- 'Can only skip weekend checking for hourly/daily alerts'
+ 'Can only skip weekend checking for 15-minute, hourly, or daily alerts'
}
/>
</LemonField>
diff --git a/frontend/src/lib/components/Alerts/views/QuietHoursFields.tsx b/frontend/src/lib/components/Alerts/views/QuietHoursFields.tsx
index a00b43c9b343..d14f12fc364e 100644
--- a/frontend/src/lib/components/Alerts/views/QuietHoursFields.tsx
+++ b/frontend/src/lib/components/Alerts/views/QuietHoursFields.tsx
@@ -86,13 +86,14 @@ export function QuietHoursFields({
)
const nonHourlyInterval =
- calculationInterval !== AlertCalculationInterval.HOURLY
- ? calculationInterval === AlertCalculationInterval.DAILY
- ? 'day'
- : calculationInterval === AlertCalculationInterval.WEEKLY
- ? 'week'
- : 'month'
- : null
+ calculationInterval === AlertCalculationInterval.EVERY_15_MINUTES ||
+ calculationInterval === AlertCalculationInterval.HOURLY
+ ? null
+ : calculationInterval === AlertCalculationInterval.DAILY
+ ? 'day'
+ : calculationInterval === AlertCalculationInterval.WEEKLY
+ ? 'week'
+ : 'month'
const atWindowLimit = windows.length >= MAX_BLOCKED_WINDOWS
const addWindowButtonLabel = atWindowLimit ? `Maximum of ${MAX_BLOCKED_WINDOWS} time windows` : 'Add time window'
@@ -120,7 +121,8 @@ export function QuietHoursFields({
Preset: overnight (10pm–7am)
</LemonButton>
</div>
- {calculationInterval === AlertCalculationInterval.HOURLY &&
+ {(calculationInterval === AlertCalculationInterval.EVERY_15_MINUTES ||
+ calculationInterval === AlertCalculationInterval.HOURLY) &&
hourlyApprox != null &&
hourlyApprox < 24 ? (
<div className="text-muted text-sm">
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 7066feae7efa..0e331f60767d 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -229,8 +229,9 @@ export const FEATURE_FLAGS = {
ACTION_REFERENCE_COUNT: 'action-reference-count', // owner: @andyzzhao #team-product-analytics, gates bulk action reference counting on actions list
ADVANCE_MARKETING_ANALYTICS_SETTINGS: 'advance-marketing-analytics-settings', // owner: @jabahamondes #team-web-analytics
AI_EVENTS_TABLE_ROLLOUT: 'ai-events-table-rollout', // owner: #team-llm-analytics, gates reads off the dedicated ai_events table
- ALERTS_ANOMALY_DETECTION: 'alerts-anomaly-detection', // owner: @andrewm4894
/** Alert edit modal: check history chart + chart/table toggle (table remains when off). */
+ ALERTS_15_MINUTE_INTERVAL: 'alerts-15-minute-interval', // owner: #team-analytics-platform, gates 15-minute insight alert interval
+ ALERTS_ANOMALY_DETECTION: 'alerts-anomaly-detection', // owner: @andrewm4894
ALERTS_HISTORY_CHART: 'alerts-history-chart', // owner: #team-analytics-platform
ALERTS_INLINE_NOTIFICATIONS: 'alerts-inline-notifications', // owner: @vdekrijger
ALERTS_INVESTIGATION_AGENT: 'alerts-investigation-agent', // owner: @andrewm4894, anomaly alerts — investigation agent on firing
diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json
index e1ada51308c0..04041d84462a 100644
--- a/frontend/src/queries/schema.json
+++ b/frontend/src/queries/schema.json
@@ -421,7 +421,7 @@
"type": "string"
},
"AlertCalculationInterval": {
- "enum": ["hourly", "daily", "weekly", "monthly"],
+ "enum": ["every_15_minutes", "hourly", "daily", "weekly", "monthly"],
"type": "string"
},
"AlertCondition": {
diff --git a/frontend/src/queries/schema/schema-general.ts b/frontend/src/queries/schema/schema-general.ts
index c544b54786c7..0341261bfff0 100644
--- a/frontend/src/queries/schema/schema-general.ts
+++ b/frontend/src/queries/schema/schema-general.ts
@@ -4322,6 +4322,7 @@ export enum AlertState {
}
export enum AlertCalculationInterval {
+ EVERY_15_MINUTES = 'every_15_minutes',
HOURLY = 'hourly',
DAILY = 'daily',
WEEKLY = 'weekly',
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index a44282177fd3..9051f2e4f5e2 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -205,6 +205,7 @@ export enum AvailableFeature {
AUTOMATIC_PROVISIONING = 'automatic_provisioning',
MANAGED_REVERSE_PROXY = 'managed_reverse_proxy',
ALERTS = 'alerts',
+ HIGH_FREQUENCY_ALERTS = 'high_frequency_alerts',
DATA_COLOR_THEMES = 'data_color_themes',
ORGANIZATION_INVITE_SETTINGS = 'organization_invite_settings',
ORGANIZATION_SECURITY_SETTINGS = 'organization_security_settings',
diff --git a/posthog/constants.py b/posthog/constants.py
index 2c9f2f381616..3fca8c8100bb 100644
--- a/posthog/constants.py
+++ b/posthog/constants.py
@@ -38,6 +38,7 @@ class AvailableFeature(StrEnum):
MANAGED_REVERSE_PROXY = "managed_reverse_proxy"
DATA_PIPELINES = "data_pipelines"
ALERTS = "alerts"
+ HIGH_FREQUENCY_ALERTS = "high_frequency_alerts"
DATA_COLOR_THEMES = "data_color_themes"
API_QUERIES_CONCURRENCY = "api_queries_concurrency"
ORGANIZATION_INVITE_SETTINGS = "organization_invite_settings"
@@ -315,6 +316,7 @@ PRODUCT_TOUR_TARGETING_FLAG_PREFIX = "product-tour-targeting-"
# Server-side evaluation via posthoganalytics; keep in sync with frontend FEATURE_FLAGS.
HACKATHONS_SUBSCRIPTIONS_FEATURE_FLAG_KEY = "hackathons_subscriptions"
SUBSCRIPTION_AI_SUMMARY_PROMPT_GUIDE_FEATURE_FLAG_KEY = "subscription-ai-summary-prompt-guide"
+ALERTS_15_MINUTE_INTERVAL_FEATURE_FLAG_KEY = "alerts-15-minute-interval"
EXPERIMENTS_SYNC_QUERIES_FEATURE_FLAG_KEY = "experiments-sync-queries"
GENERATED_DASHBOARD_PREFIX = "Generated Dashboard"
diff --git a/posthog/migrations/1164_alter_alertconfiguration_calculation_interval.py b/posthog/migrations/1164_alter_alertconfiguration_calculation_interval.py
new file mode 100644
index 000000000000..d7626f19cb62
--- /dev/null
+++ b/posthog/migrations/1164_alter_alertconfiguration_calculation_interval.py
@@ -0,0 +1,27 @@
+from django.db import migrations, models
+
+import posthog.schema
+
+
+class Migration(migrations.Migration):
+ dependencies = [("posthog", "1163_alter_batchexportrun_batch_export_and_more")]
+
+ operations = [
+ migrations.AlterField(
+ model_name="alertconfiguration",
+ name="calculation_interval",
+ field=models.CharField(
+ blank=True,
+ choices=[
+ (posthog.schema.AlertCalculationInterval["EVERY_15_MINUTES"], "every_15_minutes"),
+ (posthog.schema.AlertCalculationInterval["HOURLY"], "hourly"),
+ (posthog.schema.AlertCalculationInterval["DAILY"], "daily"),
+ (posthog.schema.AlertCalculationInterval["WEEKLY"], "weekly"),
+ (posthog.schema.AlertCalculationInterval["MONTHLY"], "monthly"),
+ ],
+ default=posthog.schema.AlertCalculationInterval["DAILY"],
+ max_length=20,
+ null=True,
+ ),
+ ),
+ ]
diff --git a/posthog/migrations/max_migration.txt b/posthog/migrations/max_migration.txt
index 61423a7dba77..d917f6083f37 100644
--- a/posthog/migrations/max_migration.txt
+++ b/posthog/migrations/max_migration.txt
@@ -1 +1 @@
-1163_alter_batchexportrun_batch_export_and_more
+1164_alter_alertconfiguration_calculation_interval
diff --git a/posthog/models/alert.py b/posthog/models/alert.py
index 5d3a44e18870..3b3d16b0cf34 100644
--- a/posthog/models/alert.py
+++ b/posthog/models/alert.py
@@ -118,13 +118,14 @@ class AlertConfiguration(ModelActivityMixin, CreatedMetaFields, UUIDTModel):
# how often to recalculate the alert
CALCULATION_INTERVAL_CHOICES = [
+ (AlertCalculationInterval.EVERY_15_MINUTES, AlertCalculationInterval.EVERY_15_MINUTES.value),
(AlertCalculationInterval.HOURLY, AlertCalculationInterval.HOURLY.value),
(AlertCalculationInterval.DAILY, AlertCalculationInterval.DAILY.value),
(AlertCalculationInterval.WEEKLY, AlertCalculationInterval.WEEKLY.value),
(AlertCalculationInterval.MONTHLY, AlertCalculationInterval.MONTHLY.value),
]
calculation_interval = models.CharField(
- max_length=10,
+ max_length=20,
choices=CALCULATION_INTERVAL_CHOICES,
default=AlertCalculationInterval.DAILY,
null=True,
@@ -250,6 +251,7 @@ class AlertConfiguration(ModelActivityMixin, CreatedMetaFields, UUIDTModel):
"alert_name": self.name,
"condition_type": self.condition.get("type") if self.condition else None,
"calculation_interval": self.calculation_interval,
+ "is_high_frequency_interval": self.calculation_interval == AlertCalculationInterval.EVERY_15_MINUTES,
"enabled": self.enabled,
"skip_weekend": bool(self.skip_weekend),
"has_schedule_restriction": has_schedule_restriction,
@@ -294,6 +296,10 @@ class AlertConfiguration(ModelActivityMixin, CreatedMetaFields, UUIDTModel):
return None
+ @classmethod
+ def supports_high_frequency_intervals(cls, organization: Organization) -> bool:
+ return organization.is_feature_available(AvailableFeature.HIGH_FREQUENCY_ALERTS)
+
class AlertSubscription(ModelActivityMixin, CreatedMetaFields, UUIDTModel):
user = models.ForeignKey(
diff --git a/posthog/schema.py b/posthog/schema.py
index 79a10cda015f..9c15c2f0a838 100644
--- a/posthog/schema.py
+++ b/posthog/schema.py
@@ -63,6 +63,7 @@ class AggregationAxisFormat(StrEnum):
class AlertCalculationInterval(StrEnum):
+ EVERY_15_MINUTES = "every_15_minutes"
HOURLY = "hourly"
DAILY = "daily"
WEEKLY = "weekly"
diff --git a/posthog/temporal/alerts/schedule.py b/posthog/temporal/alerts/schedule.py
index e910648ff014..7634ad8d48c1 100644
--- a/posthog/temporal/alerts/schedule.py
+++ b/posthog/temporal/alerts/schedule.py
@@ -25,7 +25,7 @@ async def create_schedule_due_alert_checks_schedule(client: Client) -> None:
task_queue=settings.ANALYTICS_PLATFORM_TASK_QUEUE,
execution_timeout=dt.timedelta(minutes=10),
),
- spec=ScheduleSpec(cron_expressions=["*/2 * * * *"]),
+ spec=ScheduleSpec(cron_expressions=["*/1 * * * *"]),
policy=SchedulePolicy(overlap=ScheduleOverlapPolicy.ALLOW_ALL),
)
@@ -49,7 +49,7 @@ async def create_run_investigation_safety_net_schedule(client: Client) -> None:
task_queue=settings.ANALYTICS_PLATFORM_TASK_QUEUE,
execution_timeout=dt.timedelta(minutes=5),
),
- spec=ScheduleSpec(cron_expressions=["*/2 * * * *"]),
+ spec=ScheduleSpec(cron_expressions=["*/1 * * * *"]),
policy=SchedulePolicy(overlap=ScheduleOverlapPolicy.SKIP),
)
diff --git a/products/alerts/frontend/generated/api.schemas.ts b/products/alerts/frontend/generated/api.schemas.ts
index 8fbb91b2f8f7..7a10e33c9e3a 100644
--- a/products/alerts/frontend/generated/api.schemas.ts
+++ b/products/alerts/frontend/generated/api.schemas.ts
@@ -381,7 +381,8 @@ export type DetectorConfigApi =
| PCADetectorConfigApi
/**
- * * `hourly` - hourly
+ * * `every_15_minutes` - every_15_minutes
+ * `hourly` - hourly
* `daily` - daily
* `weekly` - weekly
* `monthly` - monthly
@@ -389,6 +390,7 @@ export type DetectorConfigApi =
export type CalculationIntervalEnumApi = (typeof CalculationIntervalEnumApi)[keyof typeof CalculationIntervalEnumApi]
export const CalculationIntervalEnumApi = {
+ Every15Minutes: 'every_15_minutes',
Hourly: 'hourly',
Daily: 'daily',
Weekly: 'weekly',
@@ -455,6 +457,7 @@ export interface AlertApi {
detector_config?: DetectorConfigApi | null
/** How often the alert is checked: hourly, daily, weekly, or monthly.
+ * `every_15_minutes` - every_15_minutes
* `hourly` - hourly
* `daily` - daily
* `weekly` - weekly
@@ -533,6 +536,7 @@ export interface PatchedAlertApi {
detector_config?: DetectorConfigApi | null
/** How often the alert is checked: hourly, daily, weekly, or monthly.
+ * `every_15_minutes` - every_15_minutes
* `hourly` - hourly
* `daily` - daily
* `weekly` - weekly
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index c1d36bc74006..53a6b1feb7f7 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -3955,7 +3955,8 @@ export namespace Schemas {
export type DetectorConfig = EnsembleDetectorConfig | ZScoreDetectorConfig | MADDetectorConfig | IQRDetectorConfig | ThresholdDetectorConfig | ECODDetectorConfig | COPODDetectorConfig | IsolationForestDetectorConfig | KNNDetectorConfig | HBOSDetectorConfig | LOFDetectorConfig | OCSVMDetectorConfig | PCADetectorConfig;
/**
- * * `hourly` - hourly
+ * * `every_15_minutes` - every_15_minutes
+ * `hourly` - hourly
* `daily` - daily
* `weekly` - weekly
* `monthly` - monthly
@@ -3964,6 +3965,7 @@ export namespace Schemas {
export const CalculationIntervalEnum = {
+ Every15Minutes: 'every_15_minutes',
Hourly: 'hourly',
Daily: 'daily',
Weekly: 'weekly',
@@ -4030,6 +4032,7 @@ export namespace Schemas {
detector_config?: DetectorConfig | null;
/** How often the alert is checked: hourly, daily, weekly, or monthly.
+ * `every_15_minutes` - every_15_minutes
* `hourly` - hourly
* `daily` - daily
* `weekly` - weekly
@@ -25485,6 +25488,7 @@ export namespace Schemas {
detector_config?: DetectorConfig | null;
/** How often the alert is checked: hourly, daily, weekly, or monthly.
+ * `every_15_minutes` - every_15_minutes
* `hourly` - hourly
* `daily` - daily
* `weekly` - weekly
diff --git a/services/mcp/src/generated/alerts/api.ts b/services/mcp/src/generated/alerts/api.ts
index c3fb30fb49b5..a7905d9c0e5d 100644
--- a/services/mcp/src/generated/alerts/api.ts
+++ b/services/mcp/src/generated/alerts/api.ts
@@ -1477,11 +1477,13 @@ export const AlertsCreateBody = /* @__PURE__ */ zod.object({
])
.optional(),
calculation_interval: zod
- .enum(['hourly', 'daily', 'weekly', 'monthly'])
- .describe('* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly')
+ .enum(['every_15_minutes', 'hourly', 'daily', 'weekly', 'monthly'])
+ .describe(
+ '* `every_15_minutes` - every_15_minutes\n* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly'
+ )
.optional()
.describe(
- 'How often the alert is checked: hourly, daily, weekly, or monthly.\n\n* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly'
+ 'How often the alert is checked: hourly, daily, weekly, or monthly.\n\n* `every_15_minutes` - every_15_minutes\n* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly'
),
snoozed_until: zod
.string()
@@ -3136,11 +3138,13 @@ export const AlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
])
.optional(),
calculation_interval: zod
- .enum(['hourly', 'daily', 'weekly', 'monthly'])
- .describe('* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly')
+ .enum(['every_15_minutes', 'hourly', 'daily', 'weekly', 'monthly'])
+ .describe(
+ '* `every_15_minutes` - every_15_minutes\n* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly'
+ )
.optional()
.describe(
- 'How often the alert is checked: hourly, daily, weekly, or monthly.\n\n* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly'
+ 'How often the alert is checked: hourly, daily, weekly, or monthly.\n\n* `every_15_minutes` - every_15_minutes\n* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly'
),
snoozed_until: zod
.string()
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-create.json
index 474b43ef6fb1..9252474f8078 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-create.json
@@ -2,8 +2,8 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"calculation_interval": {
- "description": "How often the alert is checked: hourly, daily, weekly, or monthly.\n\n* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly",
- "enum": ["hourly", "daily", "weekly", "monthly"],
+ "description": "How often the alert is checked: hourly, daily, weekly, or monthly.\n\n* `every_15_minutes` - every_15_minutes\n* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly",
+ "enum": ["every_15_minutes", "hourly", "daily", "weekly", "monthly"],
"type": "string"
},
"condition": {
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-update.json
index 3c7f2dbb44ef..4685a5be9d32 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-update.json
@@ -2,8 +2,8 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"calculation_interval": {
- "description": "How often the alert is checked: hourly, daily, weekly, or monthly.\n\n* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly",
- "enum": ["hourly", "daily", "weekly", "monthly"],
+ "description": "How often the alert is checked: hourly, daily, weekly, or monthly.\n\n* `every_15_minutes` - every_15_minutes\n* `hourly` - hourly\n* `daily` - daily\n* `weekly` - weekly\n* `monthly` - monthly",
+ "enum": ["every_15_minutes", "hourly", "daily", "weekly", "monthly"],
"type": "string"
},
"condition": {