Interface MonitorCondition

    • Field Detail

      • VERSION_MONITORCONDITION

        static final com.redwood.scheduler.infrastructure.logging.Versions VERSION_MONITORCONDITION
      • SEVERITY_NEVER_SET

        static final Long SEVERITY_NEVER_SET
        Constant that is used to indicate that a severity has never been set before.
      • SEVERITY_GREEN

        static final Long SEVERITY_GREEN
        Green severity definition for an Alert monitor
      • SEVERITY_YELLOW

        static final Long SEVERITY_YELLOW
        Yellow severity definition for an Alert monitor
      • SEVERITY_RED

        static final Long SEVERITY_RED
        Red severity definition for an Alert monitor
      • SEVERITY_FATAL

        static final Long SEVERITY_FATAL
        Fatal severity definition for an Alert monitor
    • Method Detail

      • getSeverity

        Long 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 be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getExpression

        String getExpression()
        Get the value for Expression. (The Redwood expression to evaluate this condition with.)
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setSeverity

        void 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:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setExpression

        void 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:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setActionSubject

        void 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?