device_ignore table to track devices to skip in polling

This commit is contained in:
Oliver Gorwits
2017-05-21 14:52:33 +01:00
parent 47a5f40efe
commit ed193356f8
6 changed files with 65 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
BEGIN;
CREATE TABLE "device_ignore" (
"backend" text NOT NULL,
"device" inet NOT NULL,
"action" text NOT NULL,
"failures" integer DEFAULT 0,
"ignore" boolean DEFAULT false,
PRIMARY KEY ("backend", "device", "action")
);
COMMIT;