update odlux and featureaggregator
[ccsdk/features.git] / sdnr / wt / odlux / apps / faultApp / src / models / fault.ts
1 /**
2  * ============LICENSE_START========================================================================
3  * ONAP : ccsdk feature sdnr wt odlux
4  * =================================================================================================
5  * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
6  * =================================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8  * in compliance with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software distributed under the License
13  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14  * or implied. See the License for the specific language governing permissions and limitations under
15  * the License.
16  * ============LICENSE_END==========================================================================
17  */
18 export type Fault = {
19   id: string;
20   nodeId: string;
21   counter: number;
22   timestamp: string;
23   objectId: string;
24   problem: string;
25   severity: null | 'Warning' | 'Minor' | 'Major' | 'Critical';
26   type: string;
27   sourceType: string;
28 }
29
30 export type FaultAlarmNotification = {
31   id: string;
32   nodeName: string;
33   counter: number;
34   timeStamp: string;
35   objectId: string;
36   problem: string;
37   severity: null | 'Warning' | 'Minor' | 'Major' | 'Critical';
38   type: string;
39   sourceType: string;
40 }
41
42 /**
43  * Fault status return type
44  */
45 export type FaultsReturnType = {
46   criticals: number,
47   majors: number,
48   minors: number,
49   warnings: number
50 };
51
52 export type FaultType = {
53   Critical: number,
54   Major: number,
55   Minor: number,
56   Warning: number
57 };
58
59 export type Faults = {
60   faults: FaultsReturnType
61 };
62
63 export type DeletedStuckAlarms = {
64   output: {
65     nodenames: string[]
66   }
67 }