From: Marcin Haba Date: Tue, 18 Apr 2023 11:18:42 +0000 (+0200) Subject: baculum: Add volerrors property to volumes overview endpoint X-Git-Tag: Release-13.0.3~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09615d6753e3d09dec19ad055a4cd5aa55e46987;p=thirdparty%2Fbacula.git baculum: Add volerrors property to volumes overview endpoint --- diff --git a/gui/baculum/protected/API/Modules/VolumeManager.php b/gui/baculum/protected/API/Modules/VolumeManager.php index e8a8c5af7..223478910 100644 --- a/gui/baculum/protected/API/Modules/VolumeManager.php +++ b/gui/baculum/protected/API/Modules/VolumeManager.php @@ -218,6 +218,7 @@ LEFT JOIN Storage USING (StorageId) VolBytes AS volbytes, VolABytes AS volabytes, Media.VolStatus AS volstatus, + Media.VolErrors AS volerrors, InChanger AS inchanger, Slot AS slot, CASE @@ -243,6 +244,7 @@ LEFT JOIN Storage USING (StorageId) VolBytes AS volbytes, VolABytes AS volabytes, Media.VolStatus AS volstatus, + Media.VolErrors AS volerrors, InChanger AS inchanger, Slot AS slot, CASE @@ -268,6 +270,7 @@ LEFT JOIN Storage USING (StorageId) VolBytes AS volbytes, VolABytes AS volabytes, Media.VolStatus AS volstatus, + Media.VolErrors AS volerrors, InChanger AS inchanger, Slot AS slot, CASE diff --git a/gui/baculum/protected/API/openapi_baculum.json b/gui/baculum/protected/API/openapi_baculum.json index 494363fa2..9b6b08bc8 100644 --- a/gui/baculum/protected/API/openapi_baculum.json +++ b/gui/baculum/protected/API/openapi_baculum.json @@ -8152,6 +8152,25 @@ "type": "boolean" } }, + { + "name": "order_by", + "in": "query", + "required": false, + "description": "Sort by selected property. There can be one of the properties: 'job', 'client', 'fileset', 'starttime', 'endtime', 'jobid', 'content', 'type', 'jobstatus', 'joberrors'.", + "schema": { + "type": "string" + } + }, + { + "name": "order_direction", + "in": "query", + "required": false, + "description": "Order direction. It can be 'asc' (ascending order) or 'desc' (descending order - default)", + "schema": { + "type": "string", + "enum": ["asc", "desc"] + } + }, { "name": "overview", "in": "query", @@ -9771,6 +9790,10 @@ "description": "Volume status", "type": "integer" }, + "volerrors": { + "description": "Number volume errors", + "type": "integer" + }, "inchanger": { "type": "integer", "description": "InChanger flag"