tencentcloud-sdk-nodejs 4.0.897 → 4.0.898
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.
- package/CHANGELOG.md +211 -0
- package/SERVICE_CHANGELOG.md +340 -75
- package/package.json +1 -1
- package/products.md +13 -13
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdc/v20201214/cdc_models.ts +59 -20
- package/src/services/cvm/v20170312/cvm_models.ts +10 -10
- package/src/services/dlc/v20210125/dlc_models.ts +9 -1
- package/src/services/es/v20180416/es_models.ts +9 -1
- package/src/services/gaap/v20180529/gaap_models.ts +9 -0
- package/src/services/hunyuan/v20230901/hunyuan_models.ts +4 -0
- package/src/services/lcic/v20220817/lcic_models.ts +9 -1
- package/src/services/lke/v20231130/lke_client.ts +1 -1
- package/src/services/monitor/v20180724/monitor_models.ts +108 -39
- package/src/services/tdmq/v20200217/tdmq_client.ts +37 -0
- package/src/services/tdmq/v20200217/tdmq_models.ts +144 -0
- package/src/services/tsi/v20210325/tsi_client.ts +15 -2
- package/src/services/vpc/v20170312/vpc_client.ts +1 -0
- package/src/services/vpc/v20170312/vpc_models.ts +94 -45
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdc/v20201214/cdc_models.d.ts +59 -20
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +10 -10
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +9 -1
- package/tencentcloud/services/es/v20180416/es_models.d.ts +9 -1
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +9 -0
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +4 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +9 -1
- package/tencentcloud/services/lke/v20231130/lke_client.d.ts +1 -1
- package/tencentcloud/services/lke/v20231130/lke_client.js +1 -1
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +108 -39
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.d.ts +13 -1
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.js +18 -0
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +137 -0
- package/tencentcloud/services/tsi/v20210325/tsi_client.d.ts +14 -1
- package/tencentcloud/services/tsi/v20210325/tsi_client.js +14 -1
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +93 -45
- package/test/tdmq.v20200217.test.js +30 -0
|
@@ -564,7 +564,38 @@ export interface UpdateServiceDiscoveryRequest {
|
|
|
564
564
|
*/
|
|
565
565
|
Type: number
|
|
566
566
|
/**
|
|
567
|
-
*
|
|
567
|
+
* 服务发现配置信息,YAML 格式
|
|
568
|
+
|
|
569
|
+
示例值:
|
|
570
|
+
|
|
571
|
+
```
|
|
572
|
+
apiVersion: monitoring.coreos.com/v1
|
|
573
|
+
kind: ServiceMonitor
|
|
574
|
+
metadata:
|
|
575
|
+
name: go-demo # 填写一个唯一名称
|
|
576
|
+
namespace: cm-prometheus # namespace固定,不要修改
|
|
577
|
+
spec:
|
|
578
|
+
endpoints:
|
|
579
|
+
- interval: 30s
|
|
580
|
+
# 填写service yaml中Prometheus Exporter对应的Port的Name
|
|
581
|
+
port: 2112
|
|
582
|
+
# 填写Prometheus Exporter对应的Path的值,不填默认/metrics
|
|
583
|
+
path: /metrics
|
|
584
|
+
relabelings:
|
|
585
|
+
# ** 必须要有一个 label 为 application,这里假设 k8s 有一个 label 为 app,
|
|
586
|
+
# 我们通过 relabel 的 replace 动作把它替换成了 application
|
|
587
|
+
- action: replace
|
|
588
|
+
sourceLabels: [__meta_kubernetes_pod_label_app]
|
|
589
|
+
targetLabel: application
|
|
590
|
+
# 选择要监控service所在的namespace
|
|
591
|
+
namespaceSelector:
|
|
592
|
+
matchNames:
|
|
593
|
+
- golang-demo
|
|
594
|
+
# 填写要监控service的Label值,以定位目标service
|
|
595
|
+
selector:
|
|
596
|
+
matchLabels:
|
|
597
|
+
app: golang-app-demo
|
|
598
|
+
```
|
|
568
599
|
*/
|
|
569
600
|
Yaml: string
|
|
570
601
|
}
|
|
@@ -576,25 +607,25 @@ export interface PrometheusRecordRuleYamlItem {
|
|
|
576
607
|
/**
|
|
577
608
|
* 实例名称
|
|
578
609
|
*/
|
|
579
|
-
Name
|
|
610
|
+
Name?: string
|
|
580
611
|
/**
|
|
581
612
|
* 最近更新时间
|
|
582
613
|
*/
|
|
583
|
-
UpdateTime
|
|
614
|
+
UpdateTime?: string
|
|
584
615
|
/**
|
|
585
616
|
* Yaml内容
|
|
586
617
|
*/
|
|
587
|
-
TemplateId
|
|
618
|
+
TemplateId?: string
|
|
588
619
|
/**
|
|
589
620
|
* 如果该聚合规则来至模板,则TemplateId为模板id
|
|
590
621
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
591
622
|
*/
|
|
592
|
-
Content
|
|
623
|
+
Content?: string
|
|
593
624
|
/**
|
|
594
625
|
* 该聚合规则如果来源于用户集群crd资源定义,则ClusterId为所属集群ID
|
|
595
626
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
596
627
|
*/
|
|
597
|
-
ClusterId
|
|
628
|
+
ClusterId?: string
|
|
598
629
|
/**
|
|
599
630
|
* 状态
|
|
600
631
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -1425,7 +1456,7 @@ export interface DescribeAlarmNoticeCallbacksResponse {
|
|
|
1425
1456
|
*/
|
|
1426
1457
|
export interface DescribePrometheusInstanceUsageRequest {
|
|
1427
1458
|
/**
|
|
1428
|
-
* 按照一个或者多个实例ID查询。实例ID形如:prom-xxxxxxxx
|
|
1459
|
+
* 按照一个或者多个实例ID查询。实例ID形如:prom-xxxxxxxx。
|
|
1429
1460
|
*/
|
|
1430
1461
|
InstanceIds: Array<string>
|
|
1431
1462
|
/**
|
|
@@ -6070,7 +6101,38 @@ export interface CreateServiceDiscoveryRequest {
|
|
|
6070
6101
|
*/
|
|
6071
6102
|
Type: number
|
|
6072
6103
|
/**
|
|
6073
|
-
*
|
|
6104
|
+
* 服务发现配置信息,YAML 格式
|
|
6105
|
+
|
|
6106
|
+
示例值:
|
|
6107
|
+
|
|
6108
|
+
```
|
|
6109
|
+
apiVersion: monitoring.coreos.com/v1
|
|
6110
|
+
kind: ServiceMonitor
|
|
6111
|
+
metadata:
|
|
6112
|
+
name: go-demo # 填写一个唯一名称
|
|
6113
|
+
namespace: cm-prometheus # namespace固定,不要修改
|
|
6114
|
+
spec:
|
|
6115
|
+
endpoints:
|
|
6116
|
+
- interval: 30s
|
|
6117
|
+
# 填写service yaml中Prometheus Exporter对应的Port的Name
|
|
6118
|
+
port: 2112
|
|
6119
|
+
# 填写Prometheus Exporter对应的Path的值,不填默认/metrics
|
|
6120
|
+
path: /metrics
|
|
6121
|
+
relabelings:
|
|
6122
|
+
# ** 必须要有一个 label 为 application,这里假设 k8s 有一个 label 为 app,
|
|
6123
|
+
# 我们通过 relabel 的 replace 动作把它替换成了 application
|
|
6124
|
+
- action: replace
|
|
6125
|
+
sourceLabels: [__meta_kubernetes_pod_label_app]
|
|
6126
|
+
targetLabel: application
|
|
6127
|
+
# 选择要监控service所在的namespace
|
|
6128
|
+
namespaceSelector:
|
|
6129
|
+
matchNames:
|
|
6130
|
+
- golang-demo
|
|
6131
|
+
# 填写要监控service的Label值,以定位目标service
|
|
6132
|
+
selector:
|
|
6133
|
+
matchLabels:
|
|
6134
|
+
app: golang-app-demo
|
|
6135
|
+
```
|
|
6074
6136
|
*/
|
|
6075
6137
|
Yaml: string
|
|
6076
6138
|
}
|
|
@@ -7949,7 +8011,7 @@ export interface AlarmHistory {
|
|
|
7949
8011
|
*/
|
|
7950
8012
|
export interface PrometheusClusterAgentBasic {
|
|
7951
8013
|
/**
|
|
7952
|
-
*
|
|
8014
|
+
* 地域
|
|
7953
8015
|
*/
|
|
7954
8016
|
Region: string
|
|
7955
8017
|
/**
|
|
@@ -8452,33 +8514,7 @@ export interface UpgradeGrafanaDashboardRequest {
|
|
|
8452
8514
|
*/
|
|
8453
8515
|
InstanceId: string
|
|
8454
8516
|
/**
|
|
8455
|
-
* Prometheus 集成项 Code,升级对应的 Dashboard
|
|
8456
|
-
<li>qcloud</li>
|
|
8457
|
-
<li>cvm_process_exporter</li>
|
|
8458
|
-
<li>cvm_node_exporter</li>
|
|
8459
|
-
<li>cvm</li>
|
|
8460
|
-
<li>kubernetes</li>
|
|
8461
|
-
<li>cdwch</li>
|
|
8462
|
-
<li>rocketmq</li>
|
|
8463
|
-
<li>spring_mvc</li>
|
|
8464
|
-
<li>mysql</li>
|
|
8465
|
-
<li>go</li>
|
|
8466
|
-
<li>redis</li>
|
|
8467
|
-
<li>jvm</li>
|
|
8468
|
-
<li>pgsql</li>
|
|
8469
|
-
<li>mongo</li>
|
|
8470
|
-
<li>kafka</li>
|
|
8471
|
-
<li>es</li>
|
|
8472
|
-
<li>flink</li>
|
|
8473
|
-
<li>blackbox</li>
|
|
8474
|
-
<li>consule</li>
|
|
8475
|
-
<li>memcached</li>
|
|
8476
|
-
<li>zk</li>
|
|
8477
|
-
<li>tps</li>
|
|
8478
|
-
<li>istio</li>
|
|
8479
|
-
<li>etcd</li>
|
|
8480
|
-
<li>pts</li>
|
|
8481
|
-
<li>kong</li>
|
|
8517
|
+
* Prometheus 集成项 Code,升级对应的 Dashboard,取值如下:<li>qcloud</li><li>cvm_process_exporter</li><li>cvm_node_exporter</li><li>cvm</li><li>tps</li><li>nginx-ingress</li><li>nvidia-gpu</li><li>cdwch</li><li>emr</li><li>apache</li><li>rocketmq</li><li>rabbitmq</li><li>spring_mvc</li><li>mysql</li><li>mssql</li><li>go</li><li>redis</li><li>jvm</li><li>pgsql</li><li>ceph</li><li>docker</li><li>nginx</li><li>oracledb</li><li>mongo</li><li>kafka</li><li>es</li><li>flink</li><li>blackbox</li><li>consule</li><li>memcached</li><li>zk</li><li>tps</li><li>istio</li><li>etcd</li><li>pts</li><li>kong</li>
|
|
8482
8518
|
*/
|
|
8483
8519
|
IntegrationCodes?: Array<string>
|
|
8484
8520
|
}
|
|
@@ -8508,7 +8544,38 @@ export interface DeleteServiceDiscoveryRequest {
|
|
|
8508
8544
|
*/
|
|
8509
8545
|
Type: number
|
|
8510
8546
|
/**
|
|
8511
|
-
*
|
|
8547
|
+
* 服务发现配置信息,YAML 格式
|
|
8548
|
+
|
|
8549
|
+
示例值:
|
|
8550
|
+
|
|
8551
|
+
```
|
|
8552
|
+
apiVersion: monitoring.coreos.com/v1
|
|
8553
|
+
kind: ServiceMonitor
|
|
8554
|
+
metadata:
|
|
8555
|
+
name: go-demo # 填写一个唯一名称
|
|
8556
|
+
namespace: cm-prometheus # namespace固定,不要修改
|
|
8557
|
+
spec:
|
|
8558
|
+
endpoints:
|
|
8559
|
+
- interval: 30s
|
|
8560
|
+
# 填写service yaml中Prometheus Exporter对应的Port的Name
|
|
8561
|
+
port: 2112
|
|
8562
|
+
# 填写Prometheus Exporter对应的Path的值,不填默认/metrics
|
|
8563
|
+
path: /metrics
|
|
8564
|
+
relabelings:
|
|
8565
|
+
# ** 必须要有一个 label 为 application,这里假设 k8s 有一个 label 为 app,
|
|
8566
|
+
# 我们通过 relabel 的 replace 动作把它替换成了 application
|
|
8567
|
+
- action: replace
|
|
8568
|
+
sourceLabels: [__meta_kubernetes_pod_label_app]
|
|
8569
|
+
targetLabel: application
|
|
8570
|
+
# 选择要监控service所在的namespace
|
|
8571
|
+
namespaceSelector:
|
|
8572
|
+
matchNames:
|
|
8573
|
+
- golang-demo
|
|
8574
|
+
# 填写要监控service的Label值,以定位目标service
|
|
8575
|
+
selector:
|
|
8576
|
+
matchLabels:
|
|
8577
|
+
app: golang-app-demo
|
|
8578
|
+
```
|
|
8512
8579
|
*/
|
|
8513
8580
|
Yaml: string
|
|
8514
8581
|
}
|
|
@@ -8584,7 +8651,7 @@ export interface ModifyPrometheusInstanceAttributesRequest {
|
|
|
8584
8651
|
*/
|
|
8585
8652
|
InstanceName?: string
|
|
8586
8653
|
/**
|
|
8587
|
-
*
|
|
8654
|
+
* 数据存储时间(单位天),限制值为15, 30, 45, 90, 180, 365, 730之一
|
|
8588
8655
|
*/
|
|
8589
8656
|
DataRetentionTime?: number
|
|
8590
8657
|
}
|
|
@@ -8767,6 +8834,8 @@ export interface UpdatePrometheusAgentStatusRequest {
|
|
|
8767
8834
|
InstanceId: string
|
|
8768
8835
|
/**
|
|
8769
8836
|
* Agent ID 列表,例如:agent-abcd1234,可在控制台 Agent 管理中获取
|
|
8837
|
+
|
|
8838
|
+
示例值:["agent-abcd1234"]
|
|
8770
8839
|
*/
|
|
8771
8840
|
AgentIds: Array<string>
|
|
8772
8841
|
/**
|
|
@@ -8980,7 +9049,7 @@ export interface CreateAlertRuleResponse {
|
|
|
8980
9049
|
* 规则 ID
|
|
8981
9050
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8982
9051
|
*/
|
|
8983
|
-
RuleId
|
|
9052
|
+
RuleId?: string
|
|
8984
9053
|
/**
|
|
8985
9054
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8986
9055
|
*/
|
|
@@ -42,6 +42,7 @@ import {
|
|
|
42
42
|
DescribeEnvironmentsRequest,
|
|
43
43
|
DescribeRocketMQNamespacesRequest,
|
|
44
44
|
ModifyRocketMQClusterResponse,
|
|
45
|
+
DescribeRocketMQTopicStatsResponse,
|
|
45
46
|
CreateEnvironmentRequest,
|
|
46
47
|
CreateCmqSubscribeResponse,
|
|
47
48
|
DescribeClustersRequest,
|
|
@@ -151,6 +152,7 @@ import {
|
|
|
151
152
|
RabbitMQQueueListInfo,
|
|
152
153
|
DescribeMsgResponse,
|
|
153
154
|
CreateProClusterResponse,
|
|
155
|
+
ModifyRocketMQInstanceRequest,
|
|
154
156
|
Tag,
|
|
155
157
|
CreateProClusterRequest,
|
|
156
158
|
DescribeRabbitMQVipInstancesResponse,
|
|
@@ -161,6 +163,7 @@ import {
|
|
|
161
163
|
DeleteEnvironmentsResponse,
|
|
162
164
|
ModifyAMQPClusterRequest,
|
|
163
165
|
FilterSubscription,
|
|
166
|
+
TopicStats,
|
|
164
167
|
DescribeClustersResponse,
|
|
165
168
|
ClearCmqSubscriptionFilterTagsRequest,
|
|
166
169
|
CreateRocketMQGroupResponse,
|
|
@@ -233,6 +236,7 @@ import {
|
|
|
233
236
|
RocketMQConsumerTopic,
|
|
234
237
|
DescribePublishersRequest,
|
|
235
238
|
ModifyRoleResponse,
|
|
239
|
+
DescribeRocketMQTopicStatsRequest,
|
|
236
240
|
SendRocketMQMessageResponse,
|
|
237
241
|
PulsarProClusterSpecInfo,
|
|
238
242
|
Subscription,
|
|
@@ -250,6 +254,7 @@ import {
|
|
|
250
254
|
DeleteRolesResponse,
|
|
251
255
|
ModifyRocketMQTopicRequest,
|
|
252
256
|
RocketMQClusterInfo,
|
|
257
|
+
ModifyRocketMQInstanceResponse,
|
|
253
258
|
PartitionsTopic,
|
|
254
259
|
ResetMsgSubOffsetByTimestampResponse,
|
|
255
260
|
SendMessagesRequest,
|
|
@@ -309,6 +314,7 @@ import {
|
|
|
309
314
|
RabbitMQPrivateNode,
|
|
310
315
|
ModifyPublicNetworkAccessPointRequest,
|
|
311
316
|
DescribeRocketMQSourceClusterGroupListResponse,
|
|
317
|
+
DescribeRocketMQTopicsByGroupRequest,
|
|
312
318
|
DescribeRocketMQConsumeStatsResponse,
|
|
313
319
|
DescribeRocketMQPublicAccessMonitorDataResponse,
|
|
314
320
|
RabbitMQVirtualHostInfo,
|
|
@@ -364,6 +370,7 @@ import {
|
|
|
364
370
|
DescribePublishersResponse,
|
|
365
371
|
DescribeCmqQueueDetailRequest,
|
|
366
372
|
CreateRocketMQEnvironmentRoleResponse,
|
|
373
|
+
DescribeRocketMQTopicsByGroupResponse,
|
|
367
374
|
DeleteEnvironmentRolesRequest,
|
|
368
375
|
CreateRocketMQTopicResponse,
|
|
369
376
|
CreateCmqQueueRequest,
|
|
@@ -593,6 +600,16 @@ export class Client extends AbstractClient {
|
|
|
593
600
|
return this.request("RewindCmqQueue", req, cb)
|
|
594
601
|
}
|
|
595
602
|
|
|
603
|
+
/**
|
|
604
|
+
* 获取Topic生产详情列表
|
|
605
|
+
*/
|
|
606
|
+
async DescribeRocketMQTopicStats(
|
|
607
|
+
req: DescribeRocketMQTopicStatsRequest,
|
|
608
|
+
cb?: (error: string, rep: DescribeRocketMQTopicStatsResponse) => void
|
|
609
|
+
): Promise<DescribeRocketMQTopicStatsResponse> {
|
|
610
|
+
return this.request("DescribeRocketMQTopicStats", req, cb)
|
|
611
|
+
}
|
|
612
|
+
|
|
596
613
|
/**
|
|
597
614
|
* 新增指定分区、类型的消息主题
|
|
598
615
|
*/
|
|
@@ -793,6 +810,16 @@ export class Client extends AbstractClient {
|
|
|
793
810
|
return this.request("ModifyPublicNetworkAccessPoint", req, cb)
|
|
794
811
|
}
|
|
795
812
|
|
|
813
|
+
/**
|
|
814
|
+
* 修改RocketMQ专享实例
|
|
815
|
+
*/
|
|
816
|
+
async ModifyRocketMQInstance(
|
|
817
|
+
req: ModifyRocketMQInstanceRequest,
|
|
818
|
+
cb?: (error: string, rep: ModifyRocketMQInstanceResponse) => void
|
|
819
|
+
): Promise<ModifyRocketMQInstanceResponse> {
|
|
820
|
+
return this.request("ModifyRocketMQInstance", req, cb)
|
|
821
|
+
}
|
|
822
|
+
|
|
796
823
|
/**
|
|
797
824
|
* 创建cmq队列接口
|
|
798
825
|
*/
|
|
@@ -915,6 +942,16 @@ export class Client extends AbstractClient {
|
|
|
915
942
|
return this.request("DescribeRabbitMQVipInstance", req, cb)
|
|
916
943
|
}
|
|
917
944
|
|
|
945
|
+
/**
|
|
946
|
+
* 获取指定消费组下订阅的主题列表
|
|
947
|
+
*/
|
|
948
|
+
async DescribeRocketMQTopicsByGroup(
|
|
949
|
+
req: DescribeRocketMQTopicsByGroupRequest,
|
|
950
|
+
cb?: (error: string, rep: DescribeRocketMQTopicsByGroupResponse) => void
|
|
951
|
+
): Promise<DescribeRocketMQTopicsByGroupResponse> {
|
|
952
|
+
return this.request("DescribeRocketMQTopicsByGroup", req, cb)
|
|
953
|
+
}
|
|
954
|
+
|
|
918
955
|
/**
|
|
919
956
|
* 从腾讯云可观测平台拉取公网指标监控数据,目前仅支持客户端到 LB 的入带宽和出宽带指标。
|
|
920
957
|
*/
|
|
@@ -885,6 +885,20 @@ export interface ModifyRocketMQClusterResponse {
|
|
|
885
885
|
RequestId?: string
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
+
/**
|
|
889
|
+
* DescribeRocketMQTopicStats返回参数结构体
|
|
890
|
+
*/
|
|
891
|
+
export interface DescribeRocketMQTopicStatsResponse {
|
|
892
|
+
/**
|
|
893
|
+
* 生产详情列表
|
|
894
|
+
*/
|
|
895
|
+
TopicStatsList?: Array<TopicStats>
|
|
896
|
+
/**
|
|
897
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
898
|
+
*/
|
|
899
|
+
RequestId?: string
|
|
900
|
+
}
|
|
901
|
+
|
|
888
902
|
/**
|
|
889
903
|
* CreateEnvironment请求参数结构体
|
|
890
904
|
*/
|
|
@@ -3860,6 +3874,28 @@ export interface CreateProClusterResponse {
|
|
|
3860
3874
|
RequestId?: string
|
|
3861
3875
|
}
|
|
3862
3876
|
|
|
3877
|
+
/**
|
|
3878
|
+
* ModifyRocketMQInstance请求参数结构体
|
|
3879
|
+
*/
|
|
3880
|
+
export interface ModifyRocketMQInstanceRequest {
|
|
3881
|
+
/**
|
|
3882
|
+
* 专享实例ID
|
|
3883
|
+
*/
|
|
3884
|
+
InstanceId: string
|
|
3885
|
+
/**
|
|
3886
|
+
* 实例名称
|
|
3887
|
+
*/
|
|
3888
|
+
Name?: string
|
|
3889
|
+
/**
|
|
3890
|
+
* 实例备注信息
|
|
3891
|
+
*/
|
|
3892
|
+
Remark?: string
|
|
3893
|
+
/**
|
|
3894
|
+
* 实例消息保留时间,小时为单位
|
|
3895
|
+
*/
|
|
3896
|
+
MessageRetention?: number
|
|
3897
|
+
}
|
|
3898
|
+
|
|
3863
3899
|
/**
|
|
3864
3900
|
* 标签的key/value的类型
|
|
3865
3901
|
*/
|
|
@@ -4068,6 +4104,42 @@ export interface FilterSubscription {
|
|
|
4068
4104
|
SubscriptionNames?: Array<string>
|
|
4069
4105
|
}
|
|
4070
4106
|
|
|
4107
|
+
/**
|
|
4108
|
+
* Topic状态
|
|
4109
|
+
*/
|
|
4110
|
+
export interface TopicStats {
|
|
4111
|
+
/**
|
|
4112
|
+
* 所属Broker节点
|
|
4113
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4114
|
+
*/
|
|
4115
|
+
BrokerName?: string
|
|
4116
|
+
/**
|
|
4117
|
+
* 队列编号
|
|
4118
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4119
|
+
*/
|
|
4120
|
+
QueueId?: number
|
|
4121
|
+
/**
|
|
4122
|
+
* 最小位点
|
|
4123
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4124
|
+
*/
|
|
4125
|
+
MinOffset?: number
|
|
4126
|
+
/**
|
|
4127
|
+
* 最大位点
|
|
4128
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4129
|
+
*/
|
|
4130
|
+
MaxOffset?: number
|
|
4131
|
+
/**
|
|
4132
|
+
* 消息条数
|
|
4133
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4134
|
+
*/
|
|
4135
|
+
MessageCount?: number
|
|
4136
|
+
/**
|
|
4137
|
+
* 消息最后写入时间
|
|
4138
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4139
|
+
*/
|
|
4140
|
+
LastUpdateTimestamp?: number
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4071
4143
|
/**
|
|
4072
4144
|
* DescribeClusters返回参数结构体
|
|
4073
4145
|
*/
|
|
@@ -5949,6 +6021,24 @@ export interface ModifyRoleResponse {
|
|
|
5949
6021
|
RequestId?: string
|
|
5950
6022
|
}
|
|
5951
6023
|
|
|
6024
|
+
/**
|
|
6025
|
+
* DescribeRocketMQTopicStats请求参数结构体
|
|
6026
|
+
*/
|
|
6027
|
+
export interface DescribeRocketMQTopicStatsRequest {
|
|
6028
|
+
/**
|
|
6029
|
+
* 实例ID
|
|
6030
|
+
*/
|
|
6031
|
+
ClusterId: string
|
|
6032
|
+
/**
|
|
6033
|
+
* 命名空间
|
|
6034
|
+
*/
|
|
6035
|
+
NamespaceId: string
|
|
6036
|
+
/**
|
|
6037
|
+
* 主题名
|
|
6038
|
+
*/
|
|
6039
|
+
TopicName: string
|
|
6040
|
+
}
|
|
6041
|
+
|
|
5952
6042
|
/**
|
|
5953
6043
|
* SendRocketMQMessage返回参数结构体
|
|
5954
6044
|
*/
|
|
@@ -6691,6 +6781,16 @@ export interface RocketMQClusterInfo {
|
|
|
6691
6781
|
ZoneIds?: Array<number | bigint>
|
|
6692
6782
|
}
|
|
6693
6783
|
|
|
6784
|
+
/**
|
|
6785
|
+
* ModifyRocketMQInstance返回参数结构体
|
|
6786
|
+
*/
|
|
6787
|
+
export interface ModifyRocketMQInstanceResponse {
|
|
6788
|
+
/**
|
|
6789
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6790
|
+
*/
|
|
6791
|
+
RequestId?: string
|
|
6792
|
+
}
|
|
6793
|
+
|
|
6694
6794
|
/**
|
|
6695
6795
|
* 分区topic
|
|
6696
6796
|
*/
|
|
@@ -7999,6 +8099,32 @@ export interface DescribeRocketMQSourceClusterGroupListResponse {
|
|
|
7999
8099
|
RequestId?: string
|
|
8000
8100
|
}
|
|
8001
8101
|
|
|
8102
|
+
/**
|
|
8103
|
+
* DescribeRocketMQTopicsByGroup请求参数结构体
|
|
8104
|
+
*/
|
|
8105
|
+
export interface DescribeRocketMQTopicsByGroupRequest {
|
|
8106
|
+
/**
|
|
8107
|
+
* 集群ID
|
|
8108
|
+
*/
|
|
8109
|
+
ClusterId: string
|
|
8110
|
+
/**
|
|
8111
|
+
* 命名空间名称
|
|
8112
|
+
*/
|
|
8113
|
+
NamespaceId: string
|
|
8114
|
+
/**
|
|
8115
|
+
* 消费组名称
|
|
8116
|
+
*/
|
|
8117
|
+
GroupId: string
|
|
8118
|
+
/**
|
|
8119
|
+
* 偏移量
|
|
8120
|
+
*/
|
|
8121
|
+
Offset?: number
|
|
8122
|
+
/**
|
|
8123
|
+
* 限制条数
|
|
8124
|
+
*/
|
|
8125
|
+
Limit?: number
|
|
8126
|
+
}
|
|
8127
|
+
|
|
8002
8128
|
/**
|
|
8003
8129
|
* DescribeRocketMQConsumeStats返回参数结构体
|
|
8004
8130
|
*/
|
|
@@ -9557,6 +9683,24 @@ export interface CreateRocketMQEnvironmentRoleResponse {
|
|
|
9557
9683
|
RequestId?: string
|
|
9558
9684
|
}
|
|
9559
9685
|
|
|
9686
|
+
/**
|
|
9687
|
+
* DescribeRocketMQTopicsByGroup返回参数结构体
|
|
9688
|
+
*/
|
|
9689
|
+
export interface DescribeRocketMQTopicsByGroupResponse {
|
|
9690
|
+
/**
|
|
9691
|
+
* 总条数
|
|
9692
|
+
*/
|
|
9693
|
+
TotalCount: number
|
|
9694
|
+
/**
|
|
9695
|
+
* 主题列表
|
|
9696
|
+
*/
|
|
9697
|
+
Topics: Array<string>
|
|
9698
|
+
/**
|
|
9699
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9700
|
+
*/
|
|
9701
|
+
RequestId?: string
|
|
9702
|
+
}
|
|
9703
|
+
|
|
9560
9704
|
/**
|
|
9561
9705
|
* DeleteEnvironmentRoles请求参数结构体
|
|
9562
9706
|
*/
|
|
@@ -37,8 +37,21 @@ export class Client extends AbstractClient {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
* 本接口提供上传音频,将音频进行语音识别并翻译成文本的服务。
|
|
41
|
+
该接口需要配合[同传查询结果](https://cloud.tencent.com/document/product/1399/107636)接口使用,建议一个线程进行音频数据上传同时另外一个线程拉取同传结果。
|
|
42
|
+
如果需要同步接口,既上传音频的同时拉取同传结果,可以使用[同传上传音频并查询结果](https://cloud.tencent.com/document/product/1399/107634)接口。
|
|
43
|
+
|
|
44
|
+
-----------
|
|
45
|
+
### 接口要求
|
|
46
|
+
集成该API时,需按照以下要求:
|
|
47
|
+
|
|
48
|
+
| 内容| 格式 |
|
|
49
|
+
| -------- | ------- |
|
|
50
|
+
| 音频格式 | pcm |
|
|
51
|
+
| 音频属性 | <ul><li>采样率:16000Hz</li><li>采样精度:16bits</li><li>声道:单声道(mono)</li></ul> |
|
|
52
|
+
| 响应格式 | 统一采用 JSON 格式 |
|
|
53
|
+
| 数据发送 | 建议每200ms 发送200ms 时长的数据包,即1:1实时率,对应大小为6400字节。<br/><ol><li>音频发送速率过快超过1:1实时率或者音频数据包之间发送间隔超过6秒,可能导致引擎出错,后台将返回错误;</li><li>每次发送数据的大小不得小于 200ms时长 的数据包,且不得大于 500ms时长 的数据包;小于 200ms时长 的数据包会被丢弃,大于 500ms时长 的数据包会影响引擎的数据处理;</li><li>若最后一个音频数据包不足 200ms,需要使用空数据进行补齐;</li></ol> |
|
|
54
|
+
*/
|
|
42
55
|
async TongChuanRecognize(
|
|
43
56
|
req: TongChuanRecognizeRequest,
|
|
44
57
|
cb?: (error: string, rep: TongChuanRecognizeResponse) => void
|