Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.
Prerequisiti
-
Un oggetto Intercom da cui desideri leggere. Fate riferimento alla tabella delle entità supportate riportata di seguito per verificare le entità disponibili.
Entità supportate
Entità | API_Vversione | Può essere filtrato | Supporta Limit | Supporta Order By | Supporta Select * | Supporta il partizionamento |
---|---|---|---|---|---|---|
Admins | v2.5 | No | No | No | Sì | No |
Aziende | v2.5 | No | Sì | No | Sì | No |
Conversazioni | v2.5 | Sì | Sì | Sì | Sì | Sì |
Attributi dei dati | v2.5 | No | No | No | Sì | No |
Contatti | v2.5 | Sì | Sì | Sì | Sì | Sì |
Segmenti | v2.5 | No | No | No | Sì | No |
Tag | v2.5 | No | No | No | Sì | No |
Team | v2.5 | No | No | No | Sì | No |
Esempio
Intercom_read = glueContext.create_dynamic_frame.from_options(
connection_type="Intercom",
connection_options={
"connectionName": "connectionName",
"ENTITY_NAME": "company",
"API_VERSION": "V2.5"
}
)
Informazioni sull'entità e sul campo dell'interfono
Entità | Campo | Tipo di dati | Operatori supportati |
---|---|---|---|
Admins | tipo | Stringa | N/A |
Admins | id | Stringa | N/A |
Admins | avatar | Struct | N/A |
Admins | nome | Stringa | N/A |
Admins | Stringa | N/A | |
Admins | away_mode_enabled | Booleano | N/A |
Admins | away_mode_riassegna | Booleano | N/A |
Admins | ha un posto a sedere | Booleano | N/A |
Admins | teams_id | Elenco | N/A |
Admins | titolo_lavoro | Stringa | N/A |
Aziende | tipo | Stringa | N/A |
Aziende | id | Stringa | N/A |
Aziende | app_id | Stringa | N/A |
Aziende | created_at | DateTime | N/A |
Aziende | remote_created_at | DateTime | N/A |
Aziende | aggiornato_at | DateTime | N/A |
Aziende | last_request_at | DateTime | N/A |
Aziende | piano | Struct | N/A |
aziende | id_azienda | Stringa | N/A |
Aziende | nome | Stringa | N/A |
Aziende | attributi_personalizzati | Struct | N/A |
Aziende | session_count | Numero intero | N/A |
Aziende | spesa mensile | Numero intero | N/A |
Aziende | user_count | Numero intero | N/A |
Aziende | industria | Stringa | N/A |
aziende | formato | Numero intero | N/A |
Aziende | website | Stringa | N/A |
Aziende | tags | Struct | N/A |
Aziende | segmenti | Struct | N/A |
Contatti | id | Stringa | EQUAL_TO.NOT_EQUAL_TO |
Contatti | tipo | Stringa | N/A |
Contatti | workspace_id | Stringa | N/A |
Contatti | external_id | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | role | Stringa | EQUAL_A.NOT_EQUAL_TO |
Contatti | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO | |
Contatti | telefono | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | nome | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | avatar | Stringa | N/A |
Contatti | owner_id | Numero intero | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Contatti | profili_sociali | Struct | N/A |
Contatti | has_hard_bounced | Booleano | EQUAL_TO |
Contatti | mail_contrassegnato come spam | Booleano | EQUAL_TO |
Contatti | annullata l'iscrizione alle email | Booleano | EQUAL_TO |
Contatti | created_at | DateTime | UGUALE A, MAGGIORE DI, MINORE DI |
Contatti | aggiornato_at | DateTime | UGUALE A, MAGGIORE_DI, MINORE_DI |
Contatti | iscritto_presso | DateTime | UGUALE A, MAGGIORE_DI, MINORE_DI |
Contatti | last_seen_at | DateTime | UGUALE A, MAGGIORE_DI, MINORE_DI |
Contatti | last_responed_at | DateTime | UGUALE A, MAGGIORE DI, MINORE DI |
Contatti | last_contacted_at | DateTime | UGUALE A, MAGGIORE DI, MINORE DI |
Contatti | last_email_opened_at | DateTime | UGUALE A, MAGGIORE DI, MINORE DI |
Contatti | last_email_clicked_at | DateTime | UGUALE A, MAGGIORE DI, MINORE DI |
Contatti | language_override | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | browser | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | versione_browser | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | linguaggio_browser | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | so | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | posizione | Struct | N/A |
Contatti | location_country | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | regione_posizione | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | luogo_città | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | nome_app androide | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | versione android_app | Stringa | N/A |
Contatti | dispositivo_androide | Stringa | N/A |
Contatti | versione android_os_ | Stringa | N/A |
Contatti | versione_android_sdk | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | android_last_seen_it | Data | N/A |
Contatti | nome_app ios_ | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | versione ios_app | Stringa | N/A |
Contatti | dispositivo_ios_ | Stringa | N/A |
Contatti | versione ios_os_ | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | versione_ios_sdk | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Contatti | ios_last_seen_it | DateTime | N/A |
Contatti | attributi_personalizzati | Struct | N/A |
Contatti | tags | Struct | N/A |
Contatti | notes | Struct | N/A |
Contatti | aziende | Struct | N/A |
Contatti | unsubscribed_from_sms | Booleano | N/A |
Contatti | sms_consenso | Booleano | N/A |
Contatti | tipi_di sottoscrizione opted_out_ | Struct | N/A |
Contatti | referente | Stringa | N/A |
Contatti | utm_campaign | Stringa | N/A |
Contatti | utm_content | Stringa | N/A |
Contatti | utm_medium | Stringa | N/A |
Contatti | utm_source | Stringa | N/A |
Contatti | utm_term | Stringa | N/A |
Conversazioni | tipo | Stringa | N/A |
Conversazioni | id | Numero intero | EQUAL_TO, NON_EQUAL_TO, MAGGIORE DI, MINORE DI |
Conversazioni | created_at | DateTime | EQUAL_TO, NON_EQUAL_TO, MAGGIORE DI, MINORE DI |
Conversazioni | aggiornato_at | DateTime | EQUAL_TO, NON_EQUAL_TO, MAGGIORE DI, MINORE DI |
Conversazioni | source | Struct | N/A |
Conversazioni | source_id | Stringa | EQUAL_TO, NON_EQUAL_TO |
Conversazioni | source_type | Stringa | EQUAL_TO, NON_EQUAL_TO, |
Conversazioni | source_delivered_as | Stringa | UGUALE_A, NON_EQUAL_A, |
Conversazioni | source_subject | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | source_body | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | source_author_id | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | tipo_autore di origine | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | nome_autore della fonte | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | source_author_email | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | source_url | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | contatta | Struct | N/A |
Conversazioni | compagni di squadra | Struct | N/A |
conversazioni | titolo | Stringa | N/A |
Conversazioni | admin_assignee_id | Numero intero | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | team_assignee_id | Numero intero | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | attributi_personalizzati | Struct | N/A |
Conversazioni | aperto | Booleano | EQUAL_TO |
Conversazioni | stato | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | read | Booleano | EQUAL_TO |
Conversazioni | in attesa da | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | snoozed_until | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | tags | Struct | N/A |
Conversazioni | primo_contact_reply | Struct | N/A |
Conversazioni | priority | Stringa | EQUAL_TO, NON_EQUAL_TO |
Conversazioni | topics | Struct | N/A |
Conversazioni | sla_applied | Struct | N/A |
Conversazioni | valutazione_conversazione | Struct | N/A |
Conversazioni | conversation_rating_requested_at | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | conversation_rating_replied_at | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | conversation_rating_score | Numero intero | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | conversation_rating_remark | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | conversation_rating_contact_id | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | conversation_rating_admin_id | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | statistiche | Struct | N/A |
Conversazioni | statistics_tempo_to_assignment | Numero intero | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_time_to_admin_reply | Numero intero | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistice_tempo_per_prima_chiusura | Numero intero | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_time_to_last_close | Numero intero | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_median_time_to_reply | Numero intero | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_first_contact_reply_at | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_first_assignment_at | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_first_admin_reply_at | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_first_close_at | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_last_assignment_at | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_last_assignment_admin_reply_at | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_last_contact_reply_at | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_last_admin_reply_at | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_last_close_at | DateTime | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_last_closed_by_id | Stringa | CONTIENE, EQUAL_TO, NOT_EQUAL_TO |
Conversazioni | statistics_count_reopens | Numero intero | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_count_assignments | Numero intero | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | statistics_count_conversation_parts | Numero intero | UGUALE A, NON_UGUALE A, MAGGIORE DI, MINORE DI |
Conversazioni | parti di conversazione | Elenco | N/A |
Attributi dei dati | id | Numero intero | N/A |
Attributi dei dati | tipo | Stringa | N/A |
Attributi dei dati | modello | Stringa | N/A |
Attributi dei dati | nome | Stringa | N/A |
Attributi dei dati | nome_completo | Stringa | N/A |
Attributi dei dati | etichetta | Stringa | N/A |
Attributi dei dati | description | Stringa | N/A |
Attributi dei dati | data_type | Stringa | N/A |
Attributi dei dati | options | Elenco | N/A |
Attributi dei dati | api_writable | Booleano | N/A |
Attributi dei dati | ui_writable | Booleano | N/A |
Attributi dei dati | personalizzato | Booleano | N/A |
Attributi dei dati | archived | Booleano | N/A |
Attributi dei dati | created_at | Booleano | N/A |
Attributi dei dati | aggiornato_at | DateTime | N/A |
Attributi dei dati | admin_id | Stringa | N/A |
Segmenti | tipo | Stringa | N/A |
Segmenti | id | Stringa | N/A |
Segmenti | nome | Stringa | N/A |
Segmenti | created_at | DateTime | N/A |
Segmenti | aggiornato_at | DateTime | N/A |
Segmenti | tipo_persona | Stringa | N/A |
Segmenti | count | Numero intero | N/A |
Tag | tipo | Stringa | N/A |
Tag | id | Stringa | N/A |
Tag | nome | Stringa | N/A |
Team | tipo | Stringa | N/A |
Team | id | Stringa | N/A |
Team | nome | Stringa | N/A |
Team | admin_ids | Elenco | N/A |
Interrogazioni di partizionamento
Se desideri utilizzare la concorrenza in Spark PARTITION_FIELD
LOWER_BOUND
UPPER_BOUND
, NUM_PARTITIONS
possono essere fornite opzioni Spark aggiuntive,,. Con questi parametri, la query originale verrebbe suddivisa in un NUM_PARTITIONS
numero di sottoquery che possono essere eseguite contemporaneamente dalle attività di Spark.
-
PARTITION_FIELD
: il nome del campo da utilizzare per partizionare la query. -
LOWER_BOUND
: un valore limite inferiore inclusivo del campo di partizione scelto.Per la data, accettiamo il formato di data Spark utilizzato nelle query SQL di Spark. Esempio di valori validi:.
"2024-02-06"
-
UPPER_BOUND
: un valore limite superiore esclusivo del campo di partizione scelto. -
NUM_PARTITIONS
: numero di partizioni.
I dettagli del supporto del campo di partizionamento per entità sono riportati nella tabella seguente.
Nome entità | Campo di partizionamento | Tipo di dati |
---|---|---|
Contatti | created_at, updated_at, last_seen_it | DateTime |
Conversazioni | id | Numero intero |
Conversazioni | created_at, updated_at | DateTime |
Esempio
Intercom_read = glueContext.create_dynamic_frame.from_options(
connection_type="Intercom",
connection_options={
"connectionName": "connectionName",
"ENTITY_NAME": "conversation",
"API_VERSION": "V2.5",
"PARTITION_FIELD": "created_at"
"LOWER_BOUND": "2022-07-13T07:55:27.065Z"
"UPPER_BOUND": "2022-08-12T07:55:27.065Z"
"NUM_PARTITIONS": "2"
}
)