tencentcloud-sdk-nodejs-tdmq 4.0.255 → 4.0.260

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.
@@ -773,6 +773,122 @@ export interface CreateRocketMQNamespaceRequest {
773
773
  */
774
774
  Remark?: string;
775
775
  }
776
+ /**
777
+ * 主题实例
778
+ */
779
+ export interface Topic {
780
+ /**
781
+ * 最后一次间隔内发布消息的平均byte大小。
782
+ 注意:此字段可能返回 null,表示取不到有效值。
783
+ */
784
+ AverageMsgSize: string;
785
+ /**
786
+ * 消费者数量。
787
+ 注意:此字段可能返回 null,表示取不到有效值。
788
+ */
789
+ ConsumerCount: string;
790
+ /**
791
+ * 被记录下来的消息总数。
792
+ 注意:此字段可能返回 null,表示取不到有效值。
793
+ */
794
+ LastConfirmedEntry: string;
795
+ /**
796
+ * 最后一个ledger创建的时间。
797
+ 注意:此字段可能返回 null,表示取不到有效值。
798
+ */
799
+ LastLedgerCreatedTimestamp: string;
800
+ /**
801
+ * 本地和复制的发布者每秒发布消息的速率。
802
+ 注意:此字段可能返回 null,表示取不到有效值。
803
+ */
804
+ MsgRateIn: string;
805
+ /**
806
+ * 本地和复制的消费者每秒分发消息的数量之和。
807
+ 注意:此字段可能返回 null,表示取不到有效值。
808
+ */
809
+ MsgRateOut: string;
810
+ /**
811
+ * 本地和复制的发布者每秒发布消息的byte。
812
+ 注意:此字段可能返回 null,表示取不到有效值。
813
+ */
814
+ MsgThroughputIn: string;
815
+ /**
816
+ * 本地和复制的消费者每秒分发消息的byte。
817
+ 注意:此字段可能返回 null,表示取不到有效值。
818
+ */
819
+ MsgThroughputOut: string;
820
+ /**
821
+ * 被记录下来的消息总数。
822
+ 注意:此字段可能返回 null,表示取不到有效值。
823
+ */
824
+ NumberOfEntries: string;
825
+ /**
826
+ * 分区数<=0:topic下无子分区。
827
+ 注意:此字段可能返回 null,表示取不到有效值。
828
+ */
829
+ Partitions: number;
830
+ /**
831
+ * 生产者数量。
832
+ 注意:此字段可能返回 null,表示取不到有效值。
833
+ */
834
+ ProducerCount: string;
835
+ /**
836
+ * 以byte计算的所有消息存储总量。
837
+ 注意:此字段可能返回 null,表示取不到有效值。
838
+ */
839
+ TotalSize: string;
840
+ /**
841
+ * 分区topic里面的子分区。
842
+ 注意:此字段可能返回 null,表示取不到有效值。
843
+ */
844
+ SubTopicSets: Array<PartitionsTopic>;
845
+ /**
846
+ * topic类型描述:
847
+ 0:普通消息;
848
+ 1:全局顺序消息;
849
+ 2:局部顺序消息;
850
+ 3:重试队列;
851
+ 4:死信队列;
852
+ 5:事务消息。
853
+ 注意:此字段可能返回 null,表示取不到有效值。
854
+ */
855
+ TopicType: number;
856
+ /**
857
+ * 环境(命名空间)名称。
858
+ 注意:此字段可能返回 null,表示取不到有效值。
859
+ */
860
+ EnvironmentId: string;
861
+ /**
862
+ * 主题名称。
863
+ 注意:此字段可能返回 null,表示取不到有效值。
864
+ */
865
+ TopicName: string;
866
+ /**
867
+ * 说明,128个字符以内。
868
+ 注意:此字段可能返回 null,表示取不到有效值。
869
+ */
870
+ Remark: string;
871
+ /**
872
+ * 创建时间。
873
+ 注意:此字段可能返回 null,表示取不到有效值。
874
+ */
875
+ CreateTime: string;
876
+ /**
877
+ * 最近修改时间。
878
+ 注意:此字段可能返回 null,表示取不到有效值。
879
+ */
880
+ UpdateTime: string;
881
+ /**
882
+ * 生产者上限。
883
+ 注意:此字段可能返回 null,表示取不到有效值。
884
+ */
885
+ ProducerLimit: string;
886
+ /**
887
+ * 消费者上限。
888
+ 注意:此字段可能返回 null,表示取不到有效值。
889
+ */
890
+ ConsumerLimit: string;
891
+ }
776
892
  /**
777
893
  * DescribeCmqTopicDetail返回参数结构体
778
894
  */
