io.symcpe.wraith.actions.alerts.Alert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wraith-engine Show documentation
Show all versions of wraith-engine Show documentation
An efficient event correlation library
/**
* Copyright 2016 Symantec Corporation.
*
* Licensed under the Apache License, Version 2.0 (the “License”);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.symcpe.wraith.actions.alerts;
import java.io.Serializable;
/**
* Alert POJO / DTO
*
* @author ambud_sharma
*/
public class Alert implements Serializable {
private static final long serialVersionUID = 1L;
private String target;
private String subject;
private String media;
private String body;
private String ruleGroup;
private short id;
private long timestamp;
public Alert() {
}
/**
* @return the target
*/
public String getTarget() {
return target;
}
/**
* @param target the target to set
*/
public void setTarget(String target) {
this.target = target;
}
/**
* @return the media
*/
public String getMedia() {
return media;
}
/**
* @param media the media to set
*/
public void setMedia(String media) {
this.media = media;
}
/**
* @return the body
*/
public String getBody() {
return body;
}
/**
* @param body the body to set
*/
public void setBody(String body) {
this.body = body;
}
/**
* @return the subject
*/
public String getSubject() {
return subject;
}
/**
* @param subject the subject to set
*/
public void setSubject(String subject) {
this.subject = subject;
}
/**
* @return the ruleGroup
*/
public String getRuleGroup() {
return ruleGroup;
}
/**
* @param ruleGroup the ruleGroup to set
*/
public void setRuleGroup(String ruleGroup) {
this.ruleGroup = ruleGroup;
}
/**
* @return the id
*/
public short getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(short id) {
this.id = id;
}
/**
* @return the timestamp
*/
public long getTimestamp() {
return timestamp;
}
/**
* @param timestamp the timestamp to set
*/
public void setTimestamp(long timestamp) {
this.timestamp = timestamp;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "Alert [target=" + target + ", subject=" + subject + ", media=" + media + ", body=" + body
+ ", ruleGroup=" + ruleGroup + ", id=" + id + ", timestamp=" + timestamp + "]";
}
}