KPIINSTANCE
Contains KPI goal, trigger, and alert settings for various KPIs.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| NAME |
nvarchar(255) |
|
Default = '' |
Name of the KPI spec. |
| DESCRIPTION |
nvarchar(1000) |
|
Default = '' |
Description of the KPI spec. |
| GOALVALUE |
decimal(19, 5) |
|
Default = 0 |
Goal for the KPI represented by a whole number. |
| GOALINDICATORTYPECODE |
tinyint |
|
Default = 0 |
Determines how the goal progress is rendered in the UI. |
| GOALAIMTYPECODE |
tinyint |
|
Default = 0 |
The direction in which the trend should ideally go. |
| GOALUPWARDLOWVALUE |
decimal(20, 4) |
|
Default = 0 |
|
| GOALUPWARDMIDVALUE |
decimal(20, 4) |
|
Default = 0 |
|
| GOALDOWNWARDMIDVALUE |
decimal(20, 4) |
|
Default = 0 |
|
| GOALDOWNWARDHIGHVALUE |
decimal(20, 4) |
|
Default = 0 |
|
| PARAMETERSXML |
xml |
yes |
|
Data form item which represents the parameters for the KPI instance. |
| HISTORYTYPECODE |
tinyint |
|
Default = 0 |
Method for archiving past KPI instance values. |
| NUMBEROFITEMSTOSTORE |
int |
|
Default = 0 |
Number of KPI instance values to archive. |
| CONTEXTRECORDID |
nvarchar(100) |
|
Default = '' |
ID of the context record associated with this KPI instance. |
| DATEADDED |
datetime |
|
Default = getdate() |
Indicates the date this record was added. |
| DATECHANGED |
datetime |
|
Default = getdate() |
Indicates the date this record was last changed. |
| TS |
timestamp |
|
|
Timestamp. |
| TSLONG |
bigint (Computed) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
| GOALINDICATORTYPE |
nvarchar(13) (Computed) |
yes |
CASE [GOALINDICATORTYPECODE] WHEN 0 THEN N'Road sign' WHEN 1 THEN N'Thermometer' WHEN 2 THEN N'Traffic light' END |
Provides a translation for the 'GOALINDICATORTYPECODE' field. |
| GOALAIMTYPE |
nvarchar(4) (Computed) |
yes |
CASE [GOALAIMTYPECODE] WHEN 0 THEN N'Up' WHEN 1 THEN N'Down' END |
Provides a translation for the 'GOALAIMTYPECODE' field. |
| HISTORYTYPE |
nvarchar(20) (Computed) |
yes |
CASE [HISTORYTYPECODE] WHEN 0 THEN N'Save all values' WHEN 1 THEN N'Save last <N> values' END |
Provides a translation for the 'HISTORYTYPECODE' field. |
| SITEFILTERENABLEDFORINSTANCE |
bit |
|
Default = 0 |
Indicates whether this KPI instance should have site filtering applied for it. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| KPICATALOGID |
uniqueidentifier |
|
KPICATALOG.ID
|
ID of the KPI to which this record is associated. |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| STATUSCHANGEDALERTID |
uniqueidentifier |
yes |
ALERTTYPE.ID
|
FK to ALERTTYPE. Represents the alert associated with this KPI when the status changes. |
| FOLDERID |
uniqueidentifier |
yes |
KPIINSTANCEFOLDER.ID
|
|
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_KPIINSTANCE_CONTEXTRECORDID |
CONTEXTRECORDID |
|
|
|
| IX_KPIINSTANCE_DATEADDED |
DATEADDED |
|
|
yes |
| IX_KPIINSTANCE_DATECHANGED |
DATECHANGED |
|
|
|
| IX_KPIINSTANCE_FOLDERID |
FOLDERID |
|
|
|
| IX_KPIINSTANCE_KPICATALOGID |
KPICATALOGID |
|
|
|
| PK_KPIINSTANCE |
ID |
yes |
yes |
|
| UC_KPIINSTANCE_NAME |
NAME |
yes |
|
|
| UIX_KPIINSTANCE_STATUSCHANGEDALERTID |
STATUSCHANGEDALERTID |
yes |
|
|
Triggers
Referenced by