Editing Public.ifservices (table)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- |
| '''Table | | '''Table | ||
| public.ifservices | | public.ifservices | ||
+ | |- | ||
|} | |} | ||
+ | |||
=== Columns === | === Columns === | ||
Line 15: | Line 17: | ||
| '''Default | | '''Default | ||
| '''Description | | '''Description | ||
− | + | ||
− | |- | + | |- |
| id | | id | ||
| integer | | integer | ||
| not null | | not null | ||
+ | | nextval('opennmsnxtid'::regclass) | ||
| | | | ||
− | + | |- | |
− | |- | ||
| nodeid | | nodeid | ||
| integer | | integer | ||
Line 28: | Line 30: | ||
| | | | ||
| | | | ||
− | |- | + | |- |
| ipaddr | | ipaddr | ||
| varchar(16) | | varchar(16) | ||
Line 34: | Line 36: | ||
| | | | ||
| | | | ||
− | |- | + | |- |
| ifindex | | ifindex | ||
| integer | | integer | ||
Line 40: | Line 42: | ||
| | | | ||
| | | | ||
− | |- | + | |- |
| serviceid | | serviceid | ||
| integer | | integer | ||
Line 46: | Line 48: | ||
| | | | ||
| | | | ||
− | |- | + | |- |
| lastgood | | lastgood | ||
| timestamp with time zone | | timestamp with time zone | ||
Line 52: | Line 54: | ||
| | | | ||
| | | | ||
− | |- | + | |- |
| lastfail | | lastfail | ||
| timestamp with time zone | | timestamp with time zone | ||
Line 58: | Line 60: | ||
| | | | ||
| | | | ||
− | |- | + | |- |
| qualifier | | qualifier | ||
| char(16) | | char(16) | ||
Line 64: | Line 66: | ||
| | | | ||
| | | | ||
− | |- | + | |- |
| status | | status | ||
| char(1) | | char(1) | ||
Line 70: | Line 72: | ||
| | | | ||
| | | | ||
− | |- | + | |- |
| source | | source | ||
| char(1) | | char(1) | ||
Line 76: | Line 78: | ||
| | | | ||
| | | | ||
− | |- | + | |- |
| notify | | notify | ||
| char(1) | | char(1) | ||
Line 82: | Line 84: | ||
| | | | ||
| | | | ||
− | |- | + | |- |
| ipinterfaceid | | ipinterfaceid | ||
| integer | | integer | ||
Line 95: | Line 97: | ||
| '''Primary Key | | '''Primary Key | ||
| '''Columns | | '''Columns | ||
− | |- | + | |- |
| ifservices_pkey | | ifservices_pkey | ||
| id | | id | ||
Line 106: | Line 108: | ||
| '''Type | | '''Type | ||
| '''Columns | | '''Columns | ||
− | + | ||
− | |- | + | |- |
− | | | + | | ifservices_nodeid_ipaddr_svc_unique |
+ | | Unique | ||
+ | | nodeid, ipaddr, serviceid | ||
+ | |- | ||
+ | | ifservices_serviceid_idx | ||
| | | | ||
− | | | + | | serviceid |
− | |- | + | |- |
| ifservices_nodeid_ipaddr_status | | ifservices_nodeid_ipaddr_status | ||
| | | | ||
| nodeid, ipaddr, status | | nodeid, ipaddr, status | ||
− | |- | + | |- |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| ifservices_nodeid_status | | ifservices_nodeid_status | ||
| | | | ||
| nodeid, status | | nodeid, status | ||
− | |- | + | |- |
− | |||
− | |||
− | |||
− | |||
| ifservicves_ipinterfaceid_idx | | ifservicves_ipinterfaceid_idx | ||
| | | | ||
| ipinterfaceid | | ipinterfaceid | ||
+ | |- | ||
+ | | ifservices_nodeid_idx | ||
+ | | | ||
+ | | nodeid | ||
+ | |- | ||
+ | | ifservices_nodeid_serviceid_idx | ||
+ | | | ||
+ | | nodeid, serviceid | ||
|} | |} | ||
Line 143: | Line 145: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- |
| [[public.node_(table)|public.node]] | | [[public.node_(table)|public.node]] | ||
| nodeid | | nodeid | ||
| nodeid | | nodeid | ||
− | |- | + | |- |
| [[public.service_(table)|public.service]] | | [[public.service_(table)|public.service]] | ||
| serviceid | | serviceid | ||
| serviceid | | serviceid | ||
− | |- | + | |- |
| [[public.ipinterface_(table)|public.ipinterface]] | | [[public.ipinterface_(table)|public.ipinterface]] | ||
| ipinterfaceid | | ipinterfaceid | ||
Line 164: | Line 166: | ||
| '''Column | | '''Column | ||
| '''Referencing Column | | '''Referencing Column | ||
− | + | ||
− | |- | + | |- |
| [[public.outages_(table)|public.outages]] | | [[public.outages_(table)|public.outages]] | ||
| nodeid | | nodeid | ||
| nodeid | | nodeid | ||
− | |- | + | |- |
| [[public.outages_(table)|public.outages]] | | [[public.outages_(table)|public.outages]] | ||
| nodeid | | nodeid | ||
| nodeid | | nodeid | ||
− | |- | + | |- |
| [[public.outages_(table)|public.outages]] | | [[public.outages_(table)|public.outages]] | ||
| nodeid | | nodeid | ||
| nodeid | | nodeid | ||
− | |- | + | |- |
| [[public.outages_(table)|public.outages]] | | [[public.outages_(table)|public.outages]] | ||
| id | | id | ||
| ifserviceid | | ifserviceid | ||
− | |- | + | |- |
| [[public.application_service_map_(table)|public.application_service_map]] | | [[public.application_service_map_(table)|public.application_service_map]] | ||
| id | | id | ||
| ifserviceid | | ifserviceid | ||
− | |- | + | |- |
| [[public.location_specific_status_changes_(table)|public.location_specific_status_changes]] | | [[public.location_specific_status_changes_(table)|public.location_specific_status_changes]] | ||
| id | | id | ||
| ifserviceid | | ifserviceid | ||
|} | |} | ||
+ | |||
=== Triggers === | === 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" | ||
− | | ''' | + | | '''Triggers |
| '''Type | | '''Type | ||
| '''Function | | '''Function | ||
− | + | ||
− | |- | + | |- |
| setipinterfacekeysoninserttrigger | | setipinterfacekeysoninserttrigger | ||
− | | | + | | ROW BEFORE INSERT |
| setipinterfacekeysoninsert | | setipinterfacekeysoninsert | ||
− | |- | + | |- |
| setipinterfacekeysonupdatetrigger | | setipinterfacekeysonupdatetrigger | ||
− | | | + | | ROW BEFORE UPDATE |
| setipinterfacekeysonupdate | | setipinterfacekeysonupdate | ||
+ | |} | ||
+ | |||
+ | === Dependencies === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Reference Type | ||
+ | | '''Object Type | ||
+ | | '''Referencing Object | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Function | ||
+ | | [[public.getmanagedoutageforintfinwindow_(function)|public.getmanagedoutageforintfinwindow]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Function | ||
+ | | [[public.getmanagedoutagefornodeinwindow_(function)|public.getmanagedoutagefornodeinwindow]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Function | ||
+ | | [[public.getmanagedservicecountforintf_(function)|public.getmanagedservicecountforintf]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Function | ||
+ | | [[public.getmanagedservicecountfornode_(function)|public.getmanagedservicecountfornode]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Trigger Function | ||
+ | | [[public.setifservicekeysoninsert_(trigger_function)|public.setifservicekeysoninsert]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Trigger Function | ||
+ | | [[public.setifservicekeysonupdate_(trigger_function)|public.setifservicekeysonupdate]] | ||
+ | |||
|} | |} |