@huaweicloud/huaweicloud-sdk-cloudrtc 3.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +1 -0
  3. package/huaweicloud-sdk-cloudrtc.d.ts +3 -0
  4. package/huaweicloud-sdk-cloudrtc.js +32 -0
  5. package/package.json +19 -0
  6. package/v1/CloudRTCClient.d.ts +469 -0
  7. package/v1/CloudRTCClient.js +1444 -0
  8. package/v1/CloudRTCRegion.d.ts +5 -0
  9. package/v1/CloudRTCRegion.js +23 -0
  10. package/v1/model/AbnormalEvent.d.ts +35 -0
  11. package/v1/model/AbnormalEvent.js +119 -0
  12. package/v1/model/AbnormalEventDimensionValue.d.ts +23 -0
  13. package/v1/model/AbnormalEventDimensionValue.js +84 -0
  14. package/v1/model/ListRtcAbnormalEventDimensionRequest.d.ts +27 -0
  15. package/v1/model/ListRtcAbnormalEventDimensionRequest.js +69 -0
  16. package/v1/model/ListRtcAbnormalEventDimensionResponse.d.ts +11 -0
  17. package/v1/model/ListRtcAbnormalEventDimensionResponse.js +45 -0
  18. package/v1/model/ListRtcAbnormalEventsRequest.d.ts +23 -0
  19. package/v1/model/ListRtcAbnormalEventsRequest.js +68 -0
  20. package/v1/model/ListRtcAbnormalEventsResponse.d.ts +13 -0
  21. package/v1/model/ListRtcAbnormalEventsResponse.js +49 -0
  22. package/v1/model/ListRtcClientQosDetailsRequest.d.ts +86 -0
  23. package/v1/model/ListRtcClientQosDetailsRequest.js +218 -0
  24. package/v1/model/ListRtcClientQosDetailsResponse.d.ts +15 -0
  25. package/v1/model/ListRtcClientQosDetailsResponse.js +59 -0
  26. package/v1/model/ListRtcHistoryQualityRequest.d.ts +27 -0
  27. package/v1/model/ListRtcHistoryQualityRequest.js +89 -0
  28. package/v1/model/ListRtcHistoryQualityResponse.d.ts +11 -0
  29. package/v1/model/ListRtcHistoryQualityResponse.js +45 -0
  30. package/v1/model/ListRtcHistoryScaleRequest.d.ts +27 -0
  31. package/v1/model/ListRtcHistoryScaleRequest.js +89 -0
  32. package/v1/model/ListRtcHistoryScaleResponse.d.ts +11 -0
  33. package/v1/model/ListRtcHistoryScaleResponse.js +45 -0
  34. package/v1/model/ListRtcHistoryUsageRequest.d.ts +27 -0
  35. package/v1/model/ListRtcHistoryUsageRequest.js +91 -0
  36. package/v1/model/ListRtcHistoryUsageResponse.d.ts +11 -0
  37. package/v1/model/ListRtcHistoryUsageResponse.js +45 -0
  38. package/v1/model/ListRtcRealtimeNetworkRequest.d.ts +35 -0
  39. package/v1/model/ListRtcRealtimeNetworkRequest.js +118 -0
  40. package/v1/model/ListRtcRealtimeNetworkResponse.d.ts +11 -0
  41. package/v1/model/ListRtcRealtimeNetworkResponse.js +45 -0
  42. package/v1/model/ListRtcRealtimeQualityRequest.d.ts +35 -0
  43. package/v1/model/ListRtcRealtimeQualityRequest.js +118 -0
  44. package/v1/model/ListRtcRealtimeQualityResponse.d.ts +11 -0
  45. package/v1/model/ListRtcRealtimeQualityResponse.js +45 -0
  46. package/v1/model/ListRtcRealtimeScaleDimensionRequest.d.ts +27 -0
  47. package/v1/model/ListRtcRealtimeScaleDimensionRequest.js +85 -0
  48. package/v1/model/ListRtcRealtimeScaleDimensionResponse.d.ts +11 -0
  49. package/v1/model/ListRtcRealtimeScaleDimensionResponse.js +45 -0
  50. package/v1/model/ListRtcRealtimeScaleRequest.d.ts +31 -0
  51. package/v1/model/ListRtcRealtimeScaleRequest.js +103 -0
  52. package/v1/model/ListRtcRealtimeScaleResponse.d.ts +11 -0
  53. package/v1/model/ListRtcRealtimeScaleResponse.js +45 -0
  54. package/v1/model/ListRtcRoomListRequest.d.ts +43 -0
  55. package/v1/model/ListRtcRoomListRequest.js +119 -0
  56. package/v1/model/ListRtcRoomListResponse.d.ts +19 -0
  57. package/v1/model/ListRtcRoomListResponse.js +67 -0
  58. package/v1/model/ListRtcUserListRequest.d.ts +53 -0
  59. package/v1/model/ListRtcUserListRequest.js +139 -0
  60. package/v1/model/ListRtcUserListResponse.d.ts +17 -0
  61. package/v1/model/ListRtcUserListResponse.js +57 -0
  62. package/v1/model/QosQualityData.d.ts +12 -0
  63. package/v1/model/QosQualityData.js +25 -0
  64. package/v1/model/RealtimeScaleDimensionValue.d.ts +9 -0
  65. package/v1/model/RealtimeScaleDimensionValue.js +27 -0
  66. package/v1/model/RtcHistoryQualityTimeValue.d.ts +61 -0
  67. package/v1/model/RtcHistoryQualityTimeValue.js +209 -0
  68. package/v1/model/RtcHistoryScaleTimeValue.d.ts +37 -0
  69. package/v1/model/RtcHistoryScaleTimeValue.js +125 -0
  70. package/v1/model/RtcHistoryUsage.d.ts +23 -0
  71. package/v1/model/RtcHistoryUsage.js +73 -0
  72. package/v1/model/RtcServerRoomInfo.d.ts +31 -0
  73. package/v1/model/RtcServerRoomInfo.js +76 -0
  74. package/v1/model/RtcUser.d.ts +52 -0
  75. package/v1/model/RtcUser.js +129 -0
  76. package/v1/model/TimeDoubleValueData.d.ts +7 -0
  77. package/v1/model/TimeDoubleValueData.js +17 -0
  78. package/v1/model/TimeFloatValueData.d.ts +7 -0
  79. package/v1/model/TimeFloatValueData.js +17 -0
  80. package/v1/model/TimeValueData.d.ts +7 -0
  81. package/v1/model/TimeValueData.js +17 -0
  82. package/v1/public-api.d.ts +38 -0
  83. package/v1/public-api.js +54 -0
  84. package/v2/CloudRTCClient.d.ts +906 -0
  85. package/v2/CloudRTCClient.js +2196 -0
  86. package/v2/CloudRTCRegion.d.ts +5 -0
  87. package/v2/CloudRTCRegion.js +23 -0
  88. package/v2/model/App.d.ts +46 -0
  89. package/v2/model/App.js +109 -0
  90. package/v2/model/AppAuth.d.ts +15 -0
  91. package/v2/model/AppAuth.js +45 -0
  92. package/v2/model/AppAuthReq.d.ts +7 -0
  93. package/v2/model/AppAuthReq.js +18 -0
  94. package/v2/model/AppAutoRecordMode.d.ts +21 -0
  95. package/v2/model/AppAutoRecordMode.js +51 -0
  96. package/v2/model/AppCallbackUrl.d.ts +25 -0
  97. package/v2/model/AppCallbackUrl.js +64 -0
  98. package/v2/model/AppCallbackUrlReq.d.ts +9 -0
  99. package/v2/model/AppCallbackUrlReq.js +28 -0
  100. package/v2/model/AppCallbacks.d.ts +12 -0
  101. package/v2/model/AppCallbacks.js +37 -0
  102. package/v2/model/AppReq.d.ts +7 -0
  103. package/v2/model/AppReq.js +24 -0
  104. package/v2/model/AppState.d.ts +19 -0
  105. package/v2/model/AppState.js +38 -0
  106. package/v2/model/AutoRecordModeReq.d.ts +17 -0
  107. package/v2/model/AutoRecordModeReq.js +37 -0
  108. package/v2/model/CreateAppRequest.d.ts +18 -0
  109. package/v2/model/CreateAppRequest.js +55 -0
  110. package/v2/model/CreateAppResponse.d.ts +12 -0
  111. package/v2/model/CreateAppResponse.js +55 -0
  112. package/v2/model/CreateIndividualStreamJobRequest.d.ts +22 -0
  113. package/v2/model/CreateIndividualStreamJobRequest.js +70 -0
  114. package/v2/model/CreateIndividualStreamJobResponse.d.ts +110 -0
  115. package/v2/model/CreateIndividualStreamJobResponse.js +300 -0
  116. package/v2/model/CreateMixJobRequest.d.ts +22 -0
  117. package/v2/model/CreateMixJobRequest.js +70 -0
  118. package/v2/model/CreateMixJobResponse.d.ts +76 -0
  119. package/v2/model/CreateMixJobResponse.js +223 -0
  120. package/v2/model/CreateRecordRuleRequest.d.ts +22 -0
  121. package/v2/model/CreateRecordRuleRequest.js +70 -0
  122. package/v2/model/CreateRecordRuleResponse.d.ts +51 -0
  123. package/v2/model/CreateRecordRuleResponse.js +162 -0
  124. package/v2/model/DeleteAppRequest.d.ts +19 -0
  125. package/v2/model/DeleteAppRequest.js +66 -0
  126. package/v2/model/DeleteAppResponse.d.ts +8 -0
  127. package/v2/model/DeleteAppResponse.js +41 -0
  128. package/v2/model/DeleteRecordRuleRequest.d.ts +23 -0
  129. package/v2/model/DeleteRecordRuleRequest.js +81 -0
  130. package/v2/model/DeleteRecordRuleResponse.d.ts +8 -0
  131. package/v2/model/DeleteRecordRuleResponse.js +41 -0
  132. package/v2/model/HLSRecordConfig.d.ts +19 -0
  133. package/v2/model/HLSRecordConfig.js +66 -0
  134. package/v2/model/IndividualStreamJobReq.d.ts +55 -0
  135. package/v2/model/IndividualStreamJobReq.js +143 -0
  136. package/v2/model/ListAppsRequest.d.ts +30 -0
  137. package/v2/model/ListAppsRequest.js +73 -0
  138. package/v2/model/ListAppsResponse.d.ts +13 -0
  139. package/v2/model/ListAppsResponse.js +49 -0
  140. package/v2/model/ListRecordRulesRequest.d.ts +23 -0
  141. package/v2/model/ListRecordRulesRequest.js +74 -0
  142. package/v2/model/ListRecordRulesResponse.d.ts +11 -0
  143. package/v2/model/ListRecordRulesResponse.js +45 -0
  144. package/v2/model/MP4RecordConfig.d.ts +15 -0
  145. package/v2/model/MP4RecordConfig.js +52 -0
  146. package/v2/model/MixJobReq.d.ts +18 -0
  147. package/v2/model/MixJobReq.js +52 -0
  148. package/v2/model/MixLayoutPane.d.ts +55 -0
  149. package/v2/model/MixLayoutPane.js +116 -0
  150. package/v2/model/MixParam.d.ts +60 -0
  151. package/v2/model/MixParam.js +157 -0
  152. package/v2/model/MixUserBackgroundImage.d.ts +11 -0
  153. package/v2/model/MixUserBackgroundImage.js +39 -0
  154. package/v2/model/PublishParam.d.ts +7 -0
  155. package/v2/model/PublishParam.js +24 -0
  156. package/v2/model/RecordObsFileAddr.d.ts +22 -0
  157. package/v2/model/RecordObsFileAddr.js +56 -0
  158. package/v2/model/RecordParam.d.ts +7 -0
  159. package/v2/model/RecordParam.js +24 -0
  160. package/v2/model/RecordRule.d.ts +46 -0
  161. package/v2/model/RecordRule.js +130 -0
  162. package/v2/model/RecordRuleReq.d.ts +30 -0
  163. package/v2/model/RecordRuleReq.js +76 -0
  164. package/v2/model/RemoveRoomRequest.d.ts +23 -0
  165. package/v2/model/RemoveRoomRequest.js +81 -0
  166. package/v2/model/RemoveRoomResponse.d.ts +8 -0
  167. package/v2/model/RemoveRoomResponse.js +41 -0
  168. package/v2/model/RemoveUsersReq.d.ts +7 -0
  169. package/v2/model/RemoveUsersReq.js +24 -0
  170. package/v2/model/RemoveUsersRequest.d.ts +26 -0
  171. package/v2/model/RemoveUsersRequest.js +85 -0
  172. package/v2/model/RemoveUsersResponse.d.ts +8 -0
  173. package/v2/model/RemoveUsersResponse.js +41 -0
  174. package/v2/model/ShowAppRequest.d.ts +19 -0
  175. package/v2/model/ShowAppRequest.js +66 -0
  176. package/v2/model/ShowAppResponse.d.ts +51 -0
  177. package/v2/model/ShowAppResponse.js +141 -0
  178. package/v2/model/ShowAutoRecordRequest.d.ts +19 -0
  179. package/v2/model/ShowAutoRecordRequest.js +66 -0
  180. package/v2/model/ShowAutoRecordResponse.d.ts +17 -0
  181. package/v2/model/ShowAutoRecordResponse.js +69 -0
  182. package/v2/model/ShowIndividualStreamJobRequest.d.ts +23 -0
  183. package/v2/model/ShowIndividualStreamJobRequest.js +81 -0
  184. package/v2/model/ShowIndividualStreamJobResponse.d.ts +110 -0
  185. package/v2/model/ShowIndividualStreamJobResponse.js +300 -0
  186. package/v2/model/ShowMixJobRequest.d.ts +23 -0
  187. package/v2/model/ShowMixJobRequest.js +81 -0
  188. package/v2/model/ShowMixJobResponse.d.ts +76 -0
  189. package/v2/model/ShowMixJobResponse.js +223 -0
  190. package/v2/model/ShowRecordCallbackRequest.d.ts +19 -0
  191. package/v2/model/ShowRecordCallbackRequest.js +66 -0
  192. package/v2/model/ShowRecordCallbackResponse.d.ts +17 -0
  193. package/v2/model/ShowRecordCallbackResponse.js +69 -0
  194. package/v2/model/ShowRecordRuleRequest.d.ts +23 -0
  195. package/v2/model/ShowRecordRuleRequest.js +81 -0
  196. package/v2/model/ShowRecordRuleResponse.d.ts +51 -0
  197. package/v2/model/ShowRecordRuleResponse.js +162 -0
  198. package/v2/model/ShowUrlAuthRequest.d.ts +19 -0
  199. package/v2/model/ShowUrlAuthRequest.js +66 -0
  200. package/v2/model/ShowUrlAuthResponse.d.ts +15 -0
  201. package/v2/model/ShowUrlAuthResponse.js +59 -0
  202. package/v2/model/StartAppRequest.d.ts +19 -0
  203. package/v2/model/StartAppRequest.js +66 -0
  204. package/v2/model/StartAppResponse.d.ts +15 -0
  205. package/v2/model/StartAppResponse.js +59 -0
  206. package/v2/model/StopAppRequest.d.ts +19 -0
  207. package/v2/model/StopAppRequest.js +66 -0
  208. package/v2/model/StopAppResponse.d.ts +15 -0
  209. package/v2/model/StopAppResponse.js +59 -0
  210. package/v2/model/StopIndividualStreamJobRequest.d.ts +23 -0
  211. package/v2/model/StopIndividualStreamJobRequest.js +81 -0
  212. package/v2/model/StopIndividualStreamJobResponse.d.ts +8 -0
  213. package/v2/model/StopIndividualStreamJobResponse.js +41 -0
  214. package/v2/model/StopMixJobRequest.d.ts +23 -0
  215. package/v2/model/StopMixJobRequest.js +81 -0
  216. package/v2/model/StopMixJobResponse.d.ts +8 -0
  217. package/v2/model/StopMixJobResponse.js +41 -0
  218. package/v2/model/UpdateAutoRecordRequest.d.ts +22 -0
  219. package/v2/model/UpdateAutoRecordRequest.js +70 -0
  220. package/v2/model/UpdateAutoRecordResponse.d.ts +17 -0
  221. package/v2/model/UpdateAutoRecordResponse.js +69 -0
  222. package/v2/model/UpdateIndividualJobReq.d.ts +13 -0
  223. package/v2/model/UpdateIndividualJobReq.js +37 -0
  224. package/v2/model/UpdateIndividualStreamJobRequest.d.ts +26 -0
  225. package/v2/model/UpdateIndividualStreamJobRequest.js +85 -0
  226. package/v2/model/UpdateIndividualStreamJobResponse.d.ts +110 -0
  227. package/v2/model/UpdateIndividualStreamJobResponse.js +300 -0
  228. package/v2/model/UpdateMixJobReq.d.ts +8 -0
  229. package/v2/model/UpdateMixJobReq.js +24 -0
  230. package/v2/model/UpdateMixJobRequest.d.ts +26 -0
  231. package/v2/model/UpdateMixJobRequest.js +85 -0
  232. package/v2/model/UpdateMixJobResponse.d.ts +76 -0
  233. package/v2/model/UpdateMixJobResponse.js +223 -0
  234. package/v2/model/UpdateMixParam.d.ts +33 -0
  235. package/v2/model/UpdateMixParam.js +107 -0
  236. package/v2/model/UpdateRecordCallbackRequest.d.ts +22 -0
  237. package/v2/model/UpdateRecordCallbackRequest.js +70 -0
  238. package/v2/model/UpdateRecordCallbackResponse.d.ts +17 -0
  239. package/v2/model/UpdateRecordCallbackResponse.js +69 -0
  240. package/v2/model/UpdateRecordRuleRequest.d.ts +26 -0
  241. package/v2/model/UpdateRecordRuleRequest.js +85 -0
  242. package/v2/model/UpdateRecordRuleResponse.d.ts +51 -0
  243. package/v2/model/UpdateRecordRuleResponse.js +162 -0
  244. package/v2/model/UpdateUrlAuthRequest.d.ts +22 -0
  245. package/v2/model/UpdateUrlAuthRequest.js +70 -0
  246. package/v2/model/UpdateUrlAuthResponse.d.ts +15 -0
  247. package/v2/model/UpdateUrlAuthResponse.js +59 -0
  248. package/v2/public-api.d.ts +82 -0
  249. package/v2/public-api.js +98 -0
