#15 record device and node statistics once a day
This commit is contained in:
25
share/schema_versions/App-Netdisco-DB-43-44-PostgreSQL.sql
Normal file
25
share/schema_versions/App-Netdisco-DB-43-44-PostgreSQL.sql
Normal 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;
|
||||
Reference in New Issue
Block a user