alert.getAllRules( config-uri as String, query as cts.query ) as Array
This function returns all rules visible to 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.
|
http://marklogic.com/xdmp/privileges/xdmp-alert-user
const alert = require("/MarkLogic/alert.xqy"); alert.getAllRules("http://acme.com/alert/message-board", cts.wordQuery("dna"))