Toolbox.Incident.IdGenerator (toolbox v1.1.0)
Module provides functions to generate incident id.
Link to this section Summary
Functions
Generates incident id based on incident type, timestamp and serialization_vector.
Link to this section Functions
Link to this function
generate(incident_type, timestamp, vector)
Generates incident id based on incident type, timestamp and serialization_vector.
Serialization vector is list of attributes relevant which together with type and timestamp identifies given incident.
iex> Toolbox.Incident.IdGenerator.generate("/incident/type", 0123456789, ["/asset/type/1"]) "/incident/type/f4c3877a-d50b-3a16-b6ec-3ebb2b308d40"