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

Lecture à partir d’entités SendGrid

Prérequis

Un objet SendGrid à partir duquel vous souhaitez lire. Vous aurez besoin du nom de l’objet, comme lists, singlesends ou segments.

Entités prises en charge pour la source :

Entité Peut être filtré Limit prise en charge Order by prise en charge Select prise en charge* Partitionnement pris en charge
Listes Non Oui Non Oui Non
Single Sends Oui Oui Non Oui Non
Marketing Campaign Stats-Automations Oui Oui Non Oui Non
Marketing Campaign Stats-Single Sends Oui Oui Non Oui Non
Segments Oui Non Non Oui Non
Contacts Oui Non Non Oui Non
Catégorie Non Non Non Oui Non
Statistiques Oui Non Non Oui Non
Unsubscribe Groups Oui Non Non Oui Non

Exemple :

sendgrid_read = glueContext.create_dynamic_frame.from_options( connection_type="sendgrid", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "lists", "API_VERSION": "v3", "INSTANCE_URL": "instanceUrl" }

Détails des entités et des champs SendGrid :

Entités avec métadonnées statiques :

Entité Champ Type de données Opérateurs pris en charge
Listes id Chaîne N/A
name Chaîne N/A
contact_count Entier N/A
_metadata Struct N/A
Single Sends id Chaîne N/A
name Chaîne EQUAL_TO
abtest Struct N/A
status Chaîne EQUAL_TO
categories Liste EQUAL_TO
send_at Chaîne N/A
is_abtest Booléen N/A
updated_at Chaîne N/A
created_at Chaîne N/A
canaux Liste N/A
Marketing Campaign Stats-Automations id Chaîne N/A
aggregation Chaîne N/A
step_id Chaîne N/A
stats Struct N/A
automation_ids Liste EQUAL_TO
Marketing Campaign Stats-Singlesends id Chaîne N/A
ab_variation Chaîne N/A
ab_phase Chaîne N/A
aggregation Chaîne N/A
stats Struct N/A
singlesend_ids Liste EQUAL_TO
Segments id Chaîne N/A
name Chaîne N/A
query_version Chaîne N/A
contacts_count Entier N/A
sample_updated_at Chaîne N/A
next_sample_update Chaîne N/A
created_at Chaîne N/A
updated_at Chaîne N/A
parent_list_id Chaîne N/A
status Struct N/A
parent_list_ids Chaîne EQUAL_TO
no_parent_list_id Booléen EQUAL_TO
Contacts id Chaîne N/A
first_name Chaîne N/A
last_name Chaîne N/A
unique_name Chaîne N/A
e-mail Chaîne N/A
alternate_emails Liste N/A
address_line_1 Chaîne N/A
address_line_2 Chaîne N/A
city Chaîne N/A
state_province_region Chaîne N/A
country Chaîne N/A
postal_code Chaîne N/A
phone_number Chaîne N/A
whatsapp Chaîne N/A
line Chaîne N/A
facebook Chaîne N/A
list_ids Liste N/A
custom_fields Struct N/A
created_at Chaîne N/A
updated_at Chaîne N/A
_metadata Struct N/A
event_timestamp DateTime BETWEEN
Catégorie categories Liste N/A
Statistiques date Chaîne N/A
stats Liste N/A
start_date DateTime EQUAL_TO, BETWEEN
aggregated_by Chaîne EQUAL_TO
Unsubscribe Groups id Entier EQUAL_TO
name Chaîne N/A
description Chaîne N/A
last_email_sent_at Entier N/A
is_default Booléen N/A
unsubscribes Entier N/A
Note

Les types de données Struct et List sont convertis en type de données String et le type de données DateTime est converti en Timestamp dans la réponse des connecteurs.

Requêtes de partitionnement

SendGrid ne prend pas en charge le partitionnement basé sur des filtres ni le partitionnement basé sur des enregistrements.