You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@warble.apache.org by hu...@apache.org on 2018/06/29 20:44:22 UTC

[incubator-warble-server] 01/05: prime setup with new dbs for tasks

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-warble-server.git

commit 6f50d4b7abe76af59e13336ea8e52acf4f560372
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Jun 29 15:42:36 2018 -0500

    prime setup with new dbs for tasks
---
 setup/dbs.yaml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/setup/dbs.yaml b/setup/dbs.yaml
index 95cf664..df3da3d 100644
--- a/setup/dbs.yaml
+++ b/setup/dbs.yaml
@@ -33,3 +33,35 @@ registry:
     lastping:     integer   # Last time node was alive
     version:      text      # Node client software version
 
+# Task registry for nodes
+nodetasks:
+  driver: sqlite
+  path: nodetasks.db
+  layout:
+    id:           integer primary key   # ID of task
+    type:         text                  # Task type (test class, so nodes know whether they support it or not)
+    enabled:      boolean               # Whether task is currently enabled or not
+    muted:        boolean               # Whether task alerting is currently muted or not (does not impact testing, only alerting)
+    category:     integer               # Category ID for task (0 means no category/group)
+    name:         text                  # Name (short description) of task
+    payload:      text                  # Task payload (JSON blob to allow custom content)
+
+# Task groups for nodes
+nodecats:
+  driver: sqlite
+  path:   nodecats.db
+  layout:
+    id:           integer primary key   # ID of category
+    name:         text                  # Name of category
+    description:  text                  # Short description of category
+    settings:     text                  # Notification settings (JSON blob to allow for customizations)
+
+# User -> Task category mappings
+nodeacl:
+  driver: sqlite
+  path:   nodeacl.db
+  layout:
+    userid:       text            # username
+    catid:        integer         # task category id
+    access:       integer         # category access level (0 = none, 1 = read, 2 = read/write, 3 = admin)
+


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@warble.apache.org
For additional commands, e-mail: commits-help@warble.apache.org