Package org.netxms.client.events
Class Alarm
java.lang.Object
org.netxms.client.events.Alarm
Alarm
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintGet id of user that acknowledged this alarm (or 0 if alarm is not acknowledged).intGet time when alarm was acknowledgedlong[]Get list of categories this alarm belongs to.intlonggetDciId()intlonggetId()getKey()longintintGet id of user that resolved this alarm (or 0 if alarm is not resolved).Get description of Event Processing Policy rule that caused the alarmGet unique ID of Event Processing Policy rule that caused the alarmintlonglongintgetState()Get alarm state.intGet alarm state bit.long[]Get list of subordinate alarm identifiers.intGet id of user that terminated this alarm (or 0 if alarm is not terminated).intintbooleanCheck if this alarm has any subordinated alarms.booleanisSticky()voidsetResolved(int userId, Date changeTime) Mark alarm as resolved.toString()
- 
Field Details- 
STATE_OUTSTANDINGpublic static final int STATE_OUTSTANDING- See Also:
 
- 
STATE_ACKNOWLEDGEDpublic static final int STATE_ACKNOWLEDGED- See Also:
 
- 
STATE_RESOLVEDpublic static final int STATE_RESOLVED- See Also:
 
- 
STATE_TERMINATEDpublic static final int STATE_TERMINATED- See Also:
 
- 
STATE_BIT_OUTSTANDINGpublic static final int STATE_BIT_OUTSTANDING- See Also:
 
- 
STATE_BIT_ACKNOWLEDGEDpublic static final int STATE_BIT_ACKNOWLEDGED- See Also:
 
- 
STATE_BIT_RESOLVEDpublic static final int STATE_BIT_RESOLVED- See Also:
 
- 
STATE_BIT_TERMINATEDpublic static final int STATE_BIT_TERMINATED- See Also:
 
- 
STATE_MASKpublic static final int STATE_MASK- See Also:
 
- 
HELPDESK_STATE_IGNOREDpublic static final int HELPDESK_STATE_IGNORED- See Also:
 
- 
HELPDESK_STATE_OPENpublic static final int HELPDESK_STATE_OPEN- See Also:
 
- 
HELPDESK_STATE_CLOSEDpublic static final int HELPDESK_STATE_CLOSED- See Also:
 
 
- 
- 
Constructor Details- 
Alarm- Parameters:
- msg- Source NXCP message
 
 
- 
- 
Method Details- 
setResolvedMark alarm as resolved. This call only updates local object state and do not change actual alarm state on server. It can be used to update local alarm objects after receiving bulk alarm state change notification.- Parameters:
- userId- ID of user that resolve this alarm
- changeTime- time when alarm was resolved
 
- 
getIdpublic long getId()- Returns:
- the id
 
- 
getParentIdpublic long getParentId()- Returns:
- the parentId
 
- 
getCurrentSeverity- Returns:
- the currentSeverity
 
- 
getOriginalSeverity- Returns:
- the originalSeverity
 
- 
getRepeatCountpublic int getRepeatCount()- Returns:
- the repeatCount
 
- 
getStatepublic int getState()Get alarm state.- Returns:
- alarm state
 
- 
getStateBitpublic int getStateBit()Get alarm state bit. It can be used to match against state filter bit mask.- Returns:
- alarm state bit
 
- 
getAcknowledgedByUserpublic int getAcknowledgedByUser()Get id of user that acknowledged this alarm (or 0 if alarm is not acknowledged).- Returns:
- id of user that acknowledged this alarm (or 0 if alarm is not acknowledged)
 
- 
getTerminatedByUserpublic int getTerminatedByUser()Get id of user that terminated this alarm (or 0 if alarm is not terminated).- Returns:
- id of user that terminated this alarm (or 0 if alarm is not terminated)
 
- 
getSourceEventIdpublic long getSourceEventId()- Returns:
- the sourceEventId
 
- 
getSourceEventCodepublic int getSourceEventCode()- Returns:
- the sourceEventCode
 
- 
getSourceObjectIdpublic long getSourceObjectId()- Returns:
- the sourceObjectId
 
- 
getDciIdpublic long getDciId()- Returns:
- the dciId
 
- 
getCreationTime- Returns:
- the creationTime
 
- 
getLastChangeTime- Returns:
- the lastChangeTime
 
- 
getMessage- Returns:
- the message
 
- 
getKey- Returns:
- the key
 
- 
getHelpdeskStatepublic int getHelpdeskState()- Returns:
- the helpdeskState
 
- 
getHelpdeskReference- Returns:
- the helpdeskReference
 
- 
getTimeoutpublic int getTimeout()- Returns:
- the timeout
 
- 
getTimeoutEventpublic int getTimeoutEvent()- Returns:
- the timeoutEvent
 
- 
getCommentsCountpublic int getCommentsCount()- Returns:
- the commentsCount
 
- 
getResolvedByUserpublic int getResolvedByUser()Get id of user that resolved this alarm (or 0 if alarm is not resolved).- Returns:
- id of user that resolved this alarm (or 0 if alarm is not resolved)
 
- 
isStickypublic boolean isSticky()- Returns:
- the sticky
 
- 
getAckTimepublic int getAckTime()Get time when alarm was acknowledged- Returns:
- time when alarm was acknowledged
 
- 
getCategoriespublic long[] getCategories()Get list of categories this alarm belongs to.- Returns:
- list of categories this alarm belongs to
 
- 
getSubordinateAlarmspublic long[] getSubordinateAlarms()Get list of subordinate alarm identifiers.- Returns:
- list of subordinate alarm identifiers
 
- 
hasSubordinatedAlarmspublic boolean hasSubordinatedAlarms()Check if this alarm has any subordinated alarms.- Returns:
- true if this alarm has any subordinated alarms
 
- 
getRuleIdGet unique ID of Event Processing Policy rule that caused the alarm- Returns:
- the rule UUID
 
- 
getRuleDescriptionGet description of Event Processing Policy rule that caused the alarm- Returns:
- the rule Description
 
- 
toString
 
-