ListIntervalAgentSkillGroupReport

Updated at:

Invokes ListIntervalAgentSkillGroupReport to retrieve the interval statistical report for a specified agent in a specified instance.

Operation description

Invokes ListIntervalAgentSkillGroupReport to retrieve the interval statistical report for a specified agent in a specified instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

AgentId

string

Yes

The ID of the agent.

agent@ccc-test

StartTime

integer

No

The start timestamp. Default value: 00:00:00 on the current day. The time precision for statistics is one hour. The start time is rounded down to the nearest hour, and the start of the interval is inclusive.

1532448000000

EndTime

integer

No

The end time. The value is a UNIX timestamp in milliseconds. This parameter is optional. Default value: the current time. If Interval is set to Daily, the maximum time span between StartTime and EndTime is 180 days. If Interval is set to Hourly, the maximum time span is 10 days. The time precision for statistics is one hour. The end time is rounded up to the nearest hour, and the end of the interval is exclusive. For example, if the start time is 11:12:20 and the end time is 11:45:50, the aligned time range is [11:00:00, 12:00:00), which means from 11:00:00 inclusive to 12:00:00 exclusive.

1558443508000

InstanceId

string

Yes

The ID of the instance.

ccc-test

Interval

string

No

The type of interval statistics. This parameter is optional. Default value: Daily (aggregated by day).

Valid values:

  • Hourly :

    Aggregated by hour.

  • Daily :

    Aggregated by day.

Daily

SkillGroupId

string

Yes

The ID of the skill group.

skg-default@ccc-test

Response elements

Element

Type

Description

Example

object

The response data.

Code

string

The response code.

OK

HttpStatusCode

integer

The HTTP status code.

200

Message

string

The response message.

None

RequestId

string

The request ID.

2778FA12-EDD6-42AA-9B15-AF855072E5E5

Data

array<object>

The list of segmented statistics for agents in the corresponding skill group.

array<object>

The segmented statistics for an agent in the corresponding skill group.

StatsTime

integer

The start time of the time period. The value is a UNIX timestamp in milliseconds.

1620291600000

Inbound

object

The inbound metrics.

AverageRingTime

number

The average ring time in seconds.

11

CallsHandled

integer

The number of handled calls, which is the number of times the agent answered calls.

7

TotalWorkTime

integer

The total after-call work time in seconds.

85

CallsAttendedTransferOut

integer

The number of attended transfer-out calls. If a call is transferred to other agents multiple times, each transfer is counted as one.

10

MaxWorkTime

integer

The maximum after-call work time in seconds.

100

TotalHoldTime

integer

The total hold time in seconds.

100

AverageWorkTime

number

The average after-call work time in seconds. Calculation formula: TotalWorkTime/CallsHandled.

100

CallsBlindTransferIn

integer

The number of blind transfer-in calls. If a call is transferred to the agent multiple times, each transfer is counted as one.

100

SatisfactionIndex

number

The satisfaction index, which is the average value of the satisfaction rating digits.

100

CallsRinged

integer

The number of calls that rang for the agent.

100

CallsAttendedTransferIn

integer

The number of attended transfer-in calls. If a call is transferred to the agent multiple times, each transfer is counted as one.

100

CallsBlindTransferOut

integer

The number of blind transfer-out calls. If a call is transferred to other agents multiple times, each transfer is counted as one.

100

TotalRingTime

integer

The total ring time in seconds.

100

MaxTalkTime

integer

The maximum talk time in seconds.

100

MaxRingTime

integer

The maximum ring time in seconds.

100

TotalTalkTime

integer

The total talk time in seconds.

100

CallsOffered

integer

The number of offered calls, which is the number of calls assigned to the agent, including calls transferred via blind transfer and attended transfer from other agents.

100

MaxHoldTime

integer

The maximum hold time in seconds.

100

AverageTalkTime

number

The average talk time in seconds. Calculation formula: TotalTalkTime/CallsHandled.

100

SatisfactionRate

number

The satisfaction rate. Calculation formula: Number of satisfied ratings / Number of satisfaction survey responses.

0.5

CallsHold

integer

The number of held calls, which is the number of times a call was placed on hold.

100

SatisfactionSurveysOffered

integer

The number of satisfaction surveys offered.

100

HandleRate

number

The handle rate. Calculation formula: CallsHandled/CallsOffered. The result may be greater than 100% in some cases because handle events and offer events may fall into different time periods.

0.5

SatisfactionSurveysResponded

integer

The number of responses to satisfaction surveys.

100

AverageHoldTime

number

The average hold time in seconds. Calculation formula: TotalHoldTime/CallsHold.

100

AverageFirstResponseTime

number

The average first response time for chat sessions in seconds.

