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

Link to this section Summary

Link to this section Types

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

Link to this section Functions

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(),
  filters: term(),
  imported_data_requested: term(),
  include_imported: term(),
  interval: term(),
  period: term(),
  sample_threshold: term()
}) :: %Plausible.Stats.Query{
  date_range: term(),
  filters: term(),
  imported_data_requested: term(),
  include_imported: term(),
  interval: term(),
  period: term(),
  sample_threshold: term()
}