2 * ===============================LICENSE_START======================================
\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
11 * http://www.apache.org/licenses/LICENSE-2.0
\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
21 package org.openecomp.dcae.apod.analytics.cdap.common.domain.tca;
\r
23 import com.google.common.base.Objects;
\r
25 import java.io.Serializable;
\r
28 * Simple POJO emitted by threshold calculator
\r
30 * @author Rajiv Singla . Creation Date: 9/11/2017.
\r
32 public class ThresholdCalculatorOutput implements Serializable {
\r
34 private static final long serialVersionUID = 1L;
\r
36 protected String cefMessage;
\r
37 protected String tcaPolicy;
\r
38 protected String violatedMetricsPerEventName;
\r
39 protected String alertMessage;
\r
41 public ThresholdCalculatorOutput() {
\r
42 // no arg constructor
\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
53 public String getCefMessage() {
\r
57 public void setCefMessage(String cefMessage) {
\r
58 this.cefMessage = cefMessage;
\r
61 public String getTcaPolicy() {
\r
65 public void setTcaPolicy(String tcaPolicy) {
\r
66 this.tcaPolicy = tcaPolicy;
\r
69 public String getViolatedMetricsPerEventName() {
\r
70 return violatedMetricsPerEventName;
\r
73 public void setViolatedMetricsPerEventName(String violatedMetricsPerEventName) {
\r
74 this.violatedMetricsPerEventName = violatedMetricsPerEventName;
\r
77 public String getAlertMessage() {
\r
78 return alertMessage;
\r
81 public void setAlertMessage(String alertMessage) {
\r
82 this.alertMessage = alertMessage;
\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