From e915bb07e720c7d487b2db2e1362a7c1b7223030 Mon Sep 17 00:00:00 2001 From: Ben Fradet Date: Tue, 10 Apr 2018 16:29:19 +0100 Subject: [PATCH] Add com.mandrill/message_opened/jsonschema/1-0-1 (closes #750) --- .../message_opened/jsonschema/1-0-1 | 236 ++++++++++++++++++ 1 file changed, 236 insertions(+) create mode 100644 schemas/com.mandrill/message_opened/jsonschema/1-0-1 diff --git a/schemas/com.mandrill/message_opened/jsonschema/1-0-1 b/schemas/com.mandrill/message_opened/jsonschema/1-0-1 new file mode 100644 index 000000000..8c03ff3c2 --- /dev/null +++ b/schemas/com.mandrill/message_opened/jsonschema/1-0-1 @@ -0,0 +1,236 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Schema for a Mandrill message opened event", + "self": { + "vendor": "com.mandrill", + "name": "message_opened", + "format": "jsonschema", + "version": "1-0-1" + }, + + "type": "object", + "properties": { + "_id": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "location": { + "type": "object", + "properties": { + "city": { + "type": "string" + }, + "country_short": { + "type": "string" + }, + "country": { + "type": "string" + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "postal_code": { + "type": "string" + }, + "region": { + "type": "string" + }, + "timezone": { + "type": "string" + } + }, + "additionalProperties": false + }, + "msg": { + "type": "object", + "properties": { + "_id": { + "type": "string" + }, + "_version": { + "type": "string" + }, + "clicks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ts": { + "type": "string", + "format": "date-time" + }, + "url": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "location": { + "type": "string" + }, + "ua": { + "type": "string" + } + }, + "additionalProperties": true + } + }, + "email": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "user_id": { + "type": "number" + } + }, + "additionalProperties": true + }, + "opens": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ts": { + "type": "string", + "format": "date-time" + }, + "ip": { + "type": "string" + }, + "location": { + "type": ["string", "null"] + }, + "ua": { + "type": "string" + } + }, + "additionalProperties": true + } + }, + "sender": { + "type": "string" + }, + "state": { + "type": "string" + }, + "subaccount": { + "type": ["string", "null"] + }, + "subject": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "ts": { + "type": "string", + "format": "date-time" + }, + "resends": { + "type": "array" + }, + "smtp_events": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ts": { + "type": "string", + "format": "date-time" + }, + "type": { + "type": "string" + }, + "diag": { + "type": "string" + }, + "source_ip": { + "type": "string" + }, + "destination_ip": { + "type": "string" + }, + "size": { + "type": "integer" + } + }, + "additionalProperties": true + } + }, + "template": { + "type": ["string", "null"] + } + }, + "additionalProperties": false + }, + "ts": { + "type": "string", + "format": "date-time" + }, + "user_agent_parsed": { + "type": "object", + "properties": { + "mobile": { + "type": "boolean" + }, + "os_company_url": { + "type": ["string", "null"] + }, + "os_company": { + "type": ["string", "null"] + }, + "os_family": { + "type": ["string", "null"] + }, + "os_icon": { + "type": ["string", "null"] + }, + "os_name": { + "type": ["string", "null"] + }, + "os_url": { + "type": ["string", "null"] + }, + "type": { + "type": ["string", "null"] + }, + "ua_company_url": { + "type": ["string", "null"] + }, + "ua_company": { + "type": ["string", "null"] + }, + "ua_family": { + "type": ["string", "null"] + }, + "ua_icon": { + "type": ["string", "null"] + }, + "ua_name": { + "type": ["string", "null"] + }, + "ua_url": { + "type": ["string", "null"] + }, + "ua_version": { + "type": ["string", "null"] + } + }, + "additionalProperties": false + }, + "user_agent": { + "type": "string" + } + }, + "additionalProperties": false +}