Browse code

statistics table introduced

Jiri Kuthan authored on 26/01/2003 13:03:07
Showing 1 changed files
... ...
@@ -8,12 +8,14 @@
8 8
 #        table definitons
9 9
 # USAGE: call the command without any parameters for info
10 10
 #
11
-# History:
11
+# 2003-01-21 changed SILO table definition, by dcm
12 12
 #
13
-# 2003-01-24: Changed realm column of subscriber and pending
14
-#             tables to domain (janakj)
13
+# History:
14
+# 2003-01-26 statistics table introduced (jiri)
15 15
 # 2003-01-25: Optimized keys of some core tables (janakj)
16 16
 # 2003-01-25: USER_ID changed to user everywhere (janakj)
17
+# 2003-01-24: Changed realm column of subscriber and pending
18
+#             tables to domain (janakj)
17 19
 #
18 20
 
19 21
 #################################################################
... ...
@@ -130,9 +132,12 @@ INSERT INTO version VALUES ( 'aliases', '2');
130 132
 INSERT INTO version VALUES ( 'active_sessions', '1');
131 133
 INSERT INTO version VALUES ( 'acc', '1');
132 134
 INSERT INTO version VALUES ( 'config', '1');
133
-INSERT INTO version VALUES ( 'silo', '1');
135
+INSERT INTO version VALUES ( 'silo', '2');
136
+INSERT INTO version VALUES ( 'realm', '1');
134 137
 INSERT INTO version VALUES ( 'domain', '1');
135 138
 INSERT INTO version VALUES ( 'uri', '1');
139
+INSERT INTO version VALUES ( 'server_monitoring', '1');
140
+INSERT INTO version VALUES ( 'server_monitoring_ul', '1');
136 141
 
137 142
 
138 143
 #
... ...
@@ -410,6 +415,62 @@ CREATE TABLE uri (
410 415
   PRIMARY KEY (user, domain, uri_user)
411 416
 ) $TABLE_TYPE;
412 417
 
418
+#
419
+# Table structure for table 'server_monitoring'
420
+#
421
+
422
+
423
+CREATE TABLE server_monitoring (
424
+  time datetime NOT NULL default '0000-00-00 00:00:00',
425
+  ts_current int(10) unsigned default NULL,
426
+  ts_waiting int(10) unsigned default NULL,
427
+  ts_total int(10) unsigned default NULL,
428
+  ts_total_local int(10) unsigned default NULL,
429
+  ts_replied int(10) unsigned default NULL,
430
+  ts_6xx int(10) unsigned default NULL,
431
+  ts_5xx int(10) unsigned default NULL,
432
+  ts_4xx int(10) unsigned default NULL,
433
+  ts_3xx int(10) unsigned default NULL,
434
+  ts_2xx int(10) unsigned default NULL,
435
+  sl_200 int(10) unsigned default NULL,
436
+  sl_202 int(10) unsigned default NULL,
437
+  sl_2xx int(10) unsigned default NULL,
438
+  sl_300 int(10) unsigned default NULL,
439
+  sl_301 int(10) unsigned default NULL,
440
+  sl_302 int(10) unsigned default NULL,
441
+  sl_3xx int(10) unsigned default NULL,
442
+  sl_400 int(10) unsigned default NULL,
443
+  sl_401 int(10) unsigned default NULL,
444
+  sl_403 int(10) unsigned default NULL,
445
+  sl_404 int(10) unsigned default NULL,
446
+  sl_407 int(10) unsigned default NULL,
447
+  sl_408 int(10) unsigned default NULL,
448
+  sl_483 int(10) unsigned default NULL,
449
+  sl_4xx int(10) unsigned default NULL,
450
+  sl_500 int(10) unsigned default NULL,
451
+  sl_5xx int(10) unsigned default NULL,
452
+  sl_6xx int(10) unsigned default NULL,
453
+  sl_xxx int(10) unsigned default NULL,
454
+  sl_failures int(10) unsigned default NULL,
455
+  PRIMARY KEY  (time)
456
+) $TABLE_TYPE;
457
+
458
+
459
+
460
+
461
+#
462
+# Table structure for table 'server_monitoring_ul'
463
+#
464
+
465
+
466
+CREATE TABLE server_monitoring_ul (
467
+  time datetime NOT NULL default '0000-00-00 00:00:00',
468
+  domain varchar(64) NOT NULL default '',
469
+  registered int(10) unsigned default NULL,
470
+  expired int(10) unsigned default NULL,
471
+  PRIMARY KEY  (domain,time)
472
+) $TABLE_TYPE;
473
+
413 474
 
414 475
 # add an admin user "admin" with password==heslo, 
415 476
 # so that one can try it out on quick start