メニュー

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Worker Statistics Resource

TaskRouter provides real-time, cumulative, and historical statistics for Workers. There are various APIs for retrieving the data that is meaningful to your business.

These resources may not be accessible if your Workspace exceeds 100 workers. Please contact support for additional assistance.

Names in PHP format
realtime
オブジェクト Not PII

An object that contains the real-time statistics for the Worker.

cumulative
オブジェクト Not PII

An object that contains the cumulative statistics for the Worker.

accountSid
sid<AC> Not PII

The SID of the Account that created the Worker resource.

workspaceSid
sid<WS> Not PII

The SID of the Workspace that contains the Worker.

url
url Not PII

The absolute URL of the Worker statistics resource.

Minutes cannot be used in combination with StartDate and EndDate parameters. If no parameters are passed, 15 minutes will be the default.

Fetch All Worker Statistics

GET /v1/Workspaces/{WorkspaceSid}/Workers/Statistics
Names in PHP format
workspaceSid
必須
GET sid<WS> Not PII

The SID of the Workspace with the Worker to fetch.

minutes
オプション
GET integer Not PII

Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends.

startDate
オプション
GET date_time<iso8601> Not PII

Only calculate statistics from this date and time and later, specified in ISO 8601 format.

endDate
オプション
GET date_time<iso8601> Not PII

Only calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time.

taskQueueSid
オプション
GET sid<WQ> Not PII

The SID of the TaskQueue for which to fetch Worker statistics.

taskQueueName
オプション
GET 文字列 Not PII

The friendly_name of the TaskQueue for which to fetch Worker statistics.

friendlyName
オプション
GET 文字列 Not PII

Only include Workers with friendly_name values that match this parameter.

taskChannel
オプション
GET 文字列 Not PII

Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its unique_name, such as voice, sms, or default.

        
        
        
        

        Fetch Real-Time Worker Statistics

        GET /v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics
        
        Names in PHP format
        workspaceSid
        必須
        GET sid<WS> Not PII

        The SID of the Workspace with the resource to fetch.

        taskChannel
        オプション
        GET 文字列 Not PII

        Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its unique_name, such as voice, sms, or default.

              
              
              
              

              Real-time statistics relating to a list of Workers include the following:

              フィールド 概要
              TotalWorkers 総Worker数です。
              ActivityStatistics Activity別の現在のWorkerステータス数です。

              Fetch Cumulative Worker Statistics

              GET /v1/Workspaces/{WorkspaceSid}/Workers/CumulativeStatistics
              
              Names in PHP format
              workspaceSid
              必須
              GET sid<WS> Not PII

              The SID of the Workspace with the resource to fetch.

              endDate
              オプション
              GET date_time<iso8601> Not PII

              Only calculate statistics from this date and time and earlier, specified in ISO 8601 format.

              minutes
              オプション
              GET integer Not PII

              Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends.

              startDate
              オプション
              GET date_time<iso8601> Not PII

              Only calculate statistics from this date and time and later, specified in ISO 8601 format.

              taskChannel
              オプション
              GET 文字列 Not PII

              Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its unique_name, such as voice, sms, or default.

                    
                    
                    
                    

                    Workerのリストに関連する一定期間における累積統計には、次が含まれます。

                    フィールド 概要
                    ReservationsCreated 作成されたReservationの総数です
                    ReservationsAccepted 受諾されたReservationの総数です
                    ReservationsRejected 拒否されたReservationの総数です
                    ReservationsTimedOut タイムアウトしたReservationの総数です
                    ReservationsCanceled キャンセルされたReservationの総数です
                    ReservationsRescinded 撤回されたReservationの総数です
                    ActivityDurations 各ActivityにWorkerが存在した最小時間、平均時間、最大時間、および総時間(秒)です。

                    Fetch A Specific Worker's Statistics

                    GET /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Statistics
                    
                    Names in PHP format
                    workspaceSid
                    必須
                    GET sid<WS> Not PII

                    The SID of the Workspace with the WorkerChannel to fetch.

                    workerSid
                    必須
                    GET sid<WK> Not PII

                    The SID of the Worker with the WorkerChannel to fetch.

                    minutes
                    オプション
                    GET integer Not PII

                    Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends.

                    startDate
                    オプション
                    GET date_time<iso8601> Not PII

                    Only calculate statistics from this date and time and later, specified in ISO 8601 format.

                    endDate
                    オプション
                    GET date_time<iso8601> Not PII

                    Only include usage that occurred on or before this date, specified in GMT as an ISO 8601 date-time.

                    taskChannel
                    オプション
                    GET 文字列 Not PII

                    Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its unique_name, such as voice, sms, or default.

                          
                          
                          
                          
                          Rate this page:

                          ヘルプが必要ですか?

                          誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。