change disk alert to monitor usage of any disk, not only root

This commit is contained in:
Henry Dollman
2024-10-16 17:21:05 -04:00
parent 59d541dd1d
commit 6b6d3fabc0
3 changed files with 65 additions and 32 deletions

View File

@@ -54,7 +54,7 @@ export const updateSystemList = async () => {
export const updateAlerts = () => {
pb.collection('alerts')
.getFullList<AlertRecord>({ fields: 'id,name,system,value,min,triggered' })
.getFullList<AlertRecord>({ fields: 'id,name,system,value,min,triggered', sort: 'updated' })
.then((records) => {
$alerts.set(records)
})
@@ -315,7 +315,7 @@ export const alertInfo = {
name: 'Disk usage',
unit: '%',
icon: HardDriveIcon,
desc: 'Triggers when root usage exceeds a threshold.',
desc: 'Triggers when usage of any disk exceeds a threshold.',
},
Bandwidth: {
name: 'Bandwidth',