{
    "additionalProperties": false,
    "properties": {
        "_id": {
            "description": "unique url-friendly base64 encoded, utf8 endoded concatenation identifier",
            "type": "string"
        },
        "_timestamp": {
            "_format": "date-time",
            "description": "ISO8601 combined date and time in UTC e.g. '2014-12-01T00:00:00+00:00'",
            "type": "string"
        },
        "channel": {
            "description": "user contact channel",
            "type": "string"
        },
        "consulate": {
            "description": "The name or identity of the consulate providing the appointment",
            "type": "string"
        },
        "count": {
            "description": "the number of completed transactions over the specific channel",
            "minimum": 0,
            "type": "integer"
        },
        "period": {
            "description": "The period covered by each data point from the _timestamp",
            "enum": [
                "hour",
                "day",
                "week",
                "month",
                "quarter"
            ]
        },
        "service_type": {
            "description": "The name of the service needed by the user e.g. emergency documentation, register birth etc",
            "type": "string"
        },
        "transaction": {
            "description": "The user transaction  e.g. book-appointment, cancel-appointment etc.",
            "type": "string"
        }
    },
    "required": [
        "_id",
        "_timestamp",
        "period",
        "consulate",
        "service_type",
        "transaction",
        "channel",
        "count"
    ],
    "title": "consulate-appointments-transactions-by-channel",
    "type": "object"
}