6

AverageResponseTime

number

The average response time for chat sessions.

18

TotalMessagesSent

integer

The total number of messages sent in chat sessions.

12

TotalMessagesSentByAgent

integer

The total number of messages sent by the agent in chat sessions.

8

TotalMessagesSentByCustomer

integer

The total number of messages sent by customers in chat sessions.

5

Outbound

object

The outbound metrics.

AverageRingTime

number

The average ring time in seconds.

100

CallsDialed

integer

The number of dialed calls.

100

CallsAnswered

integer

The number of answered calls.

100

TotalWorkTime

integer

The total after-call work time in seconds.

100

CallsAttendedTransferOut

integer

The number of attended transfer-out calls. If a call is transferred to other agents multiple times, each transfer is counted as one.

100

MaxWorkTime

integer

The maximum after-call work time in seconds.

100

TotalDialingTime

integer

The total dialing time in seconds.

100

TotalHoldTime

integer

The total hold time in seconds.

100

AverageWorkTime

number

The average after-call work time in seconds. Calculation formula: TotalWorkTime/CallsDialed.

100

CallsBlindTransferIn

integer

The number of blind transfer-in calls. If a call is transferred to the agent multiple times, each transfer is counted as one.

100

SatisfactionIndex

number

The satisfaction index, which is the average value of the satisfaction rating digits.

100

CallsRinged

integer

The number of calls that rang for the agent.

100

CallsAttendedTransferIn

integer

The number of attended transfer-in calls. If a call is transferred to the agent multiple times, each transfer is counted as one.

100

CallsBlindTransferOut

integer

The number of blind transfer-out calls. If a call is transferred to other agents multiple times, each transfer is counted as one.

100

TotalRingTime

integer

The total ring time in seconds.

100

MaxTalkTime

integer

The maximum talk time in seconds.

0

MaxRingTime

integer

The maximum ring time in seconds.

100

TotalTalkTime

integer

The total talk time in seconds.

100

MaxDialingTime

integer

The maximum dialing time in seconds.

100

AnswerRate

number

The answer rate. Calculation formula: CallsAnswered/CallsDialed. The result may be greater than 100% in some cases because answer events and dial events may fall into different time periods.

0.5

MaxHoldTime

integer

The maximum hold time in seconds.

100

AverageTalkTime

number

The average talk time in seconds. Calculation formula: TotalTalkTime/CallsAnswered.

100

SatisfactionRate

number

The satisfaction rate. Calculation formula: Number of satisfied ratings / Number of satisfaction survey responses.

100

CallsHold

integer

The number of held calls, which is the number of times a call was placed on hold.

100

SatisfactionSurveysOffered

integer

The number of satisfaction surveys offered.

100

SatisfactionSurveysResponded

integer

The number of responses to satisfaction surveys.

100

AverageHoldTime

number

The average hold time in seconds. Calculation formula: TotalHoldTime/CallsHold.

100

AverageDialingTime

number

The average dialing time in seconds. Calculation formula: TotalDialingTime/CallsDialed.

100

Overall

object

The overall metrics.

OccupancyRate

number

The agent occupancy rate.

0.4

TotalWorkTime

integer

The total after-call work time in seconds.

100

MaxWorkTime

integer

The maximum after-call work time in seconds.

100

TotalHoldTime

integer

The total hold time in seconds.

100

AverageWorkTime

number

The average after-call work time in seconds. Calculation formula: TotalWorkTime/TotalCalls.

100

MaxBreakTime

integer

The maximum break time in seconds.

100

SatisfactionIndex

number

The satisfaction index, which is the average value of the satisfaction rating digits.

1.4

MaxReadyTime

integer

The maximum ready time in seconds.

100

MaxTalkTime

integer

The maximum talk time in seconds.

100

TotalReadyTime

integer

The total ready time in seconds.

100

LastCheckOutTime

integer

The last check-out time. The value is a UNIX timestamp in milliseconds.

1712548421000

TotalCalls

integer

The total number of calls. The value is calculated by using the following formula: CallsOffered + CallsDialed.

100

TotalLoggedInTime

integer

The total logon duration, in seconds. Note: This value does not include the offline duration and break duration.

100

TotalTalkTime

integer

The total talk time in seconds.

100

MaxHoldTime

integer

The maximum hold time in seconds.

100

AverageBreakTime

number

The average break duration, in seconds.

100

AverageTalkTime

number

The average talk duration, in seconds. The value is calculated by using the following formula: TotalTalkTime/(CallsAnswered+CallsHandled).

100

SatisfactionRate

number

The satisfaction rate. Calculation formula: Number of satisfied ratings / Number of satisfaction survey responses.

100

SatisfactionSurveysOffered

