Membrane.Telemetry.TimescaleDB.Model.ComponentPath (Membrane Telemetry TimescaleDB v0.1.0) View Source

A model representing a component path of an element/bin/pipeline.

A component path is a string which consists of the following pipeline/bin/element names separated by '/' characters.

The model is used to reduce the space used by the Measurement model as hundreds of measurements can have the same component path used to identify the source of the measurement and instead of storing the whole path string for each measurement we just store the path once and the Measurement model is responsible for storing just an integer value representing path id.

Link to this section Summary

Link to this section Types

Specs

t() :: %Membrane.Telemetry.TimescaleDB.Model.ComponentPath{
  __meta__: term(),
  id: term(),
  path: String.t()
}

Link to this section Functions

Link to this function

changeset(schema, params)

View Source

Specs

changeset(t(), map()) :: Ecto.Changeset.t()