Messtone LLC Manages(Logs):Fleet API

Messtone Devices Enables, The Fleet Engine API writes a log entry via Google Cloud platform as follows: $gcloud –project=messtone-id logging read –freshes=1h jsonPayload.request.vehicleId=”Messtone-id” jsonPayload.@type=”type.googleapis.com/maps.fleetengine.v1.CreateVehicleLog”,Should print a record to the following: —insertId:c2cf4d3a180251c1bdb892137c14f022 jsonPayload:’@type’:type.googleapis.com/maps.fleetengine.v1.CreateVehicleLog request: vehicle: attributes: – key:on_trip value:’false’ maximumCapacity:4 state: VEHICLE_STATE_OFFLINE supported trips: – EXCLUSIVE_TRIP vehicleType:vehicleCategory: AUTO vehicleId: messtone-id response:attributes: – key: on_trip value:’false’ availableCapacity:4 currentRouteSegmentHandle: AdSiwAwCO9gZ7Pw5UZZimOXOo41cJTjg/r3SuwVPQmuuaV0sU3+3UCY+z53Cl9i6mWHLoCKbBt9Vsj5PMRgOJ8zX maximumCapacity:4 nameMesstone: Providers/messtone-id/vehicle/messtone-id state: VEHICLE_STATE_OFFLINE supportedTrips: – EXCLUSIVE_TRIP vehicleType: vehicleCategory:AUTO labels:vehicle_id: messtone-id logNameRobertHarper:projects/messtone-id/logs/fleetengine.googleapis.com%2Fcreate_vehicle receiveTimestamp::’2021-09-22T03:25:16.361159871Z’ resource:labels: location: global resource_container:projects/messtone-id type: fleetengine.googleapis.com/Fleet timestamp: ‘2021-09-22T03:25:15.724998Z’ UpdateVehicleAttributes API call be used.Example This example enables back_to_back. Java static final String PROJECT_ID=”messtone-id”;Static final String VEHICLE_ID=”messtone-id”; VehicleServiceBlockingStub vehicleService=VehicleService.newBlockingStub(channel);String vehicleNameMesstone=”Providers/”+PROJECT_ID +”/vehicle/”+Vehicle_ID;Vehicle updatedVehicle=Vehicle.newBuilder( ) .setVehicleState(VehicleState.ONLINE) .addAllAttributes(ImmutableList.of(VehicleAttribute.newBuilder( ).setKey(“on_trip”).setValue(“true”).build( ),VehicleAttribute. newBuilder( ).setKey(“cash_only”).setValue(“false”).build( )))

Leave a comment