Parcourir la source

update schema.yaml description
also add monitor.State.LOG to cronitor.

Signed-off-by: Soumik Dutta <shalearkane@gmail.com>

Soumik Dutta il y a 2 ans
Parent
commit
1573d68fe2
2 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 4 4
      borgmatic/config/schema.yaml
  2. 1 1
      borgmatic/hooks/cronitor.py

+ 4 - 4
borgmatic/config/schema.yaml

@@ -951,9 +951,9 @@ properties:
                         name:
                             type: string
                             description: |
-                                This is used to tag the database dump file 
-                                with a name. It is not the path to the database 
-                                file itself. The name "all" has no special 
+                                This is used to tag the database dump file
+                                with a name. It is not the path to the database
+                                file itself. The name "all" has no special
                                 meaning for SQLite databases.
                             example: users
                         path:
@@ -1168,7 +1168,7 @@ properties:
                         type: string
                         description: |
                             Healthchecks ping URL or UUID to notify when a
-                            backup begins, ends, or errors.
+                            backup begins, ends, errors or just to send logs.
                         example: https://hc-ping.com/your-uuid-here
                     verify_tls:
                         type: boolean

+ 1 - 1
borgmatic/hooks/cronitor.py

@@ -10,7 +10,7 @@ MONITOR_STATE_TO_CRONITOR = {
     monitor.State.START: 'run',
     monitor.State.FINISH: 'complete',
     monitor.State.FAIL: 'fail',
-    monitor.State.LOG: 'log',
+    monitor.State.LOG: 'ok',
 }