org.hyperic.hq.events
Class AlertFiredEvent
java.lang.Object
org.hyperic.hq.events.AbstractEvent
org.hyperic.hq.events.AlertFiredEvent
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, LoggableInterface, ResourceEventInterface
public class AlertFiredEvent
- extends AbstractEvent
- implements java.io.Serializable, ResourceEventInterface, LoggableInterface
Event sent when alerts have fired
- See Also:
- Serialized Form
Constructor Summary |
AlertFiredEvent(java.lang.Integer alertId,
java.lang.Integer alertDefinitionId,
AppdefEntityID resource,
java.lang.String alertDefName,
long timestamp,
java.lang.String message)
Creates a new instance of AlertFiredEvent |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AlertFiredEvent
public AlertFiredEvent(java.lang.Integer alertId,
java.lang.Integer alertDefinitionId,
AppdefEntityID resource,
java.lang.String alertDefName,
long timestamp,
java.lang.String message)
- Creates a new instance of AlertFiredEvent
- Parameters:
alertId
- The ID of the alert createdalertDefinitionId
- The ID of the corresponding alert definitionresource
- The alerting resourcealertDefName
- The name of the corresponding alert definitiontimestamp
- The time the alert was firedmessage
- The message associated with the event
getMessage
public java.lang.String getMessage()
- Getter for property message.
- Returns:
- Value of property message.
setMessage
public void setMessage(java.lang.String message)
- Setter for property message.
- Parameters:
message
- New value of property message.
getAlertId
public java.lang.Integer getAlertId()
- Returns:
- Returns the alertId.
setAlertId
public void setAlertId(java.lang.Integer alertId)
- Parameters:
alertId
- The alertId to set.
getResource
public AppdefEntityID getResource()
- Specified by:
getResource
in interface ResourceEventInterface
setResource
public void setResource(AppdefEntityID resource)
getAlertDefName
public java.lang.String getAlertDefName()
setAlertDefName
public void setAlertDefName(java.lang.String alertDefName)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getLevelString
public java.lang.String getLevelString()
- Specified by:
getLevelString
in interface LoggableInterface
getSubject
public java.lang.String getSubject()
- Specified by:
getSubject
in interface LoggableInterface
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.