@@ -1068,120 +1184,33 @@ export interface DescribeCmqSubscriptionDetailRequest {
1068
1184
  SubscriptionName?: string;
1069
1185
  }
1070
1186
  /**
1071
- * 主题实例
1187
+ * DescribePublisherSummary返回参数结构体
1072
1188
  */
1073
- export interface Topic {
1074
- /**
1075
- * 最后一次间隔内发布消息的平均byte大小。
1076
- 注意:此字段可能返回 null,表示取不到有效值。
1077
- */
1078
- AverageMsgSize: string;
1079
- /**
1080
- * 消费者数量。
1081
- 注意:此字段可能返回 null,表示取不到有效值。
1082
- */
1083
- ConsumerCount: string;
1084
- /**
1085
- * 被记录下来的消息总数。
1086
- 注意:此字段可能返回 null,表示取不到有效值。
1087
- */
1088
- LastConfirmedEntry: string;
1089
- /**
1090
- * 最后一个ledger创建的时间。
1091
- 注意:此字段可能返回 null,表示取不到有效值。
1092
- */
1093
- LastLedgerCreatedTimestamp: string;
1094
- /**
1095
- * 本地和复制的发布者每秒发布消息的速率。
1096
- 注意:此字段可能返回 null,表示取不到有效值。
1097
- */
1098
- MsgRateIn: string;
1099
- /**
1100
- * 本地和复制的消费者每秒分发消息的数量之和。
1101
- 注意:此字段可能返回 null,表示取不到有效值。
1102
- */
1103
- MsgRateOut: string;
1104
- /**
1105
- * 本地和复制的发布者每秒发布消息的byte。
1106
- 注意:此字段可能返回 null,表示取不到有效值。
1107
- */
1108
- MsgThroughputIn: string;
1109
- /**
1110
- * 本地和复制的消费者每秒分发消息的byte。
1111
- 注意:此字段可能返回 null,表示取不到有效值。
1112
- */
1113
- MsgThroughputOut: string;
1114
- /**
1115
- * 被记录下来的消息总数。
1116
- 注意:此字段可能返回 null,表示取不到有效值。
1117
- */
1118
- NumberOfEntries: string;
1119
- /**
1120
- * 分区数<=0:topic下无子分区。
1121
- 注意:此字段可能返回 null,表示取不到有效值。
1122
- */
1123
- Partitions: number;
1124
- /**
1125
- * 生产者数量。
1126
- 注意:此字段可能返回 null,表示取不到有效值。
1127
- */
1128
- ProducerCount: string;
1129
- /**
1130
- * 以byte计算的所有消息存储总量。
1131
- 注意:此字段可能返回 null,表示取不到有效值。
1132
- */
1133
- TotalSize: string;
1134
- /**
1135
- * 分区topic里面的子分区。
1136
- 注意:此字段可能返回 null,表示取不到有效值。
1137
- */
1138
- SubTopicSets: Array<PartitionsTopic>;
1139
- /**
1140
- * topic类型描述:
1141
- 0:普通消息;
1142
- 1:全局顺序消息;
1143
- 2:局部顺序消息;
1144
- 3:重试队列;
1145
- 4:死信队列;
1146
- 5:事务消息。
1147
- 注意:此字段可能返回 null,表示取不到有效值。
1148
- */
1149
- TopicType: number;
1150
- /**
1151
- * 环境(命名空间)名称。
1152
- 注意:此字段可能返回 null,表示取不到有效值。
1153
- */
1154
- EnvironmentId: string;
1155
- /**
1156
- * 主题名称。
1157
- 注意:此字段可能返回 null,表示取不到有效值。
1158
- */
1159
- TopicName: string;
1189
+ export interface DescribePublisherSummaryResponse {
1160
1190
  /**
1161
- * 说明,128个字符以内。
1191
+ * 生产速率(条/秒)
1162
1192
  注意:此字段可能返回 null,表示取不到有效值。
1163
1193
  */
1164
- Remark: string;
1194
+ MsgRateIn: number;
1165
1195
  /**
1166
- * 创建时间。
1196
+ * 生产速率(字节/秒)
1167
1197
  注意:此字段可能返回 null,表示取不到有效值。
1168
1198
  */
1169
- CreateTime: string;
1199
+ MsgThroughputIn: number;
1170
1200
  /**
1171
- * 最近修改时间。
1201
+ * 生产者数量
1172
1202
  注意:此字段可能返回 null,表示取不到有效值。
1173
1203
  */
1174
- UpdateTime: string;
1204
+ PublisherCount: number;
1175
1205
  /**
1176
- * 生产者上限。
1206
+ * 消息存储大小,以字节为单位
1177
1207
  注意:此字段可能返回 null,表示取不到有效值。
1178
1208
  */
1179
- ProducerLimit: string;
1209
+ StorageSize: number;
1180
1210
  /**
1181
- * 消费者上限。
1182
- 注意:此字段可能返回 null,表示取不到有效值。
1183
- */
1184
- ConsumerLimit: string;
1211
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1212
+ */
1213
+ RequestId?: string;
1185
1214
  }
1186
1215
  /**
1187
1216
  * DescribeAMQPVHosts返回参数结构体
@@ -1498,6 +1527,56 @@ export interface DescribeClustersRequest {
1498
1527
  */
1499
1528
  Filters?: Array<Filter>;
1500
1529
  }
