device_attribute


Description

This table contains a list of discovered attributes for a device. It is parent table that is partitioned over zone schema. Example: Attributes discovered for all devices for zone id 2 will reside in zone_0002.device_attribute. This table resolves many to many relationship between zone.device and zone.attribute.

Columns

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

Unique identifier for device_attribute record

zone_id int4 10 null
zone.id fk_devattr_zone R

Zone Id of a device_attribute record. It maps to zone.id column

device_id int4 10 null
device.id fk_devattr_dev C

Id of a device this attribute belongs to. It maps to device.id

attributetype_id int4 10 null
attributetype.id fk_devattr_attrtype R

Id that denotes what type of attribute this record indicates. It maps to system.attributetype.id column. Example values for attributetypes - cifsName, sysDescr, serialNumber.

attribute_id int4 10 null
attribute.id fk_devattr_attr R

Id of attribute this mapping represents. It maps to zone.attribute.id

attribute_cidr_id int4 10 null

Id of CIDR that represents device_attribute record. It is mainly populated for ASName attributetype but can be used for any attribute that would contain a cidr. It maps to system.attribute_cidr.id

last_update timestamp 29,6 now()

The most recent time when a device has responded with given attribute. It gets updated with curren timestamp everytime device response is received for an attribute.

Table contained 0 rows

Indexes

Constraint Name Type Sort Column(s)
pk_devattr Primary key Asc id
idx_device_attribute_attribute_id Performance Asc attribute_id
idx_device_attribute_attributetype_id Performance Asc attributetype_id
idx_device_attribute_device_id Performance Asc device_id
idx_device_attribute_devtype Performance Asc/Asc device_id + attributetype_id
uk_devattr Must be unique Asc/Asc/Asc/Asc zone_id + device_id + attributetype_id + attribute_id

Relationships