#15 record device and node statistics once a day

This commit is contained in:
Oliver Gorwits
2017-06-28 12:03:52 +01:00
parent f64f69bb83
commit 47bf38568e
5 changed files with 120 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
BEGIN;
CREATE TABLE "statistics" (
"day" date NOT NULL DEFAULT CURRENT_DATE,
"device_count" integer NOT NULL,
"device_ip_count" integer NOT NULL,
"device_link_count" integer NOT NULL,
"device_port_count" integer NOT NULL,
"device_port_up_count" integer NOT NULL,
"ip_table_count" integer NOT NULL,
"ip_count" integer NOT NULL,
"node_table_count" integer NOT NULL,
"node_count" integer NOT NULL,
"netdisco_ver" text,
"snmpinfo_ver" text,
"schema_ver" text,
"perl_ver" text,
"pg_ver" text,
PRIMARY KEY ("day")
);
COMMIT;