summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/faultApp/src/models
diff options
context:
space:
mode:
authorAijana Schumann <aijana.schumann@highstreet-technologies.com>2021-05-19 11:21:26 +0200
committerAijana Schumann <aijana.schumann@highstreet-technologies.com>2021-05-19 11:21:26 +0200
commit6a7fab9a12eebe7fd902c9e04f516fa9c1ae5820 (patch)
tree065888e5dd135318b99d5ca91a95f0f8284deb5e /sdnr/wt/odlux/apps/faultApp/src/models
parentcaaf7cf0edd7c605c9d57c0470806d2a13ebe773 (diff)
FaultApp bugfixes
Fix alarm notifications not displayed, too many data-provider requests Issue-ID: CCSDK-3310 Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com> Change-Id: I5f5433c8aed9d7c00d33cea5d3ee7ea7c01d0d03
Diffstat (limited to 'sdnr/wt/odlux/apps/faultApp/src/models')
-rw-r--r--sdnr/wt/odlux/apps/faultApp/src/models/fault.ts27
1 files changed, 21 insertions, 6 deletions
diff --git a/sdnr/wt/odlux/apps/faultApp/src/models/fault.ts b/sdnr/wt/odlux/apps/faultApp/src/models/fault.ts
index e4e43f19c..2ba8da01d 100644
--- a/sdnr/wt/odlux/apps/faultApp/src/models/fault.ts
+++ b/sdnr/wt/odlux/apps/faultApp/src/models/fault.ts
@@ -22,21 +22,36 @@ export type Fault = {
timestamp: string;
objectId: string;
problem: string;
- severity: null | 'Warning' | 'Minor' | 'Major' | 'Critical';
+ severity: null | 'Warning' | 'Minor' | 'Major' | 'Critical' | 'NonAlarmed';
type: string;
- sourceType: string;
+ sourceType?: string;
}
export type FaultAlarmNotification = {
id: string;
+ timeStamp: string;
nodeName: string;
counter: number;
- timeStamp: string;
objectId: string;
problem: string;
- severity: null | 'Warning' | 'Minor' | 'Major' | 'Critical';
- type: string;
- sourceType: string;
+ severity: string;
+}
+
+export type FaultAlarmNotificationWS = {
+ "node-id": string;
+ "data": {
+ "counter": number;
+ "time-stamp": string;
+ "object-id-ref": string;
+ "problem": string;
+ "severity": null | 'Warning' | 'Minor' | 'Major' | 'Critical' | 'NonAlarmed';
+ };
+ "type": {
+ "namespace": string;
+ "revision": string;
+ "type": string;
+ };
+ "event-time": string;
}
/**