Loading TOC...

MarkLogic 9 Product Documentation
alert:get-all-rules

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

Summary

This function returns all rules visible to 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-all-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.