View Source Membrane.RTC.Engine.TimescaleDB.Model (Membrane RTC Engine TimescaleDB plugin v0.2.0)

Module responsible for putting data to TimescaleDB.

Link to this section Summary

Functions

Takes Membrane.RTC.Engine.Metrics.rtc_engine_report() and puts it to database.

Takes count and interval. Deletes records in database older than count * interval. interval might be "year", "month", "week", "day", "hour", "minute", "second", "millisecond" or "microsecond".

Link to this section Functions

Link to this function

insert_report(repo, report)

View Source
@spec insert_report(module(), Membrane.RTC.Engine.TimescaleDB.report()) :: :ok

Takes Membrane.RTC.Engine.Metrics.rtc_engine_report() and puts it to database.

Link to this function

remove_outdated_records(repo, count, interval)

View Source
@spec remove_outdated_records(module(), non_neg_integer(), String.t()) :: :ok

Takes count and interval. Deletes records in database older than count * interval. interval might be "year", "month", "week", "day", "hour", "minute", "second", "millisecond" or "microsecond".