|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hibernate.PersistedObject
org.hyperic.hq.events.server.session.AlertDefinition
public class AlertDefinition
Constructor Summary | |
---|---|
AlertDefinition()
|
Method Summary | |
---|---|
boolean |
allowContainerManagedCreationTime()
Define the management policy for the creation time. |
boolean |
allowContainerManagedLastModifiedTime()
Define the management policy for the last modified time. |
java.util.Collection |
getActions()
|
AlertDefinitionState |
getAlertDefinitionState()
|
AlertDefinitionValue |
getAlertDefinitionValue()
|
EscalationAlertType |
getAlertType()
|
AppdefEntityID |
getAppdefEntityId()
|
java.lang.Integer |
getAppdefId()
|
int |
getAppdefType()
|
java.util.Collection |
getChildren()
|
java.util.Collection |
getConditions()
|
long |
getCount()
|
long |
getCtime()
|
AlertDefinitionInterface |
getDefinitionInfo()
|
java.lang.String |
getDescription()
|
Escalation |
getEscalation()
|
int |
getFrequencyType()
|
long |
getLastFired()
Get the time that the alert definition last fired. |
long |
getMtime()
|
java.lang.String |
getName()
|
AlertDefinition |
getParent()
|
int |
getPriority()
|
long |
getRange()
|
Resource |
getResource()
|
AlertSeverity |
getSeverity()
Returns the same thing as getPriority(), though a typesafe enum |
java.util.Collection |
getTriggers()
|
boolean |
isActive()
Check if an alert definition is active. |
boolean |
isAvailability(boolean up)
Check if an alert definition is configured for only availability. |
boolean |
isControlFiltered()
|
boolean |
isDeleted()
|
boolean |
isEnabled()
Check if an alert definition is enabled. |
boolean |
isNotifyFiltered()
|
boolean |
isRecoveryDefinition()
Check if the alert definition is a recovery alert |
boolean |
isResourceTypeDefinition()
|
boolean |
isWillRecover()
|
boolean |
performsEscalations()
|
void |
setActiveStatus(boolean activate)
Activate or deactivate an alert definition. |
boolean |
setEnabledStatus(boolean enabled)
Enable or disable the alert definition. |
void |
setName(java.lang.String name)
|
java.lang.String |
toString()
|
boolean |
willRecover()
|
Methods inherited from class org.hyperic.hibernate.PersistedObject |
---|
equals, get_version_, getId, hashCode, set_version_, setId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.hyperic.hq.events.AlertDefinitionInterface |
---|
getId |
Methods inherited from interface org.hyperic.hq.escalation.server.session.PerformsEscalations |
---|
getId |
Constructor Detail |
---|
public AlertDefinition()
Method Detail |
---|
public boolean allowContainerManagedCreationTime()
ContainerManagedTimestampTrackable
allowContainerManagedCreationTime
in interface ContainerManagedTimestampTrackable
true
by default.ContainerManagedTimestampTrackable.allowContainerManagedLastModifiedTime()
public boolean allowContainerManagedLastModifiedTime()
ContainerManagedTimestampTrackable
allowContainerManagedLastModifiedTime
in interface ContainerManagedTimestampTrackable
false
by default.ContainerManagedTimestampTrackable.allowContainerManagedLastModifiedTime()
public java.lang.String getName()
getName
in interface PerformsEscalations
getName
in interface AlertDefinitionInterface
public void setName(java.lang.String name)
public long getCtime()
public long getMtime()
public AlertDefinition getParent()
public java.util.Collection getChildren()
public java.lang.String getDescription()
getDescription
in interface AlertDefinitionInterface
public AlertSeverity getSeverity()
public int getPriority()
getPriority
in interface AlertDefinitionInterface
public java.lang.Integer getAppdefId()
public int getAppdefType()
public boolean isEnabled()
true
if the alert definition is enabled;
false
if disabled.public boolean isActive()
true
if the alert definition is active;
false
if inactive.public boolean isRecoveryDefinition()
public void setActiveStatus(boolean activate)
activate
- true
to activate the alert definition;
false
to deactivate the alert definition.public boolean setEnabledStatus(boolean enabled)
enabled
- true
to enable the alert definition;
false
to disable the alert definition.
true
if the operation succeeded, meaning the enabled
status was set; false
if it wasn't set.public int getFrequencyType()
public long getCount()
public long getRange()
public boolean willRecover()
public boolean isWillRecover()
public boolean isNotifyFiltered()
isNotifyFiltered
in interface AlertDefinitionInterface
public boolean isControlFiltered()
public Escalation getEscalation()
getEscalation
in interface PerformsEscalations
public boolean isDeleted()
isDeleted
in interface PerformsEscalations
isDeleted
in interface AlertDefinitionInterface
public Resource getResource()
getResource
in interface AlertDefinitionInterface
public java.util.Collection getActions()
public java.util.Collection getConditions()
public java.util.Collection getTriggers()
public boolean isResourceTypeDefinition()
public boolean isAvailability(boolean up)
up
- Indicates where the availability condition is up (true) or down (false)
true
if the alert definition has an availability condition.public AppdefEntityID getAppdefEntityId()
public long getLastFired()
public AlertDefinitionState getAlertDefinitionState()
public AlertDefinitionValue getAlertDefinitionValue()
public EscalationAlertType getAlertType()
getAlertType
in interface PerformsEscalations
public AlertDefinitionInterface getDefinitionInfo()
getDefinitionInfo
in interface PerformsEscalations
public boolean performsEscalations()
performsEscalations
in interface AlertDefinitionInterface
public java.lang.String toString()
toString
in class java.lang.Object
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |