From b35eb0a175f457bdc6f9ade63c546545c59a75c2 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 10 Nov 2020 10:18:05 +0100 Subject: [PATCH] api2/status/datastore-usage: add gc-status and history start and delta so that we can show more info and calculate the points in time for the history Signed-off-by: Dominik Csapak --- 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