Библиотека / Мониторинг, эксплуатация и инциденты
Мониторинг, эксплуатация и инциденты
Мониторинг риска ликвидации в DeFi с резюме от OpenAI и уведомлениями в Slack
Проверяет позицию в DeFi-кредитовании каждые десять минут, рассчитывает коэффициент здоровья и расстояние до ликвидации, записывает каждый цикл в Google Sheets и отправляет в Slack уведомления с резюме от ИИ при изменении уровня риска.
Что делает
# DeFi Liquidation Risk Monitor This workflow runs every ten minutes to monitor a DeFi lending position for liquidation risk. It loads API endpoints and health factor thresholds, fetches the live lending position and collateral market price, then validates both responses. It calculates health factor, liquidation price, and distance to liquidation, and classifies risk using warning 1.5, critical 1.2, and urgent 1.1 thresholds. Every cycle is logged to Google Sheets. Alerts fire only on risk state change or escalation, are summarized by AI, sent to Slack, and stored in alert history. ## Setup Steps: 1. Set the schedule interval for the monitoring cycle, defaulting to every ten minutes. 2. Configure the production lending position API endpoint and the production market price API endpoint in the monitor configuration node, including warning 1.5, critical 1.2, and urgent 1.1 thresholds. 3. Connect Google Sheets credentials and select the Monitoring History and Alert History sheets used for cycle logging and alert auditing. 4. Connect OpenAI credentials and select the production model used to generate risk alert summaries. 5. Connect Slack credentials and select the channel that should receive liquidation risk alerts. 6. Activate the workflow and confirm the first successful monitoring cycle writes to Monitoring History before relying on production alerts.
Шаги
- Schedule Monitoring Cycle
- Fetch Lending Position
- Fetch Live Asset Price
- Calculate Risk Metrics
- Classify Liquidation Risk
- Log Monitoring Result
- Check Alert Required
- Generate Risk Alert Message
- Send Liquidation Alert
- Log Alert History
- Load Monitor Configuration
- Validate Lending Position
- Validate Market Price
- Normalize AI Risk Alert
Похожие автоматизации
Отчёты, аналитика и дашбордыОтчёты по DeFi-портфелям Aave в Telegram и по почтеШагов: 11Мониторинг, эксплуатация и инцидентыTriage hospital FHIR observations with Google Gemini, Google Sheets, and SlackШагов: 15Мониторинг, эксплуатация и инцидентыОтмечать рискованные B2B-заказы из Google Sheets с помощью Gemini и оповещать отдел продаж в SlackШагов: 19Мониторинг, эксплуатация и инцидентыОтмечать заказы B2B с риском оттока из Google Sheets с помощью Gemini и оповещениями в SlackШагов: 22