Lecture à partir d’entités Intercom - AWS Glue

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.

Lecture à partir d’entités Intercom

Conditions préalables

  • Un objet Intercom à partir duquel vous souhaitez lire. Reportez-vous au tableau des entités prises en charge ci-dessous pour vérifier les entités disponibles.

Entités prises en charge

Entité API_Vversion Peut être filtré Limit prise en charge Order by prise en charge Select prise en charge* Partitionnement pris en charge
Admins v2.5 Non Non Non Oui Non
Companies v2.5 Non Oui Non Oui Non
Conversations v2.5 Oui Oui Oui Oui Oui
Attributs des données v2.5 Non Non Non Oui Non
Contacts v2.5 Oui Oui Oui Oui Oui
Segments v2.5 Non Non Non Oui Non
Étiquettes v2.5 Non Non Non Oui Non
Équipes v2.5 Non Non Non Oui Non

Exemple

Intercom_read = glueContext.create_dynamic_frame.from_options( connection_type="Intercom", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "company", "API_VERSION": "V2.5" } )

Détails des entités et des champs Intercom

Entité Champ Type de données Opérateurs pris en charge
Admins type String NA
Admins id String NA
Admins avatar Struct NA
Admins name String NA
Admins e-mail String NA
Admins away_mode_enabled Booléen NA
Admins away_mode_reassign Booléen NA
Admins has_inbox_seat Booléen NA
Admins teams_ids List NA
Admins job_title String NA
Companies type String NA
Companies id String NA
Companies app_id String NA
Companies created_at DateTime NA
Companies remote_created_at DateTime NA
Companies updated_at DateTime NA
Companies last_request_at DateTime NA
Companies plan Struct NA
Companies company_id String NA
Companies name String NA
Companies custom_attributes Struct NA
Companies session_count Entier NA
Companies monthly_spend Entier NA
Companies user_count Entier NA
Companies industry String NA
Companies size Entier NA
Companies website String NA
Companies tags Struct NA
Companies segments Struct NA
Contacts id String EQUAL_TO.NOT_EQUAL_TO
Contacts type String NA
Contacts workspace_id String NA
Contacts external_id String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts rôle String EQUAL_TO.NOT_EQUAL_TO
Contacts e-mail String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts phone String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts name String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts avatar String NA
Contacts owner_id Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Contacts social_profiles Struct NA
Contacts has_hard_bounced Booléen EQUAL_TO
Contacts marked_email_as_spam Booléen EQUAL_TO
Contacts unsubscribed_from_emails Booléen EQUAL_TO
Contacts created_at DateTime EQUAL_TO, GREATER_THAN, LESS_THAN
Contacts updated_at DateTime EQUAL_TO, GREATER_THAN, LESS_THAN
Contacts signed_up_at DateTime EQUAL_TO, GREATER_THAN, LESS_THAN
Contacts last_seen_at DateTime EQUAL_TO, GREATER_THAN, LESS_THAN
Contacts last_replied_at DateTime EQUAL_TO, GREATER_THAN, LESS_THAN
Contacts last_contacted_at DateTime EQUAL_TO, GREATER_THAN, LESS_THAN
Contacts last_email_opened_at DateTime EQUAL_TO, GREATER_THAN, LESS_THAN
Contacts last_email_clicked_at DateTime EQUAL_TO, GREATER_THAN, LESS_THAN
Contacts language_override String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts browser String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts browser_version String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts browser_language String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts os String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts location Struct NA
Contacts location_country String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts location_region String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts location_city String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts android_app_name String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts android_app_version String NA
Contacts android_device String NA
Contacts android_os_version String NA
Contacts android_sdk_version String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts android_last_seen_at Date NA
Contacts ios_app_name String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts ios_app_version String NA
Contacts ios_device String NA
Contacts ios_os_version String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts ios_sdk_version String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Contacts ios_last_seen_at DateTime NA
Contacts custom_attributes Struct NA
Contacts tags Struct NA
Contacts notes Struct NA
Contacts companies Struct NA
Contacts unsubscribed_from_sms Booléen NA
Contacts sms_consent Booléen NA
Contacts opted_out_subscription_types Struct NA
Contacts referrer String NA
Contacts utm_campaign String NA
Contacts utm_content String NA
Contacts utm_medium String NA
Contacts utm_source String NA
Contacts utm_term String NA
Conversations type String NA
Conversations id Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations created_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations updated_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations source Struct NA
Conversations source_id String EQUAL_TO, NOT_EQUAL_TO
Conversations source_type String EQUAL_TO, NOT_EQUAL_TO,
Conversations source_delivered_as String EQUAL_TO, NOT_EQUAL_TO,
Conversations source_subject String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations source_body String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations source_author_id String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations source_author_type String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations source_author_name String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations source_author_email String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations source_url String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations contacts Struct NA
Conversations teammates Struct NA
Conversations title String NA
Conversations admin_assignee_id Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations team_assignee_id Entier CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations custom_attributes Struct NA
Conversations ouvrir Booléen EQUAL_TO
Conversations state String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations lire Booléen EQUAL_TO
Conversations waiting_since DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations snoozed_until DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations tags Struct NA
Conversations first_contact_reply Struct NA
Conversations priority String EQUAL_TO, NOT_EQUAL_TO
Conversations topics Struct NA
Conversations sla_applied Struct NA
Conversations conversation_rating Struct NA
Conversations conversation_rating_requested_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations conversation_rating_replied_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations conversation_rating_score Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations conversation_rating_remark String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations conversation_rating_contact_id String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations conversation_rating_admin_id String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations statistics Struct NA
Conversations statistics_time_to_assignment Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_time_to_admin_reply Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_time_to_first_close Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_time_to_last_close Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_median_time_to_reply Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_first_contact_reply_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_first_assignment_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_first_admin_reply_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_first_close_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_last_assignment_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_last_assignment_admin_reply_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_last_contact_reply_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_last_admin_reply_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_last_close_at DateTime EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_last_closed_by_id String CONTAINS, EQUAL_TO, NOT_EQUAL_TO
Conversations statistics_count_reopens Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_count_assignments Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations statistics_count_conversation_parts Entier EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN
Conversations conversation_parts List NA
Attributs des données id Entier NA
Attributs des données type String NA
Attributs des données modèle String NA
Attributs des données name String NA
Attributs des données full_name String NA
Attributs des données étiquette String NA
Attributs des données description String NA
Attributs des données data_type String NA
Attributs des données options List NA
Attributs des données api_writable Booléen NA
Attributs des données ui_writable Booléen NA
Attributs des données personnalisé Booléen NA
Attributs des données archived Booléen NA
Attributs des données created_at Booléen NA
Attributs des donnéesupdated_atDateTimeNA
Attributs des donnéesadmin_idStringNA
SegmentstypeStringNA
SegmentsidStringNA
SegmentsnameStringNA
Segmentscreated_atDateTimeNA
Segmentsupdated_atDateTimeNA
Segmentsperson_typeStringNA
SegmentscountEntierNA
ÉtiquettestypeStringNA
ÉtiquettesidStringNA
ÉtiquettesnameStringNA
ÉquipestypeStringNA
ÉquipesidStringNA
ÉquipesnameStringNA
Équipesadmin_idsListNA

Requêtes de partitionnement

Les options Spark supplémentaires PARTITION_FIELD, LOWER_BOUND, UPPER_BOUND et NUM_PARTITIONS peuvent être indiquées si vous souhaitez utiliser la simultanéité dans Spark. Avec ces paramètres, la requête d’origine serait divisée en NUM_PARTITIONS nombres de sous-requêtes pouvant être exécutées simultanément par les tâches Spark.

  • PARTITION_FIELD : le nom du champ à utiliser pour partitionner la requête.

  • LOWER_BOUND : une valeur limite inférieure inclusive du champ de partition choisi.

    Pour le champ Date, nous acceptons le format de date Spark utilisé dans les requêtes SQL Spark. Exemples de valeurs valides : "2024-02-06".

  • UPPER_BOUND : une valeur limite supérieure exclusive du champ de partition choisi.

  • NUM_PARTITIONS : nombre de partitions.

Les détails relatifs à la prise en charge des champs de partitionnement par entité sont présentés dans le tableau suivant.

Nom de l'entité Champ de partitionnement Type de données
Contacts created_at, updated_at,last_seen_at DateTime
Conversations id Entier
Conversations created_at, updated_at DateTime

Exemple

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" } )