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

From dbscript Online Help
Jump to: navigation, search
Line 9: Line 9:
  
  
 +
=== Columns ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 15: Line 16:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description
| '''Index
 
 
 
 
|-
 
|-
Line 23: Line 23:
 
| not null
 
| not null
 
|  
 
|  
| pk_outageid
 
 
|  
 
|  
 
|-
 
|-
Line 31: Line 30:
 
|  
 
|  
 
|  
 
|  
| outages_svclostid_idx
 
 
|-
 
|-
 
| svcregainedeventid
 
| svcregainedeventid
Line 38: Line 36:
 
|  
 
|  
 
|  
 
|  
| outages_svcregainedid_idx
 
 
|-
 
|-
 
| nodeid
 
| nodeid
Line 45: Line 42:
 
|  
 
|  
 
|  
 
|  
| outages_nodeid_ipaddr_svc_idxoutages_nodeid_idx
 
 
|-
 
|-
 
| ipaddr
 
| ipaddr
Line 52: Line 48:
 
|  
 
|  
 
|  
 
|  
| outages_nodeid_ipaddr_svc_idxoutages_ipaddr_idx
 
 
|-
 
|-
 
| serviceid
 
| serviceid
Line 59: Line 54:
 
|  
 
|  
 
|  
 
|  
| outages_serviceid_idxoutages_nodeid_ipaddr_svc_idx
 
 
|-
 
|-
 
| iflostservice
 
| iflostservice
 
| timestamp with time zone
 
| timestamp with time zone
 
| not null
 
| not null
|
 
 
|  
 
|  
 
|  
 
|  
Line 73: Line 66:
 
|  
 
|  
 
|  
 
|  
| outages_regainedservice_idx
 
 
|-
 
|-
 
| suppresstime
 
| suppresstime
 
| timestamp with time zone
 
| timestamp with time zone
 
| null
 
| null
|
 
 
|  
 
|  
 
|  
 
|  
Line 85: Line 76:
 
| varchar(256)
 
| varchar(256)
 
| null
 
| null
|
 
 
|  
 
|  
 
|  
 
|  
Line 94: Line 84:
 
|  
 
|  
 
|  
 
|  
| outages_ifservivceid_idx
 
 
|}
 
|}
  
 +
=== Primary Key ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Primary Key
 +
| '''Columns
 +
|-
 +
| pk_outageid
 +
| outageid
 +
|}
  
 +
=== Indexes ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Index
 +
| '''Type
 +
| '''Columns
 +
 +
|-
 +
| outages_ifservivceid_idx
 +
|
 +
| ifserviceid
 +
|-
 +
| outages_svcregainedid_idx
 +
|
 +
| svcregainedeventid
 +
|-
 +
| outages_svclostid_idx
 +
|
 +
| svclosteventid
 +
|-
 +
| outages_serviceid_idx
 +
|
 +
| serviceid
 +
|-
 +
| outages_regainedservice_idx
 +
|
 +
| ifregainedservice
 +
|-
 +
| outages_nodeid_ipaddr_svc_idx
 +
|
 +
| nodeid, ipaddr, serviceid
 +
|-
 +
| outages_nodeid_idx
 +
|
 +
| nodeid
 +
|-
 +
| outages_ipaddr_idx
 +
|
 +
| ipaddr
 +
|}
  
 +
=== Foreign Keys ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 131: Line 170:
 
|}
 
|}
  
 
+
=== Triggers ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 146: Line 185:
 
| ROW BEFORE UPDATE
 
| ROW BEFORE UPDATE
 
| setifservicekeysonupdate
 
| setifservicekeysonupdate
 +
|}
 +
 +
=== Dependencies ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Reference Type
 +
| '''Object Type
 +
| '''Referencing Object
 +
 +
|-
 +
| Select
 +
| Function
 +
| [[public.getoutagetimeinwindow_(function)|public.getoutagetimeinwindow]]
 +
 
|}
 
|}

Revision as of 09:32, 11 February 2010

wikibot

Table public.outages


Columns

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

Primary Key Columns
pk_outageid outageid

Indexes

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

Foreign Keys

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

Triggers Type Function
setifservicekeysoninserttrigger ROW BEFORE INSERT setifservicekeysoninsert
setifservicekeysonupdatetrigger ROW BEFORE UPDATE setifservicekeysonupdate

Dependencies

Reference Type Object Type Referencing Object
Select Function public.getoutagetimeinwindow