1530
+ /**
1531
+ * 生产者信息
1532
+ */
1533
+ export interface Publisher {
1534
+ /**
1535
+ * 生产者id
1536
+ 注意:此字段可能返回 null,表示取不到有效值。
1537
+ */
1538
+ ProducerId: number;
1539
+ /**
1540
+ * 生产者名称
1541
+ 注意:此字段可能返回 null,表示取不到有效值。
1542
+ */
1543
+ ProducerName: string;
1544
+ /**
1545
+ * 生产者地址
1546
+ 注意:此字段可能返回 null,表示取不到有效值。
1547
+ */
1548
+ Address: string;
1549
+ /**
1550
+ * 客户端版本
1551
+ 注意:此字段可能返回 null,表示取不到有效值。
1552
+ */
1553
+ ClientVersion: string;
1554
+ /**
1555
+ * 消息生产速率(条/秒)
1556
+ 注意:此字段可能返回 null,表示取不到有效值。
1557
+ */
1558
+ MsgRateIn: number;
1559
+ /**
1560
+ * 消息生产吞吐速率(字节/秒)
1561
+ 注意:此字段可能返回 null,表示取不到有效值。
1562
+ */
1563
+ MsgThroughputIn: number;
1564
+ /**
1565
+ * 平均消息大小(字节)
1566
+ 注意:此字段可能返回 null,表示取不到有效值。
1567
+ */
1568
+ AverageMsgSize: number;
1569
+ /**
1570
+ * 连接时间
1571
+ 注意:此字段可能返回 null,表示取不到有效值。
1572
+ */
1573
+ ConnectedSince: string;
1574
+ /**
1575
+ * 生产者连接的主题分区号
1576
+ 注意:此字段可能返回 null,表示取不到有效值。
1577
+ */
1578
+ Partition: number;
1579
+ }
1501
1580
  /**
1502
1581
  * RocketMQ主题信息
1503
1582
  */
