{
    "additionalProperties": false,
    "description": "Schema for a Mandrill message clicked event",
    "properties": {
        "_id": {
            "type": "string"
        },
        "ip": {
            "type": "string"
        },
        "location": {
            "additionalProperties": false,
            "properties": {
                "city": {
                    "type": "string"
                },
                "country": {
                    "type": "string"
                },
                "country_short": {
                    "type": "string"
                },
                "latitude": {
                    "type": "number"
                },
                "longitude": {
                    "type": "number"
                },
                "postal_code": {
                    "type": "string"
                },
                "region": {
                    "type": "string"
                },
                "timezone": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "msg": {
            "additionalProperties": false,
            "properties": {
                "_id": {
                    "type": "string"
                },
                "_version": {
                    "type": "string"
                },
                "clicks": {
                    "items": {
                        "additionalProperties": true,
                        "properties": {
                            "ip": {
                                "type": "string"
                            },
                            "location": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "ts": {
                                "_format": "date-time",
                                "type": "string"
                            },
                            "ua": {
                                "type": "string"
                            },
                            "url": {
                                "type": "string"
                            }
                        },
                        "type": "object"
                    },
                    "type": "array"
                },
                "email": {
                    "type": "string"
                },
                "metadata": {
                    "additionalProperties": true,
                    "properties": {
                        "user_id": {
                            "type": "number"
                        }
                    },
                    "type": "object"
                },
                "opens": {
                    "items": {
                        "additionalProperties": true,
                        "properties": {
                            "ip": {
                                "type": "string"
                            },
                            "location": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "ts": {
                                "_format": "date-time",
                                "type": "string"
                            },
                            "ua": {
                                "type": "string"
                            }
                        },
                        "type": "object"
                    },
                    "type": "array"
                },
                "resends": {
                    "type": "array"
                },
                "sender": {
                    "type": "string"
                },
                "smtp_events": {
                    "items": {
                        "additionalProperties": true,
                        "properties": {
                            "destination_ip": {
                                "type": "string"
                            },
                            "diag": {
                                "type": "string"
                            },
                            "size": {
                                "type": "integer"
                            },
                            "source_ip": {
                                "type": "string"
                            },
                            "ts": {
                                "_format": "date-time",
                                "type": "string"
                            },
                            "type": {
                                "type": "string"
                            }
                        },
                        "type": "object"
                    },
                    "type": "array"
                },
                "state": {
                    "type": "string"
                },
                "subject": {
                    "type": "string"
                },
                "tags": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "template": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "ts": {
                    "_format": "date-time",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "ts": {
            "_format": "date-time",
            "type": "string"
        },
        "url": {
            "type": "string"
        },
        "user_agent": {
            "type": "string"
        },
        "user_agent_parsed": {
            "additionalProperties": false,
            "properties": {
                "mobile": {
                    "type": "boolean"
                },
                "os_company": {
                    "type": "string"
                },
                "os_company_url": {
                    "type": "string"
                },
                "os_family": {
                    "type": "string"
                },
                "os_icon": {
                    "type": "string"
                },
                "os_name": {
                    "type": "string"
                },
                "os_url": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "ua_company": {
                    "type": "string"
                },
                "ua_company_url": {
                    "type": "string"
                },
                "ua_family": {
                    "type": "string"
                },
                "ua_icon": {
                    "type": "string"
                },
                "ua_name": {
                    "type": "string"
                },
                "ua_url": {
                    "type": "string"
                },
                "ua_version": {
                    "type": "string"
                }
            },
            "type": "object"
        }
    },
    "self": {
        "format": "jsonschema",
        "name": "message_clicked",
        "vendor": "com.mandrill",
        "version": "1-0-0"
    },
    "type": "object"
}