Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | INT UNSIGNED | 10 | √ | null |
|
|
ID for each component, unique index |
|||||
| device_id | INT UNSIGNED | 10 | null |
|
|
device_id from the devices table |
||||||
| type | VARCHAR | 50 | null |
|
|
name from the component_type table |
||||||
| label | VARCHAR | 255 | √ | NULL |
|
|
Display label for the component |
|||||
| status | BIT | 3 | 0 |
|
|
The status of the component, retreived from the device |
||||||
| disabled | BIT | 3 | 0 |
|
|
Should this component be polled |
||||||
| ignore | BIT | 3 | 0 |
|
|
Should this component be alerted on |
||||||
| error | VARCHAR | 255 | √ | NULL |
|
|
Error message if in Alert state |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| component_device_id_index | Performance | Asc | device_id |
| component_type_index | Performance | Asc | type |
