- [JSON representation](https://developers.google.com/maps/documentation/route-optimization/reference/rest/v1/AggregatedMetrics#SCHEMA_REPRESENTATION)

Aggregated metrics for `https://developers.google.com/maps/documentation/route-optimization/reference/rest/v1/ShipmentRoute` (resp. for `https://developers.google.com/maps/documentation/route-optimization/reference/rest/v1/OptimizeToursResponse`) over all `https://developers.google.com/maps/documentation/route-optimization/reference/rest/v1/ShipmentRoute#Transition` and/or `https://developers.google.com/maps/documentation/route-optimization/reference/rest/v1/ShipmentRoute#Visit` (resp. over all `https://developers.google.com/maps/documentation/route-optimization/reference/rest/v1/ShipmentRoute`) elements.

| JSON representation |
|---|
| ``` { "performedShipmentCount": integer, "travelDuration": string, "waitDuration": string, "delayDuration": string, "breakDuration": string, "visitDuration": string, "totalDuration": string, "travelDistanceMeters": number, "maxLoads": { string: { object (`https://developers.google.com/maps/documentation/route-optimization/reference/rest/v1/VehicleLoad`) }, ... }, "performedMandatoryShipmentCount": integer, "performedShipmentPenaltyCostSum": number } ``` |

| Fields ||
|---|---|
| `performedShipmentCount` | `integer` Number of shipments performed. Note that a pickup and delivery pair only counts once. |
| `travelDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Total travel duration for a route or a solution. |
| `waitDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Total wait duration for a route or a solution. |
| `delayDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Total delay duration for a route or a solution. |
| `breakDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Total break duration for a route or a solution. |
| `visitDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Total visit duration for a route or a solution. |
| `totalDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` The total duration should be equal to the sum of all durations above. For routes, it also corresponds to: [ShipmentRoute.vehicle_end_time][google.maps.routeoptimization.v1.ShipmentRoute.vehicle_end_time] - [ShipmentRoute.vehicle_start_time][google.maps.routeoptimization.v1.ShipmentRoute.vehicle_start_time] |
| `travelDistanceMeters` | `number` Total travel distance for a route or a solution. |
| `maxLoads` | ``map (key: string, value: object (`https://developers.google.com/maps/documentation/route-optimization/reference/rest/v1/VehicleLoad`))`` Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all `https://developers.google.com/maps/documentation/route-optimization/reference/rest/v1/ShipmentRoute#Transition.FIELDS.vehicle_loads` (resp. `https://developers.google.com/maps/documentation/route-optimization/reference/rest/v1/AggregatedMetrics#FIELDS.max_loads`. |
| `performedMandatoryShipmentCount` | `integer` Number of mandatory shipments performed. Experimental: This field's behavior or existence may change in future. |
| `performedShipmentPenaltyCostSum` | `number` The sum of the `https://developers.google.com/maps/documentation/route-optimization/reference/rest/v1/ShipmentModel#Shipment.FIELDS.penalty_cost` of the performed shipments. Experimental: This field's behavior or existence may change in future. |