@@ -0,0 +1,1444 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.RequiredError = exports.ParamCreater = exports.CloudRTCClient = void 0;
19
+ var ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
20
+ var ListRtcAbnormalEventDimensionRequest_1 = require("./model/ListRtcAbnormalEventDimensionRequest");
21
+ var ListRtcAbnormalEventsRequest_1 = require("./model/ListRtcAbnormalEventsRequest");
22
+ var ListRtcClientQosDetailsRequest_1 = require("./model/ListRtcClientQosDetailsRequest");
23
+ var ListRtcHistoryQualityRequest_1 = require("./model/ListRtcHistoryQualityRequest");
24
+ var ListRtcHistoryScaleRequest_1 = require("./model/ListRtcHistoryScaleRequest");
25
+ var ListRtcHistoryUsageRequest_1 = require("./model/ListRtcHistoryUsageRequest");
26
+ var ListRtcRealtimeNetworkRequest_1 = require("./model/ListRtcRealtimeNetworkRequest");
27
+ var ListRtcRealtimeQualityRequest_1 = require("./model/ListRtcRealtimeQualityRequest");
28
+ var ListRtcRealtimeScaleDimensionRequest_1 = require("./model/ListRtcRealtimeScaleDimensionRequest");
29
+ var ListRtcRealtimeScaleRequest_1 = require("./model/ListRtcRealtimeScaleRequest");
30
+ var ListRtcRoomListRequest_1 = require("./model/ListRtcRoomListRequest");
31
+ var ListRtcUserListRequest_1 = require("./model/ListRtcUserListRequest");
32
+ var CloudRTCClient = /** @class */ (function () {
33
+ function CloudRTCClient(client) {
34
+ this.hcClient = client;
35
+ }
36
+ CloudRTCClient.newBuilder = function () {
37
+ return new ClientBuilder_1.ClientBuilder(newClient);
38
+ };
39
+ CloudRTCClient.prototype.getPath = function () {
40
+ return __dirname;
41
+ };
42
+ /**
43
+ * 查询指定APP下指定时间内的通话异常明细数据分布情况。
44
+ *
45
+ * 最大查询跨度1天。
46
+ *
47
+ * Please refer to HUAWEI cloud API Explorer for details.
48
+ *
49
+ * @summary 查询异常事件用户分布
50
+ * @param {string} app 应用ID
51
+ * @param {string} [roomId] 房间ID
52
+ * @param {'abnormal_type' | 'abnormal_factor'} [dimension] 分组类型,支持同时指定两种类型 - abnormal_type:异常类型 - abnormal_factor:异常因素
53
+ * @param {string} [startTime] 查询起始时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T06:00:00Z,不填写则默认读取过去1小时数据数据。
54
+ * @param {string} [endTime] 查询结束时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T07:00:00Z,不填写则默认为当前时间。
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ CloudRTCClient.prototype.listRtcAbnormalEventDimension = function (listRtcAbnormalEventDimensionRequest) {
59
+ var options = (0, exports.ParamCreater)().listRtcAbnormalEventDimension(listRtcAbnormalEventDimensionRequest);
60
+ // @ts-ignore
61
+ options['responseHeaders'] = ['X-request-id'];
62
+ return this.hcClient.sendRequest(options);
63
+ };
64
+ /**
65
+ * 查询指定APP下通话的异常明细数据。
66
+ *
67
+ * 最大查询跨度1天。
68
+ *
69
+ * Please refer to HUAWEI cloud API Explorer for details.
70
+ *
71
+ * @summary 查询用户异常体验事件
72
+ * @param {string} app 应用ID
73
+ * @param {string} [roomId] 房间ID
74
+ * @param {string} [uid] 用户ID
75
+ * @param {string} [startTime] 查询起始时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T06:00:00Z,不填写则默认读取过去1小时数据数据。
76
+ * @param {string} [endTime] 查询结束时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T07:00:00Z,不填写则默认为当前时间。
77
+ * @param {number} [limit] 查询结果条数
78
+ * @param {number} [offset] 查询偏移量
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ CloudRTCClient.prototype.listRtcAbnormalEvents = function (listRtcAbnormalEventsRequest) {
83
+ var options = (0, exports.ParamCreater)().listRtcAbnormalEvents(listRtcAbnormalEventsRequest);
84
+ // @ts-ignore
85
+ options['responseHeaders'] = ['X-request-id'];
86
+ return this.hcClient.sendRequest(options);
87
+ };
88
+ /**
89
+ * 查询用户通话质量指标数据。
90
+ *
91
+ * 可查询5天内的数据,mid 不为null,查询实时数据时,查询起止时间不超过24个小时,每次查询单个用户时,支持跨天查询。
92
+ *
93
+ * Please refer to HUAWEI cloud API Explorer for details.
94
+ *
95
+ * @summary 查询用户通话指标
96
+ * @param {string} appId 应用id
97
+ * @param {string} roomId 房间ID
98
+ * @param {'appcpu' | 'syscpu' | 'abit' | 'ablock' | 'vbit' | 'dbit' | 'vfps' | 'dfps' | 'vblock' | 'dblock' | 'aloss' | 'vloss' | 'dloss' | 'vwidth' | 'vheight' | 'dwidth' | 'dheight' | 'ajitter' | 'artt' | 'vjitter' | 'vrtt' | 'djitter' | 'drtt'} mid 需查询的指标,填all则返回所有指标。多个指标使用\',\'分割 - appcpu:端侧APP CPU使用率(appCpu) - syscpu:端侧系统 CPU使用率(deviceCpu) - abit:端侧音频码率kpbs(bitrate) - vbit:端侧视频码率kbps(bitRate) - dbit:端侧辅流码率kbps(bitRate) - vfps:端侧视频帧率fps(actFrameRate) - dfps:端侧辅流帧率fps(actFrameRate) - vblock:端侧视频卡顿率(统计大于等于600ms视频卡顿) - dblock:端侧辅流卡顿率(统计大于等于600ms辅流卡顿) - aloss:端侧音频丢包率(pktLoss) - vloss:端侧视频丢包率(pktLoss) - dloss:端侧辅流丢包率(pktLoss) - vwidth:端侧视频分辨率宽(actPicW) - vheight:端侧视频分辨率高(actPicH) - dwidth:端侧辅流分辨率宽(actPicW) - dheight:端侧辅流分辨率高(actPicH) - ajitter:端侧音频抖动率(jitter) - artt:端侧音频时延(rtt) - vjitter:端侧视频抖动率(jitter) - vrtt:端侧视频时延(rtt) - djitter:端侧辅流抖动率(jitter) - drtt:端侧辅流时延(rtt)
99
+ * @param {string} startTime 查询起始时间。UTC时间,格式:yyyy-mm-ddThh:mm:ssZ,如2020-04-23T06:00:00Z
100
+ * @param {string} endTime 查询结束时间。UTC时间,格式:yyyy-mm-ddThh:mm:ssZ,如2020-04-23T07:00:00Z
101
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
102
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
103
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息,与路径参数中的项目ID相同。
104
+ * @param {string} [domain] 域名
105
+ * @param {string} [userId] 发送端用户
106
+ * @param {string} [peerId] 需查询接收端用户id
107
+ * @param {string} [streamId] 流号
108
+ * @param {string} [direction] 判断上下行数据
109
+ * @param {string} [timeType] 查询的时间类型取值:stime 数据库打点时间,不填默认ctime查询
110
+ * @param {number} [limit] 查询结果限制
111
+ * @param {number} [offset] 查询偏移量
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ CloudRTCClient.prototype.listRtcClientQosDetails = function (listRtcClientQosDetailsRequest) {
116
+ var options = (0, exports.ParamCreater)().listRtcClientQosDetails(listRtcClientQosDetailsRequest);
117
+ // @ts-ignore
118
+ options['responseHeaders'] = ['X-request-id'];
119
+ return this.hcClient.sendRequest(options);
120
+ };
121
+ /**
122
+ * 查询质量指标过去每天的体验数据,可查询最近31天的数据。当天未结束,无法查询到当天的体验数据。
123
+ *
124
+ * 最大查询跨度31天。
125
+ *
126
+ * Please refer to HUAWEI cloud API Explorer for details.
127
+ *
128
+ * @summary 查询历史质量
129
+ * @param {string} app 应用标识
130
+ * @param {Array<string>} metric 查询的数据类型 - JoinSuccessRate:加入房间成功率 - JoinSuccess5SecsRate:5秒加入成功率 - VideoFreezeRate:视频卡顿率 - AudioFreezeRate:音频卡顿率 - FirstVideoRecvTime:首帧视频接收耗时 - FirstAudioRecvTime:首帧音频接收耗时 - PullStreamSuccessRate:拉流成功率 - PushStreamSuccessRate:推流成功率 - VideoUpstreamExcellentTransRate:客户端视频上行优质传输率 - AudioUpstreamExcellentTransRate:客户端音频上行优质传输率 - VideoExcellentTransRate:端到端视频优质传输率 - AudioExcellentTransRate:端到端音频优质传输率 - VideoTransDelay:端到端视频网络时,单位为毫秒,取当天所有用户网络延迟的中位数 - AudioTransDelay:端到端音频网络时延,单位为毫秒,取当天所有用户网络延迟的中位数
131
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
132
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
133
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息,与路径参数中的项目ID相同。
134
+ * @param {string} [startDate] 查询起始时间。UTC时间,格式:YYYY-MM-DD,如2020-04-23,不写默认读取过去1天数据数据。
135
+ * @param {string} [endDate] 查询结束时间。UTC时间,格式:YYYY-MM-DD,如2020-04-23
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ CloudRTCClient.prototype.listRtcHistoryQuality = function (listRtcHistoryQualityRequest) {
140
+ var options = (0, exports.ParamCreater)().listRtcHistoryQuality(listRtcHistoryQualityRequest);
141
+ // @ts-ignore
142
+ options['responseHeaders'] = ['X-request-id'];
143
+ return this.hcClient.sendRequest(options);
144
+ };
145
+ /**
146
+ * 查询指标过去每天的规模数量,可查询最近31天的数据。当天未结束,无法查到当天的房间数与用户数。
147
+ *
148
+ * 最大查询跨度31天。
149
+ *
150
+ * Please refer to HUAWEI cloud API Explorer for details.
151
+ *
152
+ * @summary 查询历史规模
153
+ * @param {string} app 应用标识
154
+ * @param {Array<string>} metric 查询的数据类型 - UserCount:通话人数,不同频道中的相同用户ID计为多人; - SessionCount:通话人次,用户每次加入频道计为一个通话人次; - RoomCount:房间数,从有用户加入房间到所有用户离开房间计为一个通话房间; - MaxOnlineUserCount:最大同时在线人数; - MaxOnlineRoomCount:最大同时在线房间数; - CommunicationDuration:音视频通话总时长; - VideoCommunicationDuration:视频通话总时长; - AudioCommunicationDuration:音频通话总时长;
155
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
156
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
157
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息,与路径参数中的项目ID相同。
158
+ * @param {string} [startDate] 查询起始时间。UTC时间,格式:YYYY-MM-DD,如2020-04-23,不写默认读取过去1天数据数据。
159
+ * @param {string} [endDate] 查询结束时间。UTC时间,格式:YYYY-MM-DD,如2020-04-23
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ CloudRTCClient.prototype.listRtcHistoryScale = function (listRtcHistoryScaleRequest) {
164
+ var options = (0, exports.ParamCreater)().listRtcHistoryScale(listRtcHistoryScaleRequest);
165
+ // @ts-ignore
166
+ options['responseHeaders'] = ['X-request-id'];
167
+ return this.hcClient.sendRequest(options);
168
+ };
169
+ /**
170
+ * 查询过去的某一时间段内各种业务的用量数据
171
+ *
172
+ * Please refer to HUAWEI cloud API Explorer for details.
173
+ *
174
+ * @summary 查询用量
175
+ * @param {string} app 应用标识
176
+ * @param {string} metric 查询的数据类型 - CommunicationDuration: 音视频通话时长; - TranscodeDuration:转码时长; - RecordDuration:录制时长;
177
+ * @param {string} startDate 查询起始时间。UTC时间,格式:YYYY-MM-DD,如2020-04-23。
178
+ * @param {string} endDate 查询结束时间。UTC时间,格式:YYYY-MM-DD,如2020-04-23。
179
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
180
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
181
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息,与路径参数中的项目ID相同。
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ CloudRTCClient.prototype.listRtcHistoryUsage = function (listRtcHistoryUsageRequest) {
186
+ var options = (0, exports.ParamCreater)().listRtcHistoryUsage(listRtcHistoryUsageRequest);
187
+ // @ts-ignore
188
+ options['responseHeaders'] = ['X-request-id'];
189
+ return this.hcClient.sendRequest(options);
190
+ };
191
+ /**
192
+ * 获取实时网络数据相关指标在某一时间段内每分钟的统计数据。
193
+ *
194
+ * 最大查询跨度1天。
195
+ *
196
+ * Please refer to HUAWEI cloud API Explorer for details.
197
+ *
198
+ * @summary 查询实时网络
199
+ * @param {string} app 应用标识
200
+ * @param {string} metric 查询的数据类型 VideoUpstreamExcellentTransRate:客户端视频上行优质传输率; AudioUpstreamExcellentTransRate:客户端音频上行优质传输率; VideoExcellentTransRate:端到端视频优质传输率; AudioExcellentTransRate:端到端音频优质传输率;
201
+ * @param {string} sdkType sdk类型 - native: 非web版sdk; - webrtc: web版sdk;
202
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
203
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
204
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息,与路径参数中的项目ID相同。
205
+ * @param {string} [roomId] 房间ID
206
+ * @param {string} [startTime] 查询起始时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T06:00:00Z,不写默认读取过去1小时数据。
207
+ * @param {string} [endTime] 查询结束时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T06:00:00Z,不写默认为当前时间。
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ CloudRTCClient.prototype.listRtcRealtimeNetwork = function (listRtcRealtimeNetworkRequest) {
212
+ var options = (0, exports.ParamCreater)().listRtcRealtimeNetwork(listRtcRealtimeNetworkRequest);
213
+ // @ts-ignore
214
+ options['responseHeaders'] = ['X-request-id'];
215
+ return this.hcClient.sendRequest(options);
216
+ };
217
+ /**
218
+ * 获取实时质量数据的相关指标在某一时间段内每分钟的统计数据。
219
+ *
220
+ * 最大查询跨度1天。
221
+ *
222
+ * Please refer to HUAWEI cloud API Explorer for details.
223
+ *
224
+ * @summary 查询实时质量数据
225
+ * @param {string} app 应用标识
226
+ * @param {string} metric 查询的数据类型 - JoinSuccessRate: 加入房间成功率 - JoinSuccess5SecsRate: 5秒加入成功率 - VideoFreezeRate: 视频卡顿率 - AudioFreezeRate: 音频卡顿率
227
+ * @param {string} sdkType sdk类型 - native: 非web版sdk - webrtc: web版sdk
228
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
229
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
230
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息,与路径参数中的项目ID相同。
231
+ * @param {string} [roomId] 房间ID
232
+ * @param {string} [startTime] 查询起始时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T06:00:00Z,不写默认读取过去1小时数据。
233
+ * @param {string} [endTime] 查询结束时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T06:00:00Z,不写默认为当前时间。
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ CloudRTCClient.prototype.listRtcRealtimeQuality = function (listRtcRealtimeQualityRequest) {
238
+ var options = (0, exports.ParamCreater)().listRtcRealtimeQuality(listRtcRealtimeQualityRequest);
239
+ // @ts-ignore
240
+ options['responseHeaders'] = ['X-request-id'];
241
+ return this.hcClient.sendRequest(options);
242
+ };
243
+ /**
244
+ * 获取规模相关的指标在某一时间段内每分钟的统计数据。
245
+ *
246
+ * 最大查询跨度1天。
247
+ *
248
+ * Please refer to HUAWEI cloud API Explorer for details.
249
+ *
250
+ * @summary 查询实时规模
251
+ * @param {string} app 应用标识
252
+ * @param {string} metric 查询的数据类型 OnlineUsers:在线用户数; RoomCount:在线房间数;
253
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
254
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
255
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息,与路径参数中的项目ID相同。
256
+ * @param {string} [roomId] 房间ID
257
+ * @param {string} [startTime] 查询起始时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T06:00:00Z,不写默认读取过去1小时数据数据。
258
+ * @param {string} [endTime] 查询结束时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T07:00:00Z,不写默认为当前时间。
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ CloudRTCClient.prototype.listRtcRealtimeScale = function (listRtcRealtimeScaleRequest) {
263
+ var options = (0, exports.ParamCreater)().listRtcRealtimeScale(listRtcRealtimeScaleRequest);
264
+ // @ts-ignore
265
+ options['responseHeaders'] = ['X-request-id'];
266
+ return this.hcClient.sendRequest(options);
267
+ };
268
+ /**
269
+ * 对规模相关的数据,根据指定维度按在线用户数排名,获取规模相关的指标在指定维度下的统计数据
270
+ *
271
+ * Please refer to HUAWEI cloud API Explorer for details.
272
+ *
273
+ * @summary 查询实时规模分布
274
+ * @param {string} app 应用标识
275
+ * @param {string} metric 查询的数据类型 OnlineUsers:在线用户数
276
+ * @param {string} dimension 维度类型: region:省份 access_net:网络类型 platform:系统平台 sdk:SDK版本
277
+ * @param {string} time 查询时刻。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ
278
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
279
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
280
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息,与路径参数中的项目ID相同。
281
+ * @param {string} [roomId] 房间ID
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ CloudRTCClient.prototype.listRtcRealtimeScaleDimension = function (listRtcRealtimeScaleDimensionRequest) {
286
+ var options = (0, exports.ParamCreater)().listRtcRealtimeScaleDimension(listRtcRealtimeScaleDimensionRequest);
287
+ // @ts-ignore
288
+ options['responseHeaders'] = ['X-request-id'];
289
+ return this.hcClient.sendRequest(options);
290
+ };
291
+ /**
292
+ * 指定事件范围查询这段期间创建的房间列表。
293
+ *
294
+ * 最大查询跨度90天。
295
+ *
296
+ * Please refer to HUAWEI cloud API Explorer for details.
297
+ *
298
+ * @summary 查询房间列表
299
+ * @param {string} app 应用标识
300
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
301
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
302
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息,与路径参数中的项目ID相同。
303
+ * @param {string} [roomId] 房间id
304
+ * @param {'RUNNING' | 'CLOSED'} [state] 房间状态,取值如下: - RUNNING:开启中 - CLOSED:已关闭
305
+ * @param {string} [startTime] 查询起始时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T06:00:00Z,不写默认读取过去1小时数据数据。
306
+ * @param {string} [endTime] 查询结束时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T07:00:00Z,不写默认为当前时间。
307
+ * @param {number} [limit] 查询结果条数
308
+ * @param {number} [offset] 查询偏移量
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ CloudRTCClient.prototype.listRtcRoomList = function (listRtcRoomListRequest) {
313
+ var options = (0, exports.ParamCreater)().listRtcRoomList(listRtcRoomListRequest);
314
+ // @ts-ignore
315
+ options['responseHeaders'] = ['X-request-id'];
316
+ return this.hcClient.sendRequest(options);
317
+ };
318
+ /**
319
+ * 指定事件范围查询这段期间加入房间的用户列表。
320
+ *
321
+ * 最大查询跨度90天。
322
+ *
323
+ * Please refer to HUAWEI cloud API Explorer for details.
324
+ *
325
+ * @summary 查询用户列表
326
+ * @param {string} app 应用id
327
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
328
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
329
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息,与路径参数中的项目ID相同。
330
+ * @param {string} [roomId] 房间id
331
+ * @param {string} [uid] 用户id
332
+ * @param {string} [nickname] 用户昵称
333
+ * @param {Array<string>} [region] 用户省份,支持省份名或缩写,如广东或者GD
334
+ * @param {Array<string>} [isp] 用户接入运营商
335
+ * @param {Array<string>} [state] 用户状态,取值如下: - FAIL:加入失败 - ONLINE:在线 - OFFLINE:离开
336
+ * @param {string} [startTime] 查询起始时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T06:00:00Z,不写默认读取过去1小时数据数据。
337
+ * @param {string} [endTime] 查询结束时间。UTC时间,格式:YYYY-MM-DDThh:mm:ssZ,如2020-04-23T06:00:00Z,不写默认为当前时间。
338
+ * @param {number} [limit] 查询结果限制
339
+ * @param {number} [offset] 查询偏移量
340
+ * @param {'detail' | 'summary'} [type] 查询模式,取值如下: - detail:会话级 - summary:用户级(默认)
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ */
344
+ CloudRTCClient.prototype.listRtcUserList = function (listRtcUserListRequest) {
345
+ var options = (0, exports.ParamCreater)().listRtcUserList(listRtcUserListRequest);
346
+ // @ts-ignore
347
+ options['responseHeaders'] = ['X-request-id'];
348
+ return this.hcClient.sendRequest(options);
349
+ };
350
+ return CloudRTCClient;
351
+ }());
352
+ exports.CloudRTCClient = CloudRTCClient;
353
+ var ParamCreater = function () {
354
+ return {
355
+ /**
356
+ * 查询指定APP下指定时间内的通话异常明细数据分布情况。
357
+ *
358
+ * 最大查询跨度1天。
359
+ *
360
+ * Please refer to HUAWEI cloud API Explorer for details.
361
+ */
362
+ listRtcAbnormalEventDimension: function (listRtcAbnormalEventDimensionRequest) {
363
+ var options = {
364
+ method: "GET",
365
+ url: "/v1/rtc/data/abnormal-event/dimension",
366
+ contentType: "application/json",
367
+ queryParams: {},
368
+ pathParams: {},
369
+ headers: {}
370
+ };
371
+ var localVarHeaderParameter = {};
372
+ var localVarQueryParameter = {};
373
+ var app;
374
+ var roomId;
375
+ var dimension;
376
+ var startTime;
377
+ var endTime;
378
+ if (listRtcAbnormalEventDimensionRequest !== null && listRtcAbnormalEventDimensionRequest !== undefined) {
379
+ if (listRtcAbnormalEventDimensionRequest instanceof ListRtcAbnormalEventDimensionRequest_1.ListRtcAbnormalEventDimensionRequest) {
380
+ app = listRtcAbnormalEventDimensionRequest.app;
381
+ roomId = listRtcAbnormalEventDimensionRequest.roomId;
382
+ dimension = listRtcAbnormalEventDimensionRequest.dimension;
383
+ startTime = listRtcAbnormalEventDimensionRequest.startTime;
384
+ endTime = listRtcAbnormalEventDimensionRequest.endTime;
385
+ }
386
+ else {
387
+ app = listRtcAbnormalEventDimensionRequest['app'];
388
+ roomId = listRtcAbnormalEventDimensionRequest['room_id'];
389
+ dimension = listRtcAbnormalEventDimensionRequest['dimension'];
390
+ startTime = listRtcAbnormalEventDimensionRequest['start_time'];
391
+ endTime = listRtcAbnormalEventDimensionRequest['end_time'];
392
+ }
393
+ }
394
+ if (app === null || app === undefined) {
395
+ throw new RequiredError('app', 'Required parameter app was null or undefined when calling listRtcAbnormalEventDimension.');
396
+ }
397
+ if (app !== null && app !== undefined) {
398
+ localVarQueryParameter['app'] = app;
399
+ }
400
+ if (roomId !== null && roomId !== undefined) {
401
+ localVarQueryParameter['room_id'] = roomId;
402
+ }
403
+ if (dimension !== null && dimension !== undefined) {
404
+ localVarQueryParameter['dimension'] = dimension;
405
+ }
406
+ if (startTime !== null && startTime !== undefined) {
407
+ localVarQueryParameter['start_time'] = startTime;
408
+ }
409
+ if (endTime !== null && endTime !== undefined) {
410
+ localVarQueryParameter['end_time'] = endTime;
411
+ }
412
+ options.queryParams = localVarQueryParameter;
413
+ options.headers = localVarHeaderParameter;
414
+ return options;
415
+ },
416
+ /**
417
+ * 查询指定APP下通话的异常明细数据。
418
+ *
419
+ * 最大查询跨度1天。
420
+ *
421
+ * Please refer to HUAWEI cloud API Explorer for details.
422
+ */
423
+ listRtcAbnormalEvents: function (listRtcAbnormalEventsRequest) {
424
+ var options = {
425
+ method: "GET",
426
+ url: "/v1/rtc/data/abnormal-events",
427
+ contentType: "application/json",
428
+ queryParams: {},
429
+ pathParams: {},
430
+ headers: {}
431
+ };
432
+ var localVarHeaderParameter = {};
433
+ var localVarQueryParameter = {};
434
+ var app;
435
+ var roomId;
436
+ var uid;
437
+ var startTime;
438
+ var endTime;
439
+ var limit;
440
+ var offset;
441
+ if (listRtcAbnormalEventsRequest !== null && listRtcAbnormalEventsRequest !== undefined) {
442
+ if (listRtcAbnormalEventsRequest instanceof ListRtcAbnormalEventsRequest_1.ListRtcAbnormalEventsRequest) {
443
+ app = listRtcAbnormalEventsRequest.app;
444
+ roomId = listRtcAbnormalEventsRequest.roomId;
445
+ uid = listRtcAbnormalEventsRequest.uid;
446
+ startTime = listRtcAbnormalEventsRequest.startTime;
447
+ endTime = listRtcAbnormalEventsRequest.endTime;
448
+ limit = listRtcAbnormalEventsRequest.limit;
449
+ offset = listRtcAbnormalEventsRequest.offset;
450
+ }
451
+ else {
452
+ app = listRtcAbnormalEventsRequest['app'];
453
+ roomId = listRtcAbnormalEventsRequest['room_id'];
454
+ uid = listRtcAbnormalEventsRequest['uid'];
455
+ startTime = listRtcAbnormalEventsRequest['start_time'];
456
+ endTime = listRtcAbnormalEventsRequest['end_time'];
457
+ limit = listRtcAbnormalEventsRequest['limit'];
458
+ offset = listRtcAbnormalEventsRequest['offset'];
459
+ }
460
+ }
461
+ if (app === null || app === undefined) {
462
+ throw new RequiredError('app', 'Required parameter app was null or undefined when calling listRtcAbnormalEvents.');
463
+ }
464
+ if (app !== null && app !== undefined) {
465
+ localVarQueryParameter['app'] = app;
466
+ }
467
+ if (roomId !== null && roomId !== undefined) {
468
+ localVarQueryParameter['room_id'] = roomId;
469
+ }
470
+ if (uid !== null && uid !== undefined) {
471
+ localVarQueryParameter['uid'] = uid;
472
+ }
473
+ if (startTime !== null && startTime !== undefined) {
474
+ localVarQueryParameter['start_time'] = startTime;
475
+ }
476
+ if (endTime !== null && endTime !== undefined) {
477
+ localVarQueryParameter['end_time'] = endTime;
478
+ }
479
+ if (limit !== null && limit !== undefined) {
480
+ localVarQueryParameter['limit'] = limit;
481
+ }
482
+ if (offset !== null && offset !== undefined) {
483
+ localVarQueryParameter['offset'] = offset;
484
+ }
485
+ options.queryParams = localVarQueryParameter;
486
+ options.headers = localVarHeaderParameter;
487
+ return options;
488
+ },
489
+ /**
490
+ * 查询用户通话质量指标数据。
491
+ *
492
+ * 可查询5天内的数据,mid 不为null,查询实时数据时,查询起止时间不超过24个小时,每次查询单个用户时,支持跨天查询。
493
+ *
494
+ * Please refer to HUAWEI cloud API Explorer for details.
495
+ */
496
+ listRtcClientQosDetails: function (listRtcClientQosDetailsRequest) {
497
+ var options = {
498
+ method: "GET",
499
+ url: "/v1/{project_id}/rtc/client/qos/details",
500
+ contentType: "application/json",
501
+ queryParams: {},
502
+ pathParams: {},
503
+ headers: {}
504
+ };
505
+ var localVarHeaderParameter = {};
506
+ var localVarQueryParameter = {};
507
+ var appId;
508
+ var roomId;
509
+ var mid;
510
+ var startTime;
511
+ var endTime;
512
+ var authorization;
513
+ var xSdkDate;
514
+ var xProjectId;
515
+ var domain;
516
+ var userId;
517
+ var peerId;
518
+ var streamId;
519
+ var direction;
520
+ var timeType;
521
+ var limit;
522
+ var offset;
523
+ if (listRtcClientQosDetailsRequest !== null && listRtcClientQosDetailsRequest !== undefined) {
524
+ if (listRtcClientQosDetailsRequest instanceof ListRtcClientQosDetailsRequest_1.ListRtcClientQosDetailsRequest) {
525
+ appId = listRtcClientQosDetailsRequest.appId;
526
+ roomId = listRtcClientQosDetailsRequest.roomId;
527
+ mid = listRtcClientQosDetailsRequest.mid;
528
+ startTime = listRtcClientQosDetailsRequest.startTime;
529
+ endTime = listRtcClientQosDetailsRequest.endTime;
530
+ authorization = listRtcClientQosDetailsRequest.authorization;
531
+ xSdkDate = listRtcClientQosDetailsRequest.xSdkDate;
532
+ xProjectId = listRtcClientQosDetailsRequest.xProjectId;
533
+ domain = listRtcClientQosDetailsRequest.domain;
534
+ userId = listRtcClientQosDetailsRequest.userId;
535
+ peerId = listRtcClientQosDetailsRequest.peerId;
536
+ streamId = listRtcClientQosDetailsRequest.streamId;
537
+ direction = listRtcClientQosDetailsRequest.direction;
538
+ timeType = listRtcClientQosDetailsRequest.timeType;
539
+ limit = listRtcClientQosDetailsRequest.limit;
540
+ offset = listRtcClientQosDetailsRequest.offset;
541
+ }
542
+ else {
543
+ appId = listRtcClientQosDetailsRequest['app_id'];
544
+ roomId = listRtcClientQosDetailsRequest['room_id'];
545
+ mid = listRtcClientQosDetailsRequest['mid'];
546
+ startTime = listRtcClientQosDetailsRequest['start_time'];
547
+ endTime = listRtcClientQosDetailsRequest['end_time'];
548
+ authorization = listRtcClientQosDetailsRequest['Authorization'];
549
+ xSdkDate = listRtcClientQosDetailsRequest['X-Sdk-Date'];
550
+ xProjectId = listRtcClientQosDetailsRequest['X-Project-Id'];
551
+ domain = listRtcClientQosDetailsRequest['domain'];
552
+ userId = listRtcClientQosDetailsRequest['user_id'];
553
+ peerId = listRtcClientQosDetailsRequest['peer_id'];
554
+ streamId = listRtcClientQosDetailsRequest['stream_id'];
555
+ direction = listRtcClientQosDetailsRequest['direction'];
556
+ timeType = listRtcClientQosDetailsRequest['time_type'];
557
+ limit = listRtcClientQosDetailsRequest['limit'];
558
+ offset = listRtcClientQosDetailsRequest['offset'];
559
+ }
560
+ }
561
+ if (appId === null || appId === undefined) {
562
+ throw new RequiredError('appId', 'Required parameter appId was null or undefined when calling listRtcClientQosDetails.');
563
+ }
564
+ if (appId !== null && appId !== undefined) {
565
+ localVarQueryParameter['app_id'] = appId;
566
+ }
567
+ if (roomId === null || roomId === undefined) {
568
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling listRtcClientQosDetails.');
569
+ }
570
+ if (roomId !== null && roomId !== undefined) {
571
+ localVarQueryParameter['room_id'] = roomId;
572
+ }
573
+ if (mid === null || mid === undefined) {
574
+ throw new RequiredError('mid', 'Required parameter mid was null or undefined when calling listRtcClientQosDetails.');
575
+ }
576
+ if (mid !== null && mid !== undefined) {
577
+ localVarQueryParameter['mid'] = mid;
578
+ }
579
+ if (startTime === null || startTime === undefined) {
580
+ throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listRtcClientQosDetails.');
581
+ }
582
+ if (startTime !== null && startTime !== undefined) {
583
+ localVarQueryParameter['start_time'] = startTime;
584
+ }
585
+ if (endTime === null || endTime === undefined) {
586
+ throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listRtcClientQosDetails.');
587
+ }
588
+ if (endTime !== null && endTime !== undefined) {
589
+ localVarQueryParameter['end_time'] = endTime;
590
+ }
591
+ if (domain !== null && domain !== undefined) {
592
+ localVarQueryParameter['domain'] = domain;
593
+ }
594
+ if (userId !== null && userId !== undefined) {
595
+ localVarQueryParameter['user_id'] = userId;
596
+ }
597
+ if (peerId !== null && peerId !== undefined) {
598
+ localVarQueryParameter['peer_id'] = peerId;
599
+ }
600
+ if (streamId !== null && streamId !== undefined) {
601
+ localVarQueryParameter['stream_id'] = streamId;
602
+ }
603
+ if (direction !== null && direction !== undefined) {
604
+ localVarQueryParameter['direction'] = direction;
605
+ }
606
+ if (timeType !== null && timeType !== undefined) {
607
+ localVarQueryParameter['time_type'] = timeType;
608
+ }
609
+ if (limit !== null && limit !== undefined) {
610
+ localVarQueryParameter['limit'] = limit;
611
+ }
612
+ if (offset !== null && offset !== undefined) {
613
+ localVarQueryParameter['offset'] = offset;
614
+ }
615
+ if (authorization !== undefined && authorization !== null) {
616
+ localVarHeaderParameter['Authorization'] = String(authorization);
617
+ }
618
+ if (xSdkDate !== undefined && xSdkDate !== null) {
619
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
620
+ }
621
+ if (xProjectId !== undefined && xProjectId !== null) {
622
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
623
+ }
624
+ options.queryParams = localVarQueryParameter;
625
+ options.headers = localVarHeaderParameter;
626
+ return options;
627
+ },
628
+ /**
629
+ * 查询质量指标过去每天的体验数据,可查询最近31天的数据。当天未结束,无法查询到当天的体验数据。
630
+ *
631
+ * 最大查询跨度31天。
632
+ *
633
+ * Please refer to HUAWEI cloud API Explorer for details.
634
+ */
635
+ listRtcHistoryQuality: function (listRtcHistoryQualityRequest) {
636
+ var options = {
637
+ method: "GET",
638
+ url: "/v1/{project_id}/rtc/history/quality",
639
+ contentType: "application/json",
640
+ queryParams: {},
641
+ pathParams: {},
642
+ headers: {}
643
+ };
644
+ var localVarHeaderParameter = {};
645
+ var localVarQueryParameter = {};
646
+ var app;
647
+ var metric;
648
+ var authorization;
649
+ var xSdkDate;
650
+ var xProjectId;
651
+ var startDate;
652
+ var endDate;
653
+ if (listRtcHistoryQualityRequest !== null && listRtcHistoryQualityRequest !== undefined) {
654
+ if (listRtcHistoryQualityRequest instanceof ListRtcHistoryQualityRequest_1.ListRtcHistoryQualityRequest) {
655
+ app = listRtcHistoryQualityRequest.app;
656
+ metric = listRtcHistoryQualityRequest.metric;
657
+ authorization = listRtcHistoryQualityRequest.authorization;
658
+ xSdkDate = listRtcHistoryQualityRequest.xSdkDate;
659
+ xProjectId = listRtcHistoryQualityRequest.xProjectId;
660
+ startDate = listRtcHistoryQualityRequest.startDate;
661
+ endDate = listRtcHistoryQualityRequest.endDate;
662
+ }
663
+ else {
664
+ app = listRtcHistoryQualityRequest['app'];
665
+ metric = listRtcHistoryQualityRequest['metric'];
666
+ authorization = listRtcHistoryQualityRequest['Authorization'];
667
+ xSdkDate = listRtcHistoryQualityRequest['X-Sdk-Date'];
668
+ xProjectId = listRtcHistoryQualityRequest['X-Project-Id'];
669
+ startDate = listRtcHistoryQualityRequest['start_date'];
670
+ endDate = listRtcHistoryQualityRequest['end_date'];
671
+ }
672
+ }
673
+ if (app === null || app === undefined) {
674
+ throw new RequiredError('app', 'Required parameter app was null or undefined when calling listRtcHistoryQuality.');
675
+ }
676
+ if (app !== null && app !== undefined) {
677
+ localVarQueryParameter['app'] = app;
678
+ }
679
+ if (metric === null || metric === undefined) {
680
+ throw new RequiredError('metric', 'Required parameter metric was null or undefined when calling listRtcHistoryQuality.');
681
+ }
682
+ if (metric !== null && metric !== undefined) {
683
+ localVarQueryParameter['metric'] = metric;
684
+ }
685
+ if (startDate !== null && startDate !== undefined) {
686
+ localVarQueryParameter['start_date'] = startDate;
687
+ }
688
+ if (endDate !== null && endDate !== undefined) {
689
+ localVarQueryParameter['end_date'] = endDate;
690
+ }
691
+ if (authorization !== undefined && authorization !== null) {
692
+ localVarHeaderParameter['Authorization'] = String(authorization);
693
+ }
694
+ if (xSdkDate !== undefined && xSdkDate !== null) {
695
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
696
+ }
697
+ if (xProjectId !== undefined && xProjectId !== null) {
698
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
699
+ }
700
+ options.queryParams = localVarQueryParameter;
701
+ options.headers = localVarHeaderParameter;
702
+ return options;
703
+ },
704
+ /**
705
+ * 查询指标过去每天的规模数量,可查询最近31天的数据。当天未结束,无法查到当天的房间数与用户数。
706
+ *
707
+ * 最大查询跨度31天。
708
+ *
709
+ * Please refer to HUAWEI cloud API Explorer for details.
710
+ */
711
+ listRtcHistoryScale: function (listRtcHistoryScaleRequest) {
712
+ var options = {
713
+ method: "GET",
714
+ url: "/v1/{project_id}/rtc/history/scale",
715
+ contentType: "application/json",
716
+ queryParams: {},
717
+ pathParams: {},
718
+ headers: {}
719
+ };
720
+ var localVarHeaderParameter = {};
721
+ var localVarQueryParameter = {};
722
+ var app;
723
+ var metric;
724
+ var authorization;
725
+ var xSdkDate;
726
+ var xProjectId;
727
+ var startDate;
728
+ var endDate;
729
+ if (listRtcHistoryScaleRequest !== null && listRtcHistoryScaleRequest !== undefined) {
730
+ if (listRtcHistoryScaleRequest instanceof ListRtcHistoryScaleRequest_1.ListRtcHistoryScaleRequest) {
731
+ app = listRtcHistoryScaleRequest.app;
732
+ metric = listRtcHistoryScaleRequest.metric;
733
+ authorization = listRtcHistoryScaleRequest.authorization;
734
+ xSdkDate = listRtcHistoryScaleRequest.xSdkDate;
735
+ xProjectId = listRtcHistoryScaleRequest.xProjectId;
736
+ startDate = listRtcHistoryScaleRequest.startDate;
737
+ endDate = listRtcHistoryScaleRequest.endDate;
738
+ }
739
+ else {
740
+ app = listRtcHistoryScaleRequest['app'];
741
+ metric = listRtcHistoryScaleRequest['metric'];
742
+ authorization = listRtcHistoryScaleRequest['Authorization'];
743
+ xSdkDate = listRtcHistoryScaleRequest['X-Sdk-Date'];
744
+ xProjectId = listRtcHistoryScaleRequest['X-Project-Id'];
745
+ startDate = listRtcHistoryScaleRequest['start_date'];
746
+ endDate = listRtcHistoryScaleRequest['end_date'];
747
+ }
748
+ }
749
+ if (app === null || app === undefined) {
750
+ throw new RequiredError('app', 'Required parameter app was null or undefined when calling listRtcHistoryScale.');
751
+ }
752
+ if (app !== null && app !== undefined) {
753
+ localVarQueryParameter['app'] = app;
754
+ }
755
+ if (metric === null || metric === undefined) {
756
+ throw new RequiredError('metric', 'Required parameter metric was null or undefined when calling listRtcHistoryScale.');
757
+ }
758
+ if (metric !== null && metric !== undefined) {
759
+ localVarQueryParameter['metric'] = metric;
760
+ }
761
+ if (startDate !== null && startDate !== undefined) {
762
+ localVarQueryParameter['start_date'] = startDate;
763
+ }
764
+ if (endDate !== null && endDate !== undefined) {
765
+ localVarQueryParameter['end_date'] = endDate;
766
+ }
767
+ if (authorization !== undefined && authorization !== null) {
768
+ localVarHeaderParameter['Authorization'] = String(authorization);
769
+ }
770
+ if (xSdkDate !== undefined && xSdkDate !== null) {
771
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
772
+ }
773
+ if (xProjectId !== undefined && xProjectId !== null) {
774
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
775
+ }
776
+ options.queryParams = localVarQueryParameter;
777
+ options.headers = localVarHeaderParameter;
778
+ return options;
779
+ },
780
+ /**
781
+ * 查询过去的某一时间段内各种业务的用量数据
782
+ *
783
+ * Please refer to HUAWEI cloud API Explorer for details.
784
+ */
785
+ listRtcHistoryUsage: function (listRtcHistoryUsageRequest) {
786
+ var options = {
787
+ method: "GET",
788
+ url: "/v1/{project_id}/rtc/history/usage",
789
+ contentType: "application/json",
790
+ queryParams: {},
791
+ pathParams: {},
792
+ headers: {}
793
+ };
794
+ var localVarHeaderParameter = {};
795
+ var localVarQueryParameter = {};
796
+ var app;
797
+ var metric;
798
+ var startDate;
799
+ var endDate;
800
+ var authorization;
801
+ var xSdkDate;
802
+ var xProjectId;
803
+ if (listRtcHistoryUsageRequest !== null && listRtcHistoryUsageRequest !== undefined) {
804
+ if (listRtcHistoryUsageRequest instanceof ListRtcHistoryUsageRequest_1.ListRtcHistoryUsageRequest) {
805
+ app = listRtcHistoryUsageRequest.app;
806
+ metric = listRtcHistoryUsageRequest.metric;
807
+ startDate = listRtcHistoryUsageRequest.startDate;
808
+ endDate = listRtcHistoryUsageRequest.endDate;
809
+ authorization = listRtcHistoryUsageRequest.authorization;
810
+ xSdkDate = listRtcHistoryUsageRequest.xSdkDate;
811
+ xProjectId = listRtcHistoryUsageRequest.xProjectId;
812
+ }
813
+ else {
814
+ app = listRtcHistoryUsageRequest['app'];
815
+ metric = listRtcHistoryUsageRequest['metric'];
816
+ startDate = listRtcHistoryUsageRequest['start_date'];
817
+ endDate = listRtcHistoryUsageRequest['end_date'];
818
+ authorization = listRtcHistoryUsageRequest['Authorization'];
819
+ xSdkDate = listRtcHistoryUsageRequest['X-Sdk-Date'];
820
+ xProjectId = listRtcHistoryUsageRequest['X-Project-Id'];
821
+ }
822
+ }
823
+ if (app === null || app === undefined) {
824
+ throw new RequiredError('app', 'Required parameter app was null or undefined when calling listRtcHistoryUsage.');
825
+ }
826
+ if (app !== null && app !== undefined) {
827
+ localVarQueryParameter['app'] = app;
828
+ }
829
+ if (metric === null || metric === undefined) {
830
+ throw new RequiredError('metric', 'Required parameter metric was null or undefined when calling listRtcHistoryUsage.');
831
+ }
832
+ if (metric !== null && metric !== undefined) {
833
+ localVarQueryParameter['metric'] = metric;
834
+ }
835
+ if (startDate === null || startDate === undefined) {
836
+ throw new RequiredError('startDate', 'Required parameter startDate was null or undefined when calling listRtcHistoryUsage.');
837
+ }
838
+ if (startDate !== null && startDate !== undefined) {
839
+ localVarQueryParameter['start_date'] = startDate;
840
+ }
841
+ if (endDate === null || endDate === undefined) {
842
+ throw new RequiredError('endDate', 'Required parameter endDate was null or undefined when calling listRtcHistoryUsage.');
843
+ }
844
+ if (endDate !== null && endDate !== undefined) {
845
+ localVarQueryParameter['end_date'] = endDate;
846
+ }
847
+ if (authorization !== undefined && authorization !== null) {
848
+ localVarHeaderParameter['Authorization'] = String(authorization);
849
+ }
850
+ if (xSdkDate !== undefined && xSdkDate !== null) {
851
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
852
+ }
853
+ if (xProjectId !== undefined && xProjectId !== null) {
854
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
855
+ }
856
+ options.queryParams = localVarQueryParameter;
857
+ options.headers = localVarHeaderParameter;
858
+ return options;
859
+ },
860
+ /**
861
+ * 获取实时网络数据相关指标在某一时间段内每分钟的统计数据。
862
+ *
863
+ * 最大查询跨度1天。
864
+ *
865
+ * Please refer to HUAWEI cloud API Explorer for details.
866
+ */
867
+ listRtcRealtimeNetwork: function (listRtcRealtimeNetworkRequest) {
868
+ var options = {
869
+ method: "GET",
870
+ url: "/v1/{project_id}/rtc/realtime/network",
871
+ contentType: "application/json",
872
+ queryParams: {},
873
+ pathParams: {},
874
+ headers: {}
875
+ };
876
+ var localVarHeaderParameter = {};
877
+ var localVarQueryParameter = {};
878
+ var app;
879
+ var metric;
880
+ var sdkType;
881
+ var authorization;
882
+ var xSdkDate;
883
+ var xProjectId;
884
+ var roomId;
885
+ var startTime;
886
+ var endTime;
887
+ if (listRtcRealtimeNetworkRequest !== null && listRtcRealtimeNetworkRequest !== undefined) {
888
+ if (listRtcRealtimeNetworkRequest instanceof ListRtcRealtimeNetworkRequest_1.ListRtcRealtimeNetworkRequest) {
889
+ app = listRtcRealtimeNetworkRequest.app;
890
+ metric = listRtcRealtimeNetworkRequest.metric;
891
+ sdkType = listRtcRealtimeNetworkRequest.sdkType;
892
+ authorization = listRtcRealtimeNetworkRequest.authorization;
893
+ xSdkDate = listRtcRealtimeNetworkRequest.xSdkDate;
894
+ xProjectId = listRtcRealtimeNetworkRequest.xProjectId;
895
+ roomId = listRtcRealtimeNetworkRequest.roomId;
896
+ startTime = listRtcRealtimeNetworkRequest.startTime;
897
+ endTime = listRtcRealtimeNetworkRequest.endTime;
898
+ }
899
+ else {
900
+ app = listRtcRealtimeNetworkRequest['app'];
901
+ metric = listRtcRealtimeNetworkRequest['metric'];
902
+ sdkType = listRtcRealtimeNetworkRequest['sdk_type'];
903
+ authorization = listRtcRealtimeNetworkRequest['Authorization'];
904
+ xSdkDate = listRtcRealtimeNetworkRequest['X-Sdk-Date'];
905
+ xProjectId = listRtcRealtimeNetworkRequest['X-Project-Id'];
906
+ roomId = listRtcRealtimeNetworkRequest['room_id'];
907
+ startTime = listRtcRealtimeNetworkRequest['start_time'];
908
+ endTime = listRtcRealtimeNetworkRequest['end_time'];
909
+ }
910
+ }
911
+ if (app === null || app === undefined) {
912
+ throw new RequiredError('app', 'Required parameter app was null or undefined when calling listRtcRealtimeNetwork.');
913
+ }
914
+ if (app !== null && app !== undefined) {
915
+ localVarQueryParameter['app'] = app;
916
+ }
917
+ if (metric === null || metric === undefined) {
918
+ throw new RequiredError('metric', 'Required parameter metric was null or undefined when calling listRtcRealtimeNetwork.');
919
+ }
920
+ if (metric !== null && metric !== undefined) {
921
+ localVarQueryParameter['metric'] = metric;
922
+ }
923
+ if (sdkType === null || sdkType === undefined) {
924
+ throw new RequiredError('sdkType', 'Required parameter sdkType was null or undefined when calling listRtcRealtimeNetwork.');
925
+ }
926
+ if (sdkType !== null && sdkType !== undefined) {
927
+ localVarQueryParameter['sdk_type'] = sdkType;
928
+ }
929
+ if (roomId !== null && roomId !== undefined) {
930
+ localVarQueryParameter['room_id'] = roomId;
931
+ }
932
+ if (startTime !== null && startTime !== undefined) {
933
+ localVarQueryParameter['start_time'] = startTime;
934
+ }
935
+ if (endTime !== null && endTime !== undefined) {
936
+ localVarQueryParameter['end_time'] = endTime;
937
+ }
938
+ if (authorization !== undefined && authorization !== null) {
939
+ localVarHeaderParameter['Authorization'] = String(authorization);
940
+ }
941
+ if (xSdkDate !== undefined && xSdkDate !== null) {
942
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
943
+ }
944
+ if (xProjectId !== undefined && xProjectId !== null) {
945
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
946
+ }
947
+ options.queryParams = localVarQueryParameter;
948
+ options.headers = localVarHeaderParameter;
949
+ return options;
950
+ },
951
+ /**
952
+ * 获取实时质量数据的相关指标在某一时间段内每分钟的统计数据。
953
+ *
954
+ * 最大查询跨度1天。
955
+ *
956
+ * Please refer to HUAWEI cloud API Explorer for details.
957
+ */
958
+ listRtcRealtimeQuality: function (listRtcRealtimeQualityRequest) {
959
+ var options = {
960
+ method: "GET",
961
+ url: "/v1/{project_id}/rtc/realtime/quality",
962
+ contentType: "application/json",
963
+ queryParams: {},
964
+ pathParams: {},
965
+ headers: {}
966
+ };
967
+ var localVarHeaderParameter = {};
968
+ var localVarQueryParameter = {};
969
+ var app;
970
+ var metric;
971
+ var sdkType;
972
+ var authorization;
973
+ var xSdkDate;
974
+ var xProjectId;
975
+ var roomId;
976
+ var startTime;
977
+ var endTime;
978
+ if (listRtcRealtimeQualityRequest !== null && listRtcRealtimeQualityRequest !== undefined) {
979
+ if (listRtcRealtimeQualityRequest instanceof ListRtcRealtimeQualityRequest_1.ListRtcRealtimeQualityRequest) {
980
+ app = listRtcRealtimeQualityRequest.app;
981
+ metric = listRtcRealtimeQualityRequest.metric;
982
+ sdkType = listRtcRealtimeQualityRequest.sdkType;
983
+ authorization = listRtcRealtimeQualityRequest.authorization;
984
+ xSdkDate = listRtcRealtimeQualityRequest.xSdkDate;
985
+ xProjectId = listRtcRealtimeQualityRequest.xProjectId;
986
+ roomId = listRtcRealtimeQualityRequest.roomId;
987
+ startTime = listRtcRealtimeQualityRequest.startTime;
988
+ endTime = listRtcRealtimeQualityRequest.endTime;
989
+ }
990
+ else {
991
+ app = listRtcRealtimeQualityRequest['app'];
992
+ metric = listRtcRealtimeQualityRequest['metric'];
993
+ sdkType = listRtcRealtimeQualityRequest['sdk_type'];
994
+ authorization = listRtcRealtimeQualityRequest['Authorization'];
995
+ xSdkDate = listRtcRealtimeQualityRequest['X-Sdk-Date'];
996
+ xProjectId = listRtcRealtimeQualityRequest['X-Project-Id'];
997
+ roomId = listRtcRealtimeQualityRequest['room_id'];
998
+ startTime = listRtcRealtimeQualityRequest['start_time'];
999
+ endTime = listRtcRealtimeQualityRequest['end_time'];
1000
+ }
1001
+ }
1002
+ if (app === null || app === undefined) {
1003
+ throw new RequiredError('app', 'Required parameter app was null or undefined when calling listRtcRealtimeQuality.');
1004
+ }
1005
+ if (app !== null && app !== undefined) {
1006
+ localVarQueryParameter['app'] = app;
1007
+ }
1008
+ if (metric === null || metric === undefined) {
1009
+ throw new RequiredError('metric', 'Required parameter metric was null or undefined when calling listRtcRealtimeQuality.');
1010
+ }
1011
+ if (metric !== null && metric !== undefined) {
1012
+ localVarQueryParameter['metric'] = metric;
1013
+ }
1014
+ if (sdkType === null || sdkType === undefined) {
1015
+ throw new RequiredError('sdkType', 'Required parameter sdkType was null or undefined when calling listRtcRealtimeQuality.');
1016
+ }
1017
+ if (sdkType !== null && sdkType !== undefined) {
1018
+ localVarQueryParameter['sdk_type'] = sdkType;
1019
+ }
1020
+ if (roomId !== null && roomId !== undefined) {
1021
+ localVarQueryParameter['room_id'] = roomId;
1022
+ }
1023
+ if (startTime !== null && startTime !== undefined) {
1024
+ localVarQueryParameter['start_time'] = startTime;
1025
+ }
1026
+ if (endTime !== null && endTime !== undefined) {
1027
+ localVarQueryParameter['end_time'] = endTime;
1028
+ }
1029
+ if (authorization !== undefined && authorization !== null) {
1030
+ localVarHeaderParameter['Authorization'] = String(authorization);
1031
+ }
1032
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1033
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1034
+ }
1035
+ if (xProjectId !== undefined && xProjectId !== null) {
1036
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
1037
+ }
1038
+ options.queryParams = localVarQueryParameter;
1039
+ options.headers = localVarHeaderParameter;
1040
+ return options;
1041
+ },
1042
+ /**
1043
+ * 获取规模相关的指标在某一时间段内每分钟的统计数据。
1044
+ *
1045
+ * 最大查询跨度1天。
1046
+ *
1047
+ * Please refer to HUAWEI cloud API Explorer for details.
1048
+ */
1049
+ listRtcRealtimeScale: function (listRtcRealtimeScaleRequest) {
1050
+ var options = {
1051
+ method: "GET",
1052
+ url: "/v1/{project_id}/rtc/realtime/scale",
1053
+ contentType: "application/json",
1054
+ queryParams: {},
1055
+ pathParams: {},
1056
+ headers: {}
1057
+ };
1058
+ var localVarHeaderParameter = {};
1059
+ var localVarQueryParameter = {};
1060
+ var app;
1061
+ var metric;
1062
+ var authorization;
1063
+ var xSdkDate;
1064
+ var xProjectId;
1065
+ var roomId;
1066
+ var startTime;
1067
+ var endTime;
1068
+ if (listRtcRealtimeScaleRequest !== null && listRtcRealtimeScaleRequest !== undefined) {
1069
+ if (listRtcRealtimeScaleRequest instanceof ListRtcRealtimeScaleRequest_1.ListRtcRealtimeScaleRequest) {
1070
+ app = listRtcRealtimeScaleRequest.app;
1071
+ metric = listRtcRealtimeScaleRequest.metric;
1072
+ authorization = listRtcRealtimeScaleRequest.authorization;
1073
+ xSdkDate = listRtcRealtimeScaleRequest.xSdkDate;
1074
+ xProjectId = listRtcRealtimeScaleRequest.xProjectId;
1075
+ roomId = listRtcRealtimeScaleRequest.roomId;
1076
+ startTime = listRtcRealtimeScaleRequest.startTime;
1077
+ endTime = listRtcRealtimeScaleRequest.endTime;
1078
+ }
1079
+ else {
1080
+ app = listRtcRealtimeScaleRequest['app'];
1081
+ metric = listRtcRealtimeScaleRequest['metric'];
1082
+ authorization = listRtcRealtimeScaleRequest['Authorization'];
1083
+ xSdkDate = listRtcRealtimeScaleRequest['X-Sdk-Date'];
1084
+ xProjectId = listRtcRealtimeScaleRequest['X-Project-Id'];
1085
+ roomId = listRtcRealtimeScaleRequest['room_id'];
1086
+ startTime = listRtcRealtimeScaleRequest['start_time'];
1087
+ endTime = listRtcRealtimeScaleRequest['end_time'];
1088
+ }
1089
+ }
1090
+ if (app === null || app === undefined) {
1091
+ throw new RequiredError('app', 'Required parameter app was null or undefined when calling listRtcRealtimeScale.');
1092
+ }
1093
+ if (app !== null && app !== undefined) {
1094
+ localVarQueryParameter['app'] = app;
1095
+ }
1096
+ if (metric === null || metric === undefined) {
1097
+ throw new RequiredError('metric', 'Required parameter metric was null or undefined when calling listRtcRealtimeScale.');
1098
+ }
1099
+ if (metric !== null && metric !== undefined) {
1100
+ localVarQueryParameter['metric'] = metric;
1101
+ }
1102
+ if (roomId !== null && roomId !== undefined) {
1103
+ localVarQueryParameter['room_id'] = roomId;
1104
+ }
1105
+ if (startTime !== null && startTime !== undefined) {
1106
+ localVarQueryParameter['start_time'] = startTime;
1107
+ }
1108
+ if (endTime !== null && endTime !== undefined) {
1109
+ localVarQueryParameter['end_time'] = endTime;
1110
+ }
1111
+ if (authorization !== undefined && authorization !== null) {
1112
+ localVarHeaderParameter['Authorization'] = String(authorization);
1113
+ }
1114
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1115
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1116
+ }
1117
+ if (xProjectId !== undefined && xProjectId !== null) {
1118
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
1119
+ }
1120
+ options.queryParams = localVarQueryParameter;
1121
+ options.headers = localVarHeaderParameter;
1122
+ return options;
1123
+ },
1124
+ /**
1125
+ * 对规模相关的数据,根据指定维度按在线用户数排名,获取规模相关的指标在指定维度下的统计数据
1126
+ *
1127
+ * Please refer to HUAWEI cloud API Explorer for details.
1128
+ */
1129
+ listRtcRealtimeScaleDimension: function (listRtcRealtimeScaleDimensionRequest) {
1130
+ var options = {
1131
+ method: "GET",
1132
+ url: "/v1/{project_id}/rtc/realtime/scale/dimension",
1133
+ contentType: "application/json",
1134
+ queryParams: {},
1135
+ pathParams: {},
1136
+ headers: {}
1137
+ };
1138
+ var localVarHeaderParameter = {};
1139
+ var localVarQueryParameter = {};
1140
+ var app;
1141
+ var metric;
1142
+ var dimension;
1143
+ var time;
1144
+ var authorization;
1145
+ var xSdkDate;
1146
+ var xProjectId;
1147
+ var roomId;
1148
+ if (listRtcRealtimeScaleDimensionRequest !== null && listRtcRealtimeScaleDimensionRequest !== undefined) {
1149
+ if (listRtcRealtimeScaleDimensionRequest instanceof ListRtcRealtimeScaleDimensionRequest_1.ListRtcRealtimeScaleDimensionRequest) {
1150
+ app = listRtcRealtimeScaleDimensionRequest.app;
1151
+ metric = listRtcRealtimeScaleDimensionRequest.metric;
1152
+ dimension = listRtcRealtimeScaleDimensionRequest.dimension;
1153
+ time = listRtcRealtimeScaleDimensionRequest.time;
1154
+ authorization = listRtcRealtimeScaleDimensionRequest.authorization;
1155
+ xSdkDate = listRtcRealtimeScaleDimensionRequest.xSdkDate;
1156
+ xProjectId = listRtcRealtimeScaleDimensionRequest.xProjectId;
1157
+ roomId = listRtcRealtimeScaleDimensionRequest.roomId;
1158
+ }
1159
+ else {
1160
+ app = listRtcRealtimeScaleDimensionRequest['app'];
1161
+ metric = listRtcRealtimeScaleDimensionRequest['metric'];
1162
+ dimension = listRtcRealtimeScaleDimensionRequest['dimension'];
1163
+ time = listRtcRealtimeScaleDimensionRequest['time'];
1164
+ authorization = listRtcRealtimeScaleDimensionRequest['Authorization'];
1165
+ xSdkDate = listRtcRealtimeScaleDimensionRequest['X-Sdk-Date'];
1166
+ xProjectId = listRtcRealtimeScaleDimensionRequest['X-Project-Id'];
1167
+ roomId = listRtcRealtimeScaleDimensionRequest['room_id'];
1168
+ }
1169
+ }
1170
+ if (app === null || app === undefined) {
1171
+ throw new RequiredError('app', 'Required parameter app was null or undefined when calling listRtcRealtimeScaleDimension.');
1172
+ }
1173
+ if (app !== null && app !== undefined) {
1174
+ localVarQueryParameter['app'] = app;
1175
+ }
1176
+ if (metric === null || metric === undefined) {
1177
+ throw new RequiredError('metric', 'Required parameter metric was null or undefined when calling listRtcRealtimeScaleDimension.');
1178
+ }
1179
+ if (metric !== null && metric !== undefined) {
1180
+ localVarQueryParameter['metric'] = metric;
1181
+ }
1182
+ if (dimension === null || dimension === undefined) {
1183
+ throw new RequiredError('dimension', 'Required parameter dimension was null or undefined when calling listRtcRealtimeScaleDimension.');
1184
+ }
1185
+ if (dimension !== null && dimension !== undefined) {
1186
+ localVarQueryParameter['dimension'] = dimension;
1187
+ }
1188
+ if (time === null || time === undefined) {
1189
+ throw new RequiredError('time', 'Required parameter time was null or undefined when calling listRtcRealtimeScaleDimension.');
1190
+ }
1191
+ if (time !== null && time !== undefined) {
1192
+ localVarQueryParameter['time'] = time;
1193
+ }
1194
+ if (roomId !== null && roomId !== undefined) {
1195
+ localVarQueryParameter['room_id'] = roomId;
1196
+ }
1197
+ if (authorization !== undefined && authorization !== null) {
1198
+ localVarHeaderParameter['Authorization'] = String(authorization);
1199
+ }
1200
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1201
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1202
+ }
1203
+ if (xProjectId !== undefined && xProjectId !== null) {
1204
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
1205
+ }
1206
+ options.queryParams = localVarQueryParameter;
1207
+ options.headers = localVarHeaderParameter;
1208
+ return options;
1209
+ },
1210
+ /**
1211
+ * 指定事件范围查询这段期间创建的房间列表。
1212
+ *
1213
+ * 最大查询跨度90天。
1214
+ *
1215
+ * Please refer to HUAWEI cloud API Explorer for details.
1216
+ */
1217
+ listRtcRoomList: function (listRtcRoomListRequest) {
1218
+ var options = {
1219
+ method: "GET",
1220
+ url: "/v1/{project_id}/rtc/rooms",
1221
+ contentType: "application/json",
1222
+ queryParams: {},
1223
+ pathParams: {},
1224
+ headers: {}
1225
+ };
1226
+ var localVarHeaderParameter = {};
1227
+ var localVarQueryParameter = {};
1228
+ var app;
1229
+ var authorization;
1230
+ var xSdkDate;
1231
+ var xProjectId;
1232
+ var roomId;
1233
+ var state;
1234
+ var startTime;
1235
+ var endTime;
1236
+ var limit;
1237
+ var offset;
1238
+ if (listRtcRoomListRequest !== null && listRtcRoomListRequest !== undefined) {
1239
+ if (listRtcRoomListRequest instanceof ListRtcRoomListRequest_1.ListRtcRoomListRequest) {
1240
+ app = listRtcRoomListRequest.app;
1241
+ authorization = listRtcRoomListRequest.authorization;
1242
+ xSdkDate = listRtcRoomListRequest.xSdkDate;
1243
+ xProjectId = listRtcRoomListRequest.xProjectId;
1244
+ roomId = listRtcRoomListRequest.roomId;
1245
+ state = listRtcRoomListRequest.state;
1246
+ startTime = listRtcRoomListRequest.startTime;
1247
+ endTime = listRtcRoomListRequest.endTime;
1248
+ limit = listRtcRoomListRequest.limit;
1249
+ offset = listRtcRoomListRequest.offset;
1250
+ }
1251
+ else {
1252
+ app = listRtcRoomListRequest['app'];
1253
+ authorization = listRtcRoomListRequest['Authorization'];
1254
+ xSdkDate = listRtcRoomListRequest['X-Sdk-Date'];
1255
+ xProjectId = listRtcRoomListRequest['X-Project-Id'];
1256
+ roomId = listRtcRoomListRequest['room_id'];
1257
+ state = listRtcRoomListRequest['state'];
1258
+ startTime = listRtcRoomListRequest['start_time'];
1259
+ endTime = listRtcRoomListRequest['end_time'];
1260
+ limit = listRtcRoomListRequest['limit'];
1261
+ offset = listRtcRoomListRequest['offset'];
1262
+ }
1263
+ }
1264
+ if (app === null || app === undefined) {
1265
+ throw new RequiredError('app', 'Required parameter app was null or undefined when calling listRtcRoomList.');
1266
+ }
1267
+ if (app !== null && app !== undefined) {
1268
+ localVarQueryParameter['app'] = app;
1269
+ }
1270
+ if (roomId !== null && roomId !== undefined) {
1271
+ localVarQueryParameter['room_id'] = roomId;
1272
+ }
1273
+ if (state !== null && state !== undefined) {
1274
+ localVarQueryParameter['state'] = state;
1275
+ }
1276
+ if (startTime !== null && startTime !== undefined) {
1277
+ localVarQueryParameter['start_time'] = startTime;
1278
+ }
1279
+ if (endTime !== null && endTime !== undefined) {
1280
+ localVarQueryParameter['end_time'] = endTime;
1281
+ }
1282
+ if (limit !== null && limit !== undefined) {
1283
+ localVarQueryParameter['limit'] = limit;
1284
+ }
1285
+ if (offset !== null && offset !== undefined) {
1286
+ localVarQueryParameter['offset'] = offset;
1287
+ }
1288
+ if (authorization !== undefined && authorization !== null) {
1289
+ localVarHeaderParameter['Authorization'] = String(authorization);
1290
+ }
1291
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1292
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1293
+ }
1294
+ if (xProjectId !== undefined && xProjectId !== null) {
1295
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
1296
+ }
1297
+ options.queryParams = localVarQueryParameter;
1298
+ options.headers = localVarHeaderParameter;
1299
+ return options;
1300
+ },
1301
+ /**
1302
+ * 指定事件范围查询这段期间加入房间的用户列表。
1303
+ *
1304
+ * 最大查询跨度90天。
1305
+ *
1306
+ * Please refer to HUAWEI cloud API Explorer for details.
1307
+ */
1308
+ listRtcUserList: function (listRtcUserListRequest) {
1309
+ var options = {
1310
+ method: "GET",
1311
+ url: "/v1/{project_id}/rtc/users",
1312
+ contentType: "application/json",
1313
+ queryParams: {},
1314
+ pathParams: {},
1315
+ headers: {}
1316
+ };
1317
+ var localVarHeaderParameter = {};
1318
+ var localVarQueryParameter = {};
1319
+ var app;
1320
+ var authorization;
1321
+ var xSdkDate;
1322
+ var xProjectId;
1323
+ var roomId;
1324
+ var uid;
1325
+ var nickname;
1326
+ var region;
1327
+ var isp;
1328
+ var state;
1329
+ var startTime;
1330
+ var endTime;
1331
+ var limit;
1332
+ var offset;
1333
+ var type;
1334
+ if (listRtcUserListRequest !== null && listRtcUserListRequest !== undefined) {
1335
+ if (listRtcUserListRequest instanceof ListRtcUserListRequest_1.ListRtcUserListRequest) {
1336
+ app = listRtcUserListRequest.app;
1337
+ authorization = listRtcUserListRequest.authorization;
1338
+ xSdkDate = listRtcUserListRequest.xSdkDate;
1339
+ xProjectId = listRtcUserListRequest.xProjectId;
1340
+ roomId = listRtcUserListRequest.roomId;
1341
+ uid = listRtcUserListRequest.uid;
1342
+ nickname = listRtcUserListRequest.nickname;
1343
+ region = listRtcUserListRequest.region;
1344
+ isp = listRtcUserListRequest.isp;
1345
+ state = listRtcUserListRequest.state;
1346
+ startTime = listRtcUserListRequest.startTime;
1347
+ endTime = listRtcUserListRequest.endTime;
1348
+ limit = listRtcUserListRequest.limit;
1349
+ offset = listRtcUserListRequest.offset;
1350
+ type = listRtcUserListRequest.type;
1351
+ }
1352
+ else {
1353
+ app = listRtcUserListRequest['app'];
1354
+ authorization = listRtcUserListRequest['Authorization'];
1355
+ xSdkDate = listRtcUserListRequest['X-Sdk-Date'];
1356
+ xProjectId = listRtcUserListRequest['X-Project-Id'];
1357
+ roomId = listRtcUserListRequest['room_id'];
1358
+ uid = listRtcUserListRequest['uid'];
1359
+ nickname = listRtcUserListRequest['nickname'];
1360
+ region = listRtcUserListRequest['region'];
1361
+ isp = listRtcUserListRequest['isp'];
1362
+ state = listRtcUserListRequest['state'];
1363
+ startTime = listRtcUserListRequest['start_time'];
1364
+ endTime = listRtcUserListRequest['end_time'];
1365
+ limit = listRtcUserListRequest['limit'];
1366
+ offset = listRtcUserListRequest['offset'];
1367
+ type = listRtcUserListRequest['type'];
1368
+ }
1369
+ }
1370
+ if (app === null || app === undefined) {
1371
+ throw new RequiredError('app', 'Required parameter app was null or undefined when calling listRtcUserList.');
1372
+ }
1373
+ if (app !== null && app !== undefined) {
1374
+ localVarQueryParameter['app'] = app;
1375
+ }
1376
+ if (roomId !== null && roomId !== undefined) {
1377
+ localVarQueryParameter['room_id'] = roomId;
1378
+ }
1379
+ if (uid !== null && uid !== undefined) {
1380
+ localVarQueryParameter['uid'] = uid;
1381
+ }
1382
+ if (nickname !== null && nickname !== undefined) {
1383
+ localVarQueryParameter['nickname'] = nickname;
1384
+ }
1385
+ if (region !== null && region !== undefined) {
1386
+ localVarQueryParameter['region'] = region;
1387
+ }
1388
+ if (isp !== null && isp !== undefined) {
1389
+ localVarQueryParameter['isp'] = isp;
1390
+ }
1391
+ if (state !== null && state !== undefined) {
1392
+ localVarQueryParameter['state'] = state;
1393
+ }
1394
+ if (startTime !== null && startTime !== undefined) {
1395
+ localVarQueryParameter['start_time'] = startTime;
1396
+ }
1397
+ if (endTime !== null && endTime !== undefined) {
1398
+ localVarQueryParameter['end_time'] = endTime;
1399
+ }
1400
+ if (limit !== null && limit !== undefined) {
1401
+ localVarQueryParameter['limit'] = limit;
1402
+ }
1403
+ if (offset !== null && offset !== undefined) {
1404
+ localVarQueryParameter['offset'] = offset;
1405
+ }
1406
+ if (type !== null && type !== undefined) {
1407
+ localVarQueryParameter['type'] = type;
1408
+ }
1409
+ if (authorization !== undefined && authorization !== null) {
1410
+ localVarHeaderParameter['Authorization'] = String(authorization);
1411
+ }
1412
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1413
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1414
+ }
1415
+ if (xProjectId !== undefined && xProjectId !== null) {
1416
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
1417
+ }
1418
+ options.queryParams = localVarQueryParameter;
1419
+ options.headers = localVarHeaderParameter;
1420
+ return options;
1421
+ },
1422
+ };
1423
+ };
1424
+ exports.ParamCreater = ParamCreater;
1425
+ function newClient(client) {
1426
+ return new CloudRTCClient(client);
1427
+ }
1428
+ /**
1429
+ *
1430
+ * @export
1431
+ * @class RequiredError
1432
+ * @extends {Error}
1433
+ */
1434
+ var RequiredError = /** @class */ (function (_super) {
1435
+ __extends(RequiredError, _super);
1436
+ function RequiredError(field, msg) {
1437
+ var _this = _super.call(this, msg) || this;
1438
+ _this.field = field;
1439
+ _this.name = "RequiredError";
1440
+ return _this;
1441
+ }
1442
+ return RequiredError;
1443
+ }(Error));
1444
+ exports.RequiredError = RequiredError;