Difference between revisions of "Public.outages (table)"

From dbscript Online Help
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 106: Line 106:
 
| ifserviceid
 
| ifserviceid
 
|- valign="top"
 
|- valign="top"
| outages_svcregainedid_idx
+
| outages_ipaddr_idx
 
|  
 
|  
| svcregainedeventid
+
| ipaddr
 
|- valign="top"
 
|- valign="top"
| outages_svclostid_idx
+
| outages_nodeid_idx
 
|  
 
|  
| svclosteventid
+
| nodeid
 
|- valign="top"
 
|- valign="top"
| outages_serviceid_idx
+
| outages_nodeid_ipaddr_svc_idx
 
|  
 
|  
| serviceid
+
| nodeid, ipaddr, serviceid
 
|- valign="top"
 
|- valign="top"
 
| outages_regainedservice_idx
 
| outages_regainedservice_idx
Line 122: Line 122:
 
| ifregainedservice
 
| ifregainedservice
 
|- valign="top"
 
|- valign="top"
| outages_nodeid_ipaddr_svc_idx
+
| outages_serviceid_idx
 
|  
 
|  
| nodeid, ipaddr, serviceid
+
| serviceid
 
|- valign="top"
 
|- valign="top"
| outages_nodeid_idx
+
| outages_svclostid_idx
 
|  
 
|  
| nodeid
+
| svclosteventid
 
|- valign="top"
 
|- valign="top"
| outages_ipaddr_idx
+
| outages_svcregainedid_idx
 
|  
 
|  
| ipaddr
+
| svcregainedeventid
 
|}
 
|}
  
Line 177: Line 177:
 
|- valign="top"
 
|- valign="top"
 
| setifservicekeysoninserttrigger
 
| setifservicekeysoninserttrigger
| ROW BEFORE INSERT
+
| STATEMENT AFTER
 
| setifservicekeysoninsert
 
| setifservicekeysoninsert
 
|- valign="top"
 
|- valign="top"
 
| setifservicekeysonupdatetrigger
 
| setifservicekeysonupdatetrigger
| ROW BEFORE UPDATE
+
| STATEMENT AFTER
 
| setifservicekeysonupdate
 
| setifservicekeysonupdate
|}
 
 
=== Dependencies ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Reference Type
 
| '''Object Type
 
| '''Referencing Object
 
 
|- valign="top"
 
| Select
 
| Function
 
| [[public.getoutagetimeinwindow_(function)|public.getoutagetimeinwindow]]
 
 
 
|}
 
|}

Latest revision as of 10:19, 27 August 2011

wikibot[edit]

Table public.outages

Columns[edit]

Column Data Type Nullable Default Description
outageid integer not null
svclosteventid integer null
svcregainedeventid integer null
nodeid integer not null
ipaddr varchar(16) not null
serviceid integer not null
iflostservice timestamp with time zone not null
ifregainedservice timestamp with time zone null
suppresstime timestamp with time zone null
suppressedby varchar(256) null
ifserviceid integer not null

Primary Key[edit]

Primary Key Columns
pk_outageid outageid

Indexes[edit]

Index Type Columns
outages_ifservivceid_idx ifserviceid
outages_ipaddr_idx ipaddr
outages_nodeid_idx nodeid
outages_nodeid_ipaddr_svc_idx nodeid, ipaddr, serviceid
outages_regainedservice_idx ifregainedservice
outages_serviceid_idx serviceid
outages_svclostid_idx svclosteventid
outages_svcregainedid_idx svcregainedeventid

Foreign Keys[edit]

Relation Column Referenced Column
public.events svclosteventid eventid
public.events svcregainedeventid eventid
public.node nodeid nodeid
public.service serviceid serviceid
public.ifservices nodeid nodeid
public.ifservices ifserviceid id

Triggers[edit]

Trigger Type Function
setifservicekeysoninserttrigger STATEMENT AFTER setifservicekeysoninsert
setifservicekeysonupdatetrigger STATEMENT AFTER setifservicekeysonupdate