Upload config/alerts.json with huggingface_hub
Browse files- config/alerts.json +95 -0
config/alerts.json
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"thresholds": [
|
| 3 |
+
{
|
| 4 |
+
"metric": "temperature",
|
| 5 |
+
"threshold": 75.0,
|
| 6 |
+
"operator": ">=",
|
| 7 |
+
"duration": 10,
|
| 8 |
+
"enabled": true,
|
| 9 |
+
"cooldown": 300
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"metric": "temperature",
|
| 13 |
+
"threshold": 85.0,
|
| 14 |
+
"operator": ">=",
|
| 15 |
+
"duration": 5,
|
| 16 |
+
"enabled": true,
|
| 17 |
+
"cooldown": 600
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"metric": "load",
|
| 21 |
+
"threshold": 90.0,
|
| 22 |
+
"operator": ">=",
|
| 23 |
+
"duration": 30,
|
| 24 |
+
"enabled": true,
|
| 25 |
+
"cooldown": 600
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"metric": "power_draw",
|
| 29 |
+
"threshold": 200.0,
|
| 30 |
+
"operator": ">=",
|
| 31 |
+
"duration": 10,
|
| 32 |
+
"enabled": true,
|
| 33 |
+
"cooldown": 300
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"metric": "fan_speed",
|
| 37 |
+
"threshold": 95.0,
|
| 38 |
+
"operator": ">=",
|
| 39 |
+
"duration": 60,
|
| 40 |
+
"enabled": true,
|
| 41 |
+
"cooldown": 1800
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"metric": "memory_usage",
|
| 45 |
+
"threshold": 90.0,
|
| 46 |
+
"operator": ">=",
|
| 47 |
+
"duration": 30,
|
| 48 |
+
"enabled": true,
|
| 49 |
+
"cooldown": 600
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"metric": "efficiency",
|
| 53 |
+
"threshold": 0.1,
|
| 54 |
+
"operator": "<=",
|
| 55 |
+
"duration": 60,
|
| 56 |
+
"enabled": true,
|
| 57 |
+
"cooldown": 1200
|
| 58 |
+
}
|
| 59 |
+
],
|
| 60 |
+
"settings": {
|
| 61 |
+
"check_interval": 5.0,
|
| 62 |
+
"cleanup_interval": 3600.0,
|
| 63 |
+
"max_alert_age": 86400.0
|
| 64 |
+
},
|
| 65 |
+
"notifications": {
|
| 66 |
+
"log": {
|
| 67 |
+
"enabled": true
|
| 68 |
+
},
|
| 69 |
+
"desktop": {
|
| 70 |
+
"enabled": true
|
| 71 |
+
},
|
| 72 |
+
"email": {
|
| 73 |
+
"enabled": false,
|
| 74 |
+
"smtp": {
|
| 75 |
+
"server": "smtp.gmail.com",
|
| 76 |
+
"port": 587,
|
| 77 |
+
"use_tls": true,
|
| 78 |
+
"sender": "your-email@gmail.com",
|
| 79 |
+
"username": "your-username",
|
| 80 |
+
"password": "your-app-password"
|
| 81 |
+
},
|
| 82 |
+
"recipients": [
|
| 83 |
+
"admin@example.com"
|
| 84 |
+
]
|
| 85 |
+
},
|
| 86 |
+
"webhook": {
|
| 87 |
+
"enabled": false,
|
| 88 |
+
"url": "https://your-webhook-url.com/alerts",
|
| 89 |
+
"headers": {
|
| 90 |
+
"Authorization": "Bearer your-token",
|
| 91 |
+
"Content-Type": "application/json"
|
| 92 |
+
}
|
| 93 |
+
}
|
| 94 |
+
}
|
| 95 |
+
}
|