2 * ============LICENSE_START=========================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.dcae.apod.analytics.model.domain.cef;
24 import lombok.EqualsAndHashCode;
27 * Fields common to all Events
29 * @author Rajiv Singla. Creation Date: 08/15/2017.
32 @EqualsAndHashCode(callSuper = true)
33 public class CommonEventHeader extends BaseCEFModel {
36 private static final long serialVersionUID = 1L;
39 * The eventing domain associated with this event
41 * @param domain New value for domain
42 * @return The eventing domain associated with this event
44 private Domain domain;
47 * Event key that is unique to the event source
49 * @param eventId New value for event key
50 * @return Event key that is unique to the event source
52 private String eventId;
57 * @param eventName New value for event name
58 * @return Unique event name
60 private String eventName;
64 * Event type e.g. applicationVnf, guestOS, hostOS, platform
66 * @param eventType New value for event type
67 * @return Event type e.g. applicationVnf, guestOS, hostOS, platform
69 private String eventType;
73 * Enrichment fields for internal VES Event Listener service use only, not supplied by event sources
75 * @param internalHeaderFields new value for internal Header Fields
76 * @return Enrichment fields for internal VES Event Listener service use only, not supplied by event sources
78 private InternalHeaderFields internalHeaderFields;
82 * The latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since
83 * 1 Jan 1970 not including leap seconds
85 * @param lastEpochMicrosec New value for last Epoc Microsec
86 * @return The latest unix time associated with the event from any component
88 private Long lastEpochMicrosec;
92 * Three character network function component type as aligned with vfc naming standards
94 * @param nfcNamingCode New value for nfc naming code
95 * @return Three character network function component type as aligned with vfc naming standards
97 private String nfcNamingCode;
101 * Four character network function type as aligned with vnf naming standards
103 * @param nfNamingCode New value for nf naming code
104 * @return Four character network function type as aligned with vnf naming standards
106 private String nfNamingCode;
110 * Processing Priority
112 * @param priority New value for processing Priority
113 * @return Processing Priority
115 private Priority priority;
119 * UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the
122 * @param reportingEntityId New value for reporting entity Id. Must be populated by the enrichment process
123 * @return UUID identifying the entity reporting the event populated by the enrichment process
125 private String reportingEntityId;
129 * Name of the entity reporting the event, for example, an EMS name; may be the same as sourceName
131 * @param reportingEntityName New value for reporting Entity Name
132 * @return Name of the entity reporting the event, may be the same as sourceName
134 private String reportingEntityName;
138 * Ordering of events communicated by an event source instance or 0 if not needed
140 * @param sequence New value for Sequence
141 * @return Ordering of events communicated by an event source instance or 0 if not needed
143 private Integer sequence;
147 * UUID identifying the entity experiencing the event issue; must be populated by the enrichment process
149 * @param sourceId New value for source id. Must be populated by the enrichment process
150 * @return UUID identifying the entity experiencing the event issue
152 private String sourceId;
156 * Name of the entity experiencing the event issue
158 * @param sourceName New value for source name
159 * @return Name of the entity experiencing the event issue
161 private String sourceName;
165 * the earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed
166 * since 1 Jan 1970 not including leap seconds
168 * @param startEpochMicrosec New value for start Epoc Microsec
169 * @return The earliest unix time associated with the event from any component
171 private Long startEpochMicrosec;
175 * Version of the event header
177 * @param version New value for version of the event header
178 * @return Version of the event header
180 private Float version;