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.cdap.common.domain.tca;
 
  23 import com.google.common.base.Objects;
 
  25 import java.io.Serializable;
 
  28  * Simple POJO emitted by threshold calculator
 
  30  * @author rs153v (Rajiv Singla) . Creation Date: 9/11/2017.
 
  32 public class ThresholdCalculatorOutput implements Serializable {
 
  34     private static final long serialVersionUID = 1L;
 
  36     private String cefMessage;
 
  37     private String tcaPolicy;
 
  38     private String violatedMetricsPerEventName;
 
  39     private String alertMessage;
 
  41     public ThresholdCalculatorOutput() {
 
  45     public ThresholdCalculatorOutput(String cefMessage, String tcaPolicy,
 
  46                                      String violatedMetricsPerEventName, String alertMessage) {
 
  47         this.cefMessage = cefMessage;
 
  48         this.tcaPolicy = tcaPolicy;
 
  49         this.violatedMetricsPerEventName = violatedMetricsPerEventName;
 
  50         this.alertMessage = alertMessage;
 
  53     public String getCefMessage() {
 
  57     public void setCefMessage(String cefMessage) {
 
  58         this.cefMessage = cefMessage;
 
  61     public String getTcaPolicy() {
 
  65     public void setTcaPolicy(String tcaPolicy) {
 
  66         this.tcaPolicy = tcaPolicy;
 
  69     public String getViolatedMetricsPerEventName() {
 
  70         return violatedMetricsPerEventName;
 
  73     public void setViolatedMetricsPerEventName(String violatedMetricsPerEventName) {
 
  74         this.violatedMetricsPerEventName = violatedMetricsPerEventName;
 
  77     public String getAlertMessage() {
 
  81     public void setAlertMessage(String alertMessage) {
 
  82         this.alertMessage = alertMessage;
 
  86     public String toString() {
 
  87         return Objects.toStringHelper(this)
 
  88                 .add("cefMessage", cefMessage)
 
  89                 .add("tcaPolicy", tcaPolicy)
 
  90                 .add("violatedMetricsPerEventName", violatedMetricsPerEventName)
 
  91                 .add("alertMessage", alertMessage)