summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/faultApp/src/models/fault.ts
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt/odlux/apps/faultApp/src/models/fault.ts')
-rw-r--r--sdnr/wt/odlux/apps/faultApp/src/models/fault.ts48
1 files changed, 42 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 153e8def3..c65734437 100644
--- a/sdnr/wt/odlux/apps/faultApp/src/models/fault.ts
+++ b/sdnr/wt/odlux/apps/faultApp/src/models/fault.ts
@@ -15,17 +15,53 @@
* the License.
* ============LICENSE_END==========================================================================
*/
-export type FaultType = {
+export type Fault = {
+ id: string;
+ nodeId: string;
+ counter: number;
+ timestamp: string;
+ objectId: string;
+ problem: string;
+ severity: null | 'Warning' | 'Minor' | 'Major' | 'Critical';
+ type: string;
+ sourceType: string;
+}
+
+export type FaultAlarmNotification = {
+ id: string;
nodeName: string;
- counter: string;
+ counter: number;
timeStamp: string;
objectId: string;
problem: string;
- severity: null | 'Warning' | 'Minor' | 'Major' | 'Critical' ;
+ severity: null | 'Warning' | 'Minor' | 'Major' | 'Critical';
type: string;
+ sourceType: string;
}
-export type FaultResult = { faultCurrent: FaultType };
-export type FaultLog = { fault: FaultType };
+/**
+ * Fault status return type
+ */
+export type FaultsReturnType = {
+ criticals: number,
+ majors: number,
+ minors: number,
+ warnings: number
+};
+
+export type FaultType = {
+ Critical: number,
+ Major: number,
+ Minor: number,
+ Warning: number
+};
+
+export type Faults = {
+ faults: FaultsReturnType
+};
-export type Fault = FaultType & { _id: string };
+export type DeletedStuckAlarms = {
+ output: {
+ nodenames: string[]
+ }
+} \ No newline at end of file