Added interface status
This commit is contained in:
@ -19,6 +19,17 @@ function updateDeviceStatus() {
|
||||
.catch(error => console.error('Error updating status:', error));
|
||||
}
|
||||
|
||||
function updateSystemMetrics() {
|
||||
fetch('/api/metrics')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
updateInterfaceStatus(data.interfaces);
|
||||
updatePowerMetrics(data.power);
|
||||
updateSystemHealth(data.health);
|
||||
});
|
||||
}
|
||||
|
||||
//Metric updates like interfaces, power, and health
|
||||
function updateDiagnostics() {
|
||||
fetch('/api/diagnostics')
|
||||
.then(response => response.json())
|
||||
|
||||
Reference in New Issue
Block a user