@@ -1832,6 +1911,39 @@ export interface PublishCmqMsgResponse {
1832
1911
  */
1833
1912
  RequestId?: string;
1834
1913
  }
1914
+ /**
1915
+ * DescribePublishers请求参数结构体
1916
+ */
1917
+ export interface DescribePublishersRequest {
1918
+ /**
1919
+ * 集群ID
1920
+ */
1921
+ ClusterId: string;
1922
+ /**
1923
+ * 命名空间名称
1924
+ */
1925
+ Namespace: string;
1926
+ /**
1927
+ * 主题名称
1928
+ */
1929
+ Topic: string;
1930
+ /**
1931
+ * 参数过滤器,支持ProducerName,Address字段
1932
+ */
1933
+ Filters?: Array<Filter>;
1934
+ /**
1935
+ * 查询偏移量,默认为0
1936
+ */
1937
+ Offset?: number;
1938
+ /**
1939
+ * 查询条数,默认为20
1940
+ */
1941
+ Limit?: number;
1942
+ /**
1943
+ * 排序器
1944
+ */
1945
+ Sort?: Sort;
1946
+ }
1835
1947
  /**
1836
1948
  * CreateRocketMQCluster请求参数结构体
1837
1949
  */
@@ -2772,6 +2884,10 @@ export interface ModifyRocketMQTopicRequest {
2772
2884
  * 说明信息,最大128个字符
2773
2885
  */
2774
2886
  Remark: string;
2887
+ /**
2888
+ * 分区数,全局类型无效,不可小于当前分区数
2889
+ */
2890
+ PartitionNum?: number;
2775
2891
  }
2776
2892
  /**
2777
2893
  * RocketMQ集群基本信息
@@ -3021,6 +3137,34 @@ export interface DeleteRocketMQNamespaceRequest {
3021
3137
  */
3022
3138
  NamespaceId: string;
3023
3139
  }
3140
+ /**
3141
+ * DescribeRoles请求参数结构体
3142
+ */
3143
+ export interface DescribeRolesRequest {
3144
+ /**
3145
+ * 角色名称,模糊查询
3146
+ */
3147
+ RoleName?: string;
3148
+ /**
3149
+ * 起始下标,不填默认为0。
3150
+ */
3151
+ Offset?: number;
3152
+ /**
3153
+ * 返回数量,不填则默认为10,最大值为20。
3154
+ */
3155
+ Limit?: number;
3156
+ /**
3157
+ * 必填字段,集群Id
3158
+ */
3159
+ ClusterId?: string;
3160
+ /**
3161
+ * * RoleName
3162
+ 按照角色名进行过滤,精确查询。
3163
+ 类型:String
3164
+ 必选:否
3165
+ */
3166
+ Filters?: Array<Filter>;
3167
+ }
3024
3168
  /**
3025
3169
  * CreateAMQPQueue返回参数结构体
3026
3170
  */
@@ -3885,6 +4029,23 @@ export interface Cluster {
3885
4029
  */
3886
4030
  Tags: Array<Tag>;
3887
4031
  }
4032
+ /**
4033
+ * 订阅关系
4034
+ */
4035
+ export interface SubscriptionTopic {
4036
+ /**
4037
+ * 环境(命名空间)名称。
4038
+ */
4039
+ EnvironmentId: string;
4040
+ /**
4041
+ * 主题名称。
4042
+ */
4043
+ TopicName: string;
4044
+ /**
4045
+ * 订阅名称。
4046
+ */
4047
+ SubscriptionName: string;
4048
+ }
3888
4049
  /**
3889
4050
  * 消息保留策略
3890
4051
  */
@@ -3974,6 +4135,24 @@ export interface AMQPQueueDetail {
3974
4135
  */
3975
4136
  DeadLetterRoutingKey: string;
3976
4137
  }
