Package com.redwood.scheduler.api.model
Interface MonitorCondition
- 
- All Superinterfaces:
- ActionSubjectObject,- Detail,- NamedDetailObject,- Readable,- SchedulerEntity,- SchedulerEntityComp
 
 public interface MonitorCondition extends NamedDetailObject, ActionSubjectObject, Readable A monitor condition defines when an alert is raised. A monitor condition is a boolean expression combined with a severity. If the expression is true, an alert of this severity is created. The expression can use the monitor values located in the same monitor node.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "MonitorCondition" objects.static StringSEC_RANK_ALLThis rank is made of the following privileges:static StringSEC_RANK_NONEThis rank has no privileges assigned to it.static LongSEVERITY_FATALFatal severity definition for an Alert monitorstatic LongSEVERITY_GREENGreen severity definition for an Alert monitorstatic LongSEVERITY_NEVER_SETConstant that is used to indicate that a severity has never been set before.static LongSEVERITY_REDRed severity definition for an Alert monitorstatic LongSEVERITY_YELLOWYellow severity definition for an Alert monitorstatic QueryObjectType<MonitorCondition>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).- 
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntityACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description SubjectgetActionSubject()Get the ActionSubject.StringgetExpression()Get the value for Expression.MonitorCheckgetMonitorCheck()Get the MonitorCheck.LonggetSeverity()Get the value for Severity.voidsetActionSubject(Subject newActionSubject)Set the value for ActionSubject.voidsetExpression(String newExpression)Set the value for Expression.voidsetSeverity(Long newSeverity)Set the value for Severity.- 
Methods inherited from interface com.redwood.scheduler.api.model.interfaces.ActionSubjectObjectgetActionSubjectUniqueId
 - 
Methods inherited from interface com.redwood.scheduler.api.model.NamedDetailObjectgetComment, getDescription, getName, getSearchName, setComment, setDescription, setName
 - 
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntitycanPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
 
- 
 
- 
- 
- 
Field Detail- 
OBJECT_TYPEstatic final String OBJECT_TYPE String that will be returned fromSchedulerEntity.getObjectType()for "MonitorCondition" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<MonitorCondition> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
SEVERITY_NEVER_SETstatic final Long SEVERITY_NEVER_SET Constant that is used to indicate that a severity has never been set before.
 - 
SEVERITY_GREENstatic final Long SEVERITY_GREEN Green severity definition for an Alert monitor
 - 
SEVERITY_YELLOWstatic final Long SEVERITY_YELLOW Yellow severity definition for an Alert monitor
 - 
SEVERITY_REDstatic final Long SEVERITY_RED Red severity definition for an Alert monitor
 - 
SEVERITY_FATALstatic final Long SEVERITY_FATAL Fatal severity definition for an Alert monitor
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges:- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getSeverityLong getSeverity() Get the value for Severity. (The severity to assign to parent when the condition is violated) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getExpressionString getExpression() Get the value for Expression. (The Redwood expression to evaluate this condition with.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setSeverityvoid setSeverity(Long newSeverity) Set the value for Severity. (The severity to assign to parent when the condition is violated) This value is mandatory.- Parameters:
- newSeverity- the new value for Severity. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setExpressionvoid setExpression(String newExpression) Set the value for Expression. (The Redwood expression to evaluate this condition with.) This value is optional.- Parameters:
- newExpression- the new value for Expression.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getMonitorCheckMonitorCheck getMonitorCheck() Get the MonitorCheck.- Returns:
- MonitorCheck
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getActionSubjectSubject getActionSubject() Get the ActionSubject.- Specified by:
- getActionSubjectin interface- ActionSubjectObject
- Returns:
- ActionSubject
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
setActionSubjectvoid setActionSubject(Subject newActionSubject) Set the value for ActionSubject. This value is optional.- Parameters:
- newActionSubject- is the object to set ActionSubject to. Who does this action execute as?
 
 
- 
 
-