Messages sent per source address and day, for the warm-up schedules
and daily limits of Sovite.Core.IPPools.
Summary
Functions
Adds messages to the count of address on day.
The counts of day, by address.
Deletes the counts of days before day. Returns how many.
Every count, newest day first.
Functions
@spec add(Sovite.Core.Repo.t(), String.t(), Date.t(), pos_integer()) :: {:ok, Sovite.Core.Repo.Schemas.IPAddressCount.t()} | {:error, Ecto.Changeset.t()}
Adds messages to the count of address on day.
@spec day(Sovite.Core.Repo.t(), Date.t()) :: %{ required(String.t()) => non_neg_integer() }
The counts of day, by address.
@spec delete_before(Sovite.Core.Repo.t(), Date.t()) :: non_neg_integer()
Deletes the counts of days before day. Returns how many.
@spec list(Sovite.Core.Repo.t()) :: [Sovite.Core.Repo.Schemas.IPAddressCount.t()]
Every count, newest day first.