- Add QBO OAuth2 client with token refresh (lib/services/qbo-client.ts) - Add QBO sync service for invoices, payments, deposits, purchases, journal entries, reports (lib/services/qbo-sync-service.ts) - Add QBO types (lib/types/qbo.ts) - Add API routes: /api/qbo/auth, /api/qbo/sync, /api/qbo/disconnect - Add /admin/qbo status and sync management page - Add legal pages: /legal/eula, /legal/privacy (Intuit app assessment) - Add QBO nav link under Admin - Fix reports: remove invalid summarize_column_by, add accounting_method from Preferences API, add showrows=all&showcols=all - Add CashFlow report type alongside P&L and BalanceSheet - Add NoReportData check to skip empty report months - Add intuit_tid capture in error messages - Add redirect: follow for cluster routing - Migration 051: qbo_tokens, qbo_invoices, qbo_payments, qbo_deposits, qbo_transactions, qbo_reports tables Also includes earlier work: - Ping flap suppression pipeline step - Ticket digest reports with LLM analysis - Zabbix WAN monitor and gap analysis - Kiosk is_deleted filter fixes - Datto RMM ping target enrichment - Entity sync soft-delete detection
17 lines
785 B
SQL
17 lines
785 B
SQL
-- Ping Flap Suppression Table
|
|
-- Tracks ping targets that have been auto-suppressed due to flapping behaviour.
|
|
-- Used to prevent repeated Zabbix suppression calls and pipeline noise.
|
|
|
|
CREATE TABLE IF NOT EXISTS ping_flap_suppressions (
|
|
ping_target TEXT PRIMARY KEY,
|
|
trigger_count INTEGER NOT NULL,
|
|
suppressed_until TIMESTAMP NOT NULL,
|
|
zabbix_suppressed BOOLEAN NOT NULL DEFAULT false,
|
|
notes TEXT,
|
|
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
|
created_at TIMESTAMP NOT NULL DEFAULT NOW()
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_ping_flap_suppressions_until ON ping_flap_suppressions(suppressed_until);
|
|
|
|
COMMENT ON TABLE ping_flap_suppressions IS 'Tracks auto-suppressed flapping ping targets. Suppression expires at suppressed_until.';
|