We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 611a582 commit b596a01Copy full SHA for b596a01
ops/mainnet/prod/core/config.tf
@@ -36,7 +36,7 @@ locals {
36
{ name = "STAGE", value = var.stage },
37
{ name = "GRAPH_API_KEY", value = var.graph_api_key },
38
{ name = "DD_ENV", value = "${var.environment}-${var.stage}" },
39
- { name = "ALERT_PIPELINE_MODE", value = "legacy" },
+ { name = "ALERT_PIPELINE_MODE", value = "dual" },
40
{ name = "ALERT_EVENT_WEBHOOK_URL", value = var.monitor_webhook_url },
41
{ name = "ALERT_EVENT_WEBHOOK_SECRET", value = var.monitor_webhook_secret },
42
{ name = "MONITOR_WEBHOOK_URL", value = var.monitor_webhook_url },
@@ -52,7 +52,7 @@ locals {
52
DD_API_KEY = var.dd_api_key,
53
DD_LAMBDA_HANDLER = "packages/agents/monitor/dist/lambda.handler"
54
GRAPH_API_KEY = var.graph_api_key
55
- ALERT_PIPELINE_MODE = "legacy"
+ ALERT_PIPELINE_MODE = "dual"
56
ALERT_EVENT_WEBHOOK_URL = var.monitor_webhook_url
57
ALERT_EVENT_WEBHOOK_SECRET = var.monitor_webhook_secret
58
MONITOR_WEBHOOK_URL = var.monitor_webhook_url
packages/utils/src/helpers/events.ts
@@ -13,6 +13,7 @@ export type MonitorEventV1 = {
13
version: '1.0';
14
eventId: string;
15
fingerprintHint?: string;
16
+ status?: 'firing' | 'resolved';
17
source: 'monorepo-monitor' | 'everclear-indexer';
18
type: string;
19
severity: 'info' | 'warning' | 'critical';
@@ -34,7 +35,7 @@ export type MonitorEventV1 = {
34
35
export type EventEmitterConfig = {
webhookUrl: string;
webhookSecret: string;
- environment: 'dev' | 'staging' | 'prod';
+ environment: 'dev' | 'staging' | 'prod' | 'production';
network: string;
retries: number;
retryBaseMs: number;
@@ -135,6 +136,7 @@ function reportToEvent(
135
136
return {
137
version: '1.0',
138
eventId: randomUUID(),
139
+ status: 'firing' as const,
140
source: 'monorepo-monitor',
141
type: report.type,
142
severity: severityMap[report.severity] ?? 'warning',
0 commit comments