管理配额

如需管理 Fleet Engine API 的使用情况,请为所有请求设置“每分钟请求数”配额上限。

如需查看或更改 Fleet Engine API 的配额上限,请按以下步骤操作:

  • 在 Cloud 控制台中,打开 Google Maps Platform 配额页面
  • 点击“API”下拉列表,然后选择 “Local Rides and Deliveries API”
  • 如需查看配额上限,请打开每种类型的请求对应的卡片。
  • 如需更改请求类型的配额上限,请点击相应上限对应的修改图标。系统会显示一个对话框。在配额上限字段中,输入首选的“每分钟请求数”配额上限(最高可设为 Google 指定的配额上限),然后选择保存
  • 如果您的项目需要超出所提供限制的额外配额,请与支持团队联系。
配额分桶 包含的 API 每分钟请求数
批量创建请求 maps.fleetengine.delivery.v1.DeliveryService.BatchCreateTasks 180
结算请求 maps.fleetengine.v1.TripService.ReportBillableTrip 9000
创建请求 maps.fleetengine.delivery.v1.DeliveryService.CreateDeliveryVehicle,
maps.fleetengine.delivery.v1.DeliveryService.CreateTask,
maps.fleetengine.v1.VehicleService.CreateVehicle,
maps.fleetengine.v1.TripService.CreateTrip
3000
提交播出信息列表请求 maps.fleetengine.delivery.v1.DeliveryService.ListTasks,
maps.fleetengine.delivery.v1.DeliveryService.ListDeliveryVehicles
3000
列出请求 maps.fleetengine.v1.VehicleService.ListVehicles 3000
读取请求 maps.fleetengine.delivery.v1.DeliveryService.GetDeliveryVehicle,
maps.fleetengine.delivery.v1.DeliveryService.GetTask,
maps.fleetengine.v1.VehicleService.GetVehicle,
maps.fleetengine.v1.TripService.GetTrip
9000
搜索请求 maps.fleetengine.delivery.v1.DeliveryService.GetTaskTrackingInfo,
maps.fleetengine.v1.VehicleService.SearchVehicles,
maps.fleetengine.v1.TripService.SearchTrips
6000
更新请求 maps.fleetengine.delivery.v1.DeliveryService.UpdateDeliveryVehicle,
maps.fleetengine.delivery.v1.DeliveryService.UpdateTask,
maps.fleetengine.v1.VehicleService.UpdateVehicle,
maps.fleetengine.v1.VehicleService.UpdateVehicleAttributes,
maps.fleetengine.v1.TripService.UpdateTrip
30000

固定费率限制

固定速率限制适用于对单个资源执行操作的一些 API 方法。例如,providers/project_id/vehicles/vehicle_id。Google 会对单个资源应用固定费率上限,不例外地适用于所有客户。例如,如果您在项目中每秒对同一 vehicle_id 调用 maps.fleetengine.v1.VehicleService.UpdateVehicle 超过 3 次,则可能会收到 HTTP 429 或 gRPC RESOURCE_EXHAUSTED 错误。

受影响的速率受限请求不会计入 Google Cloud 控制台中的配额错误。

详细了解如何处理错误

配额分桶 包含的 API 每秒请求数
单资源读取请求 maps.fleetengine.delivery.v1.DeliveryService.GetTask, maps.fleetengine.delivery.v1.DeliveryService.GetDeliveryVehicle,
maps.fleetengine.delivery.v1.DeliveryService.GetTaskTrackingInfo,
maps.fleetengine.v1.VehicleService.GetVehicle,
maps.fleetengine.v1.TripService.GetTrip
50
单资源写入请求 maps.fleetengine.delivery.v1.DeliveryService.CreateTask, maps.fleetengine.delivery.v1.DeliveryService.UpdateTask,
maps.fleetengine.delivery.v1.DeliveryService.CreateDeliveryVehicle,
maps.fleetengine.delivery.v1.DeliveryService.UpdateDeliveryVehicle,
maps.fleetengine.v1.TripService.CreateTrip,
maps.fleetengine.v1.TripService.UpdateTrip,
maps.fleetengine.v1.TripService.ReportBillableTrip,
maps.fleetengine.v1.VehicleService.CreateVehicle,
maps.fleetengine.v1.VehicleService.UpdateVehicle,
maps.fleetengine.v1.VehicleService.UpdateVehicleAttributes,
maps.fleetengine.v1.VehicleService.ComputeTrafficData
3