View Source Hemdal.Config.Alert.Command (Hemdal v1.0.0)

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.

Link to this section Summary

Link to this section Types

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

Link to this section Functions

Link to this function

cast(params, opts \\ [])

View Source

Callback implementation for Construct.cast/2.

Link to this function

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

View Source

Callback implementation for Construct.make!/2.

Link to this function

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

View Source

Callback implementation for Construct.make/2.