- JSON representation
- JourneySharingInfoLog
- TaskTrackingViewConfigLog
- VisibilityOptionLog
- TaskAttributeLog
The log of a Task resource in the Deliveries API.
JSON representation |
---|
{ "name": string, "type": enum ( |
Fields | |
---|---|
name |
The task resource name in the format of |
type |
The task type. |
state |
The state of a Task indicating its progression. |
task |
The outcome of attempting to execute a task. When TaskState is closed, this indicates whether it was completed successfully. |
task |
The timestamp of when the task's outcome was set (from provider). A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
task |
Location where the task's outcome was set. |
task |
Indicates where the value of the |
tracking |
This field facilitates the storing of an ID for the customer to avoid unnecessary or complicated mapping. |
delivery |
The ID of the vehicle performing this Task. |
planned |
The location where the task is completed. |
task |
Additional time to perform an action at this location. A duration in seconds with up to nine fractional digits, ending with ' |
target |
The time window during which the task should be completed. |
journey |
Journey sharing specific fields. |
task |
The configuration for task tracking that specifies which data elements are visible to the end users under what circumstances. |
attributes[] |
A list of custom Task attributes. Each attribute must have a unique key. |
JourneySharingInfoLog
Journey sharing specific fields.
JSON representation |
---|
{ "remainingVehicleJourneySegments": [ { object ( |
Fields | |
---|---|
remaining |
Tracking information for each stop that the assigned vehicle will travel to before completing this task. This list may contain stops from other tasks. |
last |
The last reported location of the vehicle. |
last |
Indicates whether the vehicle's |
TaskTrackingViewConfigLog
The configuration message that defines when a data element of a Task should be visible to the end users.
JSON representation |
---|
{ "routePolylinePointsVisibility": { object ( |
Fields | |
---|---|
route |
The field that specifies when route polyline points can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. |
estimated |
The field that specifies when estimated arrival time can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. |
estimated |
The field that specifies when estimated task completion time can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. |
remaining |
The field that specifies when remaining driving distance can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. |
remaining |
The field that specifies when remaining stop count can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. |
vehicle |
The field that specifies when vehicle location can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. |
VisibilityOptionLog
The option message that defines when a data element should be visible to the end users.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
remaining |
This data element is visible to the end users if the remaining stop count <= remainingStopCountThreshold. |
duration |
This data element is visible to the end users if the ETA to the stop <= durationUntilEstimatedArrivalTimeThreshold. A duration in seconds with up to nine fractional digits, ending with ' |
remaining |
This data element is visible to the end users if the remaining driving distance in meters <= remainingDrivingDistanceMetersThreshold. |
always |
If set to true, this data element is always visible to the end users with no thresholds. |
never |
If set to true, this data element is always hidden from the end users with no thresholds. |
TaskAttributeLog
Describes a task attribute as a key-value pair. The "key:value" string length cannot exceed 256 characters.
JSON representation |
---|
{ "key": string, // Union field |
Fields | |
---|---|
key |
The attribute's key. Keys may not contain the colon character (:). |
Union field task_attribute_value . The attribute's value, can be in string, bool, or double type. If none are set the TaskAttribute string_value will be stored as the empty string "". task_attribute_value can be only one of the following: |
|
string |
String typed attribute value. |
bool |
Boolean typed attribute value. |
number |
Double typed attribute value. |