View Source Plausible.Stats.Query (Plausible v0.0.1)
Summary
Functions
Builds query from old-style params. New code should prefer Query.build
Removes top level filters matching any of passed prefix from the query.
Types
@type t() :: %Plausible.Stats.Query{ debug_metadata: term(), dimensions: term(), filters: term(), include: term(), include_imported: term(), interval: term(), latest_import_end_date: term(), legacy_breakdown: term(), metrics: term(), now: term(), order_by: term(), pagination: term(), period: term(), preloaded_goals: term(), remove_unavailable_revenue_metrics: term(), revenue_currencies: term(), sample_threshold: term(), skip_imported_reason: term(), timezone: term(), utc_time_range: term() }
Functions
Builds query from old-style params. New code should prefer Query.build
Removes top level filters matching any of passed prefix from the query.
Note that this doesn't handle cases with AND/OR/NOT and as such is discouraged from use.
@spec trace( %Plausible.Stats.Query{ debug_metadata: term(), dimensions: term(), filters: term(), include: term(), include_imported: term(), interval: term(), latest_import_end_date: term(), legacy_breakdown: term(), metrics: term(), now: term(), order_by: term(), pagination: term(), period: term(), preloaded_goals: term(), remove_unavailable_revenue_metrics: term(), revenue_currencies: term(), sample_threshold: term(), skip_imported_reason: term(), timezone: term(), utc_time_range: term() }, [atom()] ) :: %Plausible.Stats.Query{ debug_metadata: term(), dimensions: term(), filters: term(), include: term(), include_imported: term(), interval: term(), latest_import_end_date: term(), legacy_breakdown: term(), metrics: term(), now: term(), order_by: term(), pagination: term(), period: term(), preloaded_goals: term(), remove_unavailable_revenue_metrics: term(), revenue_currencies: term(), sample_threshold: term(), skip_imported_reason: term(), timezone: term(), utc_time_range: term() }