4138
+ /**
4139
+ * DescribePublishers返回参数结构体
4140
+ */
4141
+ export interface DescribePublishersResponse {
4142
+ /**
4143
+ * 总条数
4144
+ */
4145
+ TotalCount: number;
4146
+ /**
4147
+ * 生产者信息列表
4148
+ 注意:此字段可能返回 null,表示取不到有效值。
4149
+ */
4150
+ Publishers: Array<Publisher>;
4151
+ /**
4152
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4153
+ */
4154
+ RequestId?: string;
4155
+ }
3977
4156
  /**
3978
4157
  * DeleteAMQPRouteRelation返回参数结构体
3979
4158
  */
@@ -4043,7 +4222,7 @@ export interface CreateRocketMQTopicRequest {
4043
4222
  */
4044
4223
  Namespaces: Array<string>;
4045
4224
  /**
4046
- * 主题类型,可选值为Normal, GlobalOrder, PartitionedOrder, Transaction
4225
+ * 主题类型,可选值为Normal, GlobalOrder, PartitionedOrder
4047
4226
  */
4048
4227
  Type: string;
4049
4228
  /**
@@ -4054,6 +4233,10 @@ export interface CreateRocketMQTopicRequest {
4054
4233
  * 主题说明,最大128个字符
4055
4234
  */
4056
4235
  Remark?: string;
4236
+ /**
4237
+ * 分区数,全局顺序无效
4238
+ */
4239
+ PartitionNum?: number;
4057
4240
  }
4058
4241
  /**
4059
4242
  * CreateRole返回参数结构体
@@ -4598,21 +4781,17 @@ export interface ModifyAMQPClusterResponse {
4598
4781
  RequestId?: string;
4599
4782
  }
4600
4783
  /**
4601
- * 订阅关系
4784
+ * 排序器
4602
4785
  */
4603
- export interface SubscriptionTopic {
4604
- /**
4605
- * 环境(命名空间)名称。
4606
- */
4607
- EnvironmentId: string;
4786
+ export interface Sort {
4608
4787
  /**
4609
- * 主题名称。
4788
+ * 排序字段
4610
4789
  */
4611
- TopicName: string;
4790
+ Name: string;
4612
4791
  /**
4613
- * 订阅名称。
4792
+ * 升序ASC,降序DESC
4614
4793
  */
4615
- SubscriptionName: string;
4794
+ Order: string;
4616
4795
  }
4617
4796
  /**
4618
4797
  * AMQP集群配置
@@ -4905,32 +5084,21 @@ export interface DeleteCmqSubscribeResponse {
4905
5084
  RequestId?: string;
4906
5085
  }
4907
5086
  /**
4908
- * DescribeRoles请求参数结构体
5087
+ * DescribePublisherSummary请求参数结构体
4909
5088
  */
4910
- export interface DescribeRolesRequest {
4911
- /**
4912
- * 角色名称,模糊查询
4913
- */
4914
- RoleName?: string;
5089
+ export interface DescribePublisherSummaryRequest {
4915
5090
  /**
4916
- * 起始下标,不填默认为0。
5091
+ * 集群ID
4917
5092
  */
4918
- Offset?: number;
5093
+ ClusterId: string;
4919
5094
  /**
4920
- * 返回数量,不填则默认为10,最大值为20。
5095
+ * 命名空间名称
4921
5096
  */
4922
- Limit?: number;
5097
+ Namespace: string;
4923
5098
  /**
4924
- * 必填字段,集群Id
5099
+ * 主题名称
4925
5100
  */
4926
- ClusterId?: string;
4927
- /**
4928
- * * RoleName
4929
- 按照角色名进行过滤,精确查询。
4930
- 类型:String
4931
- 必选:否
4932
- */
4933
- Filters?: Array<Filter>;
5101
+ Topic: string;
4934
5102
  }
4935
5103
  /**
4936
5104
  * DeleteSubscriptions请求参数结构体