mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 17:24:12 +00:00
fix: remove .js extensions from monitoring module imports
Next.js webpack build cannot resolve .js extensions for .ts files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bb02128b28
commit
884d33c0ae
5 changed files with 8 additions and 8 deletions
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import type { Payload } from 'payload'
|
||||
import type { AlertCondition, AlertSeverity, SystemMetrics } from './types.js'
|
||||
import type { AlertCondition, AlertSeverity, SystemMetrics } from './types'
|
||||
|
||||
// ============================================================================
|
||||
// Pure Functions
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* Falls back to console output when Payload is not yet initialized.
|
||||
*/
|
||||
|
||||
import type { LogLevel, LogSource } from './types.js'
|
||||
import type { LogLevel, LogSource } from './types'
|
||||
|
||||
const LOG_LEVELS: Record<LogLevel, number> = {
|
||||
debug: 0,
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ import type {
|
|||
SecurityMetricsStatus,
|
||||
PerformanceMetrics,
|
||||
SystemMetrics,
|
||||
} from './types.js'
|
||||
import { checkSecretsHealth } from '../security/secrets-health.js'
|
||||
import { getSecurityMetricsSnapshot } from '../security/security-observability.js'
|
||||
} from './types'
|
||||
import { checkSecretsHealth } from '../security/secrets-health'
|
||||
import { getSecurityMetricsSnapshot } from '../security/security-observability'
|
||||
|
||||
// ============================================================================
|
||||
// System Health
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
* error rates, and throughput.
|
||||
*/
|
||||
|
||||
import type { PerformanceEntry, PerformanceMetrics } from './types.js'
|
||||
import type { PerformanceEntry, PerformanceMetrics } from './types'
|
||||
|
||||
const PERIOD_MS: Record<string, number> = {
|
||||
'1h': 3_600_000,
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
* sie in MonitoringSnapshots. Evaluiert dabei Alert-Regeln.
|
||||
*/
|
||||
|
||||
import { collectMetrics } from './monitoring-service.js'
|
||||
import { AlertEvaluator } from './alert-evaluator.js'
|
||||
import { collectMetrics } from './monitoring-service'
|
||||
import { AlertEvaluator } from './alert-evaluator'
|
||||
|
||||
let interval: ReturnType<typeof setInterval> | null = null
|
||||
const alertEvaluator = new AlertEvaluator()
|
||||
|
|
|
|||
Loading…
Reference in a new issue