Cloud Optimization V1 API - Class Google::Cloud::Optimization::V1::AggregatedMetrics (v0.2.1)

Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::AggregatedMetrics.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#break_duration

def break_duration() -> ::Google::Protobuf::Duration
Returns

#break_duration=

def break_duration=(value) -> ::Google::Protobuf::Duration
Parameter
Returns

#costs

def costs() -> ::Google::Protobuf::Map{::String => ::Float}
Returns

#costs=

def costs=(value) -> ::Google::Protobuf::Map{::String => ::Float}
Parameter
Returns

#delay_duration

def delay_duration() -> ::Google::Protobuf::Duration
Returns

#delay_duration=

def delay_duration=(value) -> ::Google::Protobuf::Duration
Parameter
Returns

#max_loads

def max_loads() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::ShipmentRoute::VehicleLoad}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::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.

#max_loads=

def max_loads=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::ShipmentRoute::VehicleLoad}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::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.
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::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.

#performed_shipment_count

def performed_shipment_count() -> ::Integer
Returns
  • (::Integer) — Number of shipments performed. Note that a pickup and delivery pair only counts once.

#performed_shipment_count=

def performed_shipment_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Number of shipments performed. Note that a pickup and delivery pair only counts once.
Returns
  • (::Integer) — Number of shipments performed. Note that a pickup and delivery pair only counts once.

#total_cost

def total_cost() -> ::Float
Returns

#total_cost=

def total_cost=(value) -> ::Float
Parameter
Returns

#total_duration

def total_duration() -> ::Google::Protobuf::Duration
Returns

#total_duration=

def total_duration=(value) -> ::Google::Protobuf::Duration
Parameter
Returns

#travel_distance_meters

def travel_distance_meters() -> ::Float
Returns
  • (::Float) — Total travel distance for a route or a solution.

#travel_distance_meters=

def travel_distance_meters=(value) -> ::Float
Parameter
  • value (::Float) — Total travel distance for a route or a solution.
Returns
  • (::Float) — Total travel distance for a route or a solution.

#travel_duration

def travel_duration() -> ::Google::Protobuf::Duration
Returns

#travel_duration=

def travel_duration=(value) -> ::Google::Protobuf::Duration
Parameter
Returns

#visit_duration

def visit_duration() -> ::Google::Protobuf::Duration
Returns

#visit_duration=

def visit_duration=(value) -> ::Google::Protobuf::Duration
Parameter
Returns

#wait_duration

def wait_duration() -> ::Google::Protobuf::Duration
Returns

#wait_duration=

def wait_duration=(value) -> ::Google::Protobuf::Duration
Parameter
Returns