View Source Plausible.Site (Plausible v0.0.1)

Site schema

Summary

Types

@type t() :: %Plausible.Site{
  __meta__: term(),
  allowed_event_props: term(),
  complete_import_ids: term(),
  conversions_enabled: term(),
  domain: term(),
  domain_changed_at: term(),
  domain_changed_from: term(),
  earliest_import_end_date: term(),
  earliest_import_start_date: term(),
  entry_type: term(),
  from_cache?: term(),
  funnels_enabled: term(),
  goals: term(),
  google_auth: term(),
  id: term(),
  import_data_loaded: term(),
  imported_data: term(),
  ingest_rate_limit_scale_seconds: term(),
  ingest_rate_limit_threshold: term(),
  inserted_at: term(),
  invitations: term(),
  locked: term(),
  members: term(),
  memberships: term(),
  monthly_report: term(),
  native_stats_start_at: term(),
  owner: term(),
  ownership: term(),
  pinned_at: term(),
  props_enabled: term(),
  public: term(),
  revenue_goals: term(),
  spike_notification: term(),
  stats_start_date: term(),
  timezone: term(),
  updated_at: term(),
  weekly_report: term()
}

Functions

Link to this function

changeset(site, attrs \\ %{})

View Source
Link to this function

crm_changeset(site, attrs)

View Source
Link to this function

remove_imported_data(site)

View Source
Link to this function

set_native_stats_start_at(site, val)

View Source
Link to this function

set_stats_start_date(site, val)

View Source
Link to this function

start_import(site, start_date, end_date, imported_source, status \\ "importing")

View Source
Link to this function

tz_offset(site, utc_now \\ DateTime.utc_now())

View Source
Link to this function

update_changeset(site, attrs \\ %{}, opts \\ [])

View Source