[POLICY-11] Sample Query with variable arguments
[policy/drools-applications.git] / controlloop / common / model-impl / events / src / main / java / org / onap / policy / controlloop / ControlLoopNotification.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * controlloop
4  * ================================================================================
5  * Copyright (C) 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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.policy.controlloop;
22
23 import java.io.Serializable;
24 import java.time.ZoneOffset;
25 import java.time.ZonedDateTime;
26 import java.util.LinkedList;
27 import java.util.List;
28 import java.util.UUID;
29
30 public abstract class ControlLoopNotification implements Serializable {
31
32         private static final long serialVersionUID = 7538596984567127915L;
33
34         public String closedLoopControlName;
35         public String version = "1.0.2";
36         public UUID requestID;
37         public String closedLoopEventClient;
38         public ControlLoopTargetType target_type;
39         public String target;
40         public String from;
41         public String policyScope;
42         public String policyName;
43         public String policyVersion;
44         public ControlLoopNotificationType notification;
45         public String message;
46         public ZonedDateTime notificationTime = ZonedDateTime.now(ZoneOffset.UTC);;
47         public Integer OPS_CL_timer;
48         public List<ControlLoopOperation> history = new LinkedList<ControlLoopOperation>();
49         
50         public ControlLoopNotification() {
51                 
52         }
53         
54         public ControlLoopNotification(ControlLoopEvent event) {
55                 this.closedLoopControlName = event.closedLoopControlName;
56                 this.requestID = event.requestID;
57                 this.closedLoopEventClient = event.closedLoopEventClient;
58                 this.target_type = event.target_type;
59                 this.target = event.target;
60         }
61
62 }