integer

The number of satisfaction surveys offered.

100

FirstCheckInTime

integer

The first online time of the day. This field has a value only when the Interval request parameter is set to Daily. The value is a UNIX timestamp in milliseconds.

100

SatisfactionSurveysResponded

integer

The number of responses to satisfaction surveys.

100

AverageHoldTime

number

The average hold duration, in seconds. The value is calculated by using the following formula: TotalHoldTime/(Inbound.CallsHold+Outbound.CallsHold).

100

AverageReadyTime

number

The average ready duration, in seconds. The value is calculated by using the following formula: TotalReadyTime/Ready count. The ready count is not a statistical field returned by the API.

100

TotalBreakTime

integer

The total break duration, in seconds.

100

BreakCodeDetailList

array<object>

The list of break details.

object

The break details.

BreakCode

string

The break code.

Meeting

Count

integer

The count.

1

Duration

integer

The duration, in seconds.

100

TotalOutboundScenarioTime

integer

The total outbound-only duration, in seconds.

100

TotalOutboundScenarioReadyTime

integer

The total outbound-only ready duration, in seconds.

100

TotalOutboundScenarioLoggedInTime

integer

The total outbound-only logon duration, in seconds.

100

TotalOffSiteLoggedInTime

string

The total off-site logon duration, in seconds.

100

TotalOfficePhoneLoggedInTime

string

The office phone logon duration, in seconds.

100

TotalOnSiteLoggedInTime

string

The total on-site logon duration, in seconds.

100

LastCheckoutTime

integer

The last check-out time of the day. This field has a value only when the Interval request parameter is set to Daily.

100

Internal

object

The internal call metrics.

TotalTalkTime

integer

The total talk time in seconds.

100

AverageTalkTime

number

The average talk duration, in seconds.

100

MaxTalkTime

integer

The maximum talk time in seconds.

100

CallsOffered

integer

The number of offered calls, which is the number of calls assigned to the agent, including calls transferred via blind transfer and attended transfer from other agents.

100

CallsHandled

integer

The number of handled calls, which is the number of times agents answer calls. If a call enters a queue and is answered by multiple agents, it is counted as one call.

100

CallsTalk

integer

[Deprecated] This field is deprecated. Refer to CallsTalked.

100

CallsDialed

integer

The number of dialed calls.

100

CallsAnswered

integer

The number of answered calls.

100

CallsTalked

integer

The number of calls participated in.

100

Back2Back

object

The back-to-back call metrics.

CallsDialed

integer

The number of dialed calls.

100

AnswerRate

number

The answer rate. Calculation formula: CallsAnswered/CallsDialed. The result may be greater than 100% in some cases because answer events and dial events may fall into different time periods.

0.5

CallsAnswered

integer

The number of answered calls.

100

AgentAnswerRate

number

The agent answer rate.

100

CallsCustomerHandled

integer

The number of calls handled by customers.

100

CustomerHandleRate

number

The customer handle rate.

100

TotalTalkTime

integer

The total talk time in seconds.

100

MaxTalkTime

integer

The maximum talk time in seconds.

100

AverageTalkTime

integer

The average talk duration, in seconds.

100

TotalRingTime

integer

The total ring time in seconds.

100

MaxRingTime

integer

The maximum ring time in seconds.

100

AverageRingTime

number

The average ring time in seconds.

100

TotalCustomerRingTime

integer

The total customer ring duration, in seconds.

100

MaxCustomerRingTime

integer

The maximum customer ring duration, in seconds.

100

AverageCustomerRingTime

number

The average customer ring duration, in seconds.

100

AgentHandleRate

number

The agent handle rate.

1

CallsCustomerAnswered

integer

The number of calls answered by customers.

12

CustomerAnswerRate

number

The customer answer rate.

0.6

CallsAgentHandled

integer

The number of calls answered by agents.

5

Examples

Success response

JSON format

