Create wt-odlux directory
[ccsdk/features.git] / sdnr / wt-odlux / odlux / apps / performanceHistoryApp / src / models / performanceDataType.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
19 //export { HitEntry, Result } from '../../../../framework/src/models';
20
21 /**
22  * Represents performance data fields of the performance history table as used in the database
23  */
24 export type PerformanceDatabaseDataType = {
25   _id: string;
26   es: number;
27   ses: number;
28   unavailability: number;
29 };
30
31 /**
32  * Internally used type to provide table and chart data
33  */
34 export type PerformanceDataType = {
35
36   performanceData: PerformanceDatabaseDataType;
37   radioSignalId: string;
38   scannerId: string;
39   timeStamp: string;
40   suspectIntervalFlag: boolean;
41   es: number;
42   ses: number;
43   unavailability: number;
44 } & { _id: string };
45
46
47 /**
48  * Represents performance data time interval.
49  */
50 export const enum PmDataInterval {
51   pmInterval15Min,
52   pmInterval24Hours,
53 }