alert:rule-name-query( $names as xs:string* ) as cts:query
This function creates a query to find rules
with any of the specified names. Returns a query to
be passed to alert:get-my-rules
or
alert:get-all-rules
.
Parameters | |
---|---|
names | A list of names for the rules to be retrieved. |
xquery version "1.0-ml"; import module namespace alert = "http://marklogic.com/xdmp/alert" at "/MarkLogic/alert.xqy"; alert:get-all-rules("my-alert-config", alert:rule-name-query(("dna-alert", "rna-alert"))) =>Returns the rules with names "dna-alert" or "rna-alert"