]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Add volerrors property to volumes overview endpoint
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 18 Apr 2023 11:18:42 +0000 (13:18 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Thu, 20 Apr 2023 10:00:26 +0000 (12:00 +0200)
gui/baculum/protected/API/Modules/VolumeManager.php
gui/baculum/protected/API/openapi_baculum.json

index e8a8c5af7548691f0c2cc014a7316735bdd3e79d..223478910c1511c8e6cdc3d8b3afaed560f7550d 100644 (file)
@@ -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 
index 494363fa29f7da6fdec74d0aad2063b4aefc151b..9b6b08bc8b880055bbc480c4609458b07afd52f5 100644 (file)
                                                        "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",
                                        "description": "Volume status",
                                        "type": "integer"
                                },
+                               "volerrors": {
+                                       "description": "Number volume errors",
+                                       "type": "integer"
+                               },
                                "inchanger": {
                                        "type": "integer",
                                        "description": "InChanger flag"