Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

send_directive(<name>) with options

Send a directive to the event generator. Action modifiers are used to send directive options:

send_directive("my_directive", {"body":"Hello World"})

The <name> can be any text that identifies the directive to the event generator. 

The options are given as a map. The map can include any keys and values that the developer wishes. 

The following ruleset shows send_directive() being used

ruleset a1299x188 {
	meta {
		name "Send Directive Example"
		author "nathan cerny"
		logging on
	}
	rule directive_example {
		select when webhook directive_example
		send_directive("text", {"body":"my text response"});
	}
}
  • No labels