Support 7.2.1 VES in TCAGEN2
[dcaegen2/analytics/tca-gen2.git] / dcae-analytics / dcae-analytics-model / src / main / java / org / onap / dcae / analytics / model / cef / CommonEventHeaderV7.java
1 /*
2  ** ============LICENSE_START=======================================================
3  ** Copyright (c) 2022 Wipro Limited. All rights reserved.
4  ** ================================================================================
5  ** Licensed under the Apache License, Version 2.0 (the "License");
6  ** you may not use this file except in compliance with the License.
7  ** You may obtain a copy of the License at
8  **
9  **      http://www.apache.org/licenses/LICENSE-2.0
10  **
11  ** Unless required by applicable law or agreed to in writing, software
12  ** distributed under the License is distributed on an "AS IS" BASIS,
13  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ** See the License for the specific language governing permissions and
15  ** limitations under the License.
16  ** ============LICENSE_END=========================================================
17  **
18  **/
19
20 package org.onap.dcae.analytics.model.cef;
21
22 import lombok.Data;
23 import lombok.EqualsAndHashCode;
24
25 /**
26  * Fields common to all Events
27  *
28  */
29 @Data
30 @EqualsAndHashCode(callSuper = true)
31 public class CommonEventHeaderV7 extends BaseCEFModel {
32   
33   private static final long serialVersionUID = 1L;
34
35   /**
36    * The eventing domain associated with this event
37    */
38
39   private Domain domain;
40
41   /**
42    * Event key that is unique to the event source 
43    */
44
45   private String eventId;
46
47   /**
48    * Unique event name
49    */
50
51   private String eventName;
52
53   /**
54    * Event type e.g. applicationVnf, guestOS, hostOS, platform
55          */
56
57   private String eventType;
58
59   /**
60    * Enrichment fields for internal VES Event Listener service use only, not supplied by event sources
61    */
62
63   private InternalHeaderFields internalHeaderFields;
64
65         /**
66    * The latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since
67    * 1 Jan 1970 not including leap seconds
68    */
69
70   private Long lastEpochMicrosec;
71  
72   /**
73          * Three character network function component type as aligned with vfc naming standards
74    */
75
76   private String nfcNamingCode;
77
78   /**
79    * Four character network function type as aligned with vnf naming standards
80          */
81
82   private String nfNamingCode;
83
84   /**
85    * Processing Priority
86    */
87
88   private Priority priority;
89
90   /**
91          * UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the
92    * enrichment process
93    */
94
95   private String reportingEntityId;
96
97   /**
98    * Name of the entity reporting the event, for example, an EMS name; may be the same as sourceName
99    */
100
101   private String reportingEntityName;
102
103   /**
104          * Ordering of events communicated by an event source instance or 0 if not needed
105    */
106
107   private Integer sequence;
108
109   /**
110    * UUID identifying the entity experiencing the event issue; must be populated by the enrichment process
111    */
112
113   private String sourceId;
114   
115   /**
116    * Name of the entity experiencing the event issue
117    */
118
119   private String sourceName;
120
121   /**
122          * The earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed
123    * since 1 Jan 1970 not including leap seconds
124    */
125
126   private Long startEpochMicrosec;
127
128   /**
129    * Version of the event header
130          */
131
132   private String version;
133
134   /**
135    * Version of the VES event listener version
136          */
137
138   private String vesEventListenerVersion;
139 }