|
| 1 | +{ |
| 2 | + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", |
| 3 | + "description": "Schema for a Mandrill hard bounce event", |
| 4 | + "self": { |
| 5 | + "vendor": "com.mandrill", |
| 6 | + "name": "message_bounced", |
| 7 | + "format": "jsonschema", |
| 8 | + "version": "1-0-2" |
| 9 | + }, |
| 10 | + |
| 11 | + "type": "object", |
| 12 | + "properties": { |
| 13 | + "_id": { |
| 14 | + "type": "string", |
| 15 | + "description": "The unique identifier of the message that generated the event. This is not an event identifier, but rather a reference to the message ID for the email that was sent, opened, clicked, etc." |
| 16 | + }, |
| 17 | + "msg": { |
| 18 | + "type": "object", |
| 19 | + "description": "Details about the message for which the event occurred. May be empty if the message that generated an open or click is older than 30 days, or when the message was not yet indexed when the event occurred.", |
| 20 | + "properties": { |
| 21 | + "_id": { |
| 22 | + "type": "string", |
| 23 | + "description": "The unique identifier assigned to each email sent via Mailchimp Transactional" |
| 24 | + }, |
| 25 | + "_version": { |
| 26 | + "type": "string" |
| 27 | + }, |
| 28 | + "bgtools_code": { |
| 29 | + "type": "number" |
| 30 | + }, |
| 31 | + "bounce_description": { |
| 32 | + "type": "string", |
| 33 | + "description": "For bounced and soft-bounced messages, a short description of the bounce reason, such as bad_mailbox or invalid_domain" |
| 34 | + }, |
| 35 | + "diag": { |
| 36 | + "type": "string", |
| 37 | + "description": "For bounced and soft-bounced messages, provides the specific SMTP response code and bounce description, if any, received from the remote server" |
| 38 | + }, |
| 39 | + "email": { |
| 40 | + "type": "string", |
| 41 | + "description": "The recipient's email address" |
| 42 | + }, |
| 43 | + "metadata": { |
| 44 | + "type": "object", |
| 45 | + "description": "An array of the metadata key–value pairs that were applied to the message, if any", |
| 46 | + "properties": { |
| 47 | + "user_id": { |
| 48 | + "type": "number" |
| 49 | + } |
| 50 | + }, |
| 51 | + "additionalProperties": true |
| 52 | + }, |
| 53 | + "sender": { |
| 54 | + "type": "string", |
| 55 | + "description": "The sender's email address" |
| 56 | + }, |
| 57 | + "state": { |
| 58 | + "type": "string", |
| 59 | + "description": "The state of the message (sent, rejected, spam, unsub, bounced, or soft-bounced)" |
| 60 | + }, |
| 61 | + "subaccount": { |
| 62 | + "type": ["string", "null"], |
| 63 | + "description": "The subaccount from which the message originated; if no subaccount was used, the value will be null" |
| 64 | + }, |
| 65 | + "subject": { |
| 66 | + "type": "string", |
| 67 | + "description": "The subject line of the message" |
| 68 | + }, |
| 69 | + "tags": { |
| 70 | + "type": "array", |
| 71 | + "description": "An array of the tag names that were applied to the message, if any", |
| 72 | + "items": { |
| 73 | + "type": "string" |
| 74 | + } |
| 75 | + }, |
| 76 | + "ts": { |
| 77 | + "type": "string", |
| 78 | + "description": "The timestamp when the message was sent", |
| 79 | + "format": "date-time" |
| 80 | + }, |
| 81 | + "smtp_events": { |
| 82 | + "type": "array", |
| 83 | + "description": "Array of JSON objects, each of which is an SMTP response received for the message.", |
| 84 | + "items": { |
| 85 | + "type": "object", |
| 86 | + "properties": { |
| 87 | + "ts": { |
| 88 | + "type": "string", |
| 89 | + "description": "The timestamp of the SMTP event", |
| 90 | + "format": "date-time" |
| 91 | + }, |
| 92 | + "type": { |
| 93 | + "type": "string", |
| 94 | + "description": "The type of SMTP event, such as sent or deferred" |
| 95 | + }, |
| 96 | + "diag": { |
| 97 | + "type": "string", |
| 98 | + "description": "The SMTP diagnostic or response message returned by the receiving server" |
| 99 | + }, |
| 100 | + "source_ip": { |
| 101 | + "type": "string", |
| 102 | + "description": "The Mailchimp Transactional IP address that attempted to send the message" |
| 103 | + }, |
| 104 | + "destination_ip": { |
| 105 | + "type": "string", |
| 106 | + "description": "The remote IP address of the server Mailchimp Transactional connected to for message relay" |
| 107 | + }, |
| 108 | + "size": { |
| 109 | + "type": "integer", |
| 110 | + "description": "The size of the message being relayed" |
| 111 | + } |
| 112 | + }, |
| 113 | + "additionalProperties": true |
| 114 | + } |
| 115 | + }, |
| 116 | + "resends": { |
| 117 | + "type": "array" |
| 118 | + }, |
| 119 | + "template": { |
| 120 | + "type": ["string", "null"], |
| 121 | + "description": "The slug of the template used, if any. If no template was used, the value will be null" |
| 122 | + } |
| 123 | + }, |
| 124 | + "additionalProperties": true |
| 125 | + }, |
| 126 | + "ts": { |
| 127 | + "type": "string", |
| 128 | + "description": "Timestamp when the event occurred", |
| 129 | + "format": "date-time" |
| 130 | + } |
| 131 | + }, |
| 132 | + "additionalProperties": true |
| 133 | +} |
0 commit comments