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

From dbscript Online Help
Jump to: navigation, search
Line 20: Line 20:
 
| integer
 
| integer
 
| not null
 
| not null
| nextval('opennmsnxtid'::regclass)
+
|  
 
|  
 
|  
 
|- valign="top"
 
|- valign="top"
Line 107: Line 107:
 
| '''Columns
 
| '''Columns
  
 +
|- valign="top"
 +
| ifservices_nodeid_idx
 +
|
 +
| nodeid
 +
|- valign="top"
 +
| ifservices_nodeid_ipaddr_status
 +
|
 +
| nodeid, ipaddr, status
 
|- valign="top"
 
|- valign="top"
 
| ifservices_nodeid_ipaddr_svc_unique
 
| ifservices_nodeid_ipaddr_svc_unique
Line 112: Line 120:
 
| nodeid, ipaddr, serviceid
 
| nodeid, ipaddr, serviceid
 
|- valign="top"
 
|- valign="top"
| ifservices_serviceid_idx
+
| ifservices_nodeid_serviceid_idx
 
|  
 
|  
| serviceid
+
| nodeid, serviceid
 
|- valign="top"
 
|- valign="top"
| ifservices_nodeid_ipaddr_status
+
| ifservices_nodeid_status
 
|  
 
|  
| nodeid, ipaddr, status
+
| nodeid, status
 
|- valign="top"
 
|- valign="top"
| ifservices_nodeid_status
+
| ifservices_serviceid_idx
 
|  
 
|  
| nodeid, status
+
| serviceid
 
|- valign="top"
 
|- valign="top"
 
| ifservicves_ipinterfaceid_idx
 
| ifservicves_ipinterfaceid_idx
 
|  
 
|  
 
| ipinterfaceid
 
| ipinterfaceid
|- valign="top"
 
| ifservices_nodeid_idx
 
|
 
| nodeid
 
|- valign="top"
 
| ifservices_nodeid_serviceid_idx
 
|
 
| nodeid, serviceid
 
 
|}
 
|}
  
Line 156: Line 156:
 
| ipinterfaceid
 
| ipinterfaceid
 
| id
 
| id
|}
 
 
=== Detail Tables ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Detail Table
 
| '''Column
 
| '''Referencing Column
 
 
 
|- valign="top"
 
|- valign="top"
| [[public.outages_(table)|public.outages]]
+
| [[public.ifservices_(table)|public.ifservices]]
 
| nodeid
 
| nodeid
 
| nodeid
 
| nodeid
 
|- valign="top"
 
|- valign="top"
| [[public.outages_(table)|public.outages]]
+
| [[public.ifservices_(table)|public.ifservices]]
 
| nodeid
 
| nodeid
 
| nodeid
 
| nodeid
 
|- valign="top"
 
|- valign="top"
| [[public.outages_(table)|public.outages]]
+
| [[public.ifservices_(table)|public.ifservices]]
 
| nodeid
 
| nodeid
 
| nodeid
 
| nodeid
 
|- valign="top"
 
|- valign="top"
| [[public.outages_(table)|public.outages]]
+
| [[public.ifservices_(table)|public.ifservices]]
 +
| ifserviceid
 
| id
 
| id
 +
|- valign="top"
 +
| [[public.ifservices_(table)|public.ifservices]]
 
| ifserviceid
 
| ifserviceid
 +
| id
 
|- valign="top"
 
|- valign="top"
| [[public.application_service_map_(table)|public.application_service_map]]
+
| [[public.ifservices_(table)|public.ifservices]]
| id
 
 
| ifserviceid
 
| ifserviceid
|- valign="top"
 
| [[public.location_specific_status_changes_(table)|public.location_specific_status_changes]]
 
 
| id
 
| id
| ifserviceid
 
 
|}
 
|}
  

Revision as of 10:09, 27 August 2011

wikibot

Table public.ifservices

Columns

Column Data Type Nullable Default Description
id integer not null
nodeid integer not null
ipaddr varchar(16) not null
ifindex integer null
serviceid integer not null
lastgood timestamp with time zone null
lastfail timestamp with time zone null
qualifier char(16) null
status char(1) null
source char(1) null
notify char(1) null
ipinterfaceid integer not null

Primary Key

Primary Key Columns
ifservices_pkey id

Indexes

Index Type Columns
ifservices_nodeid_idx nodeid
ifservices_nodeid_ipaddr_status nodeid, ipaddr, status
ifservices_nodeid_ipaddr_svc_unique Unique nodeid, ipaddr, serviceid
ifservices_nodeid_serviceid_idx nodeid, serviceid
ifservices_nodeid_status nodeid, status
ifservices_serviceid_idx serviceid
ifservicves_ipinterfaceid_idx ipinterfaceid

Foreign Keys

Relation Column Referenced Column
public.node nodeid nodeid
public.service serviceid serviceid
public.ipinterface ipinterfaceid id
public.ifservices nodeid nodeid
public.ifservices nodeid nodeid
public.ifservices nodeid nodeid
public.ifservices ifserviceid id
public.ifservices ifserviceid id
public.ifservices ifserviceid id

Triggers

Trigger Type Function
setipinterfacekeysoninserttrigger ROW BEFORE INSERT setipinterfacekeysoninsert
setipinterfacekeysonupdatetrigger ROW BEFORE UPDATE setipinterfacekeysonupdate

Dependencies

Reference Type Object Type Referencing Object
Select Function public.getmanagedoutageforintfinwindow
Select Function public.getmanagedoutagefornodeinwindow
Select Function public.getmanagedservicecountforintf
Select Function public.getmanagedservicecountfornode
Select Trigger Function public.setifservicekeysoninsert
Select Trigger Function public.setifservicekeysonupdate