You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible/ingestion/counters/record.ex

18 lines
474 B
Elixir

defmodule Plausible.Ingestion.Counters.Record do
@moduledoc """
Clickhouse schema for storing ingest counter metrics
"""
use Ecto.Schema
@type t() :: %__MODULE__{}
@primary_key false
schema "ingest_counters" do
field :event_timebucket, :utc_datetime
field :site_id, Ch, type: "Nullable(UInt64)"
field :domain, Ch, type: "LowCardinality(String)"
field :metric, Ch, type: "LowCardinality(String)"
field :value, Ch, type: "UInt64"
end
end