Reference documentation and code samples for the Google Cloud Optimization V1 Client class AggregatedMetrics.
Aggregated metrics for ShipmentRoute (resp. for OptimizeToursResponse over all Transition and/or Visit (resp. over all ShipmentRoute ) elements.
Generated from protobuf message google.cloud.optimization.v1.AggregatedMetrics
Namespace
Google \ Cloud \ Optimization \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ performed_shipment_count
int
Number of shipments performed. Note that a pickup and delivery pair only counts once.
↳ travel_duration
↳ wait_duration
↳ delay_duration
↳ break_duration
↳ visit_duration
↳ total_duration
Google\Protobuf\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
array| Google\Protobuf\Internal\MapField
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
array| Google\Protobuf\Internal\MapField
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.
getPerformedShipmentCount
Number of shipments performed. Note that a pickup and delivery pair only counts once.
int
setPerformedShipmentCount
Number of shipments performed. Note that a pickup and delivery pair only counts once.
var
int
$this
getTravelDuration
Total travel duration for a route or a solution.
hasTravelDuration
clearTravelDuration
setTravelDuration
Total travel duration for a route or a solution.
$this
getWaitDuration
Total wait duration for a route or a solution.
hasWaitDuration
clearWaitDuration
setWaitDuration
Total wait duration for a route or a solution.
$this
getDelayDuration
Total delay duration for a route or a solution.
hasDelayDuration
clearDelayDuration
setDelayDuration
Total delay duration for a route or a solution.
$this
getBreakDuration
Total break duration for a route or a solution.
hasBreakDuration
clearBreakDuration
setBreakDuration
Total break duration for a route or a solution.
$this
getVisitDuration
Total visit duration for a route or a solution.
hasVisitDuration
clearVisitDuration
setVisitDuration
Total visit duration for a route or a solution.
$this
getTotalDuration
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
hasTotalDuration
clearTotalDuration
setTotalDuration
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
$this
getTravelDistanceMeters
Total travel distance for a route or a solution.
float
setTravelDistanceMeters
Total travel distance for a route or a solution.
var
float
$this
getMaxLoads
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.
setMaxLoads
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.
$this
getCosts
Deprecated: Use ShipmentRoute.route_costs and OptimizeToursResponse.Metrics.costs instead.
setCosts
Deprecated: Use ShipmentRoute.route_costs and OptimizeToursResponse.Metrics.costs instead.
$this
getTotalCost
Deprecated: Use ShipmentRoute.route_total_cost and OptimizeToursResponse.Metrics.total_cost instead.
float
setTotalCost
Deprecated: Use ShipmentRoute.route_total_cost and OptimizeToursResponse.Metrics.total_cost instead.
var
float
$this