Loading TOC...

alert.getActions

alert.getActions(
   $config-uri as String,
   $names as String[]
) as Array

Summary

This function retrieves all the named actions in the specified config URI. Returns a list of actions.

Parameters
$config-uriThe URI passed to alert.makeConfig.
$namesThe names of the actions to retrieve, possibly using wildcards.

Example

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

  alert.getActions("http://acme.com/alert/message-board", ["sms", "email"])
  => Returns the JSON representation of the actions for SMS and email
  alert.getActions("http://acme.com/alert/message-board",("*"))
  => Returns all actions in the specified alerting configuration
  

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy