-
Notifications
You must be signed in to change notification settings - Fork 2
/
client.go
2685 lines (2337 loc) · 137 KB
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package v20190722
import (
"context"
"errors"
"github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/http"
"github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/profile"
)
const APIVersion = "2019-07-22"
type Client struct {
common.Client
}
// Deprecated
func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) {
cpf := profile.NewClientProfile()
client = &Client{}
client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf)
return
}
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) {
client = &Client{}
client.Init(region).
WithCredential(credential).
WithProfile(clientProfile)
return
}
func NewCreateCloudRecordingRequest() (request *CreateCloudRecordingRequest) {
request = &CreateCloudRecordingRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "CreateCloudRecording")
return
}
func NewCreateCloudRecordingResponse() (response *CreateCloudRecordingResponse) {
response = &CreateCloudRecordingResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateCloudRecording
// API description:
//
// This API is used to start an on-cloud recording task. It records the audio and video streams in a room and saves them to the specified cloud storage. You can use this API to record the streams in a room separately, or you can mix the streams first and then record the mixed stream.
//
//
//
// You can use this API to perform the following operations:
//
// * Specify the anchors whose streams you want or do not want to record by using the `RecordParams` parameter
//
// * Specify the storage service you want to save recording files to by using the `StorageParams` parameter. Currently, you can save recording files to Tencent Cloud VOD or COS.
//
// * Specify transcoding settings for mixed-stream recording, including video resolution, video bitrate, frame rate, and audio quality, by using `MixTranscodeParams`
//
// * Specify the layout of different videos in mixed-stream recording mode or select an auto-arranged layout template
//
//
//
// Key concepts:
//
// * Single-stream recording: Record the audio and video of each subscribed user (`UserId`) in a room and save the recording files to the storage you specify.
//
// Mixed-stream recording: Mix the audios and videos of subscribed users (`UserId`) in a room, record the mixed stream, and save the recording files to the storage you specify. After a recording task ends, you can go to the VOD console (https://console.tencentcloud.com/vod/media) or [COS console](https://console.cloud.tencent.com/cos/bucket) to view the recording files.
//
// error code that may be returned:
// AUTHFAILURE = "AuthFailure"
// AUTHFAILURE_UNREALNAMEAUTHENTICATED = "AuthFailure.UnRealNameAuthenticated"
// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation"
// AUTHFAILURE_UNSUPPORTEDOPERATION = "AuthFailure.UnsupportedOperation"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_CRUNSUPPORTMETHOD = "FailedOperation.CRUnsupportMethod"
// FAILEDOPERATION_RESTRICTEDCONCURRENCY = "FailedOperation.RestrictedConcurrency"
// INTERNALERROR_CRINTERNALERROR = "InternalError.CRInternalError"
// INVALIDPARAMETER_OUTOFRANGE = "InvalidParameter.OutOfRange"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// MISSINGPARAMETER_ACCESSKEY = "MissingParameter.AccessKey"
// MISSINGPARAMETER_BUCKET = "MissingParameter.Bucket"
// MISSINGPARAMETER_CLOUDSTORAGE = "MissingParameter.CloudStorage"
// MISSINGPARAMETER_RECORDMODE = "MissingParameter.RecordMode"
// MISSINGPARAMETER_RECORDPARAMS = "MissingParameter.RecordParams"
// MISSINGPARAMETER_REGION = "MissingParameter.Region"
// MISSINGPARAMETER_ROOMID = "MissingParameter.RoomId"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_SECRETKEY = "MissingParameter.SecretKey"
// MISSINGPARAMETER_STORAGEPARAMS = "MissingParameter.StorageParams"
// MISSINGPARAMETER_STREAMTYPE = "MissingParameter.StreamType"
// MISSINGPARAMETER_TASKID = "MissingParameter.TaskId"
// MISSINGPARAMETER_USERID = "MissingParameter.UserId"
// MISSINGPARAMETER_USERSIG = "MissingParameter.UserSig"
// MISSINGPARAMETER_VENDOR = "MissingParameter.Vendor"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateCloudRecording(request *CreateCloudRecordingRequest) (response *CreateCloudRecordingResponse, err error) {
return c.CreateCloudRecordingWithContext(context.Background(), request)
}
// CreateCloudRecording
// API description:
//
// This API is used to start an on-cloud recording task. It records the audio and video streams in a room and saves them to the specified cloud storage. You can use this API to record the streams in a room separately, or you can mix the streams first and then record the mixed stream.
//
//
//
// You can use this API to perform the following operations:
//
// * Specify the anchors whose streams you want or do not want to record by using the `RecordParams` parameter
//
// * Specify the storage service you want to save recording files to by using the `StorageParams` parameter. Currently, you can save recording files to Tencent Cloud VOD or COS.
//
// * Specify transcoding settings for mixed-stream recording, including video resolution, video bitrate, frame rate, and audio quality, by using `MixTranscodeParams`
//
// * Specify the layout of different videos in mixed-stream recording mode or select an auto-arranged layout template
//
//
//
// Key concepts:
//
// * Single-stream recording: Record the audio and video of each subscribed user (`UserId`) in a room and save the recording files to the storage you specify.
//
// Mixed-stream recording: Mix the audios and videos of subscribed users (`UserId`) in a room, record the mixed stream, and save the recording files to the storage you specify. After a recording task ends, you can go to the VOD console (https://console.tencentcloud.com/vod/media) or [COS console](https://console.cloud.tencent.com/cos/bucket) to view the recording files.
//
// error code that may be returned:
// AUTHFAILURE = "AuthFailure"
// AUTHFAILURE_UNREALNAMEAUTHENTICATED = "AuthFailure.UnRealNameAuthenticated"
// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation"
// AUTHFAILURE_UNSUPPORTEDOPERATION = "AuthFailure.UnsupportedOperation"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_CRUNSUPPORTMETHOD = "FailedOperation.CRUnsupportMethod"
// FAILEDOPERATION_RESTRICTEDCONCURRENCY = "FailedOperation.RestrictedConcurrency"
// INTERNALERROR_CRINTERNALERROR = "InternalError.CRInternalError"
// INVALIDPARAMETER_OUTOFRANGE = "InvalidParameter.OutOfRange"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// MISSINGPARAMETER_ACCESSKEY = "MissingParameter.AccessKey"
// MISSINGPARAMETER_BUCKET = "MissingParameter.Bucket"
// MISSINGPARAMETER_CLOUDSTORAGE = "MissingParameter.CloudStorage"
// MISSINGPARAMETER_RECORDMODE = "MissingParameter.RecordMode"
// MISSINGPARAMETER_RECORDPARAMS = "MissingParameter.RecordParams"
// MISSINGPARAMETER_REGION = "MissingParameter.Region"
// MISSINGPARAMETER_ROOMID = "MissingParameter.RoomId"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_SECRETKEY = "MissingParameter.SecretKey"
// MISSINGPARAMETER_STORAGEPARAMS = "MissingParameter.StorageParams"
// MISSINGPARAMETER_STREAMTYPE = "MissingParameter.StreamType"
// MISSINGPARAMETER_TASKID = "MissingParameter.TaskId"
// MISSINGPARAMETER_USERID = "MissingParameter.UserId"
// MISSINGPARAMETER_USERSIG = "MissingParameter.UserSig"
// MISSINGPARAMETER_VENDOR = "MissingParameter.Vendor"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateCloudRecordingWithContext(ctx context.Context, request *CreateCloudRecordingRequest) (response *CreateCloudRecordingResponse, err error) {
if request == nil {
request = NewCreateCloudRecordingRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateCloudRecording require credential")
}
request.SetContext(ctx)
response = NewCreateCloudRecordingResponse()
err = c.Send(request, response)
return
}
func NewDeleteCloudRecordingRequest() (request *DeleteCloudRecordingRequest) {
request = &DeleteCloudRecordingRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "DeleteCloudRecording")
return
}
func NewDeleteCloudRecordingResponse() (response *DeleteCloudRecordingResponse) {
response = &DeleteCloudRecordingResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteCloudRecording
// This API is used to stop a recording task. If a task is stopped successfully, but the uploading of recording files has not completed, the backend will continue to upload the files and will notify you via a callback when the upload is completed.
//
// error code that may be returned:
// AUTHFAILURE = "AuthFailure"
// AUTHFAILURE_UNREALNAMEAUTHENTICATED = "AuthFailure.UnRealNameAuthenticated"
// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation"
// AUTHFAILURE_UNSUPPORTEDOPERATION = "AuthFailure.UnsupportedOperation"
// FAILEDOPERATION_CRUNSUPPORTMETHOD = "FailedOperation.CRUnsupportMethod"
// INTERNALERROR_CRINTERNALERROR = "InternalError.CRInternalError"
// INVALIDPARAMETER_OUTOFRANGE = "InvalidParameter.OutOfRange"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// MISSINGPARAMETER_ROOMID = "MissingParameter.RoomId"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_TASKID = "MissingParameter.TaskId"
// MISSINGPARAMETER_USERID = "MissingParameter.UserId"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteCloudRecording(request *DeleteCloudRecordingRequest) (response *DeleteCloudRecordingResponse, err error) {
return c.DeleteCloudRecordingWithContext(context.Background(), request)
}
// DeleteCloudRecording
// This API is used to stop a recording task. If a task is stopped successfully, but the uploading of recording files has not completed, the backend will continue to upload the files and will notify you via a callback when the upload is completed.
//
// error code that may be returned:
// AUTHFAILURE = "AuthFailure"
// AUTHFAILURE_UNREALNAMEAUTHENTICATED = "AuthFailure.UnRealNameAuthenticated"
// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation"
// AUTHFAILURE_UNSUPPORTEDOPERATION = "AuthFailure.UnsupportedOperation"
// FAILEDOPERATION_CRUNSUPPORTMETHOD = "FailedOperation.CRUnsupportMethod"
// INTERNALERROR_CRINTERNALERROR = "InternalError.CRInternalError"
// INVALIDPARAMETER_OUTOFRANGE = "InvalidParameter.OutOfRange"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// MISSINGPARAMETER_ROOMID = "MissingParameter.RoomId"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_TASKID = "MissingParameter.TaskId"
// MISSINGPARAMETER_USERID = "MissingParameter.UserId"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteCloudRecordingWithContext(ctx context.Context, request *DeleteCloudRecordingRequest) (response *DeleteCloudRecordingResponse, err error) {
if request == nil {
request = NewDeleteCloudRecordingRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteCloudRecording require credential")
}
request.SetContext(ctx)
response = NewDeleteCloudRecordingResponse()
err = c.Send(request, response)
return
}
func NewDescribeCallDetailInfoRequest() (request *DescribeCallDetailInfoRequest) {
request = &DescribeCallDetailInfoRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "DescribeCallDetailInfo")
return
}
func NewDescribeCallDetailInfoResponse() (response *DescribeCallDetailInfoResponse) {
response = &DescribeCallDetailInfoResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCallDetailInfo
// This API (the old `DescribeCallDetail`) is used to query the user list and call quality data of a specified time range in the last 14 days. If `DataType` is not null, the data of up to six users during a period of up to one hour can be queried (the period can start and end on different days). If `DataType` is null, the data of up to 100 users can be returned per page (the value of `PageSize` cannot exceed 100). Six users are queried by default. The period queried cannot exceed four hours. This API is used to query call quality and is not recommended for billing purposes.
//
// **Note**:
//
// 1. You can use this API to query historical data or for reconciliation purposes, but we do not recommend you use it for crucial business logic.
//
// 2. If you need to call this API, please upgrade the monitoring dashboard version to "Standard". For more details, please refer to: https://www.tencentcloud.com/document/product/647/54481.
//
// error code that may be returned:
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBERROR = "InternalError.DBError"
// INTERNALERROR_ESQUERYERROR = "InternalError.EsQueryError"
// INTERNALERROR_HTTPPARASEFALIED = "InternalError.HttpParaseFalied"
// INTERNALERROR_INTERFACEERR = "InternalError.InterfaceErr"
// INTERNALERROR_METHODERR = "InternalError.MethodErr"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_BODYPARAMSERROR = "InvalidParameter.BodyParamsError"
// INVALIDPARAMETER_ENCODEPARAMS = "InvalidParameter.EncodeParams"
// INVALIDPARAMETER_PAGENUMBER = "InvalidParameter.PageNumber"
// INVALIDPARAMETER_PAGESIZE = "InvalidParameter.PageSize"
// INVALIDPARAMETER_PAGESIZEOVERSIZE = "InvalidParameter.PageSizeOversize"
// INVALIDPARAMETER_QUERYSCALEOVERSIZE = "InvalidParameter.QueryScaleOversize"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// INVALIDPARAMETER_STARTTIMEOVERSIZE = "InvalidParameter.StartTimeOversize"
// INVALIDPARAMETER_STARTTS = "InvalidParameter.StartTs"
// INVALIDPARAMETER_STARTTSOVERSIZE = "InvalidParameter.StartTsOversize"
// INVALIDPARAMETER_USERIDSMORETHANSIX = "InvalidParameter.UserIdsMorethanSix"
// MISSINGPARAMETER = "MissingParameter"
// MISSINGPARAMETER_COMMID = "MissingParameter.CommId"
// MISSINGPARAMETER_COMMIDORSDKAPPID = "MissingParameter.CommIdOrSdkAppId"
// MISSINGPARAMETER_ENDTS = "MissingParameter.EndTs"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_STARTTS = "MissingParameter.StartTs"
func (c *Client) DescribeCallDetailInfo(request *DescribeCallDetailInfoRequest) (response *DescribeCallDetailInfoResponse, err error) {
return c.DescribeCallDetailInfoWithContext(context.Background(), request)
}
// DescribeCallDetailInfo
// This API (the old `DescribeCallDetail`) is used to query the user list and call quality data of a specified time range in the last 14 days. If `DataType` is not null, the data of up to six users during a period of up to one hour can be queried (the period can start and end on different days). If `DataType` is null, the data of up to 100 users can be returned per page (the value of `PageSize` cannot exceed 100). Six users are queried by default. The period queried cannot exceed four hours. This API is used to query call quality and is not recommended for billing purposes.
//
// **Note**:
//
// 1. You can use this API to query historical data or for reconciliation purposes, but we do not recommend you use it for crucial business logic.
//
// 2. If you need to call this API, please upgrade the monitoring dashboard version to "Standard". For more details, please refer to: https://www.tencentcloud.com/document/product/647/54481.
//
// error code that may be returned:
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBERROR = "InternalError.DBError"
// INTERNALERROR_ESQUERYERROR = "InternalError.EsQueryError"
// INTERNALERROR_HTTPPARASEFALIED = "InternalError.HttpParaseFalied"
// INTERNALERROR_INTERFACEERR = "InternalError.InterfaceErr"
// INTERNALERROR_METHODERR = "InternalError.MethodErr"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_BODYPARAMSERROR = "InvalidParameter.BodyParamsError"
// INVALIDPARAMETER_ENCODEPARAMS = "InvalidParameter.EncodeParams"
// INVALIDPARAMETER_PAGENUMBER = "InvalidParameter.PageNumber"
// INVALIDPARAMETER_PAGESIZE = "InvalidParameter.PageSize"
// INVALIDPARAMETER_PAGESIZEOVERSIZE = "InvalidParameter.PageSizeOversize"
// INVALIDPARAMETER_QUERYSCALEOVERSIZE = "InvalidParameter.QueryScaleOversize"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// INVALIDPARAMETER_STARTTIMEOVERSIZE = "InvalidParameter.StartTimeOversize"
// INVALIDPARAMETER_STARTTS = "InvalidParameter.StartTs"
// INVALIDPARAMETER_STARTTSOVERSIZE = "InvalidParameter.StartTsOversize"
// INVALIDPARAMETER_USERIDSMORETHANSIX = "InvalidParameter.UserIdsMorethanSix"
// MISSINGPARAMETER = "MissingParameter"
// MISSINGPARAMETER_COMMID = "MissingParameter.CommId"
// MISSINGPARAMETER_COMMIDORSDKAPPID = "MissingParameter.CommIdOrSdkAppId"
// MISSINGPARAMETER_ENDTS = "MissingParameter.EndTs"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_STARTTS = "MissingParameter.StartTs"
func (c *Client) DescribeCallDetailInfoWithContext(ctx context.Context, request *DescribeCallDetailInfoRequest) (response *DescribeCallDetailInfoResponse, err error) {
if request == nil {
request = NewDescribeCallDetailInfoRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeCallDetailInfo require credential")
}
request.SetContext(ctx)
response = NewDescribeCallDetailInfoResponse()
err = c.Send(request, response)
return
}
func NewDescribeCloudRecordingRequest() (request *DescribeCloudRecordingRequest) {
request = &DescribeCloudRecordingRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "DescribeCloudRecording")
return
}
func NewDescribeCloudRecordingResponse() (response *DescribeCloudRecordingResponse) {
response = &DescribeCloudRecordingResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCloudRecording
// This API is used to query the status of a recording task after it starts. It works only when a task is in progress. If the task has already ended when this API is called, an error will be returned.
//
// If a recording file is being uploaded to VOD, the response parameter `StorageFileList` will not contain the information of the recording file. Please listen for the recording file callback to get the information.
//
// error code that may be returned:
// AUTHFAILURE = "AuthFailure"
// AUTHFAILURE_UNREALNAMEAUTHENTICATED = "AuthFailure.UnRealNameAuthenticated"
// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation"
// AUTHFAILURE_UNSUPPORTEDOPERATION = "AuthFailure.UnsupportedOperation"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_CRUNSUPPORTMETHOD = "FailedOperation.CRUnsupportMethod"
// INTERNALERROR_CRINTERNALERROR = "InternalError.CRInternalError"
// INVALIDPARAMETER_OUTOFRANGE = "InvalidParameter.OutOfRange"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// MISSINGPARAMETER_ROOMID = "MissingParameter.RoomId"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_TASKID = "MissingParameter.TaskId"
// MISSINGPARAMETER_USERID = "MissingParameter.UserId"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeCloudRecording(request *DescribeCloudRecordingRequest) (response *DescribeCloudRecordingResponse, err error) {
return c.DescribeCloudRecordingWithContext(context.Background(), request)
}
// DescribeCloudRecording
// This API is used to query the status of a recording task after it starts. It works only when a task is in progress. If the task has already ended when this API is called, an error will be returned.
//
// If a recording file is being uploaded to VOD, the response parameter `StorageFileList` will not contain the information of the recording file. Please listen for the recording file callback to get the information.
//
// error code that may be returned:
// AUTHFAILURE = "AuthFailure"
// AUTHFAILURE_UNREALNAMEAUTHENTICATED = "AuthFailure.UnRealNameAuthenticated"
// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation"
// AUTHFAILURE_UNSUPPORTEDOPERATION = "AuthFailure.UnsupportedOperation"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_CRUNSUPPORTMETHOD = "FailedOperation.CRUnsupportMethod"
// INTERNALERROR_CRINTERNALERROR = "InternalError.CRInternalError"
// INVALIDPARAMETER_OUTOFRANGE = "InvalidParameter.OutOfRange"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// MISSINGPARAMETER_ROOMID = "MissingParameter.RoomId"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_TASKID = "MissingParameter.TaskId"
// MISSINGPARAMETER_USERID = "MissingParameter.UserId"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeCloudRecordingWithContext(ctx context.Context, request *DescribeCloudRecordingRequest) (response *DescribeCloudRecordingResponse, err error) {
if request == nil {
request = NewDescribeCloudRecordingRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeCloudRecording require credential")
}
request.SetContext(ctx)
response = NewDescribeCloudRecordingResponse()
err = c.Send(request, response)
return
}
func NewDescribeMixTranscodingUsageRequest() (request *DescribeMixTranscodingUsageRequest) {
request = &DescribeMixTranscodingUsageRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "DescribeMixTranscodingUsage")
return
}
func NewDescribeMixTranscodingUsageResponse() (response *DescribeMixTranscodingUsageResponse) {
response = &DescribeMixTranscodingUsageResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeMixTranscodingUsage
// This API is used to query your usage of TRTC’s On-Cloud MixTranscoding service.
//
// - If the period queried is one day or shorter, the statistics returned are on a five-minute basis. If the period queried is longer than one day, the statistics returned are on a daily basis.
//
// - The period queried per request cannot be longer than 31 days.
//
// - If you query the statistics of the current day, the statistics returned may be inaccurate due to the delay in data collection.
//
// - You can use this API to query your historical usage or to reconcile data, but we do not recommend you use it for crucial business logic.
//
// - The rate limit of this API is five calls per second.
//
// error code that may be returned:
// INVALIDPARAMETER_QUERYSCALEOVERSIZE = "InvalidParameter.QueryScaleOversize"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
func (c *Client) DescribeMixTranscodingUsage(request *DescribeMixTranscodingUsageRequest) (response *DescribeMixTranscodingUsageResponse, err error) {
return c.DescribeMixTranscodingUsageWithContext(context.Background(), request)
}
// DescribeMixTranscodingUsage
// This API is used to query your usage of TRTC’s On-Cloud MixTranscoding service.
//
// - If the period queried is one day or shorter, the statistics returned are on a five-minute basis. If the period queried is longer than one day, the statistics returned are on a daily basis.
//
// - The period queried per request cannot be longer than 31 days.
//
// - If you query the statistics of the current day, the statistics returned may be inaccurate due to the delay in data collection.
//
// - You can use this API to query your historical usage or to reconcile data, but we do not recommend you use it for crucial business logic.
//
// - The rate limit of this API is five calls per second.
//
// error code that may be returned:
// INVALIDPARAMETER_QUERYSCALEOVERSIZE = "InvalidParameter.QueryScaleOversize"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
func (c *Client) DescribeMixTranscodingUsageWithContext(ctx context.Context, request *DescribeMixTranscodingUsageRequest) (response *DescribeMixTranscodingUsageResponse, err error) {
if request == nil {
request = NewDescribeMixTranscodingUsageRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeMixTranscodingUsage require credential")
}
request.SetContext(ctx)
response = NewDescribeMixTranscodingUsageResponse()
err = c.Send(request, response)
return
}
func NewDescribeRecordingUsageRequest() (request *DescribeRecordingUsageRequest) {
request = &DescribeRecordingUsageRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "DescribeRecordingUsage")
return
}
func NewDescribeRecordingUsageResponse() (response *DescribeRecordingUsageResponse) {
response = &DescribeRecordingUsageResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeRecordingUsage
// This API is used to query your TRTC recording usage.
//
// - If the period queried is one day or shorter, the statistics returned are on a five-minute basis. If the period queried is longer than one day, the statistics returned are on a daily basis.
//
// - The period queried per request cannot be longer than 31 days.
//
// - If you query the statistics of the current day, the statistics returned may be inaccurate due to the delay in data collection.
//
// - You can use this API to query your historical usage or to reconcile data, but we do not recommend you use it for crucial business logic.
//
// - The rate limit of this API is five calls per second.
//
// error code that may be returned:
// INVALIDPARAMETER_QUERYSCALEOVERSIZE = "InvalidParameter.QueryScaleOversize"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
func (c *Client) DescribeRecordingUsage(request *DescribeRecordingUsageRequest) (response *DescribeRecordingUsageResponse, err error) {
return c.DescribeRecordingUsageWithContext(context.Background(), request)
}
// DescribeRecordingUsage
// This API is used to query your TRTC recording usage.
//
// - If the period queried is one day or shorter, the statistics returned are on a five-minute basis. If the period queried is longer than one day, the statistics returned are on a daily basis.
//
// - The period queried per request cannot be longer than 31 days.
//
// - If you query the statistics of the current day, the statistics returned may be inaccurate due to the delay in data collection.
//
// - You can use this API to query your historical usage or to reconcile data, but we do not recommend you use it for crucial business logic.
//
// - The rate limit of this API is five calls per second.
//
// error code that may be returned:
// INVALIDPARAMETER_QUERYSCALEOVERSIZE = "InvalidParameter.QueryScaleOversize"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
func (c *Client) DescribeRecordingUsageWithContext(ctx context.Context, request *DescribeRecordingUsageRequest) (response *DescribeRecordingUsageResponse, err error) {
if request == nil {
request = NewDescribeRecordingUsageRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeRecordingUsage require credential")
}
request.SetContext(ctx)
response = NewDescribeRecordingUsageResponse()
err = c.Send(request, response)
return
}
func NewDescribeRelayUsageRequest() (request *DescribeRelayUsageRequest) {
request = &DescribeRelayUsageRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "DescribeRelayUsage")
return
}
func NewDescribeRelayUsageResponse() (response *DescribeRelayUsageResponse) {
response = &DescribeRelayUsageResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeRelayUsage
// This API is used to query your usage of TRTC’s relay to CDN service.
//
// - If the period queried is one day or shorter, the statistics returned are on a five-minute basis. If the period queried is longer than one day, the statistics returned are on a daily basis.
//
// - The period queried per request cannot be longer than 31 days.
//
// - If you query the statistics of the current day, the statistics returned may be inaccurate due to the delay in data collection.
//
// - You can use this API to query your historical usage or to reconcile data, but we do not recommend you use it for crucial business logic.
//
// - The rate limit of this API is five calls per second.
//
// error code that may be returned:
// INVALIDPARAMETER_QUERYSCALEOVERSIZE = "InvalidParameter.QueryScaleOversize"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
func (c *Client) DescribeRelayUsage(request *DescribeRelayUsageRequest) (response *DescribeRelayUsageResponse, err error) {
return c.DescribeRelayUsageWithContext(context.Background(), request)
}
// DescribeRelayUsage
// This API is used to query your usage of TRTC’s relay to CDN service.
//
// - If the period queried is one day or shorter, the statistics returned are on a five-minute basis. If the period queried is longer than one day, the statistics returned are on a daily basis.
//
// - The period queried per request cannot be longer than 31 days.
//
// - If you query the statistics of the current day, the statistics returned may be inaccurate due to the delay in data collection.
//
// - You can use this API to query your historical usage or to reconcile data, but we do not recommend you use it for crucial business logic.
//
// - The rate limit of this API is five calls per second.
//
// error code that may be returned:
// INVALIDPARAMETER_QUERYSCALEOVERSIZE = "InvalidParameter.QueryScaleOversize"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
func (c *Client) DescribeRelayUsageWithContext(ctx context.Context, request *DescribeRelayUsageRequest) (response *DescribeRelayUsageResponse, err error) {
if request == nil {
request = NewDescribeRelayUsageRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeRelayUsage require credential")
}
request.SetContext(ctx)
response = NewDescribeRelayUsageResponse()
err = c.Send(request, response)
return
}
func NewDescribeRoomInfoRequest() (request *DescribeRoomInfoRequest) {
request = &DescribeRoomInfoRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "DescribeRoomInfo")
return
}
func NewDescribeRoomInfoResponse() (response *DescribeRoomInfoResponse) {
response = &DescribeRoomInfoResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeRoomInfo
// This API (the old `DescribeRoomInformation`) is used to query the rooms of an application (`SDKAppID`) in the last 14 days. Up to 100 records can be returned per call (10 are returned by default).
//
// **Note**:
//
// 1. You can use this API to query historical data or for reconciliation purposes, but we do not recommend you use it for crucial business logic.
//
// 2. If you need to call this API, please upgrade the monitoring dashboard version to "Standard". For more details, please refer to: https://trtc.io/document/54481
//
// error code that may be returned:
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBERROR = "InternalError.DBError"
// INTERNALERROR_ESQUERYERROR = "InternalError.EsQueryError"
// INTERNALERROR_HTTPPARASEFALIED = "InternalError.HttpParaseFalied"
// INTERNALERROR_INTERFACEERR = "InternalError.InterfaceErr"
// INTERNALERROR_METHODERR = "InternalError.MethodErr"
// INVALIDPARAMETER_BODYPARAMSERROR = "InvalidParameter.BodyParamsError"
// INVALIDPARAMETER_ENDTS = "InvalidParameter.EndTs"
// INVALIDPARAMETER_PAGENUMBER = "InvalidParameter.PageNumber"
// INVALIDPARAMETER_PAGESIZE = "InvalidParameter.PageSize"
// INVALIDPARAMETER_PAGESIZEOVERSIZE = "InvalidParameter.PageSizeOversize"
// INVALIDPARAMETER_QUERYSCALEOVERSIZE = "InvalidParameter.QueryScaleOversize"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// INVALIDPARAMETER_STARTTIMEOVERSIZE = "InvalidParameter.StartTimeOversize"
// INVALIDPARAMETER_STARTTS = "InvalidParameter.StartTs"
// INVALIDPARAMETER_STARTTSOVERSIZE = "InvalidParameter.StartTsOversize"
// INVALIDPARAMETER_URLPARAMSERROR = "InvalidParameter.UrlParamsError"
// INVALIDPARAMETER_USERID = "InvalidParameter.UserId"
// MISSINGPARAMETER_COMMIDORSDKAPPID = "MissingParameter.CommIdOrSdkAppId"
// MISSINGPARAMETER_ENDTS = "MissingParameter.EndTs"
// MISSINGPARAMETER_ROOMNUM = "MissingParameter.RoomNum"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_STARTTS = "MissingParameter.StartTs"
func (c *Client) DescribeRoomInfo(request *DescribeRoomInfoRequest) (response *DescribeRoomInfoResponse, err error) {
return c.DescribeRoomInfoWithContext(context.Background(), request)
}
// DescribeRoomInfo
// This API (the old `DescribeRoomInformation`) is used to query the rooms of an application (`SDKAppID`) in the last 14 days. Up to 100 records can be returned per call (10 are returned by default).
//
// **Note**:
//
// 1. You can use this API to query historical data or for reconciliation purposes, but we do not recommend you use it for crucial business logic.
//
// 2. If you need to call this API, please upgrade the monitoring dashboard version to "Standard". For more details, please refer to: https://trtc.io/document/54481
//
// error code that may be returned:
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBERROR = "InternalError.DBError"
// INTERNALERROR_ESQUERYERROR = "InternalError.EsQueryError"
// INTERNALERROR_HTTPPARASEFALIED = "InternalError.HttpParaseFalied"
// INTERNALERROR_INTERFACEERR = "InternalError.InterfaceErr"
// INTERNALERROR_METHODERR = "InternalError.MethodErr"
// INVALIDPARAMETER_BODYPARAMSERROR = "InvalidParameter.BodyParamsError"
// INVALIDPARAMETER_ENDTS = "InvalidParameter.EndTs"
// INVALIDPARAMETER_PAGENUMBER = "InvalidParameter.PageNumber"
// INVALIDPARAMETER_PAGESIZE = "InvalidParameter.PageSize"
// INVALIDPARAMETER_PAGESIZEOVERSIZE = "InvalidParameter.PageSizeOversize"
// INVALIDPARAMETER_QUERYSCALEOVERSIZE = "InvalidParameter.QueryScaleOversize"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// INVALIDPARAMETER_STARTTIMEOVERSIZE = "InvalidParameter.StartTimeOversize"
// INVALIDPARAMETER_STARTTS = "InvalidParameter.StartTs"
// INVALIDPARAMETER_STARTTSOVERSIZE = "InvalidParameter.StartTsOversize"
// INVALIDPARAMETER_URLPARAMSERROR = "InvalidParameter.UrlParamsError"
// INVALIDPARAMETER_USERID = "InvalidParameter.UserId"
// MISSINGPARAMETER_COMMIDORSDKAPPID = "MissingParameter.CommIdOrSdkAppId"
// MISSINGPARAMETER_ENDTS = "MissingParameter.EndTs"
// MISSINGPARAMETER_ROOMNUM = "MissingParameter.RoomNum"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_STARTTS = "MissingParameter.StartTs"
func (c *Client) DescribeRoomInfoWithContext(ctx context.Context, request *DescribeRoomInfoRequest) (response *DescribeRoomInfoResponse, err error) {
if request == nil {
request = NewDescribeRoomInfoRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeRoomInfo require credential")
}
request.SetContext(ctx)
response = NewDescribeRoomInfoResponse()
err = c.Send(request, response)
return
}
func NewDescribeScaleInfoRequest() (request *DescribeScaleInfoRequest) {
request = &DescribeScaleInfoRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "DescribeScaleInfo")
return
}
func NewDescribeScaleInfoResponse() (response *DescribeScaleInfoResponse) {
response = &DescribeScaleInfoResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeScaleInfo
// This API (the old `DescribeHistoryScale`) is used to query the daily number of rooms and users of an application (`SDKAppID`) in the last 14 days. Data for the current day cannot be queried.
//
// error code that may be returned:
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBERROR = "InternalError.DBError"
// INTERNALERROR_HTTPPARASEFALIED = "InternalError.HttpParaseFalied"
// INTERNALERROR_INTERFACEERR = "InternalError.InterfaceErr"
// INTERNALERROR_METHODERR = "InternalError.MethodErr"
// INVALIDPARAMETER_BODYPARAMSERROR = "InvalidParameter.BodyParamsError"
// INVALIDPARAMETER_ENDTS = "InvalidParameter.EndTs"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// INVALIDPARAMETER_STARTTS = "InvalidParameter.StartTs"
// INVALIDPARAMETER_STARTTSOVERSIZE = "InvalidParameter.StartTsOversize"
// INVALIDPARAMETER_USERIDSMORETHANSIX = "InvalidParameter.UserIdsMorethanSix"
// MISSINGPARAMETER_ENDTS = "MissingParameter.EndTs"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_STARTTS = "MissingParameter.StartTs"
func (c *Client) DescribeScaleInfo(request *DescribeScaleInfoRequest) (response *DescribeScaleInfoResponse, err error) {
return c.DescribeScaleInfoWithContext(context.Background(), request)
}
// DescribeScaleInfo
// This API (the old `DescribeHistoryScale`) is used to query the daily number of rooms and users of an application (`SDKAppID`) in the last 14 days. Data for the current day cannot be queried.
//
// error code that may be returned:
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBERROR = "InternalError.DBError"
// INTERNALERROR_HTTPPARASEFALIED = "InternalError.HttpParaseFalied"
// INTERNALERROR_INTERFACEERR = "InternalError.InterfaceErr"
// INTERNALERROR_METHODERR = "InternalError.MethodErr"
// INVALIDPARAMETER_BODYPARAMSERROR = "InvalidParameter.BodyParamsError"
// INVALIDPARAMETER_ENDTS = "InvalidParameter.EndTs"
// INVALIDPARAMETER_SDKAPPID = "InvalidParameter.SdkAppId"
// INVALIDPARAMETER_STARTTS = "InvalidParameter.StartTs"
// INVALIDPARAMETER_STARTTSOVERSIZE = "InvalidParameter.StartTsOversize"
// INVALIDPARAMETER_USERIDSMORETHANSIX = "InvalidParameter.UserIdsMorethanSix"
// MISSINGPARAMETER_ENDTS = "MissingParameter.EndTs"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_STARTTS = "MissingParameter.StartTs"
func (c *Client) DescribeScaleInfoWithContext(ctx context.Context, request *DescribeScaleInfoRequest) (response *DescribeScaleInfoResponse, err error) {
if request == nil {
request = NewDescribeScaleInfoRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeScaleInfo require credential")
}
request.SetContext(ctx)
response = NewDescribeScaleInfoResponse()
err = c.Send(request, response)
return
}
func NewDescribeStreamIngestRequest() (request *DescribeStreamIngestRequest) {
request = &DescribeStreamIngestRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "DescribeStreamIngest")
return
}
func NewDescribeStreamIngestResponse() (response *DescribeStreamIngestResponse) {
response = &DescribeStreamIngestResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeStreamIngest
// You can query the status of the Relay task.
//
// error code that may be returned:
// FAILEDOPERATION_QUERYTASKINFOFAILED = "FailedOperation.QueryTaskInfoFailed"
// INTERNALERROR_DBERROR = "InternalError.DBError"
// INVALIDPARAMETER_TASKID = "InvalidParameter.TaskId"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_TASKID = "MissingParameter.TaskId"
func (c *Client) DescribeStreamIngest(request *DescribeStreamIngestRequest) (response *DescribeStreamIngestResponse, err error) {
return c.DescribeStreamIngestWithContext(context.Background(), request)
}
// DescribeStreamIngest
// You can query the status of the Relay task.
//
// error code that may be returned:
// FAILEDOPERATION_QUERYTASKINFOFAILED = "FailedOperation.QueryTaskInfoFailed"
// INTERNALERROR_DBERROR = "InternalError.DBError"
// INVALIDPARAMETER_TASKID = "InvalidParameter.TaskId"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_TASKID = "MissingParameter.TaskId"
func (c *Client) DescribeStreamIngestWithContext(ctx context.Context, request *DescribeStreamIngestRequest) (response *DescribeStreamIngestResponse, err error) {
if request == nil {
request = NewDescribeStreamIngestRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamIngest require credential")
}
request.SetContext(ctx)
response = NewDescribeStreamIngestResponse()
err = c.Send(request, response)
return
}
func NewDescribeTRTCMarketQualityDataRequest() (request *DescribeTRTCMarketQualityDataRequest) {
request = &DescribeTRTCMarketQualityDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "DescribeTRTCMarketQualityData")
return
}
func NewDescribeTRTCMarketQualityDataResponse() (response *DescribeTRTCMarketQualityDataResponse) {
response = &DescribeTRTCMarketQualityDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeTRTCMarketQualityData
// Query TRTC Monitoring Dashboard - Data Dashboard Quality Metrics (including the following metrics)
//
// joinSuccessRate: Join channel success rate.
//
// joinSuccessIn5sRate: Join channel success rate within 5s.
//
// audioFreezeRate: Audio stutter rate.
//
// videoFreezeRate: Video stutter rate.
//
// networkDelay: Lag rate.
//
// Note:
//
// 1. To call the API, you need to activate the monitoring dashboard Standard Edition and Premium Edition, the monitoring dashboard Free Edition does not support calling. Monitoring dashboard version features and billing overview: https://trtc.io/document/54481.
//
// 2. The query time range depends on the monitoring dashboard function version, premium edition can query the last 30 days.
//
// error code that may be returned:
// FAILEDOPERATION_QUERYTASKINFOFAILED = "FailedOperation.QueryTaskInfoFailed"
// INTERNALERROR_DBERROR = "InternalError.DBError"
// INVALIDPARAMETER_TASKID = "InvalidParameter.TaskId"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_TASKID = "MissingParameter.TaskId"
func (c *Client) DescribeTRTCMarketQualityData(request *DescribeTRTCMarketQualityDataRequest) (response *DescribeTRTCMarketQualityDataResponse, err error) {
return c.DescribeTRTCMarketQualityDataWithContext(context.Background(), request)
}
// DescribeTRTCMarketQualityData
// Query TRTC Monitoring Dashboard - Data Dashboard Quality Metrics (including the following metrics)
//
// joinSuccessRate: Join channel success rate.
//
// joinSuccessIn5sRate: Join channel success rate within 5s.
//
// audioFreezeRate: Audio stutter rate.
//
// videoFreezeRate: Video stutter rate.
//
// networkDelay: Lag rate.
//
// Note:
//
// 1. To call the API, you need to activate the monitoring dashboard Standard Edition and Premium Edition, the monitoring dashboard Free Edition does not support calling. Monitoring dashboard version features and billing overview: https://trtc.io/document/54481.
//
// 2. The query time range depends on the monitoring dashboard function version, premium edition can query the last 30 days.
//
// error code that may be returned:
// FAILEDOPERATION_QUERYTASKINFOFAILED = "FailedOperation.QueryTaskInfoFailed"
// INTERNALERROR_DBERROR = "InternalError.DBError"
// INVALIDPARAMETER_TASKID = "InvalidParameter.TaskId"
// MISSINGPARAMETER_SDKAPPID = "MissingParameter.SdkAppId"
// MISSINGPARAMETER_TASKID = "MissingParameter.TaskId"
func (c *Client) DescribeTRTCMarketQualityDataWithContext(ctx context.Context, request *DescribeTRTCMarketQualityDataRequest) (response *DescribeTRTCMarketQualityDataResponse, err error) {
if request == nil {
request = NewDescribeTRTCMarketQualityDataRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeTRTCMarketQualityData require credential")
}
request.SetContext(ctx)
response = NewDescribeTRTCMarketQualityDataResponse()
err = c.Send(request, response)
return
}
func NewDescribeTRTCMarketScaleDataRequest() (request *DescribeTRTCMarketScaleDataRequest) {
request = &DescribeTRTCMarketScaleDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("trtc", APIVersion, "DescribeTRTCMarketScaleData")
return
}
func NewDescribeTRTCMarketScaleDataResponse() (response *DescribeTRTCMarketScaleDataResponse) {