REST API: TaskQueue Statistics
TaskRouterは、TaskQueueに関するリアルタイムと履歴の統計を提供します。
TaskQueue RealTime 統計
TaskQueueのリアルタイムの統計のみが問題になる場合は、下記のエンドポイントが使用できます。
リソースURI
GET /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics
Parameters in REST API format | |
---|---|
workspace_sid
Path
|
The SID of the Workspace with the TaskQueue to fetch. |
task_queue_sid
Path
|
The SID of the TaskQueue for which to fetch statistics. |
task_channel
オプション
|
The TaskChannel for which to fetch statistics. Can be the TaskChannel's SID or its |
TaskQueueに関連するリアルタイム統計には、次が含まれます。
Resource Properties in REST API format | |
---|---|
account_sid
|
The SID of the Account that created the TaskQueue resource. |
activity_statistics
|
The number of current Workers by Activity. |
longest_task_waiting_age
|
The age of the longest waiting Task. |
longest_task_waiting_sid
|
The SID of the longest waiting Task. |
longest_relative_task_age_in_queue
|
The relative age in the TaskQueue for the longest waiting Task. Calculation is based on the time when the Task entered the TaskQueue. |
longest_relative_task_sid_in_queue
|
The Task SID of the Task waiting in the TaskQueue the longest. Calculation is based on the time when the Task entered the TaskQueue. |
task_queue_sid
|
The SID of the TaskQueue from which these statistics were calculated. |
tasks_by_priority
|
The number of Tasks by priority. For example: |
tasks_by_status
|
The number of Tasks by their current status. For example: |
total_available_workers
|
The total number of Workers available for Tasks in the TaskQueue. |
total_eligible_workers
|
The total number of Workers eligible for Tasks in the TaskQueue, independent of their Activity state. |
total_tasks
|
The total number of Tasks. |
workspace_sid
|
The SID of the Workspace that contains the TaskQueue. |
url
|
The absolute URL of the TaskQueue statistics resource. |
TaskQueueの累積統計
特定の期間における累積統計のみが問題になる場合は、下記のエンドポイントが使用できます。
リソースURI
GET /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics
Parameters in REST API format | |
---|---|
workspace_sid
Path
|
The SID of the Workspace with the TaskQueue to fetch. |
task_queue_sid
Path
|
The SID of the TaskQueue for which to fetch statistics. |
end_date
オプション
|
Only calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time. |
minutes
オプション
|
Only calculate statistics since this many minutes in the past. The default is 15 minutes. |
start_date
オプション
|
Only calculate statistics from this date and time and later, specified in ISO 8601 format. |
task_channel
オプション
|
Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its |
split_by_wait_time
オプション
|
A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. |
TaskQueueに関連する一定期間における累積統計には、次が含まれます。
Resource Properties in REST API format | |
---|---|
account_sid
|
The SID of the Account that created the TaskQueue resource. |
avg_task_acceptance_time
|
The average time in seconds between Task creation and acceptance. |
start_time
|
The beginning of the interval during which these statistics were calculated, in ISO 8601 format. |
end_time
|
The end of the interval during which these statistics were calculated, in ISO 8601 format. |
reservations_created
|
The total number of Reservations created for Tasks in the TaskQueue. |
reservations_accepted
|
The total number of Reservations accepted for Tasks in the TaskQueue. |
reservations_rejected
|
The total number of Reservations rejected for Tasks in the TaskQueue. |
reservations_timed_out
|
The total number of Reservations that timed out for Tasks in the TaskQueue. |
reservations_canceled
|
The total number of Reservations canceled for Tasks in the TaskQueue. |
reservations_rescinded
|
The total number of Reservations rescinded. |
split_by_wait_time
|
A list of objects that describe the number of Tasks canceled and reservations accepted above and below the thresholds specified in seconds. |
task_queue_sid
|
The SID of the TaskQueue from which these statistics were calculated. |
wait_duration_until_accepted
|
The wait duration statistics ( |
wait_duration_until_canceled
|
The wait duration statistics ( |
wait_duration_in_queue_until_accepted
|
The relative wait duration statistics ( |
tasks_canceled
|
The total number of Tasks canceled in the TaskQueue. |
tasks_completed
|
The total number of Tasks completed in the TaskQueue. |
tasks_deleted
|
The total number of Tasks deleted in the TaskQueue. |
tasks_entered
|
The total number of Tasks entered into the TaskQueue. |
tasks_moved
|
The total number of Tasks that were moved from one queue to another. |
workspace_sid
|
The SID of the Workspace that contains the TaskQueue. |
url
|
The absolute URL of the TaskQueue statistics resource. |
Parameters in REST API format | |
---|---|
workspace_sid
Path
|
The SID of the Workspace with the TaskQueue to fetch. |
task_queue_sid
Path
|
The SID of the TaskQueue for which to fetch statistics. |
end_date
オプション
|
Only calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time. |
minutes
オプション
|
Only calculate statistics since this many minutes in the past. The default is 15 minutes. |
start_date
オプション
|
Only calculate statistics from this date and time and later, specified in ISO 8601 format. |
task_channel
オプション
|
Only calculate real-time and cumulative statistics for the specified TaskChannel. Can be the TaskChannel's SID or its |
split_by_wait_time
オプション
|
A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. |
Minutes
cannot be used in combination with StartDate
and EndDate
parameters. If no parameters are passed, 15 minutes will be the default.
Resource Properties in REST API format | |
---|---|
account_sid
|
The SID of the Account that created the TaskQueue resource. |
cumulative
|
An object that contains the cumulative statistics for the TaskQueue. |
realtime
|
An object that contains the real-time statistics for the TaskQueue. |
task_queue_sid
|
The SID of the TaskQueue from which these statistics were calculated. |
workspace_sid
|
The SID of the Workspace that contains the TaskQueue. |
url
|
The absolute URL of the TaskQueue statistics resource. |
ヘルプが必要ですか?
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。