AuroraMeter.Schema.Counter (Aurora Meter v0.1.0)

View Source

A flushed snapshot of a usage counter for one {tenant_key, feature, period_start}. The live value lives in ETS; this row is the durable copy the flusher upserts on an interval.

Summary

Types

t()

@type t() :: %AuroraMeter.Schema.Counter{
  __meta__: term(),
  feature: term(),
  id: term(),
  inserted_at: term(),
  period_start: term(),
  tenant_key: term(),
  updated_at: term(),
  value: term()
}