alert.getActions( config-uri as String, names as String[] ) as Array
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. |
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