Menu dokumentacji

Amplitude#

Połącz Amplitude za pomocą klucza API i sekretu oraz ustaw datę rozpoczęcia importu historycznego. Źródło zapisuje 1 stałą tabelę w schemacie titan.amplitude.

sql
select
  uuid,
  event_id,
  event_type
from titan.amplitude.events
limit 10

Połącz Amplitude#

  1. Otwórz Aplikacje, wybierz Połącz aplikację, a następnie Amplitude.

  2. Podaj klucz API, sekret i datę rozpoczęcia importu historycznego.

  3. Sprawdź tabele, a następnie zapisz źródło.

  4. Obserwuj Historię synchronizacji, aż pierwsze uruchomienie się zakończy.

Dane uwierzytelniające są przechowywane jako sekrety. Nigdy nie stają się kolumnami jeziora ani nie pojawiają się w wynikach zapytań.

Sposób synchronizacji#

Pierwsze uruchomienie zaczyna się od ustawionej daty importu historycznego. Kolejne są kontynuowane od ostatniego ukończonego przedziału.

Nowe źródło synchronizuje się po połączeniu, a następnie zgodnie z harmonogramem. Domyślny interwał cykliczny wynosi 4 godziny. Przerwane uruchomienie zachowuje ukończone postępy i jest bezpiecznie ponawiane.

Każda tabela jeziora ma też kolumny systemowe _synced_at i _deleted; poniższa dokumentacja kolumn obejmuje wyłącznie kolumny źródłowe.

Dokumentacja tabel#

events#

titan.amplitude.events ma 40 kolumn źródłowych.

amplitude.events40 kolumn
uuidstringpk

Pole źródłowe uuid.

event_idinteger

Pole źródłowe event_id.

event_typestring

Pole źródłowe event_type.

event_timedatetime

Pole źródłowe event_time.

user_idstring

Pole źródłowe user_id.

session_idinteger

Pole źródłowe session_id.

amplitude_idinteger

Pole źródłowe amplitude_id.

amplitude_attribution_idsstring

Pole źródłowe amplitude_attribution_ids.

server_received_timedatetime

Pole źródłowe server_received_time.

server_upload_timedatetime

Pole źródłowe server_upload_time.

client_upload_timedatetime

Pole źródłowe client_upload_time.

client_event_timedatetime

Pole źródłowe client_event_time.

sample_ratestring

Pole źródłowe sample_rate.

start_versionstring

Pole źródłowe start_version.

appinteger

Pole źródłowe app.

librarystring

Pole źródłowe library.

device_carrierstring

Pole źródłowe device_carrier.

processed_timedatetime

Pole źródłowe processed_time.

version_namestring

Pole źródłowe version_name.

payingboolean

Pole źródłowe paying.

platformstring

Pole źródłowe platform.

os_namestring

Pole źródłowe os_name.

os_versionstring

Pole źródłowe os_version.

device_idstring

Pole źródłowe device_id.

device_typestring

Pole źródłowe device_type.

device_familystring

Pole źródłowe device_family.

languagestring

Pole źródłowe language.

countrystring

Pole źródłowe country.

regionstring

Pole źródłowe region.

citystring

Pole źródłowe city.

dmastring

Pole źródłowe dma.

ip_addressstring

Pole źródłowe ip_address.

datajson

Pole źródłowe data.

event_propertiesjson

Pole źródłowe event_properties.

user_propertiesjson

Pole źródłowe user_properties.

group_propertiesjson

Pole źródłowe group_properties.

groupsjson

Pole źródłowe groups.

location_latfloat

Pole źródłowe location_lat.

location_lngfloat

Pole źródłowe location_lng.

insert_idstring

Pole źródłowe insert_id.

Usunięcia i historia#

Wiersze są scalane według klucza źródłowego. Gdy źródło może potwierdzić usunięcie wiersza, Supernova zachowuje go i ustawia _deleted, dzięki czemu zapytania mogą zdecydować, czy uwzględniać historię. Aby pobierać bieżący stan, filtruj zapytania przez where not _deleted.