Difference between revisions of "Public.outages (table)"
(New page: == wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- | '''Table | public.outages |- |} {| border="1" cellpadding="5" cellspacing="0" style="bo...) |
|||
| (6 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| − | |- | + | |- valign="top" |
| '''Table | | '''Table | ||
| public.outages | | public.outages | ||
| − | |||
|} | |} | ||
| − | + | === 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 14: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
| − | | ''' | + | | '''Description |
| − | + | ||
| − | + | |- valign="top" | |
| − | |- | ||
| outageid | | outageid | ||
| − | | | + | | integer |
| not null | | not null | ||
| | | | ||
| − | |||
| | | | ||
| − | |- | + | |- valign="top" |
| svclosteventid | | svclosteventid | ||
| − | | | + | | integer |
| null | | null | ||
| | | | ||
| | | | ||
| − | + | |- valign="top" | |
| − | |- | ||
| svcregainedeventid | | svcregainedeventid | ||
| − | | | + | | integer |
| null | | null | ||
| | | | ||
| | | | ||
| − | + | |- valign="top" | |
| − | |- | ||
| nodeid | | nodeid | ||
| − | | | + | | integer |
| not null | | not null | ||
| | | | ||
| | | | ||
| − | + | |- valign="top" | |
| − | |- | ||
| ipaddr | | ipaddr | ||
| − | | | + | | varchar(16) |
| not null | | not null | ||
| | | | ||
| | | | ||
| − | + | |- valign="top" | |
| − | |- | ||
| serviceid | | serviceid | ||
| − | | | + | | integer |
| not null | | not null | ||
| | | | ||
| | | | ||
| − | + | |- valign="top" | |
| − | |- | ||
| iflostservice | | iflostservice | ||
| − | | | + | | timestamp with time zone |
| not null | | not null | ||
| | | | ||
| | | | ||
| − | + | |- valign="top" | |
| − | |- | ||
| ifregainedservice | | ifregainedservice | ||
| − | | | + | | timestamp with time zone |
| null | | null | ||
| | | | ||
| | | | ||
| − | + | |- valign="top" | |
| − | |- | ||
| suppresstime | | suppresstime | ||
| − | | | + | | timestamp with time zone |
| null | | null | ||
| | | | ||
| | | | ||
| − | + | |- valign="top" | |
| − | |- | ||
| suppressedby | | suppressedby | ||
| − | | | + | | varchar(256) |
| null | | null | ||
| | | | ||
| | | | ||
| − | + | |- valign="top" | |
| − | |- | ||
| ifserviceid | | ifserviceid | ||
| − | | | + | | integer |
| not null | | not null | ||
| | | | ||
| | | | ||
| − | |||
|} | |} | ||
| + | === Primary Key === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Primary Key | ||
| + | | '''Columns | ||
| + | |- valign="top" | ||
| + | | pk_outageid | ||
| + | | outageid | ||
| + | |} | ||
| + | === Indexes === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Index | ||
| + | | '''Type | ||
| + | | '''Columns | ||
| + | |||
| + | |- valign="top" | ||
| + | | outages_ifservivceid_idx | ||
| + | | | ||
| + | | ifserviceid | ||
| + | |- valign="top" | ||
| + | | outages_ipaddr_idx | ||
| + | | | ||
| + | | ipaddr | ||
| + | |- valign="top" | ||
| + | | outages_nodeid_idx | ||
| + | | | ||
| + | | nodeid | ||
| + | |- valign="top" | ||
| + | | outages_nodeid_ipaddr_svc_idx | ||
| + | | | ||
| + | | nodeid, ipaddr, serviceid | ||
| + | |- valign="top" | ||
| + | | outages_regainedservice_idx | ||
| + | | | ||
| + | | ifregainedservice | ||
| + | |- valign="top" | ||
| + | | outages_serviceid_idx | ||
| + | | | ||
| + | | serviceid | ||
| + | |- valign="top" | ||
| + | | outages_svclostid_idx | ||
| + | | | ||
| + | | svclosteventid | ||
| + | |- valign="top" | ||
| + | | outages_svcregainedid_idx | ||
| + | | | ||
| + | | svcregainedeventid | ||
| + | |} | ||
| + | === 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 104: | Line 141: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
| − | + | ||
| − | |- | + | |- valign="top" |
| [[public.events_(table)|public.events]] | | [[public.events_(table)|public.events]] | ||
| svclosteventid | | svclosteventid | ||
| eventid | | eventid | ||
| − | |- | + | |- valign="top" |
| [[public.events_(table)|public.events]] | | [[public.events_(table)|public.events]] | ||
| svcregainedeventid | | svcregainedeventid | ||
| eventid | | eventid | ||
| − | |- | + | |- valign="top" |
| [[public.node_(table)|public.node]] | | [[public.node_(table)|public.node]] | ||
| nodeid | | nodeid | ||
| nodeid | | nodeid | ||
| − | |- | + | |- valign="top" |
| [[public.service_(table)|public.service]] | | [[public.service_(table)|public.service]] | ||
| serviceid | | serviceid | ||
| serviceid | | serviceid | ||
| − | |- | + | |- valign="top" |
| [[public.ifservices_(table)|public.ifservices]] | | [[public.ifservices_(table)|public.ifservices]] | ||
| nodeid | | nodeid | ||
| nodeid | | nodeid | ||
| − | |- | + | |- valign="top" |
| [[public.ifservices_(table)|public.ifservices]] | | [[public.ifservices_(table)|public.ifservices]] | ||
| ifserviceid | | ifserviceid | ||
| id | | id | ||
| + | |} | ||
| + | |||
| + | === Triggers === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Trigger | ||
| + | | '''Type | ||
| + | | '''Function | ||
| + | |||
| + | |- valign="top" | ||
| + | | setifservicekeysoninserttrigger | ||
| + | | STATEMENT AFTER | ||
| + | | setifservicekeysoninsert | ||
| + | |- valign="top" | ||
| + | | setifservicekeysonupdatetrigger | ||
| + | | STATEMENT AFTER | ||
| + | | setifservicekeysonupdate | ||
|} | |} | ||
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 |