public class Ticket extends Object
TicketerPlugin
API.Modifier and Type | Class and Description |
---|---|
static class |
Ticket.State
Enumeration for representation of a Ticket's state.
|
Constructor and Description |
---|
Ticket() |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String key,
String value)
Adds a single free form attribute to the Ticket.
|
Integer |
getAlarmId()
Returns the ID of the originator alarm
|
String |
getAttribute(String key)
Gets a single free form attribute from a Ticket.
|
Map<String,String> |
getAttributes()
getAttributes
|
String |
getDetails()
TODO: This should probably turn into a collection of comments.
|
String |
getId()
This should be the ticket ID assigned by the HelpDesk system.
|
InetAddress |
getIpAddress()
Returns the IP address of the originator alarm
|
String |
getModificationTimestamp()
A timestamp to be used for optimistic locking with the trouble ticketing system
|
Integer |
getNodeId()
Returns the ID of the originator node
|
List<RelatedAlarmSummary> |
getRelatedAlarms() |
Ticket.State |
getState()
Returns the current
Ticket.State |
String |
getSummary()
Returns a simple high level summary about the ticket that is generated
from the Alarm logmsg.
|
String |
getUser()
User name owning/createing the ticket.
|
boolean |
hasAttributes() |
boolean |
hasId() |
boolean |
isSituation() |
void |
setAlarmId(Integer alarmId)
Sets the ID of the originator alarm.
|
void |
setAttributes(Map<String,String> attributes)
Store a list of free form attributes in the Ticket.
|
void |
setDetails(String details)
TODO: This should probably turn into a collection of comments or some such thing.
|
void |
setId(String id)
The TicketerPlugin should set the ID.
|
void |
setIpAddress(InetAddress ipAddress)
Sets the IP address of the originator alarm.
|
void |
setModificationTimestamp(String modificationTimestamp)
setModificationTimestamp
|
void |
setNodeId(Integer nodeId)
Sets the ID of the originator node.
|
void |
setRelatedAlarms(List<RelatedAlarmSummary> relatedAlarms)
Set related alarms for the current alarm associated with ticket.
|
void |
setSituation(boolean situation)
Set as true if this alarm is a situation.
|
void |
setState(Ticket.State state)
Sets the Ticket state to one of the
Ticket.State Enums. |
void |
setSummary(String summary)
Set a summary into the ticket.
|
void |
setUser(String user)
Set the user name owning the ticket.
|
String |
toString() |
public Map<String,String> getAttributes()
getAttributes
public void setAttributes(Map<String,String> attributes)
attributes
- a Map
object.public void addAttribute(String key, String value)
public String getAttribute(String key)
public String getSummary()
public void setSummary(String summary)
summary
- a String
object.public String getDetails()
public void setDetails(String details)
details
- a String
object.public String getId()
String
object.public boolean hasId()
public boolean hasAttributes()
public void setId(String id)
id
- a String
object.public String getUser()
public void setUser(String user)
user
- a String
object.public Ticket.State getState()
Ticket.State
public void setState(Ticket.State state)
Ticket.State
Enums.state
- a Ticket.State
object.public String getModificationTimestamp()
String
object.public void setModificationTimestamp(String modificationTimestamp)
setModificationTimestamp
modificationTimestamp
- a String
object.public Integer getAlarmId()
public void setAlarmId(Integer alarmId)
alarmId
- a Integer
object.public Integer getNodeId()
public void setNodeId(Integer nodeId)
nodeId
- a Integer
object.public InetAddress getIpAddress()
public void setIpAddress(InetAddress ipAddress)
ipAddress
- a InetAddress
object.public boolean isSituation()
public void setSituation(boolean situation)
situation
- whether or not this alarm is a situation.public List<RelatedAlarmSummary> getRelatedAlarms()
List
of RelatedAlarmSummary
containing related alarm detailspublic void setRelatedAlarms(List<RelatedAlarmSummary> relatedAlarms)
relatedAlarms
- a List
of RelatedAlarmSummary
Copyright © 2021. All rights reserved.