diff options
Diffstat (limited to 'sdnr/wt/odlux/apps/faultApp/src/models')
-rw-r--r-- | sdnr/wt/odlux/apps/faultApp/src/models/fault.ts | 14 | ||||
-rw-r--r-- | sdnr/wt/odlux/apps/faultApp/src/models/panelId.ts | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sdnr/wt/odlux/apps/faultApp/src/models/fault.ts b/sdnr/wt/odlux/apps/faultApp/src/models/fault.ts new file mode 100644 index 000000000..ecd0c9993 --- /dev/null +++ b/sdnr/wt/odlux/apps/faultApp/src/models/fault.ts @@ -0,0 +1,14 @@ +export type FaultType = { + nodeName: string; + counter: string; + timeStamp: string; + objectId: string; + problem: string; + severity: null | 'Warning' | 'Minor' | 'Major' | 'Critical' ; + type: string; +} +export type FaultResult = { faultCurrent: FaultType }; + +export type FaultLog = { fault: FaultType }; + +export type Fault = FaultType & { _id: string }; diff --git a/sdnr/wt/odlux/apps/faultApp/src/models/panelId.ts b/sdnr/wt/odlux/apps/faultApp/src/models/panelId.ts new file mode 100644 index 000000000..56f117ad3 --- /dev/null +++ b/sdnr/wt/odlux/apps/faultApp/src/models/panelId.ts @@ -0,0 +1 @@ +export type PanelId = null | "CurrentProblem" | "AlarmNotifications" | "AlarmLog";
\ No newline at end of file |