public class Event extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected Date | 
acknowledgeTime
The time this event was acknowledged. 
 | 
protected String | 
acknowledgeUser
The name of the user who acknowledged this event. 
 | 
protected Integer | 
alarmId
The alarmId if reduced. 
 | 
protected String | 
autoAction
Automated Action for event. 
 | 
protected Date | 
createTime
Creation time of event in database, cannot be null 
 | 
protected String | 
description
Free-form textual description of the event 
 | 
protected String | 
dpName
The dpName of the Dist Poller which received the event, cannot be null. 
 | 
protected Boolean | 
eventDisplay
Whether the event is displayable. 
 | 
protected String | 
forward
The forwarding information. 
 | 
protected String | 
host
The <host> element from the Event Data Stream DTD 
 | 
protected int | 
id
Unique identifier for the event, cannot be null 
 | 
protected String | 
ipAddr
IP Address of node's interface 
 | 
protected String | 
location  | 
protected String | 
logGroup
Logical group with which to associate event. 
 | 
protected String | 
logMessage
Formatted display text to control how the event will appear in the
 browser. 
 | 
protected String | 
mouseOverText
Mouse over text. 
 | 
protected Integer | 
nodeID
Unique integer identifier for node, can be null 
 | 
protected String | 
nodeLabel
The human-readable name of the node of this event. 
 | 
protected String | 
nodeLocation  | 
protected String | 
notification
Notification string. 
 | 
protected String | 
operatorAction
Operator Action for event. 
 | 
protected String | 
operatorActionMenuText
Text of the eventOperAction. 
 | 
protected String | 
operatorInstruction
Operator instruction for event. 
 | 
protected Map<String,String> | 
parms
The <parms> element from the Event Data Stream DTD 
 | 
protected Integer | 
serviceID
Unique integer identifier of service/poller package, can be null 
 | 
protected String | 
serviceName
Human-readable name of the service 
 | 
protected OnmsSeverity | 
severity
Severity the of event. 
 | 
protected String | 
snmp
Contains the eid, eidtext (optionally), specific, and generic identifier
 for the SNMP Trap. 
 | 
protected String | 
snmphost
The <snmphost> element from the Event Data Stream DTD 
 | 
protected String | 
systemId  | 
protected Date | 
time
The <time> element from the Event Data Stream DTD, which is the
 time the event was received by the source process. 
 | 
protected String | 
troubleTicket
Trouble ticket integration string. 
 | 
protected Integer | 
troubleTicketState
State of the trouble ticket. 
 | 
protected String | 
uei
Universal Event Identifer (UEI) for this event, cannot be null 
 | 
| Constructor and Description | 
|---|
Event()
Empty constructor to create an empty  
Event instance. | 
Event(int id,
     String uei,
     Date time,
     String dpName,
     Date createTime,
     int severityId)
Create an event that represents a real network event with only the
 required parameters. 
 | 
Event(int id,
     String uei,
     Date time,
     String dpName,
     Date createTime,
     int severityId,
     String snmp,
     String host,
     String snmphost,
     Map<String,String> parms,
     Integer nodeID,
     Integer serviceID,
     String ipAddr,
     String description,
     String logMessage,
     String logGroup,
     String operatorInstruction,
     String autoAction,
     String operatorAction,
     String operatorActionMenuText,
     String notification,
     String troubleTicket,
     Integer troubleTicketState,
     String forward,
     String mouseOverText,
     String acknowledgeUser,
     Date acknowledgeTime)
Create an event that represents a real network event with all the
 parameters. 
 | 
Event(int id,
     String uei,
     Date time,
     String dpName,
     Date createTime,
     int severityId,
     String snmp,
     String host,
     String snmphost,
     Map<String,String> parms,
     Integer nodeID,
     Integer serviceID,
     String ipAddr,
     String description,
     String logMessage,
     String logGroup,
     String operatorInstruction,
     String autoAction,
     String operatorAction,
     String operatorActionMenuText,
     String notification,
     String troubleTicket,
     Integer troubleTicketState,
     String forward,
     String mouseOverText,
     String acknowledgeUser,
     Date acknowledgeTime,
     String nodeLabel,
     String serviceName,
     Integer alarmId)
Constructor for Event. 
 | 
