Hemdal.Config.Alert.Command (Hemdal v1.0.5)

View Source

The command structure is defining the command to be executed inside of each alert. The data used is:

  • name the name of the script.
  • type the type of the script could be line, script or interactive. 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.
  • command as the command line to be executed. It could be only one line or a multi-line script.

Summary

Types

t()

@type t() :: %Hemdal.Config.Alert.Command{
  command: String.t(),
  name: String.t(),
  type: String.t()
}

Functions

cast(params, opts \\ [])

Callback implementation for Construct.cast/2.

make(params \\ %{}, opts \\ [])

Callback implementation for Construct.make/2.

make!(params \\ %{}, opts \\ [])

Callback implementation for Construct.make!/2.