Class ExecuteWatchRequest

    • Method Detail

      • byId

        public static ExecuteWatchRequest byId​(String id)
        Execute an existing watch on the cluster
        Parameters:
        id - the id of the watch to execute
      • inline

        public static ExecuteWatchRequest inline​(String watchContent)
        Execute an inline watch
        Parameters:
        watchContent - the JSON definition of the watch
      • getId

        public String getId()
      • setIgnoreCondition

        public void setIgnoreCondition​(boolean ignoreCondition)
        Parameters:
        ignoreCondition - set if the condition for this execution be ignored
      • ignoreCondition

        public boolean ignoreCondition()
      • setRecordExecution

        public void setRecordExecution​(boolean recordExecution)
        Parameters:
        recordExecution - Sets if this execution be recorded in the history index
      • recordExecution

        public boolean recordExecution()
      • setAlternativeInput

        public void setAlternativeInput​(String alternativeInput)
        Parameters:
        alternativeInput - Sets the alternative input
      • setTriggerData

        public void setTriggerData​(String data)
        Parameters:
        data - A JSON string representing the data that should be associated with the trigger event.
      • setActionMode

        public void setActionMode​(String actionId,
                                  ExecuteWatchRequest.ActionExecutionMode actionMode)
        Sets the action execution mode for the give action (identified by its id).
        Parameters:
        actionId - the action id.
        actionMode - the execution mode of the action.
      • setDebug

        public void setDebug​(boolean debug)
        Parameters:
        debug - indicates whether the watch should execute in debug mode. In debug mode the returned watch record will hold the execution vars
      • isDebug

        public boolean isDebug()