Class FeedbackDocument
- java.lang.Object
-
- org.opennms.features.situationfeedback.elastic.FeedbackDocument
-
public class FeedbackDocument extends java.lang.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)
java.lang.String
getAlarmKey()
java.lang.String
getFeedbackType()
java.lang.Boolean
getIsRootCause()
java.lang.String
getReason()
java.lang.String
getSituationFingerprint()
java.lang.String
getSituationKey()
java.util.List<java.lang.String>
getTags()
long
getTimestamp()
java.lang.String
getUser()
java.lang.Integer
getVersion()
void
setAlarmKey(java.lang.String alarmKey)
void
setFeedbackType(java.lang.String feedbackType)
void
setIsRootCause(java.lang.Boolean isRootCause)
void
setReason(java.lang.String reason)
void
setSituationFingerprint(java.lang.String situationFingerprint)
void
setSituationKey(java.lang.String situationKey)
void
setTimestamp(long timestamp)
void
setUser(java.lang.String user)
static AlarmFeedback
toAlarmFeedback(FeedbackDocument doc)
-
-
-
Method Detail
-
getTimestamp
public long getTimestamp()
-
setTimestamp
public void setTimestamp(long timestamp)
-
getVersion
public java.lang.Integer getVersion()
-
getAlarmKey
public java.lang.String getAlarmKey()
-
setAlarmKey
public void setAlarmKey(java.lang.String alarmKey)
-
getFeedbackType
public java.lang.String getFeedbackType()
-
setFeedbackType
public void setFeedbackType(java.lang.String feedbackType)
-
getSituationFingerprint
public java.lang.String getSituationFingerprint()
-
setSituationFingerprint
public void setSituationFingerprint(java.lang.String situationFingerprint)
-
getSituationKey
public java.lang.String getSituationKey()
-
setSituationKey
public void setSituationKey(java.lang.String situationKey)
-
getReason
public java.lang.String getReason()
-
setReason
public void setReason(java.lang.String reason)
-
getIsRootCause
public java.lang.Boolean getIsRootCause()
-
setIsRootCause
public void setIsRootCause(java.lang.Boolean isRootCause)
-
getTags
public java.util.List<java.lang.String> getTags()
-
getUser
public java.lang.String getUser()
-
setUser
public void setUser(java.lang.String user)
-
from
public static FeedbackDocument from(AlarmFeedback feedback)
-
toAlarmFeedback
public static AlarmFeedback toAlarmFeedback(FeedbackDocument doc)
-
-