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

Model representing a single measurement of an arbitrary metric.

Besides metric name and measurement value, the record takes a component_path_id to identify the source of the measurement, for more go see ComponentPath model's doc.

Link to this section Summary

Link to this section Types

Specs

t() :: %Membrane.Telemetry.TimescaleDB.Model.Measurement{
  __meta__: term(),
  component_path_id: non_neg_integer() | nil,
  metric: String.t() | nil,
  time: NaiveDateTime.t() | nil,
  value: integer() | nil
}

Link to this section Functions

Link to this function

changeset(schema, params)

View Source

Specs

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