tencentcloud-sdk-nodejs 4.0.318 → 4.0.319
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 +143 -0
- package/SERVICE_CHANGELOG.md +197 -101
- package/package.json +1 -1
- package/products.md +12 -11
- package/src/common/sdk_version.ts +1 -1
- package/src/services/batch/v20170312/batch_models.ts +27 -2
- package/src/services/cat/v20180409/cat_client.ts +12 -0
- package/src/services/cat/v20180409/cat_models.ts +50 -0
- package/src/services/cfg/index.ts +5 -0
- package/src/services/cfg/v20210820/cfg_client.ts +169 -0
- package/src/services/cfg/v20210820/cfg_models.ts +1227 -0
- package/src/services/cfg/v20210820/index.ts +6 -0
- package/src/services/cvm/v20170312/cvm_models.ts +3 -2
- package/src/services/index.ts +1 -0
- package/src/services/live/v20180801/live_client.ts +1 -1
- package/src/services/nlp/v20190408/nlp_client.ts +6 -46
- package/src/services/nlp/v20190408/nlp_models.ts +37 -212
- package/src/services/partners/v20180321/partners_client.ts +4 -5
- package/src/services/partners/v20180321/partners_models.ts +18 -3
- package/src/services/redis/v20180412/redis_models.ts +1 -1
- package/src/services/ses/v20201002/ses_client.ts +3 -2
- package/src/services/tke/v20180525/tke_models.ts +1 -1
- package/src/services/trtc/v20190722/trtc_models.ts +1 -1
- package/src/services/vpc/v20170312/vpc_models.ts +6 -6
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/batch/v20170312/batch_models.d.ts +22 -0
- package/tencentcloud/services/cat/v20180409/cat_client.d.ts +5 -1
- package/tencentcloud/services/cat/v20180409/cat_client.js +6 -0
- package/tencentcloud/services/cat/v20180409/cat_models.d.ts +42 -0
- package/tencentcloud/services/cfg/index.d.ts +6 -0
- package/tencentcloud/services/cfg/index.js +7 -0
- package/tencentcloud/services/cfg/v20210820/cfg_client.d.ts +50 -0
- package/tencentcloud/services/cfg/v20210820/cfg_client.js +91 -0
- package/tencentcloud/services/cfg/v20210820/cfg_models.d.ts +1015 -0
- package/tencentcloud/services/cfg/v20210820/cfg_models.js +18 -0
- package/tencentcloud/services/cfg/v20210820/index.d.ts +6 -0
- package/tencentcloud/services/cfg/v20210820/index.js +9 -0
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +1 -0
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/live/v20180801/live_client.d.ts +1 -1
- package/tencentcloud/services/live/v20180801/live_client.js +1 -1
- package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +1 -13
- package/tencentcloud/services/nlp/v20190408/nlp_client.js +0 -18
- package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +35 -187
- package/tencentcloud/services/partners/v20180321/partners_client.d.ts +3 -4
- package/tencentcloud/services/partners/v20180321/partners_client.js +3 -4
- package/tencentcloud/services/partners/v20180321/partners_models.d.ts +15 -3
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +1 -1
- package/tencentcloud/services/ses/v20201002/ses_client.d.ts +1 -0
- package/tencentcloud/services/ses/v20201002/ses_client.js +1 -0
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +1 -1
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +6 -6
- package/test/cat.v20180409.test.js +10 -0
- package/test/cfg.v20210820.test.js +121 -0
- package/test/nlp.v20190408.test.js +0 -30
package/products.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2022-03-24 17:32:45 |
|
|
18
18
|
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2022-02-21 08:01:30 |
|
|
19
19
|
| ba | [网站备案](https://cloud.tencent.com/document/product/243) | 2022-02-21 08:01:32 |
|
|
20
|
-
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-03-
|
|
20
|
+
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-03-31 06:03:07 |
|
|
21
21
|
| bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2022-02-21 08:01:38 |
|
|
22
22
|
| billing | [计费相关](https://cloud.tencent.com/document/product/555) | 2022-03-30 06:01:46 |
|
|
23
23
|
| bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 |
|
|
@@ -30,12 +30,13 @@
|
|
|
30
30
|
| cam | [访问管理](https://cloud.tencent.com/document/product/598) | 2022-03-28 08:03:45 |
|
|
31
31
|
| captcha | [验证码](https://cloud.tencent.com/document/product/1110) | 2022-03-16 08:04:45 |
|
|
32
32
|
| casb | [云数据加密代理网关](https://cloud.tencent.com/document/product/1303) | 2022-03-04 10:56:53 |
|
|
33
|
-
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2022-
|
|
33
|
+
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2022-03-31 06:03:51 |
|
|
34
34
|
| cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2022-03-14 08:06:27 |
|
|
35
35
|
| ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-03-04 08:05:02 |
|
|
36
36
|
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-03-30 06:02:35 |
|
|
37
37
|
| cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-03-30 06:02:55 |
|
|
38
38
|
| cds | [数据安全审计](https://cloud.tencent.com/document/product/856) | 2022-02-21 08:02:59 |
|
|
39
|
+
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2022-03-30 12:59:20 |
|
|
39
40
|
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2022-02-21 08:03:00 |
|
|
40
41
|
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2022-03-16 08:05:40 |
|
|
41
42
|
| chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2022-02-21 08:03:12 |
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
| cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 |
|
|
53
54
|
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-03-29 08:07:17 |
|
|
54
55
|
| cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
|
|
55
|
-
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-03-
|
|
56
|
+
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-03-31 06:06:01 |
|
|
56
57
|
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2022-03-24 20:38:18 |
|
|
57
58
|
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
|
58
59
|
| cynosdb | [云原生数据库 TDSQL-C](https://cloud.tencent.com/document/product/1003) | 2022-03-29 08:08:26 |
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
| ivld | [视频智能标签](https://cloud.tencent.com/document/product/1509) | 2022-03-07 10:30:32 |
|
|
104
105
|
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2022-03-10 08:11:43 |
|
|
105
106
|
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2022-03-03 08:08:18 |
|
|
106
|
-
| live | [云直播](https://cloud.tencent.com/document/product/267) | 2022-03-
|
|
107
|
+
| live | [云直播](https://cloud.tencent.com/document/product/267) | 2022-03-31 06:10:23 |
|
|
107
108
|
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-02-21 08:09:21 |
|
|
108
109
|
| lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-02-21 08:09:21 |
|
|
109
110
|
| mariadb | [云数据库 MariaDB](https://cloud.tencent.com/document/product/237) | 2022-03-30 06:09:11 |
|
|
@@ -118,22 +119,22 @@
|
|
|
118
119
|
| ms | [移动应用安全](https://cloud.tencent.com/document/product) | 2020-06-05 08:13:52 |
|
|
119
120
|
| msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2022-02-21 08:10:10 |
|
|
120
121
|
| mvj | [营销价值判断](https://cloud.tencent.com/document/product) | 2020-03-19 08:11:44 |
|
|
121
|
-
| nlp | [自然语言处理](https://cloud.tencent.com/document/product/271) | 2022-03-
|
|
122
|
+
| nlp | [自然语言处理](https://cloud.tencent.com/document/product/271) | 2022-03-31 06:11:26 |
|
|
122
123
|
| npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
|
|
123
124
|
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2022-03-03 08:09:36 |
|
|
124
125
|
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2022-03-24 17:13:23 |
|
|
125
126
|
| organization | [企业组织](https://cloud.tencent.com/document/product/850) | 2022-03-08 08:16:27 |
|
|
126
|
-
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2022-03-
|
|
127
|
+
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2022-03-31 06:11:44 |
|
|
127
128
|
| pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2022-02-21 08:10:32 |
|
|
128
129
|
| postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2022-03-03 08:10:01 |
|
|
129
130
|
| privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2022-03-30 06:10:30 |
|
|
130
131
|
| rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2022-02-21 08:10:44 |
|
|
131
|
-
| redis | [云数据库 Redis](https://cloud.tencent.com/document/product/239) | 2022-03-
|
|
132
|
+
| redis | [云数据库 Redis](https://cloud.tencent.com/document/product/239) | 2022-03-31 06:12:04 |
|
|
132
133
|
| rkp | [风险探针](https://cloud.tencent.com/document/product/1169) | 2022-02-21 08:10:55 |
|
|
133
134
|
| rp | [注册保护](https://cloud.tencent.com/document/product/1191) | 2022-02-21 08:10:56 |
|
|
134
135
|
| rum | [前端性能监控](https://cloud.tencent.com/document/product/1464) | 2022-03-24 20:44:23 |
|
|
135
136
|
| scf | [云函数](https://cloud.tencent.com/document/product/583) | 2022-03-24 17:41:54 |
|
|
136
|
-
| ses | [邮件推送](https://cloud.tencent.com/document/product/1288) | 2022-03-
|
|
137
|
+
| ses | [邮件推送](https://cloud.tencent.com/document/product/1288) | 2022-03-31 06:12:30 |
|
|
137
138
|
| smh | [智能媒资托管](https://cloud.tencent.com/document/product/1339) | 2022-03-17 08:11:49 |
|
|
138
139
|
| smpn | [营销号码安全](https://cloud.tencent.com/document/product/1127) | 2022-02-21 08:11:16 |
|
|
139
140
|
| sms | [短信](https://cloud.tencent.com/document/product/382) | 2022-02-23 08:11:58 |
|
|
@@ -172,11 +173,11 @@
|
|
|
172
173
|
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2022-03-16 08:15:31 |
|
|
173
174
|
| tione | [腾讯云 TI 平台 TI-ONE](https://cloud.tencent.com/document/product/851) | 2022-02-21 08:13:19 |
|
|
174
175
|
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2022-02-21 08:13:23 |
|
|
175
|
-
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-03-
|
|
176
|
+
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-03-31 06:14:50 |
|
|
176
177
|
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
|
177
178
|
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2022-02-21 08:13:40 |
|
|
178
179
|
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2022-02-21 08:13:41 |
|
|
179
|
-
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-03-
|
|
180
|
+
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-03-31 06:15:07 |
|
|
180
181
|
| tse | [腾讯云微服务引擎](https://cloud.tencent.com/document/product/1364) | 2022-03-29 08:17:32 |
|
|
181
182
|
| tsf | [腾讯微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2022-03-23 08:13:50 |
|
|
182
183
|
| tsw | [腾讯微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2022-02-21 08:14:10 |
|
|
@@ -185,7 +186,7 @@
|
|
|
185
186
|
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2022-02-21 08:14:15 |
|
|
186
187
|
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2022-02-21 08:14:16 |
|
|
187
188
|
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-03-28 08:15:45 |
|
|
188
|
-
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-03-
|
|
189
|
+
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-03-31 06:16:03 |
|
|
189
190
|
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-02-21 08:15:09 |
|
|
190
191
|
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2022-02-21 08:15:12 |
|
|
191
192
|
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const sdkVersion = "4.0.
|
|
1
|
+
export const sdkVersion = "4.0.319"
|
|
@@ -1232,6 +1232,14 @@ export interface Job {
|
|
|
1232
1232
|
* 标签列表。通过指定该参数可以支持绑定标签到作业。每个作业最多绑定10个标签。
|
|
1233
1233
|
*/
|
|
1234
1234
|
Tags?: Array<Tag>
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* 表示通知信息的通知目标类型。
|
|
1238
|
+
取值范围:CMQ,TDMQ_CMQ。
|
|
1239
|
+
CMQ:表示向腾讯云CMQ发送消息。
|
|
1240
|
+
TDMQ_CMQ:表示向腾讯云TDMQ_CMQ发送消息。<br/>默认值为CMQ。<br/>注:腾讯云计划于2022年6月前正式下线消息队列 CMQ,建议使用TDMQ_CMQ。参考文档:[CMQ迁移到TDMQ_CMQ](https://cloud.tencent.com/document/product/406/60860)
|
|
1241
|
+
*/
|
|
1242
|
+
NotificationTarget?: string
|
|
1235
1243
|
}
|
|
1236
1244
|
|
|
1237
1245
|
/**
|
|
@@ -1605,6 +1613,14 @@ export interface NamedCpmComputeEnv {
|
|
|
1605
1613
|
* 标签列表。通过指定该参数可以支持绑定标签到黑石计算环境。每个黑石计算环境最多绑定10个标签。
|
|
1606
1614
|
*/
|
|
1607
1615
|
Tags?: Array<Tag>
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* 表示通知信息的通知目标类型。
|
|
1619
|
+
取值范围:CMQ,TDMQ_CMQ。
|
|
1620
|
+
CMQ:表示向腾讯云CMQ发送消息。
|
|
1621
|
+
TDMQ_CMQ:表示向腾讯云TDMQ_CMQ发送消息。<br/>默认值为CMQ。<br/>注:腾讯云计划于2022年6月前正式下线消息队列 CMQ,建议使用TDMQ_CMQ。参考文档:[CMQ迁移到TDMQ_CMQ](https://cloud.tencent.com/document/product/406/60860)
|
|
1622
|
+
*/
|
|
1623
|
+
NotificationTarget?: string
|
|
1608
1624
|
}
|
|
1609
1625
|
|
|
1610
1626
|
/**
|
|
@@ -1759,8 +1775,9 @@ export interface DataDisk {
|
|
|
1759
1775
|
DiskType?: string
|
|
1760
1776
|
|
|
1761
1777
|
/**
|
|
1762
|
-
|
|
1763
|
-
|
|
1778
|
+
* 数据盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID,暂时不支持该参数。
|
|
1779
|
+
该参数目前仅用于`DescribeInstances`接口。
|
|
1780
|
+
*/
|
|
1764
1781
|
DiskId?: string
|
|
1765
1782
|
|
|
1766
1783
|
/**
|
|
@@ -1878,6 +1895,14 @@ export interface NamedComputeEnv {
|
|
|
1878
1895
|
* 标签列表。通过指定该参数可以支持绑定标签到计算环境。每个计算环境最多绑定10个标签。
|
|
1879
1896
|
*/
|
|
1880
1897
|
Tags?: Array<Tag>
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* 表示通知信息的通知目标类型。
|
|
1901
|
+
取值范围:CMQ,TDMQ_CMQ。
|
|
1902
|
+
CMQ:表示向腾讯云CMQ发送消息。
|
|
1903
|
+
TDMQ_CMQ:表示向腾讯云TDMQ_CMQ发送消息。<br/>默认值为CMQ。<br/>注:腾讯云计划于2022年6月前正式下线消息队列 CMQ,建议使用TDMQ_CMQ。参考文档:[CMQ迁移到TDMQ_CMQ](https://cloud.tencent.com/document/product/406/60860)
|
|
1904
|
+
*/
|
|
1905
|
+
NotificationTarget?: string
|
|
1881
1906
|
}
|
|
1882
1907
|
|
|
1883
1908
|
/**
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
DescribeProbeNodesResponse,
|
|
25
25
|
RunTaskRequest,
|
|
26
26
|
DescribeTaskDetailResponse,
|
|
27
|
+
DescribeProbeMetricDataResponse,
|
|
27
28
|
DeleteTasksResponse,
|
|
28
29
|
CatTaskDetail,
|
|
29
30
|
BindAlarmPolicyRequest,
|
|
@@ -82,6 +83,7 @@ import {
|
|
|
82
83
|
DescribeAlarmTopicRequest,
|
|
83
84
|
DescribeAgentGroupsResponse,
|
|
84
85
|
SuspendProbeTaskRequest,
|
|
86
|
+
DescribeProbeMetricDataRequest,
|
|
85
87
|
GetRespTimeTrendExRequest,
|
|
86
88
|
UpdateProbeTaskConfigurationListRequest,
|
|
87
89
|
CreateProbeTasksRequest,
|
|
@@ -293,6 +295,16 @@ export class Client extends AbstractClient {
|
|
|
293
295
|
return this.request("GetDailyAvailRatio", req, cb)
|
|
294
296
|
}
|
|
295
297
|
|
|
298
|
+
/**
|
|
299
|
+
* 列出云拨测指标详细数据
|
|
300
|
+
*/
|
|
301
|
+
async DescribeProbeMetricData(
|
|
302
|
+
req: DescribeProbeMetricDataRequest,
|
|
303
|
+
cb?: (error: string, rep: DescribeProbeMetricDataResponse) => void
|
|
304
|
+
): Promise<DescribeProbeMetricDataResponse> {
|
|
305
|
+
return this.request("DescribeProbeMetricData", req, cb)
|
|
306
|
+
}
|
|
307
|
+
|
|
296
308
|
/**
|
|
297
309
|
* 恢复拨测任务
|
|
298
310
|
*/
|
|
@@ -151,6 +151,21 @@ export interface DescribeTaskDetailResponse {
|
|
|
151
151
|
RequestId?: string
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
/**
|
|
155
|
+
* DescribeProbeMetricData返回参数结构体
|
|
156
|
+
*/
|
|
157
|
+
export interface DescribeProbeMetricDataResponse {
|
|
158
|
+
/**
|
|
159
|
+
* 指标 JSON 序列化后的字符串
|
|
160
|
+
*/
|
|
161
|
+
MetricSet: string
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
165
|
+
*/
|
|
166
|
+
RequestId?: string
|
|
167
|
+
}
|
|
168
|
+
|
|
154
169
|
/**
|
|
155
170
|
* DeleteTasks返回参数结构体
|
|
156
171
|
*/
|
|
@@ -1979,6 +1994,41 @@ export interface SuspendProbeTaskRequest {
|
|
|
1979
1994
|
TaskIds: Array<string>
|
|
1980
1995
|
}
|
|
1981
1996
|
|
|
1997
|
+
/**
|
|
1998
|
+
* DescribeProbeMetricData请求参数结构体
|
|
1999
|
+
*/
|
|
2000
|
+
export interface DescribeProbeMetricDataRequest {
|
|
2001
|
+
/**
|
|
2002
|
+
* 分析任务类型
|
|
2003
|
+
*/
|
|
2004
|
+
AnalyzeTaskType?: string
|
|
2005
|
+
|
|
2006
|
+
/**
|
|
2007
|
+
* 指标类型,counter 或者 gauge
|
|
2008
|
+
*/
|
|
2009
|
+
MetricType?: string
|
|
2010
|
+
|
|
2011
|
+
/**
|
|
2012
|
+
* 指标详细字段
|
|
2013
|
+
*/
|
|
2014
|
+
Field?: string
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* 过滤条件
|
|
2018
|
+
*/
|
|
2019
|
+
Filter?: string
|
|
2020
|
+
|
|
2021
|
+
/**
|
|
2022
|
+
* 聚合时间, 1m、1d、100d 等等
|
|
2023
|
+
*/
|
|
2024
|
+
GroupBy?: string
|
|
2025
|
+
|
|
2026
|
+
/**
|
|
2027
|
+
* 过滤条件数组
|
|
2028
|
+
*/
|
|
2029
|
+
Filters?: Array<string>
|
|
2030
|
+
}
|
|
2031
|
+
|
|
1982
2032
|
/**
|
|
1983
2033
|
* GetRespTimeTrendEx请求参数结构体
|
|
1984
2034
|
*/
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
|
+
import { ClientConfig } from "../../../common/interface"
|
|
20
|
+
import {
|
|
21
|
+
ModifyTaskRunStatusResponse,
|
|
22
|
+
TaskGroupAction,
|
|
23
|
+
TaskMonitor,
|
|
24
|
+
TaskConfig,
|
|
25
|
+
DeleteTaskRequest,
|
|
26
|
+
TaskGroup,
|
|
27
|
+
ExecuteTaskResponse,
|
|
28
|
+
TaskGroupConfig,
|
|
29
|
+
Template,
|
|
30
|
+
DescribeTaskExecuteLogsRequest,
|
|
31
|
+
DescribeTaskResponse,
|
|
32
|
+
ModifyTaskRunStatusRequest,
|
|
33
|
+
DescribeTemplateResponse,
|
|
34
|
+
DescribePolicy,
|
|
35
|
+
DescribeTemplateRequest,
|
|
36
|
+
ExecuteTaskInstanceRequest,
|
|
37
|
+
TaskGroupInstance,
|
|
38
|
+
ExecuteTaskRequest,
|
|
39
|
+
DescribeTaskListResponse,
|
|
40
|
+
TemplateGroupAction,
|
|
41
|
+
DescribeTemplateListResponse,
|
|
42
|
+
TagWithDescribe,
|
|
43
|
+
CreateTaskFromTemplateResponse,
|
|
44
|
+
DeleteTaskResponse,
|
|
45
|
+
DescribeTaskRequest,
|
|
46
|
+
Task,
|
|
47
|
+
CreateTaskFromTemplateRequest,
|
|
48
|
+
DescribeTaskListRequest,
|
|
49
|
+
TaskListItem,
|
|
50
|
+
ExecuteTaskInstanceResponse,
|
|
51
|
+
DescribeTaskExecuteLogsResponse,
|
|
52
|
+
TemplateMonitor,
|
|
53
|
+
TemplateGroup,
|
|
54
|
+
TemplatePolicy,
|
|
55
|
+
TaskGroupActionConfig,
|
|
56
|
+
DescribeTemplateListRequest,
|
|
57
|
+
TemplateListItem,
|
|
58
|
+
TagWithCreate,
|
|
59
|
+
} from "./cfg_models"
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* cfg client
|
|
63
|
+
* @class
|
|
64
|
+
*/
|
|
65
|
+
export class Client extends AbstractClient {
|
|
66
|
+
constructor(clientConfig: ClientConfig) {
|
|
67
|
+
super("cfg.tencentcloudapi.com", "2021-08-20", clientConfig)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* 从经验库创建演练
|
|
72
|
+
*/
|
|
73
|
+
async CreateTaskFromTemplate(
|
|
74
|
+
req: CreateTaskFromTemplateRequest,
|
|
75
|
+
cb?: (error: string, rep: CreateTaskFromTemplateResponse) => void
|
|
76
|
+
): Promise<CreateTaskFromTemplateResponse> {
|
|
77
|
+
return this.request("CreateTaskFromTemplate", req, cb)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 查询经验库
|
|
82
|
+
*/
|
|
83
|
+
async DescribeTemplate(
|
|
84
|
+
req: DescribeTemplateRequest,
|
|
85
|
+
cb?: (error: string, rep: DescribeTemplateResponse) => void
|
|
86
|
+
): Promise<DescribeTemplateResponse> {
|
|
87
|
+
return this.request("DescribeTemplate", req, cb)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 触发混沌演练任务的动作,对于实例进行演练操作
|
|
92
|
+
*/
|
|
93
|
+
async ExecuteTaskInstance(
|
|
94
|
+
req: ExecuteTaskInstanceRequest,
|
|
95
|
+
cb?: (error: string, rep: ExecuteTaskInstanceResponse) => void
|
|
96
|
+
): Promise<ExecuteTaskInstanceResponse> {
|
|
97
|
+
return this.request("ExecuteTaskInstance", req, cb)
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 查询经验库列表
|
|
102
|
+
*/
|
|
103
|
+
async DescribeTemplateList(
|
|
104
|
+
req: DescribeTemplateListRequest,
|
|
105
|
+
cb?: (error: string, rep: DescribeTemplateListResponse) => void
|
|
106
|
+
): Promise<DescribeTemplateListResponse> {
|
|
107
|
+
return this.request("DescribeTemplateList", req, cb)
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 修改任务运行状态
|
|
112
|
+
*/
|
|
113
|
+
async ModifyTaskRunStatus(
|
|
114
|
+
req: ModifyTaskRunStatusRequest,
|
|
115
|
+
cb?: (error: string, rep: ModifyTaskRunStatusResponse) => void
|
|
116
|
+
): Promise<ModifyTaskRunStatusResponse> {
|
|
117
|
+
return this.request("ModifyTaskRunStatus", req, cb)
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 查询任务列表
|
|
122
|
+
*/
|
|
123
|
+
async DescribeTaskList(
|
|
124
|
+
req: DescribeTaskListRequest,
|
|
125
|
+
cb?: (error: string, rep: DescribeTaskListResponse) => void
|
|
126
|
+
): Promise<DescribeTaskListResponse> {
|
|
127
|
+
return this.request("DescribeTaskList", req, cb)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* 获取演练过程中的所有日志
|
|
132
|
+
*/
|
|
133
|
+
async DescribeTaskExecuteLogs(
|
|
134
|
+
req: DescribeTaskExecuteLogsRequest,
|
|
135
|
+
cb?: (error: string, rep: DescribeTaskExecuteLogsResponse) => void
|
|
136
|
+
): Promise<DescribeTaskExecuteLogsResponse> {
|
|
137
|
+
return this.request("DescribeTaskExecuteLogs", req, cb)
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* 查询任务
|
|
142
|
+
*/
|
|
143
|
+
async DescribeTask(
|
|
144
|
+
req: DescribeTaskRequest,
|
|
145
|
+
cb?: (error: string, rep: DescribeTaskResponse) => void
|
|
146
|
+
): Promise<DescribeTaskResponse> {
|
|
147
|
+
return this.request("DescribeTask", req, cb)
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* 执行任务
|
|
152
|
+
*/
|
|
153
|
+
async ExecuteTask(
|
|
154
|
+
req: ExecuteTaskRequest,
|
|
155
|
+
cb?: (error: string, rep: ExecuteTaskResponse) => void
|
|
156
|
+
): Promise<ExecuteTaskResponse> {
|
|
157
|
+
return this.request("ExecuteTask", req, cb)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* 删除任务
|
|
162
|
+
*/
|
|
163
|
+
async DeleteTask(
|
|
164
|
+
req: DeleteTaskRequest,
|
|
165
|
+
cb?: (error: string, rep: DeleteTaskResponse) => void
|
|
166
|
+
): Promise<DeleteTaskResponse> {
|
|
167
|
+
return this.request("DeleteTask", req, cb)
|
|
168
|
+
}
|
|
169
|
+
}
|