{
  "Code": "OK",
  "HttpStatusCode": 200,
  "Message": "None",
  "RequestId": "2778FA12-EDD6-42AA-9B15-AF855072E5E5",
  "Data": [
    {
      "StatsTime": 1620291600000,
      "Inbound": {
        "AverageRingTime": 11,
        "CallsHandled": 7,
        "TotalWorkTime": 85,
        "CallsAttendedTransferOut": 10,
        "MaxWorkTime": 100,
        "TotalHoldTime": 100,
        "AverageWorkTime": 100,
        "CallsBlindTransferIn": 100,
        "SatisfactionIndex": 100,
        "CallsRinged": 100,
        "CallsAttendedTransferIn": 100,
        "CallsBlindTransferOut": 100,
        "TotalRingTime": 100,
        "MaxTalkTime": 100,
        "MaxRingTime": 100,
        "TotalTalkTime": 100,
        "CallsOffered": 100,
        "MaxHoldTime": 100,
        "AverageTalkTime": 100,
        "SatisfactionRate": 0.5,
        "CallsHold": 100,
        "SatisfactionSurveysOffered": 100,
        "HandleRate": 0.5,
        "SatisfactionSurveysResponded": 100,
        "AverageHoldTime": 100,
        "AverageFirstResponseTime": 6,
        "AverageResponseTime": 18,
        "TotalMessagesSent": 12,
        "TotalMessagesSentByAgent": 8,
        "TotalMessagesSentByCustomer": 5
      },
      "Outbound": {
        "AverageRingTime": 100,
        "CallsDialed": 100,
        "CallsAnswered": 100,
        "TotalWorkTime": 100,
        "CallsAttendedTransferOut": 100,
        "MaxWorkTime": 100,
        "TotalDialingTime": 100,
        "TotalHoldTime": 100,
        "AverageWorkTime": 100,
        "CallsBlindTransferIn": 100,
        "SatisfactionIndex": 100,
        "CallsRinged": 100,
        "CallsAttendedTransferIn": 100,
        "CallsBlindTransferOut": 100,
        "TotalRingTime": 100,
        "MaxTalkTime": 0,
        "MaxRingTime": 100,
        "TotalTalkTime": 100,
        "MaxDialingTime": 100,
        "AnswerRate": 0.5,
        "MaxHoldTime": 100,
        "AverageTalkTime": 100,
        "SatisfactionRate": 100,
        "CallsHold": 100,
        "SatisfactionSurveysOffered": 100,
        "SatisfactionSurveysResponded": 100,
        "AverageHoldTime": 100,
        "AverageDialingTime": 100
      },
      "Overall": {
        "OccupancyRate": 0.4,
        "TotalWorkTime": 100,
        "MaxWorkTime": 100,
        "TotalHoldTime": 100,
        "AverageWorkTime": 100,
        "MaxBreakTime": 100,
        "SatisfactionIndex": 1.4,
        "MaxReadyTime": 100,
        "MaxTalkTime": 100,
        "TotalReadyTime": 100,
        "LastCheckOutTime": 1712548421000,
        "TotalCalls": 100,
        "TotalLoggedInTime": 100,
        "TotalTalkTime": 100,
        "MaxHoldTime": 100,
        "AverageBreakTime": 100,
        "AverageTalkTime": 100,
        "SatisfactionRate": 100,
        "SatisfactionSurveysOffered": 100,
        "FirstCheckInTime": 100,
        "SatisfactionSurveysResponded": 100,
        "AverageHoldTime": 100,
        "AverageReadyTime": 100,
        "TotalBreakTime": 100,
        "BreakCodeDetailList": [
          {
            "BreakCode": "Meeting",
            "Count": 1,
            "Duration": 100
          }
        ],
        "TotalOutboundScenarioTime": 100,
        "TotalOutboundScenarioReadyTime": 100,
        "TotalOutboundScenarioLoggedInTime": 100,
        "TotalOffSiteLoggedInTime": "100",
        "TotalOfficePhoneLoggedInTime": "100",
        "TotalOnSiteLoggedInTime": "100",
        "LastCheckoutTime": 100
      },
      "Internal": {
        "TotalTalkTime": 100,
        "AverageTalkTime": 100,
        "MaxTalkTime": 100,
        "CallsOffered": 100,
        "CallsHandled": 100,
        "CallsTalk": 100,
        "CallsDialed": 100,
        "CallsAnswered": 100,
        "CallsTalked": 100
      },
      "Back2Back": {
        "CallsDialed": 100,
        "AnswerRate": 0.5,
        "CallsAnswered": 100,
        "AgentAnswerRate": 100,
        "CallsCustomerHandled": 100,
        "CustomerHandleRate": 100,
        "TotalTalkTime": 100,
        "MaxTalkTime": 100,
        "AverageTalkTime": 100,
        "TotalRingTime": 100,
        "MaxRingTime": 100,
        "AverageRingTime": 100,
        "TotalCustomerRingTime": 100,
        "MaxCustomerRingTime": 100,
        "AverageCustomerRingTime": 100,
        "AgentHandleRate": 1,
        "CallsCustomerAnswered": 12,
        "CustomerAnswerRate": 0.6,
        "CallsAgentHandled": 5
      }
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 Parameter.Format The format of parameter %s is invalid. %s The format of the parameter is invalid.
400 Parameter.Blank The parameter %s must not be null or empty. The parameter cannot be null or a string that contains whitespace characters.
500 InternalService.Common An internal service error occurred. %s An internal service error occurred.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.