alert.ruleGetOptions

alert.ruleGetOptions(
   rule as Object
) as Object

Summary

This function returns the options of a given rule.

Parameters
rule The representation of a rule.

Example

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

  alert.ruleGetOptions(
       alert.getAllRules("http://acme.com/alert/message-board", cts.wordQuery("dna"))[0])

  => {"emailAddress": "me@somedomain.com"}
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy