tencentcloud-sdk-nodejs-cls 4.1.126 → 4.1.130
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/package.json
CHANGED
|
@@ -68,7 +68,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
68
68
|
*/
|
|
69
69
|
CreateLogset(req: CreateLogsetRequest, cb?: (error: string, rep: CreateLogsetResponse) => void): Promise<CreateLogsetResponse>;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* 本接口用于创建日志或指标主题。
|
|
72
72
|
*/
|
|
73
73
|
CreateTopic(req: CreateTopicRequest, cb?: (error: string, rep: CreateTopicResponse) => void): Promise<CreateTopicResponse>;
|
|
74
74
|
/**
|
|
@@ -96,7 +96,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
96
96
|
*/
|
|
97
97
|
DescribeMachineGroupConfigs(req: DescribeMachineGroupConfigsRequest, cb?: (error: string, rep: DescribeMachineGroupConfigsResponse) => void): Promise<DescribeMachineGroupConfigsResponse>;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* 本接口用于获取日志或指标主题列表,支持分页
|
|
100
100
|
*/
|
|
101
101
|
DescribeTopics(req: DescribeTopicsRequest, cb?: (error: string, rep: DescribeTopicsResponse) => void): Promise<DescribeTopicsResponse>;
|
|
102
102
|
/**
|
|
@@ -370,7 +370,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
370
370
|
*/
|
|
371
371
|
CreateConsumer(req: CreateConsumerRequest, cb?: (error: string, rep: CreateConsumerResponse) => void): Promise<CreateConsumerResponse>;
|
|
372
372
|
/**
|
|
373
|
-
*
|
|
373
|
+
* 本接口用于修改日志或指标主题。
|
|
374
374
|
*/
|
|
375
375
|
ModifyTopic(req: ModifyTopicRequest, cb?: (error: string, rep: ModifyTopicResponse) => void): Promise<ModifyTopicResponse>;
|
|
376
376
|
/**
|
|
@@ -581,7 +581,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
581
581
|
*/
|
|
582
582
|
UploadLog(req: UploadLogRequest, cb?: (error: string, rep: UploadLogResponse) => void): Promise<UploadLogResponse>;
|
|
583
583
|
/**
|
|
584
|
-
*
|
|
584
|
+
* 本接口用于删除日志或指标主题。
|
|
585
585
|
*/
|
|
586
586
|
DeleteTopic(req: DeleteTopicRequest, cb?: (error: string, rep: DeleteTopicResponse) => void): Promise<DeleteTopicResponse>;
|
|
587
587
|
/**
|
|
@@ -120,7 +120,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
120
120
|
return this.request("CreateLogset", req, cb);
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* 本接口用于创建日志或指标主题。
|
|
124
124
|
*/
|
|
125
125
|
async CreateTopic(req, cb) {
|
|
126
126
|
return this.request("CreateTopic", req, cb);
|
|
@@ -162,7 +162,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
162
162
|
return this.request("DescribeMachineGroupConfigs", req, cb);
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
165
|
+
* 本接口用于获取日志或指标主题列表,支持分页
|
|
166
166
|
*/
|
|
167
167
|
async DescribeTopics(req, cb) {
|
|
168
168
|
return this.request("DescribeTopics", req, cb);
|
|
@@ -568,7 +568,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
568
568
|
return this.request("CreateConsumer", req, cb);
|
|
569
569
|
}
|
|
570
570
|
/**
|
|
571
|
-
*
|
|
571
|
+
* 本接口用于修改日志或指标主题。
|
|
572
572
|
*/
|
|
573
573
|
async ModifyTopic(req, cb) {
|
|
574
574
|
return this.request("ModifyTopic", req, cb);
|
|
@@ -813,7 +813,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
813
813
|
return this.request("UploadLog", req, cb);
|
|
814
814
|
}
|
|
815
815
|
/**
|
|
816
|
-
*
|
|
816
|
+
* 本接口用于删除日志或指标主题。
|
|
817
817
|
*/
|
|
818
818
|
async DeleteTopic(req, cb) {
|
|
819
819
|
return this.request("DeleteTopic", req, cb);
|
|
@@ -880,8 +880,7 @@ export interface DeleteNoticeContentResponse {
|
|
|
880
880
|
*/
|
|
881
881
|
export interface DeleteTopicRequest {
|
|
882
882
|
/**
|
|
883
|
-
*
|
|
884
|
-
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
883
|
+
* 主题ID- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
885
884
|
*/
|
|
886
885
|
TopicId: string;
|
|
887
886
|
}
|
|
@@ -2075,12 +2074,12 @@ export interface MetaTagInfo {
|
|
|
2075
2074
|
*/
|
|
2076
2075
|
export interface ModifyTopicRequest {
|
|
2077
2076
|
/**
|
|
2078
|
-
*
|
|
2079
|
-
- 通过[
|
|
2077
|
+
* 主题ID
|
|
2078
|
+
- 通过[获取主题列表](https://cloud.tencent.com/document/product/614/56454)获取主题Id。
|
|
2080
2079
|
*/
|
|
2081
2080
|
TopicId: string;
|
|
2082
2081
|
/**
|
|
2083
|
-
*
|
|
2082
|
+
* 主题名称
|
|
2084
2083
|
输入限制:
|
|
2085
2084
|
- 不能为空字符串
|
|
2086
2085
|
- 不能包含字符'|'
|
|
@@ -2088,7 +2087,7 @@ export interface ModifyTopicRequest {
|
|
|
2088
2087
|
*/
|
|
2089
2088
|
TopicName?: string;
|
|
2090
2089
|
/**
|
|
2091
|
-
*
|
|
2090
|
+
* 标签描述列表,通过指定该参数可以同时绑定标签到相应的主题。最大支持10个标签键值对,并且不能有重复的键值对。
|
|
2092
2091
|
*/
|
|
2093
2092
|
Tags?: Array<Tag>;
|
|
2094
2093
|
/**
|
|
@@ -2101,7 +2100,7 @@ export interface ModifyTopicRequest {
|
|
|
2101
2100
|
*/
|
|
2102
2101
|
AutoSplit?: boolean;
|
|
2103
2102
|
/**
|
|
2104
|
-
*
|
|
2103
|
+
* 若开启最大分裂,该主题能够允许的最大分区数;
|
|
2105
2104
|
默认为50;必须为正数
|
|
2106
2105
|
*/
|
|
2107
2106
|
MaxSplitPartitions?: number;
|
|
@@ -2110,12 +2109,13 @@ export interface ModifyTopicRequest {
|
|
|
2110
2109
|
*/
|
|
2111
2110
|
Period?: number;
|
|
2112
2111
|
/**
|
|
2113
|
-
*
|
|
2112
|
+
* 主题描述
|
|
2114
2113
|
*/
|
|
2115
2114
|
Describes?: string;
|
|
2116
2115
|
/**
|
|
2117
|
-
* 0
|
|
2118
|
-
非0
|
|
2116
|
+
* 0:日志主题关闭日志沉降。
|
|
2117
|
+
非0:日志主题开启日志沉降后标准存储的天数。HotPeriod需要大于等于7,且小于Period。
|
|
2118
|
+
仅在StorageType为 hot 时生效,指标主题不支持该配置。
|
|
2119
2119
|
*/
|
|
2120
2120
|
HotPeriod?: number;
|
|
2121
2121
|
/**
|
|
@@ -2124,11 +2124,11 @@ export interface ModifyTopicRequest {
|
|
|
2124
2124
|
*/
|
|
2125
2125
|
IsWebTracking?: boolean;
|
|
2126
2126
|
/**
|
|
2127
|
-
*
|
|
2127
|
+
* 主题扩展信息
|
|
2128
2128
|
*/
|
|
2129
2129
|
Extends?: TopicExtendInfo;
|
|
2130
2130
|
/**
|
|
2131
|
-
*
|
|
2131
|
+
* 主题分区数量。
|
|
2132
2132
|
默认为1;
|
|
2133
2133
|
取值范围及约束:
|
|
2134
2134
|
- 当输入值<=0,系统自动调整为1。
|
|
@@ -2776,7 +2776,7 @@ export interface ModifyAlarmRequest {
|
|
|
2776
2776
|
*/
|
|
2777
2777
|
export interface DescribeTopicsResponse {
|
|
2778
2778
|
/**
|
|
2779
|
-
*
|
|
2779
|
+
* 主题列表
|
|
2780
2780
|
*/
|
|
2781
2781
|
Topics?: Array<TopicInfo>;
|
|
2782
2782
|
/**
|
|
@@ -3674,7 +3674,7 @@ export interface CreateTopicRequest {
|
|
|
3674
3674
|
*/
|
|
3675
3675
|
LogsetId: string;
|
|
3676
3676
|
/**
|
|
3677
|
-
*
|
|
3677
|
+
* 主题名称
|
|
3678
3678
|
名称限制
|
|
3679
3679
|
- 不能为空字符串
|
|
3680
3680
|
- 不能包含字符'|'
|
|
@@ -3683,11 +3683,11 @@ export interface CreateTopicRequest {
|
|
|
3683
3683
|
*/
|
|
3684
3684
|
TopicName: string;
|
|
3685
3685
|
/**
|
|
3686
|
-
*
|
|
3686
|
+
* 主题分区个数。默认创建1个,最大支持创建10个分区。
|
|
3687
3687
|
*/
|
|
3688
3688
|
PartitionCount?: number;
|
|
3689
3689
|
/**
|
|
3690
|
-
*
|
|
3690
|
+
* 标签描述列表,通过指定该参数可以同时绑定标签到相应的主题。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。
|
|
3691
3691
|
*/
|
|
3692
3692
|
Tags?: Array<Tag>;
|
|
3693
3693
|
/**
|
|
@@ -3699,25 +3699,32 @@ export interface CreateTopicRequest {
|
|
|
3699
3699
|
*/
|
|
3700
3700
|
MaxSplitPartitions?: number;
|
|
3701
3701
|
/**
|
|
3702
|
-
* 日志主题的存储类型,可选值 hot(标准存储),cold(低频存储);默认为hot
|
|
3702
|
+
* 日志主题的存储类型,可选值 hot(标准存储),cold(低频存储);默认为hot。指标主题不支持该配置。
|
|
3703
3703
|
*/
|
|
3704
3704
|
StorageType?: string;
|
|
3705
3705
|
/**
|
|
3706
3706
|
* 存储时间,单位天。
|
|
3707
|
-
-
|
|
3708
|
-
-
|
|
3707
|
+
- 日志主题:日志接入标准存储时,支持1至3600天,值为3640时代表永久保存。
|
|
3708
|
+
- 日志主题:日志接入低频存储时,支持7至3600天,值为3640时代表永久保存。
|
|
3709
|
+
- 指标主题:支持1至3600天,值为3640时代表永久保存。
|
|
3709
3710
|
*/
|
|
3710
3711
|
Period?: number;
|
|
3711
3712
|
/**
|
|
3712
|
-
*
|
|
3713
|
+
* 主题描述
|
|
3713
3714
|
*/
|
|
3714
3715
|
Describes?: string;
|
|
3715
3716
|
/**
|
|
3716
|
-
* 0
|
|
3717
|
-
非0
|
|
3718
|
-
仅在StorageType为 hot
|
|
3717
|
+
* 0:日志主题关闭日志沉降。
|
|
3718
|
+
非0:日志主题开启日志沉降后标准存储的天数,HotPeriod需要大于等于7,且小于Period。
|
|
3719
|
+
仅在StorageType为 hot 时生效,指标主题不支持该配置。
|
|
3719
3720
|
*/
|
|
3720
3721
|
HotPeriod?: number;
|
|
3722
|
+
/**
|
|
3723
|
+
* 主题类型
|
|
3724
|
+
- 0:日志主题,默认值
|
|
3725
|
+
- 1:指标主题
|
|
3726
|
+
*/
|
|
3727
|
+
BizType?: number;
|
|
3721
3728
|
/**
|
|
3722
3729
|
* 主题自定义ID,格式为:用户自定义部分-用户APPID。未填写该参数时将自动生成ID。
|
|
3723
3730
|
- 用户自定义部分仅支持小写字母、数字和-,且不能以-开头和结尾,长度为3至40字符
|
|
@@ -3727,11 +3734,11 @@ export interface CreateTopicRequest {
|
|
|
3727
3734
|
TopicId?: string;
|
|
3728
3735
|
/**
|
|
3729
3736
|
* 免鉴权开关。 false:关闭; true:开启。默认为false。
|
|
3730
|
-
开启后将支持指定操作匿名访问该日志主题。详情请参见[日志主题](https://cloud.tencent.com/document/product/614/41035)
|
|
3737
|
+
开启后将支持指定操作匿名访问该日志主题。详情请参见[日志主题](https://cloud.tencent.com/document/product/614/41035)。指标主题不支持该配置。
|
|
3731
3738
|
*/
|
|
3732
3739
|
IsWebTracking?: boolean;
|
|
3733
3740
|
/**
|
|
3734
|
-
*
|
|
3741
|
+
* 主题扩展信息
|
|
3735
3742
|
*/
|
|
3736
3743
|
Extends?: TopicExtendInfo;
|
|
3737
3744
|
}
|
|
@@ -3740,13 +3747,13 @@ export interface CreateTopicRequest {
|
|
|
3740
3747
|
*/
|
|
3741
3748
|
export interface DescribeTopicsRequest {
|
|
3742
3749
|
/**
|
|
3743
|
-
* <ul><li>topicName
|
|
3750
|
+
* <ul><li>topicName 按照【主题名称】进行过滤,默认为模糊匹配,可使用 PreciseSearch 参数设置为精确匹配。类型:String。必选:否</li>
|
|
3744
3751
|
<li>logsetName 按照【日志集名称】进行过滤,默认为模糊匹配,可使用 PreciseSearch 参数设置为精确匹配。类型:String。必选:否</li>
|
|
3745
|
-
<li>topicId
|
|
3752
|
+
<li>topicId 按照【主题ID】进行过滤。类型:String。必选:否</li>
|
|
3746
3753
|
<li>logsetId 按照【日志集ID】进行过滤,可通过调用 <a href="https://cloud.tencent.com/document/product/614/58624">DescribeLogsets</a> 查询已创建的日志集列表或登录控制台进行查看;也可以调用<a href="https://cloud.tencent.com/document/product/614/58626">CreateLogset</a> 创建新的日志集。类型:String。必选:否</li>
|
|
3747
3754
|
<li>tagKey 按照【标签键】进行过滤。类型:String。必选:否</li>
|
|
3748
3755
|
<li>tag:tagKey 按照【标签键值对】进行过滤。tagKey 使用具体的标签键进行替换,例如 tag:exampleKey。类型:String。必选:否</li>
|
|
3749
|
-
<li>storageType
|
|
3756
|
+
<li>storageType 按照【主题的存储类型】进行过滤。可选值 hot(标准存储),cold(低频存储)类型:String。必选:否</li></ul>
|
|
3750
3757
|
注意:每次请求的 Filters 的上限为10,Filter.Values 的上限为100。
|
|
3751
3758
|
*/
|
|
3752
3759
|
Filters?: Array<Filter>;
|
|
@@ -5384,7 +5391,7 @@ export interface CreateShipperRequest {
|
|
|
5384
5391
|
*/
|
|
5385
5392
|
export interface CreateTopicResponse {
|
|
5386
5393
|
/**
|
|
5387
|
-
*
|
|
5394
|
+
* 主题ID
|
|
5388
5395
|
*/
|
|
5389
5396
|
TopicId?: string;
|
|
5390
5397
|
/**
|