{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "BatchTripAssignment",
    "description": "Batched results of historical-trip reprocessing that rematch trips using updated peripheral profiles",
    "type": "object",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "BATCH_TRIP_ASSIGNMENT"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "BatchTripAssignment"
            ]
        },
        "trigger": {
            "type": "string",
            "enum": [
                "MATCH_PAST_UNMATCHED_TRIPS"
            ],
            "description": "Cause for emitting this event. Currently only “MATCH_PAST_UNMATCHED_TRIPS”."
        },
        "start_time": {
            "type": "integer",
            "description": "Start time of the current policy cycle (Unix epoch milliseconds)."
        },
        "end_time": {
            "type": "integer",
            "description": "End time of the current policy cycle (Unix epoch milliseconds)."
        },
        "processed_trip_count": {
            "type": "integer",
            "description": "Total number of trips processed during this batch run."
        },
        "page_count": {
            "type": "integer",
            "description": "Number of pages into which the full result set was split."
        },
        "page_index": {
            "type": "integer",
            "description": "Zero-based index of the page contained in this event."
        },
        "trip_assignment_list": {
            "type": "array",
            "minItems": 1,
            "maxItems": 500,
            "description": "List of trip-assignment results contained in this page.",
            "items": {
				"$ref": "/resources/schema/analytics/client/v4/item/TripAssignmentItem.json"
			}
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "trigger"
    ],
    "additionalProperties": false
}