Task Statistics
The Task Statistics subresource gives you statistics on a Task such as the number of Samples and Fields associated with the Task.
All Autopilot REST API resources use the following base URL:
https://autopilot.twilio.com/v1
TaskStatistics properties
Resource Properties in REST API format | |
---|---|
account_sid
|
The SID of the Account that created the TaskStatistics resource. |
assistant_sid
|
The SID of the Assistant that is the parent of the Task associated with the resource. |
task_sid
|
The SID of the Task for which the statistics were collected. |
samples_count
|
The total number of Samples associated with the Task. |
fields_count
|
The total number of Fields associated with the Task. |
url
|
The absolute URL of the TaskStatistics resource. |
Fetch a TaskStatistics resource
https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics
Returns the Task Statistics identified by {TaskSid
}.
Parameters
Parameters in REST API format | |
---|---|
assistant_sid
Path
|
The SID of the Assistant that is the parent of the resource to fetch. |
task_sid
Path
|
The SID of the Task that is associated with the resource to fetch. |
Example 1
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.