GenerateAgentStatisticReportResult.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTRESULT_H_
  17. #define ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/ccc/CCCExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace CCC
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_CCC_EXPORT GenerateAgentStatisticReportResult : public ServiceResult
  30. {
  31. public:
  32. struct DataList
  33. {
  34. struct GenerateAgentStatistic
  35. {
  36. struct Inbound
  37. {
  38. long totalWorkTime;
  39. long totalHoldTime;
  40. long averageHoldTime;
  41. long satisfactionSurveysOffered;
  42. long callsOffered;
  43. long maxRingTime;
  44. float satisfactionIndex;
  45. long callsHandled;
  46. long satisfactionSurveysResponded;
  47. long totalRingTime;
  48. float handleRate;
  49. long totalTalkTime;
  50. long averageRingTime;
  51. long maxTalkTime;
  52. long averageWorkTime;
  53. long maxWorkTime;
  54. long averageTalkTime;
  55. long maxHoldTime;
  56. };
  57. struct Outbound
  58. {
  59. long totalDialingTime;
  60. long totalWorkTime;
  61. long totalHoldTime;
  62. long averageHoldTime;
  63. long satisfactionSurveysOffered;
  64. float satisfactionIndex;
  65. long satisfactionSurveysResponded;
  66. long averageDialingTime;
  67. long callsAnswered;
  68. long totalTalkTime;
  69. long callsDialed;
  70. long totalDialingTime1;
  71. long maxDialingTime;
  72. long maxTalkTime;
  73. long averageWorkTime;
  74. long maxWorkTime;
  75. long averageTalkTime;
  76. long maxHoldTime;
  77. float answerRate;
  78. };
  79. struct Overall
  80. {
  81. long totalCalls;
  82. long totalWorkTime;
  83. long totalHoldTime;
  84. long averageHoldTime;
  85. long satisfactionSurveysOffered;
  86. float satisfactionIndex;
  87. long satisfactionSurveysResponded;
  88. long totalTalkTime;
  89. long maxTalkTime;
  90. long averageWorkTime;
  91. long maxWorkTime;
  92. long averageTalkTime;
  93. long maxHoldTime;
  94. };
  95. long totalReadyTime;
  96. Overall overall;
  97. std::string loginName;
  98. std::string skillGroupIds;
  99. long totalBreakTime;
  100. std::string instanceId;
  101. std::string recordDate;
  102. Inbound inbound;
  103. Outbound outbound;
  104. long averageReadyTime;
  105. std::string skillGroupNames;
  106. long totalLoggedInTime;
  107. std::string agentId;
  108. std::string agentName;
  109. long maxReadyTime;
  110. float occupancyRate;
  111. };
  112. int totalCount;
  113. int pageSize;
  114. int pageNumber;
  115. std::vector<GenerateAgentStatistic> list;
  116. };
  117. GenerateAgentStatisticReportResult();
  118. explicit GenerateAgentStatisticReportResult(const std::string &payload);
  119. ~GenerateAgentStatisticReportResult();
  120. DataList getDataList()const;
  121. std::string getMessage()const;
  122. int getHttpStatusCode()const;
  123. std::string getCode()const;
  124. bool getSuccess()const;
  125. protected:
  126. void parse(const std::string &payload);
  127. private:
  128. DataList dataList_;
  129. std::string message_;
  130. int httpStatusCode_;
  131. std::string code_;
  132. bool success_;
  133. };
  134. }
  135. }
  136. }
  137. #endif // !ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTRESULT_H_