Runbox.Runtime.OutputAction (runbox v9.0.0)
Output Action for internal use by Runtime
Link to this section Summary
Functions
Returns true if valid output action body.
Creates a new output action.
Returns true if valid output action.
Link to this section Types
@type t() :: %Runbox.Runtime.OutputAction{ body: Runbox.Scenario.OutputAction.oa_params() | Runbox.Scenario.OutputAction.BadOutputAction.t(), run_id: String.t(), scenario_id: String.t(), timestamp: integer() }
Runtime Output Action
Link to this section Functions
Link to this function
is_oa_body?(params)
@spec is_oa_body?(Runbox.Scenario.OutputAction.oa_params() | any()) :: boolean()
Returns true if valid output action body.
Link to this function
new(params, timestamp, scenario_id, run_id)
@spec new( params :: Runbox.Scenario.OutputAction.oa_params(), integer(), String.t(), String.t() ) :: t()
Creates a new output action.
To produce a valid output action, the params have to be one of the accepted
structs. See the documentation of the particular structs for details.
If the params are not one of the accepted structs or some of the fields do
not pass validation, it returns an output action with body set to
Runbox.Scenario.OutputAction.BadOutputAction.t/0 with original params
inside.
Link to this function
valid?(arg1)
Returns true if valid output action.