[pbs-devel] [PATCH proxmox-backup 1/4] api2/status/datastore-usage: add gc-status and history start and delta
Dominik Csapak
d.csapak at proxmox.com
Tue Nov 10 10:18:05 CET 2020
so that we can show more info and calculate the points in time for the
history
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/api2/status.rs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/api2/status.rs b/src/api2/status.rs
index 582d7f0f..743b1355 100644
--- a/src/api2/status.rs
+++ b/src/api2/status.rs
@@ -103,6 +103,7 @@ fn datastore_status(
"total": status.total,
"used": status.used,
"avail": status.avail,
+ "gc-status": datastore.last_gc_status(),
});
let rrd_dir = format!("datastore/{}", store);
@@ -152,6 +153,8 @@ fn datastore_status(
}
}
+ entry["history-start"] = start.into();
+ entry["history-delta"] = reso.into();
entry["history"] = history.into();
// we skip the calculation for datastores with not enough data
--
2.20.1
More information about the pbs-devel
mailing list