View Source Plausible.Stats.Query (Plausible v0.0.1)

Summary

Types

@type t() :: %Plausible.Stats.Query{
  date_range: term(),
  experimental_reduced_joins?: term(),
  experimental_session_count?: term(),
  filters: term(),
  imported_data_requested: term(),
  include_imported: term(),
  interval: term(),
  now: term(),
  period: term(),
  sample_threshold: term()
}

Functions

Link to this function

get_all_filters_by_prefix(query, prefix)

View Source
Link to this function

get_filter_by_prefix(query, prefix)

View Source
Link to this function

has_event_filters?(query)

View Source
Link to this function

include_imported?(query, site, requested?)

View Source
@spec include_imported?(t(), Plausible.Site.t(), boolean()) :: boolean()
Link to this function

put_filter(query, key, val)

View Source
Link to this function

remove_event_filters(query, opts)

View Source
@spec trace(
  %Plausible.Stats.Query{
    date_range: term(),
    experimental_reduced_joins?: term(),
    experimental_session_count?: term(),
    filters: term(),
    imported_data_requested: term(),
    include_imported: term(),
    interval: term(),
    now: term(),
    period: term(),
    sample_threshold: term()
  },
  [atom()]
) :: %Plausible.Stats.Query{
  date_range: term(),
  experimental_reduced_joins?: term(),
  experimental_session_count?: term(),
  filters: term(),
  imported_data_requested: term(),
  include_imported: term(),
  interval: term(),
  now: term(),
  period: term(),
  sample_threshold: term()
}