- Add MorningSummaryService with Zabbix aggregation and adaptive card builder - Add webhook delivery system with Teams incoming webhooks - Add admin UI at /admin/morning-summary for webhook/config management - Add API routes: /send, /test, /webhooks, /webhooks/[id], /config, /history - Register morning-summary cron job in SyncScheduler (Mon-Fri 6:30 AM) - Add outages_only filter (Unavailable triggers only) - Fix host resolution: use getTriggerEnabledHosts to exclude disabled hosts - Fix resolved events: event.get value:1 scoped to window with r_eventid filter - Remove emojis from fact rows and section headers in card - Remove Open Zabbix button (duplicate of View Problems) - Add migrations: morning_summary_config + morning_summaries tables - Add outages_only column to morning_summary_config
6 lines
330 B
SQL
6 lines
330 B
SQL
-- Migration 047: Add after-hours message tracking to engagement snapshots
|
|
-- Counts Teams messages sent by the employee between 5:30 PM and 7:00 AM UTC.
|
|
-- Populated during sync if the Azure AD app has the Chat.Read.All permission.
|
|
|
|
ALTER TABLE engagement_snapshots
|
|
ADD COLUMN IF NOT EXISTS after_hours_messages INT DEFAULT 0;
|