Hemdal.Config.Command (Hemdal v1.2.1)
View SourceThe command structure is defining the command to be executed inside of each alert. The data used is:
namethe name of the script.typethe type of the script could beline,shellorscript. The first one let us define a command in a single line, the last one let us define a script, a multi-line code which will be copied and executed in the host, and the last one let us run a command interacting with a process for providing information in runtime. The typeshellis different to the others because it has no command to run and it should beinteractive, indeed it configures interactive by default astrue.interactivespecify if the command is handled in an interactive way (default: false).outputspecify if the output should be stored (default: true).idle_timeoutspecify the time between interactions that the interactive execution will be kept open in milliseconds (default: 60_000).decodesays if we should decode (JSON) the output or not (default: true).commandas the command line to be executed. It could be only one line or a multi-line script.
Summary
Functions
Callback implementation for Construct.cast/2.
Callback implementation for Construct.make/2.
Callback implementation for Construct.make!/2.
Types
Functions
Callback implementation for Construct.cast/2.
Callback implementation for Construct.make/2.
Callback implementation for Construct.make!/2.