meccatronis's picture
Upload config/alerts.json with huggingface_hub
2e6ee5d verified
{
"thresholds": [
{
"metric": "temperature",
"threshold": 75.0,
"operator": ">=",
"duration": 10,
"enabled": true,
"cooldown": 300
},
{
"metric": "temperature",
"threshold": 85.0,
"operator": ">=",
"duration": 5,
"enabled": true,
"cooldown": 600
},
{
"metric": "load",
"threshold": 90.0,
"operator": ">=",
"duration": 30,
"enabled": true,
"cooldown": 600
},
{
"metric": "power_draw",
"threshold": 200.0,
"operator": ">=",
"duration": 10,
"enabled": true,
"cooldown": 300
},
{
"metric": "fan_speed",
"threshold": 95.0,
"operator": ">=",
"duration": 60,
"enabled": true,
"cooldown": 1800
},
{
"metric": "memory_usage",
"threshold": 90.0,
"operator": ">=",
"duration": 30,
"enabled": true,
"cooldown": 600
},
{
"metric": "efficiency",
"threshold": 0.1,
"operator": "<=",
"duration": 60,
"enabled": true,
"cooldown": 1200
}
],
"settings": {
"check_interval": 5.0,
"cleanup_interval": 3600.0,
"max_alert_age": 86400.0
},
"notifications": {
"log": {
"enabled": true
},
"desktop": {
"enabled": true
},
"email": {
"enabled": false,
"smtp": {
"server": "smtp.gmail.com",
"port": 587,
"use_tls": true,
"sender": "your-email@gmail.com",
"username": "your-username",
"password": "your-app-password"
},
"recipients": [
"admin@example.com"
]
},
"webhook": {
"enabled": false,
"url": "https://your-webhook-url.com/alerts",
"headers": {
"Authorization": "Bearer your-token",
"Content-Type": "application/json"
}
}
}
}