Class FeedbackDocument
- java.lang.Object
-
- org.opennms.features.situationfeedback.elastic.FeedbackDocument
-
public class FeedbackDocument extends Object
-
-
Constructor Summary
Constructors Constructor Description FeedbackDocument()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FeedbackDocument
from(AlarmFeedback feedback)
String
getAlarmKey()
String
getFeedbackType()
Boolean
getIsRootCause()
String
getReason()
String
getSituationFingerprint()
String
getSituationKey()
List<String>
getTags()
long
getTimestamp()
String
getUser()
Integer
getVersion()
void
setAlarmKey(String alarmKey)
void
setFeedbackType(String feedbackType)
void
setIsRootCause(Boolean isRootCause)
void
setReason(String reason)
void
setSituationFingerprint(String situationFingerprint)
void
setSituationKey(String situationKey)
void
setTimestamp(long timestamp)
void
setUser(String user)
static AlarmFeedback
toAlarmFeedback(FeedbackDocument doc)
-
-
-
Method Detail
-
getTimestamp
public long getTimestamp()
-
setTimestamp
public void setTimestamp(long timestamp)
-
getVersion
public Integer getVersion()
-
getAlarmKey
public String getAlarmKey()
-
setAlarmKey
public void setAlarmKey(String alarmKey)
-
getFeedbackType
public String getFeedbackType()
-
setFeedbackType
public void setFeedbackType(String feedbackType)
-
getSituationFingerprint
public String getSituationFingerprint()
-
setSituationFingerprint
public void setSituationFingerprint(String situationFingerprint)
-
getSituationKey
public String getSituationKey()
-
setSituationKey
public void setSituationKey(String situationKey)
-
getReason
public String getReason()
-
setReason
public void setReason(String reason)
-
getIsRootCause
public Boolean getIsRootCause()
-
setIsRootCause
public void setIsRootCause(Boolean isRootCause)
-
getUser
public String getUser()
-
setUser
public void setUser(String user)
-
from
public static FeedbackDocument from(AlarmFeedback feedback)
-
toAlarmFeedback
public static AlarmFeedback toAlarmFeedback(FeedbackDocument doc)
-
-