target_shadow


Description

This table is used to run update target in verification mode and holds all the inserts and updates that would have been made to target table as part of nightly update target run. It is parent table that is partitioned over zone schema.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id serial 10 nextval('zone.target_shadow_id_seq'::regclass)

Unique identifier for target_shadow record

zone_id int4 10 null

Zone Id for target record. It maps to system.zone.id however, there is no foreign key relation specified for this column.

collector_id int4 10 null

Collector Id for target record. It maps to system.collector.id however, there is no foreign key relation specified for this column.

device_id int4 10 null

Device Id for target record. It maps to zone.device.id however, there is no foreign key relation specified for this column.

route_id int4 10 null

Route Id for target record. It maps to zone.route.id however, there is no foreign key relation specified for this column.

cidr_id int4 10 null

CIDR Id for target record. For each target CIDR entry, there will be one entry for host/path for collector that has host or path configured. It maps to zone.attribute_cidr.id however, there is no foreign key relation specified for this column.

cidrval cidr 2147483647 null

Actual IP/CIDR that needs to be targeted. Having value in this record avoids extra joins with attribute_cidr, device or route tables.

scantype_id int4 10 null

Scan Type / Discovery Type Id for target record. It maps to zone.scantype.id however, there is no foreign key relation specified for this column.

detailsnew text 2147483647 null

Used to store target speicfic metadata. It holds extra configuration values that are being used by collectors.

detailsold text 2147483647 null

Used to store target speicfic metadata. It holds extra configuration values that are being used by collectors. A non null value indicates update and holds details column value from target table prior to update. A null value indicates that this record was an insert.

last_target timestamp 29,6 null
last_update timestamp 29,6 now()

Table contained 0 rows