You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To implement notifications for metric alerts, follow these steps:
Metric Monitor Job: Utilize backend/jobs/metric-monitor/metric-monitor.go to trigger alerts. Modify processMetricMonitors to include a new case for metric alerts.
Alert Payloads: Define or extend metric alert payloads in /backend/model/model.go, ensuring they include necessary metric data.
Discord Integration: In /backend/alerts/integrations/discord/messages.go, add a new method SendMetricMonitorAlert to format and send the metric alert using newMessageEmbed.
Microsoft Teams Integration: Extend /backend/alerts/integrations/microsoft-teams/bot_messages.go with a method like SendMetricMonitorAlert that constructs and sends an adaptive card for the metric alert.
Webhook Integration: In /backend/alerts/integrations/webhook/webhook.go, implement a new function SendMetricMonitorAlert to serialize the metric alert payload and send it to the specified webhook URL.
These steps provide a comprehensive approach to integrating metric alerts across various notification channels.
The text was updated successfully, but these errors were encountered: