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

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 or script. The first one let us define a command in a single line and the last one let us define a script, a multi-line code which will be copied and executed in the host.
  • 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.