Loading TOC...

alert:get-my-rules

alert:get-my-rules(
   $config-uri as xs:string,
   $query as cts:query
) as element(alert:rule)*

Summary

This function returns all rules associated with the current user.

Parameters
$config-uri The URI passed to alert:make-config .
$query The cts:query with which to restrict the rules that are returned.

Required Privileges

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

Example

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

  alert:get-my-rules("my-collection", cts:word-query("my query"))
  

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