Loading TOC...

alert.findMatchingRules

alert.findMatchingRules(
   $config-uri as String,
   $doc as Node
) as Array

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-uriThe alerting configuration from which to match rules.
$docThe document to match against.

Example

  var alert = require("/MarkLogic/alert.xqy");
 
  alert.findMatchingRules("http://acme.com/alert/message-board",
                          fn.doc("/xml/foo.xml"))
  

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy