View Source Hedgex (hedgex v0.3.4)
General methods for the Posthog API.
Summary
Functions
Add metadata properties
to users in PostHog.
Types
@type event() :: %{ :event => String.t(), :distinct_id => any(), optional(:properties) => map(), optional(:timestamp) => DateTime.t() }
Functions
@spec capture(event :: event()) :: :ok | {:error, :queue_full}
@spec decide(distinct_id :: any(), opts :: Keyword.t()) :: {:ok, map()} | {:error, Exception.t()}
See Hedgex.Api.decide/2
.
Add metadata properties
to users in PostHog.
@spec queue_size() :: pos_integer() | 0