MarkLogic 9 Product Documentation
alert:rule-action-query

alert:rule-action-query(
   $actions as xs:string*
) as cts:query

Summary

This function creates a query to find rules with any of the specified actions. Returns a query be passed to alert:get-my-rules or alert:get-all-rules .

Parameters
actions A list of action names for the rules to be retrieved.

Example

  xquery version "1.0-ml";
  import module namespace alert = "http://marklogic.com/xdmp/alert" 
		  at "/MarkLogic/alert.xqy";

  alert:get-all-rules("my-alert-config", 
	  alert:rule-action-query(("email", "sms")))
  =>Returns the rules with actions "email" and "sms"
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy