ListIntervalAgentReport

Updated at:

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

Operation description

Invokes the ListIntervalAgentReport operation 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 agent ID.

agent@ccc-test

StartTime

integer

No

The start time. The value is a UNIX timestamp in milliseconds. This parameter is optional. Default value: 00:00:00 of the current day. The statistical time precision is in hours. The time is rounded down, and the interval is closed.

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 interval between StartTime and EndTime is 180 days. If Interval is set to Hourly, the maximum interval is 10 days. The statistical time precision is in hours. The time is rounded up, and the interval is open. 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 greater than or equal to 11:00 and less than 12:00.

1532707199000

InstanceId

string

Yes

The instance ID.

ccc-test

Interval

string

No

The interval statistics type. This parameter is optional. Default value: Daily.

Valid values:

  • Hourly :

    Hourly statistics.

  • Daily :

    Daily statistics.

Hourly

MediaType

string

No

The media type. Default value: Audio. Other valid values include Chat and Video.

VIDEO

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.

943D8EF3-3321-471F-A104-51C96FCA94D6

Data

array<object>

The list of segmented statistics for agents.

array<object>

The segmented statistics for an agent.

StatsTime

integer

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

1620291600000

Inbound

object

The inbound metrics.

AverageRingTime

number

The average ring time in seconds. Calculation formula: TotalRingTime/CallsRinged.

0

CallsHandled

integer

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

0

TotalWorkTime

integer

The total after-call work time in seconds.

0

CallsAttendedTransferOut

integer

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

0

MaxWorkTime

integer

The maximum after-call work time in seconds.

0

TotalHoldTime

integer

The total hold time in seconds.

0

AverageWorkTime

number

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

0

CallsBlindTransferIn

integer

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

0

SatisfactionIndex

number

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

0

CallsRinged

integer

The number of calls that rang for the agent.

0

CallsAttendedTransferIn

integer

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

0

CallsBlindTransferOut

integer

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

0

TotalRingTime

integer

The total ring time in seconds.

0

MaxTalkTime

integer

The maximum talk time in seconds.

0

MaxRingTime

integer

The maximum ring time in seconds.

0

TotalTalkTime

integer

The total talk time in seconds.

0

CallsOffered

integer

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

0

MaxHoldTime

integer

The maximum hold time in seconds.

0

AverageTalkTime

number

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

0

SatisfactionRate

number

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

0

CallsHold

integer

The number of held calls, which is the number of times calls were placed on hold.

0

SatisfactionSurveysOffered

integer

The number of satisfaction surveys offered.

0

HandleRate

number

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

0

SatisfactionSurveysResponded

integer

The number of satisfaction survey responses.

0

AverageHoldTime

number

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

0

AccessChannelTypeDetails

array<object>

The statistics for each channel.

object

The statistics for each channel.

AccessChannelType

string

The channel type.

Web

CallsOffered

integer

The number of offered sessions.

2

AverageFirstResponseTime

number

The average first response time for chat sessions in seconds.

8

AverageResponseTime

number

The average response time for chat sessions.

10

ServiceLevel15

number

The 15-second service level.

0.6

TotalMessagesSent

integer

The total number of messages sent in chat sessions.

12

TotalMessagesSentByAgent

integer

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

10

TotalMessagesSentByCustomer

integer

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

2

Outbound

object

The outbound metrics.

AverageRingTime

number

The average ring time in seconds. Calculation formula: TotalRingTime/CallsRinged.

0

CallsDialed

integer

The number of dialed calls.

5

CallsAnswered

integer

The number of answered calls.

0

TotalWorkTime

integer

The total after-call work time in seconds.

4

CallsAttendedTransferOut

integer

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

0

MaxWorkTime

integer

The maximum after-call work time in seconds.

2

TotalDialingTime

integer

The total dialing time in seconds.

148

TotalHoldTime

integer

The total hold time in seconds.

0

AverageWorkTime

number

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

1

CallsBlindTransferIn

integer

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

0

SatisfactionIndex

number

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

0

CallsRinged

integer

The number of calls that rang for the agent.

0

CallsAttendedTransferIn

integer

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

0

CallsBlindTransferOut

integer

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

0

TotalRingTime

integer

The total ring time in seconds.

0

MaxTalkTime

integer

The maximum talk time in seconds.

0

MaxRingTime

integer

The maximum ring time in seconds.

0

TotalTalkTime

integer

The total talk time in seconds.

0

MaxDialingTime

integer

The maximum dialing time in seconds.

60

AnswerRate

number

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

0

MaxHoldTime

integer

The maximum hold time in seconds.

0

AverageTalkTime

number

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

0

SatisfactionRate

number

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

0

CallsHold

integer

The number of held calls, which is the number of times calls were placed on hold.

0

SatisfactionSurveysOffered

integer

The number of satisfaction surveys offered.

0

SatisfactionSurveysResponded

integer

The number of satisfaction survey responses.

0

AverageHoldTime

number

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

0

AverageDialingTime

number

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

30

Overall

object

The overall metrics.

OccupancyRate

number

The agent occupancy rate. Calculation formula: (TotalWorkTime + TotalTalkTime) / TotalLoggedInTime.

0

TotalWorkTime

integer

The total after-call work time in seconds.

4

MaxWorkTime

integer

The maximum after-call work time in seconds.

2

TotalHoldTime

integer

The total hold time in seconds.

0

AverageWorkTime

number

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

1

MaxBreakTime

integer

The maximum break duration, in seconds.

1

SatisfactionIndex

number

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

0

MaxReadyTime

integer

The maximum ready duration, in seconds.

435

MaxTalkTime

integer

The maximum talk time in seconds.

0

TotalReadyTime

integer

The total ready duration, in seconds.

763

LastCheckoutTime

integer

The last offline time of the day. This parameter returns a value only when the Interval request parameter is set to Daily. The value is a UNIX timestamp in milliseconds.

**[Deprecated]** Use LastCheckOutTime instead

LastCheckOutTime

integer

The last offline time of the day. This parameter returns a value only when the Interval request parameter is set to Daily. The value is a UNIX timestamp in milliseconds.

0

TotalCalls

integer

The total number of calls. Calculation formula: CallsOffered + CallsDialed.

5

TotalLoggedInTime

integer

The total logged-in duration, in seconds. Note: This does not include offline and break durations.

914

TotalTalkTime

integer

The total talk time in seconds.

0

MaxHoldTime

integer

The maximum hold time in seconds.

0

AverageBreakTime

number

The average break duration, in seconds. Calculation formula: TotalBreakTime / Number of breaks. The number of breaks is not a metric returned by the API.

0

AverageTalkTime

number

The average talk duration, in seconds. Calculation formula: TotalTalkTime / (CallsAnswered + CallsHandled).

0

SatisfactionRate

number

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

0

SatisfactionSurveysOffered

integer

The number of satisfaction surveys offered.

0

SatisfactionSurveysResponded

integer

The number of satisfaction survey responses.

0

AverageHoldTime

number

The average hold duration, in seconds. Calculation formula: TotalHoldTime / (Inbound CallsHold + Outbound CallsHold).

0

AverageReadyTime

number

The average ready duration, in seconds. Calculation formula: TotalReadyTime / Number of ready states. The number of ready states is not a metric returned by the API.

0

TotalBreakTime

integer

The total break duration, in seconds.

1

TotalOnSiteOnlineTime

integer

The total on-site online duration, in seconds.

**[Deprecated]** Use TotalOnSiteLoggedInTime instead

TotalOffSiteOnlineTime

integer

The total off-site online duration, in seconds.

**[Deprecated]** Use TotalOffSiteLoggedInTime instead

TotalOfficePhoneOnlineTime

integer

The total office phone online duration, in seconds.

**[Deprecated]** Use TotalOfficePhoneLoggedInTime instead

BreakCodeDetailList

array<object>

The list of break details.

object

The break details.

BreakCode

string

The break code.

Meeting

Count

integer

The count.

10

Duration

integer

The duration, in seconds.

100

TotalOutboundScenarioTime

integer

The total outbound-only duration, in seconds.

**[Deprecated]** Use TotalOutboundScenarioLoggedInTime instead

TotalOutboundScenarioReadyTime

integer

The total outbound-only ready duration, in seconds.

100

FirstCheckInTime

integer

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

0

TotalOfficePhoneLoggedInTime

integer

The total office phone online duration, in seconds.

100

TotalOffSiteLoggedInTime

integer

The total off-site online duration, in seconds.

100

TotalOnSiteLoggedInTime

integer

The total on-site online duration, in seconds.

100

TotalOutboundScenarioLoggedInTime

integer

The total outbound-only logged-in duration, in seconds.

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 exceed 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

TotalTalkTime

integer

The total talk time in seconds.

100

MaxTalkTime

integer

The maximum talk time in seconds.

100

AverageTalkTime

number

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 duration, in seconds.

100

TotalCustomerRingTime

integer

The total customer-side ring duration, in seconds.

100

MaxCustomerRingTime

integer

The maximum customer-side ring duration, in seconds.

100

AverageCustomerRingTime

number

The average customer-side ring duration, in seconds.

100

CallsAgentHandled

integer

The number of calls handled by agents.

12

AgentHandleRate

number

The agent answer rate.

1

CallsCustomerAnswered

integer

The number of calls answered by customers.

9

CustomerAnswerRate

number

The customer answer rate.

0.75

Internal

object

The internal call metrics.

AverageTalkTime

number

The average talk duration, in seconds.

100

CallsAnswered

integer

The number of answered calls.

100

CallsDialed

integer

The number of dialed calls.

100

CallsHandled

integer

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

100

CallsOffered

integer

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

100

CallsTalked

integer

The number of calls participated in.

80

Examples

Success response

JSON format

{
  "Code": "OK",
  "HttpStatusCode": 200,
  "Message": "None",
  "RequestId": "943D8EF3-3321-471F-A104-51C96FCA94D6",
  "Data": [
    {
      "StatsTime": 1620291600000,
      "Inbound": {
        "AverageRingTime": 0,
        "CallsHandled": 0,
        "TotalWorkTime": 0,
        "CallsAttendedTransferOut": 0,
        "MaxWorkTime": 0,
        "TotalHoldTime": 0,
        "AverageWorkTime": 0,
        "CallsBlindTransferIn": 0,
        "SatisfactionIndex": 0,
        "CallsRinged": 0,
        "CallsAttendedTransferIn": 0,
        "CallsBlindTransferOut": 0,
        "TotalRingTime": 0,
        "MaxTalkTime": 0,
        "MaxRingTime": 0,
        "TotalTalkTime": 0,
        "CallsOffered": 0,
        "MaxHoldTime": 0,
        "AverageTalkTime": 0,
        "SatisfactionRate": 0,
        "CallsHold": 0,
        "SatisfactionSurveysOffered": 0,
        "HandleRate": 0,
        "SatisfactionSurveysResponded": 0,
        "AverageHoldTime": 0,
        "AccessChannelTypeDetails": [
          {
            "AccessChannelType": "Web",
            "CallsOffered": 2
          }
        ],
        "AverageFirstResponseTime": 8,
        "AverageResponseTime": 10,
        "ServiceLevel15": 0.6,
        "TotalMessagesSent": 12,
        "TotalMessagesSentByAgent": 10,
        "TotalMessagesSentByCustomer": 2
      },
      "Outbound": {
        "AverageRingTime": 0,
        "CallsDialed": 5,
        "CallsAnswered": 0,
        "TotalWorkTime": 4,
        "CallsAttendedTransferOut": 0,
        "MaxWorkTime": 2,
        "TotalDialingTime": 148,
        "TotalHoldTime": 0,
        "AverageWorkTime": 1,
        "CallsBlindTransferIn": 0,
        "SatisfactionIndex": 0,
        "CallsRinged": 0,
        "CallsAttendedTransferIn": 0,
        "CallsBlindTransferOut": 0,
        "TotalRingTime": 0,
        "MaxTalkTime": 0,
        "MaxRingTime": 0,
        "TotalTalkTime": 0,
        "MaxDialingTime": 60,
        "AnswerRate": 0,
        "MaxHoldTime": 0,
        "AverageTalkTime": 0,
        "SatisfactionRate": 0,
        "CallsHold": 0,
        "SatisfactionSurveysOffered": 0,
        "SatisfactionSurveysResponded": 0,
        "AverageHoldTime": 0,
        "AverageDialingTime": 30
      },
      "Overall": {
        "OccupancyRate": 0,
        "TotalWorkTime": 4,
        "MaxWorkTime": 2,
        "TotalHoldTime": 0,
        "AverageWorkTime": 1,
        "MaxBreakTime": 1,
        "SatisfactionIndex": 0,
        "MaxReadyTime": 435,
        "MaxTalkTime": 0,
        "TotalReadyTime": 763,
        "LastCheckoutTime": 0,
        "LastCheckOutTime": 0,
        "TotalCalls": 5,
        "TotalLoggedInTime": 914,
        "TotalTalkTime": 0,
        "MaxHoldTime": 0,
        "AverageBreakTime": 0,
        "AverageTalkTime": 0,
        "SatisfactionRate": 0,
        "SatisfactionSurveysOffered": 0,
        "SatisfactionSurveysResponded": 0,
        "AverageHoldTime": 0,
        "AverageReadyTime": 0,
        "TotalBreakTime": 1,
        "TotalOnSiteOnlineTime": 0,
        "TotalOffSiteOnlineTime": 0,
        "TotalOfficePhoneOnlineTime": 0,
        "BreakCodeDetailList": [
          {
            "BreakCode": "Meeting",
            "Count": 10,
            "Duration": 100
          }
        ],
        "TotalOutboundScenarioTime": 0,
        "TotalOutboundScenarioReadyTime": 100,
        "FirstCheckInTime": 0,
        "TotalOfficePhoneLoggedInTime": 100,
        "TotalOffSiteLoggedInTime": 100,
        "TotalOnSiteLoggedInTime": 100,
        "TotalOutboundScenarioLoggedInTime": 100
      },
      "Back2Back": {
        "CallsDialed": 100,
        "AnswerRate": 0.5,
        "CallsAnswered": 100,
        "TotalTalkTime": 100,
        "MaxTalkTime": 100,
        "AverageTalkTime": 100,
        "TotalRingTime": 100,
        "MaxRingTime": 100,
        "AverageRingTime": 100,
        "TotalCustomerRingTime": 100,
        "MaxCustomerRingTime": 100,
        "AverageCustomerRingTime": 100,
        "CallsAgentHandled": 12,
        "AgentHandleRate": 1,
        "CallsCustomerAnswered": 9,
        "CustomerAnswerRate": 0.75
      },
      "Internal": {
        "AverageTalkTime": 100,
        "CallsAnswered": 100,
        "CallsDialed": 100,
        "CallsHandled": 100,
        "CallsOffered": 100,
        "CallsTalked": 80
      }
    }
  ]
}

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 may not be null or blank. 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.