Loading TOC...

MarkLogic 9 Product Documentation
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-uri The URI passed to alert.makeConfig.
query The 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")) 
    

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