YANG Model update for A1 Adapter
[ccsdk/features.git] / sdnr / wt / devicemanager / provider / src / main / java / org / onap / ccsdk / features / sdnr / wt / devicemanager / performancemanager / impl / database / types / EsHistoricalPerformanceLogEntry.java
1 /*******************************************************************************
2  * ============LICENSE_START========================================================================
3  * ONAP : ccsdk feature sdnr wt
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 package org.onap.ccsdk.features.sdnr.wt.devicemanager.performancemanager.impl.database.types;
19
20 import org.onap.ccsdk.features.sdnr.wt.devicemanager.base.database.EsObject;
21
22 /**
23  *
24  * Event from Network to be recorded in the database
25  *
26  */
27
28 public class EsHistoricalPerformanceLogEntry extends EsObject {
29
30     public static final String ESDATATYPENAME = "performancelog";
31
32     private String mountpoint;
33     private String interfaceIdx;
34     private String timeStamp;
35     private String logText;
36
37     /**
38      * Create Log entry for NE/Interfaceproblems during PM execution
39      * @param mountpoint Name of
40      * @param interfaceIdx Name of
41      * @param timeStamp Time and date of occurence
42      * @param logText to write
43      */
44     public EsHistoricalPerformanceLogEntry(String mountpoint, String interfaceIdx, String timeStamp, String logText) {
45         super();
46         this.mountpoint = mountpoint;
47         this.interfaceIdx = interfaceIdx;
48         this.timeStamp = timeStamp;
49         this.logText = logText;
50     }
51
52     /**
53      * For jackson purpose
54      */
55     EsHistoricalPerformanceLogEntry() {
56     }
57
58     /**
59      * @return the mountpoint
60      */
61     public String getMountpoint() {
62         return mountpoint;
63     }
64
65     /**
66      * @return the interfaceIdx
67      */
68     public String getInterfaceIdx() {
69         return interfaceIdx;
70     }
71
72     /**
73      * @return the timeStamp
74      */
75     public String getTimeStamp() {
76         return timeStamp;
77     }
78
79     /**
80      * @return the logText
81      */
82     public String getLogText() {
83         return logText;
84     }
85
86
87
88     public static String getEsdatatypename() {
89         return ESDATATYPENAME;
90     }
91
92  }