MarkLogic Server 11.0 Product Documentation
alert.ruleGetId

alert.ruleGetId(
   rule as Object
) as (Number|String)

Summary

This function returns the ID of a given rule.

Parameters
rule The representation of a rule.

Example

  const alert = require("/MarkLogic/alert.xqy");

  alert.ruleGetId(
        alert.getAllRules("http://acme.com/alert/message-board", cts.wordQuery("dna"))[0])
  => 4506868239885649353
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy