Loading TOC...

MarkLogic Server 11.0 Product Documentation
alert:find-matching-rules

alert:find-matching-rules(
   $config-uri as xs:string,
   $doc as node()
) as element(alert:rule)*

Summary

Returns a list of all rules associated with the specified config that match the specified document. You must have the alert-admin privilege to call this function.

Parameters
config-uri The alerting configuration from which to match rules.
doc The document to match against.

Example

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


  alert:find-matching-rules("http://myconfig/uri/", 
           fn:doc("/mydocs/doc.xml"))
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.