Loading TOC...

MarkLogic Server 11.0 Product Documentation
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-uri The URI passed to alert.makeConfig.
names The names of the actions to retrieve, possibly using wildcards.

Example

  const 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
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.