alert:rule-name-query

alert:rule-name-query(
   $names as xs:string*
) as cts:query

Summary

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

Parameters
names A list of 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-name-query(("dna-alert", "rna-alert")))
  =>Returns the rules with names "dna-alert" or "rna-alert"
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy