# Class AggregatedMetrics (1.15.0)

1.15.0 (latest) 1.14.0 1.13.0 1.12.0 1.11.2 1.10.0 1.9.1 1.8.5 1.7.0 1.6.0 1.5.0 1.4.3 1.3.2 1.2.0 1.1.3 1.0.1 0.1.1

    AggregatedMetrics(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Aggregated metrics for
ShipmentRoute (resp.
for
OptimizeToursResponse
over all
Transition
and/or Visit
(resp. over all
ShipmentRoute)
elements.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `performed_shipment_count` | `int` Number of shipments performed. Note that a pickup and delivery pair only counts once. |
| `travel_duration` | `google.protobuf.duration_pb2.Duration` Total travel duration for a route or a solution. |
| `wait_duration` | `google.protobuf.duration_pb2.Duration` Total wait duration for a route or a solution. |
| `delay_duration` | `google.protobuf.duration_pb2.Duration` Total delay duration for a route or a solution. |
| `break_duration` | `google.protobuf.duration_pb2.Duration` Total break duration for a route or a solution. |
| `visit_duration` | `google.protobuf.duration_pb2.Duration` Total visit duration for a route or a solution. |
| `total_duration` | `google.protobuf.duration_pb2.Duration` The total duration should be equal to the sum of all durations above. For routes, it also corresponds to: ShipmentRoute.vehicle_end_time `-` ShipmentRoute.vehicle_start_time |
| `travel_distance_meters` | `float` Total travel distance for a route or a solution. |
| `max_loads` | `MutableMapping[str, https://docs.cloud.google.com/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.ShipmentRoute.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 Transition.vehicle_loads (resp. ShipmentRoute.metrics.max_loads. |
| `costs` | `MutableMapping[str, float]` Deprecated: Use ShipmentRoute.route_costs and OptimizeToursResponse.Metrics.costs instead. |
| `total_cost` | `float` Deprecated: Use ShipmentRoute.route_total_cost and OptimizeToursResponse.Metrics.total_cost instead. |

## Classes

### CostsEntry

    CostsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### MaxLoadsEntry

    MaxLoadsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |