TCA: Support for VES/A&AI enrichment
[dcaegen2/analytics/tca.git] / dcae-analytics-cdap-common / src / main / java / org / openecomp / dcae / apod / analytics / cdap / common / domain / tca / ThresholdCalculatorOutput.java
1 /*\r
2  * ===============================LICENSE_START======================================\r
3  *  dcae-analytics\r
4  * ================================================================================\r
5  *    Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
6  * ================================================================================\r
7  *  Licensed under the Apache License, Version 2.0 (the "License");\r
8  *  you may not use this file except in compliance with the License.\r
9  *   You may obtain a copy of the License at\r
10  *\r
11  *          http://www.apache.org/licenses/LICENSE-2.0\r
12  *\r
13  *  Unless required by applicable law or agreed to in writing, software\r
14  *  distributed under the License is distributed on an "AS IS" BASIS,\r
15  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  *  See the License for the specific language governing permissions and\r
17  *  limitations under the License.\r
18  *  ============================LICENSE_END===========================================\r
19  */\r
20 \r
21 package org.openecomp.dcae.apod.analytics.cdap.common.domain.tca;\r
22 \r
23 import com.google.common.base.Objects;\r
24 \r
25 import java.io.Serializable;\r
26 \r
27 /**\r
28  * Simple POJO emitted by threshold calculator\r
29  *\r
30  * @author Rajiv Singla . Creation Date: 9/11/2017.\r
31  */\r
32 public class ThresholdCalculatorOutput implements Serializable {\r
33 \r
34     private static final long serialVersionUID = 1L;\r
35 \r
36     protected String cefMessage;\r
37     protected String tcaPolicy;\r
38     protected String violatedMetricsPerEventName;\r
39     protected String alertMessage;\r
40 \r
41     public ThresholdCalculatorOutput() {\r
42         // no arg constructor\r
43     }\r
44 \r
45     public ThresholdCalculatorOutput(String cefMessage, String tcaPolicy,\r
46                                      String violatedMetricsPerEventName, String alertMessage) {\r
47         this.cefMessage = cefMessage;\r
48         this.tcaPolicy = tcaPolicy;\r
49         this.violatedMetricsPerEventName = violatedMetricsPerEventName;\r
50         this.alertMessage = alertMessage;\r
51     }\r
52 \r
53     public String getCefMessage() {\r
54         return cefMessage;\r
55     }\r
56 \r
57     public void setCefMessage(String cefMessage) {\r
58         this.cefMessage = cefMessage;\r
59     }\r
60 \r
61     public String getTcaPolicy() {\r
62         return tcaPolicy;\r
63     }\r
64 \r
65     public void setTcaPolicy(String tcaPolicy) {\r
66         this.tcaPolicy = tcaPolicy;\r
67     }\r
68 \r
69     public String getViolatedMetricsPerEventName() {\r
70         return violatedMetricsPerEventName;\r
71     }\r
72 \r
73     public void setViolatedMetricsPerEventName(String violatedMetricsPerEventName) {\r
74         this.violatedMetricsPerEventName = violatedMetricsPerEventName;\r
75     }\r
76 \r
77     public String getAlertMessage() {\r
78         return alertMessage;\r
79     }\r
80 \r
81     public void setAlertMessage(String alertMessage) {\r
82         this.alertMessage = alertMessage;\r
83     }\r
84 \r
85     @Override\r
86     public String toString() {\r
87         return Objects.toStringHelper(this)\r
88                 .add("cefMessage", cefMessage)\r
89                 .add("tcaPolicy", tcaPolicy)\r
90                 .add("violatedMetricsPerEventName", violatedMetricsPerEventName)\r
91                 .add("alertMessage", alertMessage)\r
92                 .toString();\r
93     }\r
94 }\r