Menu dokumentacji

SendGrid#

Połącz SendGrid za pomocą klucza API. Źródło zapisuje 6 stałych tabel w schemacie titan.sendgrid.

sql
select
  id,
  email,
  first_name
from titan.sendgrid.contacts
limit 10

Połącz SendGrid#

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

  2. Podaj klucz API.

  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#

Kontakty, listy, kampanie, szablony wiadomości e-mail, blokady wysyłki i globalne rezygnacje z subskrypcji są synchronizowane razem.

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#

contacts#

titan.sendgrid.contacts ma 9 kolumn źródłowych.

sendgrid.contacts9 kolumn
idstringpk

Pole źródłowe id.

emailstring

Pole źródłowe email.

first_namestring

Pole źródłowe firstName.

last_namestring

Pole źródłowe lastName.

citystring

Pole źródłowe city.

countrystring

Pole źródłowe country.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

custom_fieldsjson

Pole źródłowe customFields.

lists#

titan.sendgrid.lists ma 5 kolumn źródłowych.

sendgrid.lists5 kolumn
idstringpk

Pole źródłowe id.

namestring

Pole źródłowe name.

contact_countinteger

Pole źródłowe contactCount.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

campaigns#

titan.sendgrid.campaigns ma 6 kolumn źródłowych.

sendgrid.campaigns6 kolumn
idstringpk

Pole źródłowe id.

namestring

Pole źródłowe name.

statusstring

Pole źródłowe status.

send_atdatetime

Pole źródłowe sendAt.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

templates#

titan.sendgrid.templates ma 4 kolumny źródłowe.

sendgrid.templates4 kolumny
idstringpk

Pole źródłowe id.

namestring

Pole źródłowe name.

generationstring

Pole źródłowe generation.

updated_atdatetime

Pole źródłowe updatedAt.

suppressions#

titan.sendgrid.suppressions ma 4 kolumny źródłowe.

sendgrid.suppressions4 kolumny
emailstringpk

Pole źródłowe email.

reasonstring

Pole źródłowe reason.

statusstring

Pole źródłowe status.

created_atdatetime

Pole źródłowe createdAt.

global_unsubscribes#

titan.sendgrid.global_unsubscribes ma 2 kolumny źródłowe.

sendgrid.global_unsubscribes2 kolumny
emailstringpk

Pole źródłowe email.

createddatetime

Pole źródłowe created.

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.