View Source Runbox.Scenario.OutputAction.IncidentHistory (runbox v13.0.3)

Incident history.

The struct represents a change of an Incident in time. It carries information about how the Incident changed, all describe how the Incident looks after the change. The struct contains all necessary parameters to create an Incident history record.

Since Incident history is now synonymous to Events, event_* fields of this struct can be used to control how the final Event looks like.

Available fields

  • :status - status of the Incident
  • :severity - severity of the Incident
  • :timestamp - time of the change
  • :description - description of the change - what has happened, will be used as Event template
  • :attributes - (optional) significant additional attributes that changed with the Incident (usually metrics, like temperature, server load, distance). Can be empty.
  • :event_type - (optional) type of the underlying Event, if empty a default type incident_updated will be used
  • :event_actors - (optional) additional actors of the underlying Event. If empty no actors are defined.
  • :event_params - (optional) additional parameters of the Event. If empty no params are defined.
  • :event_origin_messages - (optional) list of references to raw messages linked with the underlying Event. If empty no raw messages are linked with the Event.

Summary

Types

t()

Incident history.

Types

@type t() :: %Runbox.Scenario.OutputAction.IncidentHistory{
  attributes: map() | nil,
  description: Runbox.Scenario.OutputAction.interpolable(),
  event_actors: Runbox.Scenario.OutputAction.Event.actors() | nil,
  event_origin_messages: [Runbox.Message.origin()] | nil,
  event_params: %{required(String.t()) => String.t()} | nil,
  event_type: String.t() | nil,
  severity: Runbox.Scenario.OutputAction.Incident.severity(),
  status: String.t(),
  timestamp: integer()
}

Incident history.

Note Incident history is synonymous to Events and thus carries similar parameters.

  • :status - status of the Incident
  • :severity - severity of the Incident
  • :timestamp - time of the change
  • :description - description of the change - what has happened, will be used as Event template
  • :attributes - (optional) significant additional attributes that changed with the Incident (usually metrics, like temperature, server load, distance). Can be empty.
  • :event_type - (optional) type of the underlying Event, if empty a default type incident_updated will be used
  • :event_actors - (optional) additional actors of the underlying Event. If empty no actors are defined.
  • :event_params - (optional) additional parameters of the Event. If empty no params are defined.
  • :event_origin_messages - (optional) list of references to raw messages linked with the underlying Event. If empty no raw messages are linked with the Event.