Loading TOC...

alert.getMyRules

alert.getMyRules(
   $config-uri as String,
   $query as cts.query
) as Array

Summary

This function returns all rules associated with the current user.

Parameters
$config-uriThe URI passed to alert.makeConfig.
$queryThe cts.query with which to restrict the rules that are returned.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-alert-user

Example

   var alert = require("/MarkLogic/alert.xqy");

   alert.getMyRules("http://acme.com/alert/message-board", cts.wordQuery("dna")) 
    

Comments

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