Event(int id,
     String uei,
     Date time,
     String dpName,
     Date createTime,
     int severityId,
     String snmp,
     String host,
     String snmphost,
     Map<String,String> parms,
     Integer nodeID,
     Integer serviceID,
     String ipAddr,
     String description,
     String logMessage,
     String logGroup,
     String operatorInstruction,
     String autoAction,
     String operatorAction,
     String operatorActionMenuText,
     String notification,
     String troubleTicket,
     Integer troubleTicketState,
     String forward,
     String mouseOverText,
     String acknowledgeUser,
     Date acknowledgeTime,
     String nodeLabel,
     String serviceName,
     Integer alarmId,
     Boolean eventDisplay)
Create an event that represents a real network event with all the
 parameters. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Date | 
getAcknowledgeTime()
Getter for the field  
acknowledgeTime. | 
String | 
getAcknowledgeUser()
Getter for the field  
acknowledgeUser. | 
Integer | 
getAlarmId()
Getter for the field  
alarmId. | 
String | 
getAutoAction()
Getter for the field  
autoAction. | 
Date | 
getCreateTime()
Getter for the field  
createTime. | 
String | 
getDescription()
Getter for the field  
description. | 
String | 
getDpName()
Getter for the field  
dpName. | 
Boolean | 
getEventDisplay()
Getter for the field  
eventDisplay. | 
String | 
getForward()
Getter for the field  
forward. | 
String | 
getHost()
Getter for the field  
host. | 
int | 
getId()
Getter for the field  
id. | 
String | 
getIpAddress()
getIpAddress 
 | 
String | 
getLocation()  | 
String | 
getLogGroup()
Getter for the field  
logGroup. | 
String | 
getLogMessage()
Getter for the field  
logMessage. | 
String | 
getMouseOverText()
Getter for the field  
mouseOverText. | 
int | 
getNodeId()
getNodeId 
 | 
String | 
getNodeLabel()
Getter for the field  
nodeLabel. | 
String | 
getNodeLocation()  | 
String | 
getNotification()
Getter for the field  
notification. | 
String | 
getOperatorAction()
Getter for the field  
operatorAction. | 
String | 
getOperatorActionMenuText()
Getter for the field  
operatorActionMenuText. | 
String | 
getOperatorInstruction()
Getter for the field  
operatorInstruction. | 
Map<String,String> | 
getParms()
Getter for the field  
parms. | 
int | 
getServiceId()
getServiceId 
 | 
String | 
getServiceName()
Getter for the field  
serviceName. | 
OnmsSeverity | 
getSeverity()
Getter for the field  
severity. | 
String | 
getSnmp()
Getter for the field  
snmp. | 
String | 
getSnmpHost()
getSnmpHost 
 | 
String | 
getSystemId()  | 
Date | 
getTime()
Getter for the field  
time. | 
String | 
getTroubleTicket()
Getter for the field  
troubleTicket. | 
Integer | 
getTroubleTicketState()
Getter for the field  
troubleTicketState. | 
String | 
getUei()
Getter for the field  
uei. | 
boolean | 
isAcknowledged()
isAcknowledged 
 | 
protected int id
protected String uei
protected String snmp
protected Date time
protected String host
protected String snmphost
protected String dpName
protected Integer nodeID
protected Integer serviceID
protected String serviceName
protected String ipAddr
protected Date createTime
protected String description
protected String logMessage
protected String logGroup
protected OnmsSeverity severity
1 = Indeterminate 2 = Cleared (unimplemented at this time) 3 = Warning 4 = Minor 5 = Major 6 = Critical
protected String operatorInstruction
protected String autoAction
protected String operatorAction
protected String operatorActionMenuText
protected String notification
protected String troubleTicket
protected Integer troubleTicketState
protected String forward
Destination,State,Mechanism;Destination,State,Mechanism;
 which reflect the following:
 protected String mouseOverText
protected String acknowledgeUser
protected Date acknowledgeTime
protected String nodeLabel
protected Integer alarmId
protected Boolean eventDisplay
protected String systemId
protected String location
protected String nodeLocation
public Event()
Event instance. All
 fields will hold the default values.public Event(int id,
             String uei,
             Date time,
             String dpName,
             Date createTime,
             int severityId)
public Event(int id,
             String uei,
             Date time,
             String dpName,
             Date createTime,
             int severityId,
             String snmp,
             String host,
             String snmphost,
             Map<String,String> parms,
             Integer nodeID,
             Integer serviceID,
             String ipAddr,
             String description,
             String logMessage,
             String logGroup,
             String operatorInstruction,
             String autoAction,
             String operatorAction,
             String operatorActionMenuText,
             String notification,
             String troubleTicket,
             Integer troubleTicketState,
             String forward,
             String mouseOverText,
             String acknowledgeUser,
             Date acknowledgeTime)
id - a int.uei - a String object.time - a Date object.dpName - a String object.createTime - a Date object.severityId - a int.snmp - a String object.host - a String object.snmphost - a String object.parms - a String object.nodeID - a Integer object.serviceID - a Integer object.ipAddr - a String object.description - a String object.logMessage - a String object.logGroup - a String object.operatorInstruction - a String object.autoAction - a String object.operatorAction - a String object.operatorActionMenuText - a String object.notification - a String object.troubleTicket - a String object.troubleTicketState - a Integer object.forward - a String object.mouseOverText - a String object.acknowledgeUser - a String object.acknowledgeTime - a Date object.public Event(int id,
             String uei,
             Date time,
             String dpName,
             Date createTime,
             int severityId,
             String snmp,
             String host,
             String snmphost,
             Map<String,String> parms,
             Integer nodeID,
             Integer serviceID,
             String ipAddr,
             String description,
             String logMessage,
             String logGroup,
             String operatorInstruction,
             String autoAction,
             String operatorAction,
             String operatorActionMenuText,
             String notification,
             String troubleTicket,
             Integer troubleTicketState,
             String forward,
             String mouseOverText,
             String acknowledgeUser,
             Date acknowledgeTime,
             String nodeLabel,
             String serviceName,
             Integer alarmId)
Constructor for Event.
id - a int.uei - a String object.time - a Date object.dpName - a String object.createTime - a Date object.severityId - a int.snmp - a String object.host - a String object.snmphost - a String object.parms - a String object.nodeID - a Integer object.serviceID - a Integer object.ipAddr - a String object.description - a String object.logMessage - a String object.logGroup - a String object.operatorInstruction - a String object.autoAction - a String object.operatorAction - a String object.operatorActionMenuText - a String object.notification - a String object.troubleTicket - a String object.troubleTicketState - a Integer object.forward - a String object.mouseOverText - a String object.acknowledgeUser - a String object.acknowledgeTime - a Date object.nodeLabel - a String object.serviceName - a String object.alarmId - a Integer object.public Event(int id,
             String uei,
             Date time,
             String dpName,
             Date createTime,
             int severityId,
             String snmp,
             String host,
             String snmphost,
             Map<String,String> parms,
             Integer nodeID,
             Integer serviceID,
             String ipAddr,
             String description,
             String logMessage,
             String logGroup,
             String operatorInstruction,
             String autoAction,
             String operatorAction,
             String operatorActionMenuText,
             String notification,
             String troubleTicket,
             Integer troubleTicketState,
             String forward,
             String mouseOverText,
             String acknowledgeUser,
             Date acknowledgeTime,
             String nodeLabel,
             String serviceName,
             Integer alarmId,
             Boolean eventDisplay)
public int getId()
Getter for the field id.
public OnmsSeverity getSeverity()
Getter for the field severity.
OnmsSeverity object.public int getNodeId()
getNodeId
public int getServiceId()
getServiceId
public String getServiceName()
Getter for the field serviceName.
String object.public String getDescription()
Getter for the field description.
String object.public String getLogMessage()
Getter for the field logMessage.
String object.public String getOperatorInstruction()
Getter for the field operatorInstruction.
String object.public String getAutoAction()
Getter for the field autoAction.
String object.public String getOperatorAction()
Getter for the field operatorAction.
String object.public String getOperatorActionMenuText()
Getter for the field operatorActionMenuText.
String object.public String getNotification()
Getter for the field notification.
String object.public String getTroubleTicket()
Getter for the field troubleTicket.
String object.public Integer getTroubleTicketState()
Getter for the field troubleTicketState.
Integer object.public String getMouseOverText()
Getter for the field mouseOverText.
String object.public String getAcknowledgeUser()
Getter for the field acknowledgeUser.
String object.public Date getAcknowledgeTime()
Getter for the field acknowledgeTime.
Date object.public boolean isAcknowledged()
isAcknowledged
public Boolean getEventDisplay()
Getter for the field eventDisplay.
Boolean object.public String getSystemId()
public String getLocation()
public String getNodeLocation()
Copyright © 2021. All rights reserved.