tencentcloud-sdk-nodejs 4.0.751 → 4.0.753
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 +275 -0
- package/SERVICE_CHANGELOG.md +321 -34
- package/examples/hunyuan/v20230901/chat_std.js +40 -0
- package/examples/hunyuan/v20230901/chat_std.ts +42 -0
- package/package.json +1 -1
- package/products.md +18 -18
- package/src/common/sdk_version.ts +1 -1
- package/src/services/bi/v20220105/bi_models.ts +17 -0
- package/src/services/clb/v20180317/clb_models.ts +1 -2
- package/src/services/cls/v20201016/cls_models.ts +4 -3
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +5 -0
- package/src/services/dc/v20180410/dc_client.ts +1 -1
- package/src/services/dc/v20180410/dc_models.ts +25 -32
- package/src/services/dlc/v20210125/dlc_models.ts +48 -38
- package/src/services/ess/v20201111/ess_models.ts +2 -2
- package/src/services/essbasic/v20210526/essbasic_models.ts +2 -115
- package/src/services/faceid/v20180301/faceid_client.ts +15 -3
- package/src/services/faceid/v20180301/faceid_models.ts +123 -73
- package/src/services/gme/v20180711/gme_client.ts +7 -3
- package/src/services/monitor/v20180724/monitor_client.ts +3 -3
- package/src/services/monitor/v20180724/monitor_models.ts +30 -30
- package/src/services/mps/v20190612/mps_client.ts +7 -2
- package/src/services/mps/v20190612/mps_models.ts +162 -68
- package/src/services/privatedns/v20201028/privatedns_models.ts +18 -0
- package/src/services/teo/v20220901/teo_client.ts +22 -9
- package/src/services/teo/v20220901/teo_models.ts +133 -52
- package/src/services/tmt/v20180321/tmt_models.ts +28 -28
- package/src/services/waf/v20180125/waf_client.ts +1 -0
- package/src/services/waf/v20180125/waf_models.ts +89 -18
- package/src/services/wedata/v20210820/wedata_models.ts +16 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/bi/v20220105/bi_models.d.ts +17 -0
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +1 -2
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +4 -3
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +5 -0
- package/tencentcloud/services/dc/v20180410/dc_client.d.ts +1 -1
- package/tencentcloud/services/dc/v20180410/dc_client.js +1 -1
- package/tencentcloud/services/dc/v20180410/dc_models.d.ts +25 -32
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +48 -38
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +2 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +2 -115
- package/tencentcloud/services/faceid/v20180301/faceid_client.d.ts +5 -1
- package/tencentcloud/services/faceid/v20180301/faceid_client.js +6 -0
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +121 -73
- package/tencentcloud/services/gme/v20180711/gme_client.d.ts +6 -2
- package/tencentcloud/services/gme/v20180711/gme_client.js +6 -2
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +3 -3
- package/tencentcloud/services/monitor/v20180724/monitor_client.js +3 -3
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +30 -30
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +157 -68
- package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +18 -0
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +7 -3
- package/tencentcloud/services/teo/v20220901/teo_client.js +9 -3
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +130 -52
- package/tencentcloud/services/tmt/v20180321/tmt_models.d.ts +28 -28
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +88 -18
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +16 -0
- package/test/faceid.v20180301.test.js +10 -0
- package/test/teo.v20220901.test.js +12 -2
|
@@ -59,6 +59,27 @@ export interface IdCardVerificationRequest {
|
|
|
59
59
|
*/
|
|
60
60
|
Encryption?: Encryption;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* ImageRecognitionV2返回参数结构体
|
|
64
|
+
*/
|
|
65
|
+
export interface ImageRecognitionV2Response {
|
|
66
|
+
/**
|
|
67
|
+
* 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
|
|
68
|
+
*/
|
|
69
|
+
Sim?: number;
|
|
70
|
+
/**
|
|
71
|
+
* 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
|
|
72
|
+
*/
|
|
73
|
+
Result?: string;
|
|
74
|
+
/**
|
|
75
|
+
* 业务结果描述。
|
|
76
|
+
*/
|
|
77
|
+
Description?: string;
|
|
78
|
+
/**
|
|
79
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
80
|
+
*/
|
|
81
|
+
RequestId?: string;
|
|
82
|
+
}
|
|
62
83
|
/**
|
|
63
84
|
* GetDetectInfoEnhanced返回参数结构体
|
|
64
85
|
*/
|
|
@@ -1502,31 +1523,29 @@ export interface PhoneVerificationCMCCResponse {
|
|
|
1502
1523
|
RequestId?: string;
|
|
1503
1524
|
}
|
|
1504
1525
|
/**
|
|
1505
|
-
*
|
|
1526
|
+
* MobileNetworkTimeVerification返回参数结构体
|
|
1506
1527
|
*/
|
|
1507
|
-
export interface
|
|
1508
|
-
/**
|
|
1509
|
-
* 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
|
|
1510
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1511
|
-
*/
|
|
1512
|
-
BestFrameBase64?: string;
|
|
1513
|
-
/**
|
|
1514
|
-
* 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
|
|
1515
|
-
*/
|
|
1516
|
-
Sim?: number;
|
|
1528
|
+
export interface MobileNetworkTimeVerificationResponse {
|
|
1517
1529
|
/**
|
|
1518
|
-
*
|
|
1530
|
+
* 认证结果码,收费情况如下。
|
|
1531
|
+
收费结果码:
|
|
1532
|
+
0: 成功
|
|
1533
|
+
-2: 手机号不存在
|
|
1534
|
+
-3: 手机号存在,但无法查询到在网时长
|
|
1535
|
+
不收费结果码:
|
|
1536
|
+
-1: 手机号格式不正确
|
|
1537
|
+
-4: 验证中心服务繁忙
|
|
1519
1538
|
*/
|
|
1520
|
-
Result
|
|
1539
|
+
Result: string;
|
|
1521
1540
|
/**
|
|
1522
1541
|
* 业务结果描述。
|
|
1523
1542
|
*/
|
|
1524
|
-
Description
|
|
1543
|
+
Description: string;
|
|
1525
1544
|
/**
|
|
1526
|
-
*
|
|
1527
|
-
|
|
1545
|
+
* 在网时长区间。
|
|
1546
|
+
格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
|
|
1528
1547
|
*/
|
|
1529
|
-
|
|
1548
|
+
Range: string;
|
|
1530
1549
|
/**
|
|
1531
1550
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1532
1551
|
*/
|
|
@@ -2026,6 +2045,61 @@ export interface GetDetectInfoResponse {
|
|
|
2026
2045
|
*/
|
|
2027
2046
|
RequestId?: string;
|
|
2028
2047
|
}
|
|
2048
|
+
/**
|
|
2049
|
+
* IdCardOCRVerification返回参数结构体
|
|
2050
|
+
*/
|
|
2051
|
+
export interface IdCardOCRVerificationResponse {
|
|
2052
|
+
/**
|
|
2053
|
+
* 认证结果码,收费情况如下。
|
|
2054
|
+
收费结果码:
|
|
2055
|
+
0: 姓名和身份证号一致
|
|
2056
|
+
-1: 姓名和身份证号不一致
|
|
2057
|
+
不收费结果码:
|
|
2058
|
+
-2: 非法身份证号(长度、校验位等不正确)
|
|
2059
|
+
-3: 非法姓名(长度、格式等不正确)
|
|
2060
|
+
-4: 证件库服务异常
|
|
2061
|
+
-5: 证件库中无此身份证记录
|
|
2062
|
+
-6: 权威比对系统升级中,请稍后再试
|
|
2063
|
+
-7: 认证次数超过当日限制
|
|
2064
|
+
*/
|
|
2065
|
+
Result: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* 业务结果描述。
|
|
2068
|
+
*/
|
|
2069
|
+
Description: string;
|
|
2070
|
+
/**
|
|
2071
|
+
* 用于验证的姓名
|
|
2072
|
+
*/
|
|
2073
|
+
Name: string;
|
|
2074
|
+
/**
|
|
2075
|
+
* 用于验证的身份证号
|
|
2076
|
+
*/
|
|
2077
|
+
IdCard: string;
|
|
2078
|
+
/**
|
|
2079
|
+
* OCR得到的性别
|
|
2080
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2081
|
+
*/
|
|
2082
|
+
Sex: string;
|
|
2083
|
+
/**
|
|
2084
|
+
* OCR得到的民族
|
|
2085
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2086
|
+
*/
|
|
2087
|
+
Nation: string;
|
|
2088
|
+
/**
|
|
2089
|
+
* OCR得到的生日
|
|
2090
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2091
|
+
*/
|
|
2092
|
+
Birth: string;
|
|
2093
|
+
/**
|
|
2094
|
+
* OCR得到的地址
|
|
2095
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2096
|
+
*/
|
|
2097
|
+
Address: string;
|
|
2098
|
+
/**
|
|
2099
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2100
|
+
*/
|
|
2101
|
+
RequestId?: string;
|
|
2102
|
+
}
|
|
2029
2103
|
/**
|
|
2030
2104
|
* IdCardVerification返回参数结构体
|
|
2031
2105
|
*/
|
|
@@ -2097,29 +2171,31 @@ export interface GetDetectInfoEnhancedRequest {
|
|
|
2097
2171
|
IsEncryptResponse?: boolean;
|
|
2098
2172
|
}
|
|
2099
2173
|
/**
|
|
2100
|
-
*
|
|
2174
|
+
* LivenessRecognition返回参数结构体
|
|
2101
2175
|
*/
|
|
2102
|
-
export interface
|
|
2176
|
+
export interface LivenessRecognitionResponse {
|
|
2103
2177
|
/**
|
|
2104
|
-
*
|
|
2105
|
-
|
|
2106
|
-
0: 成功
|
|
2107
|
-
-2: 手机号不存在
|
|
2108
|
-
-3: 手机号存在,但无法查询到在网时长
|
|
2109
|
-
不收费结果码:
|
|
2110
|
-
-1: 手机号格式不正确
|
|
2111
|
-
-4: 验证中心服务繁忙
|
|
2178
|
+
* 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
|
|
2179
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2112
2180
|
*/
|
|
2113
|
-
|
|
2181
|
+
BestFrameBase64?: string;
|
|
2182
|
+
/**
|
|
2183
|
+
* 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
|
|
2184
|
+
*/
|
|
2185
|
+
Sim?: number;
|
|
2186
|
+
/**
|
|
2187
|
+
* 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
|
|
2188
|
+
*/
|
|
2189
|
+
Result?: string;
|
|
2114
2190
|
/**
|
|
2115
2191
|
* 业务结果描述。
|
|
2116
2192
|
*/
|
|
2117
|
-
Description
|
|
2193
|
+
Description?: string;
|
|
2118
2194
|
/**
|
|
2119
|
-
*
|
|
2120
|
-
|
|
2195
|
+
* 最佳截图列表,仅在配置了返回多张最佳截图时返回。
|
|
2196
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2121
2197
|
*/
|
|
2122
|
-
|
|
2198
|
+
BestFrameList?: Array<string>;
|
|
2123
2199
|
/**
|
|
2124
2200
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2125
2201
|
*/
|
|
@@ -2360,59 +2436,31 @@ export interface BankCard2EVerificationRequest {
|
|
|
2360
2436
|
Encryption?: Encryption;
|
|
2361
2437
|
}
|
|
2362
2438
|
/**
|
|
2363
|
-
*
|
|
2439
|
+
* ImageRecognitionV2请求参数结构体
|
|
2364
2440
|
*/
|
|
2365
|
-
export interface
|
|
2441
|
+
export interface ImageRecognitionV2Request {
|
|
2366
2442
|
/**
|
|
2367
|
-
*
|
|
2368
|
-
收费结果码:
|
|
2369
|
-
0: 姓名和身份证号一致
|
|
2370
|
-
-1: 姓名和身份证号不一致
|
|
2371
|
-
不收费结果码:
|
|
2372
|
-
-2: 非法身份证号(长度、校验位等不正确)
|
|
2373
|
-
-3: 非法姓名(长度、格式等不正确)
|
|
2374
|
-
-4: 证件库服务异常
|
|
2375
|
-
-5: 证件库中无此身份证记录
|
|
2376
|
-
-6: 权威比对系统升级中,请稍后再试
|
|
2377
|
-
-7: 认证次数超过当日限制
|
|
2378
|
-
*/
|
|
2379
|
-
Result: string;
|
|
2380
|
-
/**
|
|
2381
|
-
* 业务结果描述。
|
|
2382
|
-
*/
|
|
2383
|
-
Description: string;
|
|
2384
|
-
/**
|
|
2385
|
-
* 用于验证的姓名
|
|
2386
|
-
*/
|
|
2387
|
-
Name: string;
|
|
2388
|
-
/**
|
|
2389
|
-
* 用于验证的身份证号
|
|
2443
|
+
* 身份证号
|
|
2390
2444
|
*/
|
|
2391
2445
|
IdCard: string;
|
|
2392
2446
|
/**
|
|
2393
|
-
*
|
|
2394
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2395
|
-
*/
|
|
2396
|
-
Sex: string;
|
|
2397
|
-
/**
|
|
2398
|
-
* OCR得到的民族
|
|
2399
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2447
|
+
* 姓名。中文请使用UTF-8编码。
|
|
2400
2448
|
*/
|
|
2401
|
-
|
|
2449
|
+
Name: string;
|
|
2402
2450
|
/**
|
|
2403
|
-
*
|
|
2404
|
-
|
|
2451
|
+
* 用于人脸比对的照片,图片的Base64值;
|
|
2452
|
+
Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
|
|
2453
|
+
请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
|
|
2405
2454
|
*/
|
|
2406
|
-
|
|
2455
|
+
ImageBase64: string;
|
|
2407
2456
|
/**
|
|
2408
|
-
*
|
|
2409
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2457
|
+
* 本接口不需要传递此参数。
|
|
2410
2458
|
*/
|
|
2411
|
-
|
|
2459
|
+
Optional?: string;
|
|
2412
2460
|
/**
|
|
2413
|
-
*
|
|
2461
|
+
* 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
|
2414
2462
|
*/
|
|
2415
|
-
|
|
2463
|
+
Encryption?: Encryption;
|
|
2416
2464
|
}
|
|
2417
2465
|
/**
|
|
2418
2466
|
* PhoneVerificationCTCC返回参数结构体
|
|
@@ -46,7 +46,9 @@ export declare class Client extends AbstractClient {
|
|
|
46
46
|
*/
|
|
47
47
|
DescribeTaskInfo(req: DescribeTaskInfoRequest, cb?: (error: string, rep: DescribeTaskInfoResponse) => void): Promise<DescribeTaskInfoResponse>;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* 目前该功能底层能力已不具备,不对外提供,目前需要下线,走预下线流程。
|
|
50
|
+
|
|
51
|
+
用于创建年龄语音识别任务的接口,请求频率10次/秒。该接口目前通过白名单开放试用,如有需求,请提交工单申请。
|
|
50
52
|
</br>
|
|
51
53
|
<h4><b>接口功能说明:</b></h4>
|
|
52
54
|
<li>支持对语音文件进行检测,判断是否为未成年人。</li>
|
|
@@ -266,7 +268,9 @@ export declare class Client extends AbstractClient {
|
|
|
266
268
|
*/
|
|
267
269
|
ModifyAppStatus(req: ModifyAppStatusRequest, cb?: (error: string, rep: ModifyAppStatusResponse) => void): Promise<ModifyAppStatusResponse>;
|
|
268
270
|
/**
|
|
269
|
-
*
|
|
271
|
+
* 目前该功能底层能力已不具备,不对外提供,目前需要下线,走预下线流程。
|
|
272
|
+
|
|
273
|
+
查询年龄语音识别任务结果,请求频率10次/秒。该接口目前通过白名单开放试用,如有需求,请提交工单申请。
|
|
270
274
|
*/
|
|
271
275
|
DescribeAgeDetectTask(req: DescribeAgeDetectTaskRequest, cb?: (error: string, rep: DescribeAgeDetectTaskResponse) => void): Promise<DescribeAgeDetectTaskResponse>;
|
|
272
276
|
}
|
|
@@ -84,7 +84,9 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
84
84
|
return this.request("DescribeTaskInfo", req, cb);
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* 目前该功能底层能力已不具备,不对外提供,目前需要下线,走预下线流程。
|
|
88
|
+
|
|
89
|
+
用于创建年龄语音识别任务的接口,请求频率10次/秒。该接口目前通过白名单开放试用,如有需求,请提交工单申请。
|
|
88
90
|
</br>
|
|
89
91
|
<h4><b>接口功能说明:</b></h4>
|
|
90
92
|
<li>支持对语音文件进行检测,判断是否为未成年人。</li>
|
|
@@ -340,7 +342,9 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
340
342
|
return this.request("ModifyAppStatus", req, cb);
|
|
341
343
|
}
|
|
342
344
|
/**
|
|
343
|
-
*
|
|
345
|
+
* 目前该功能底层能力已不具备,不对外提供,目前需要下线,走预下线流程。
|
|
346
|
+
|
|
347
|
+
查询年龄语音识别任务结果,请求频率10次/秒。该接口目前通过白名单开放试用,如有需求,请提交工单申请。
|
|
344
348
|
*/
|
|
345
349
|
async DescribeAgeDetectTask(req, cb) {
|
|
346
350
|
return this.request("DescribeAgeDetectTask", req, cb);
|
|
@@ -26,7 +26,7 @@ export declare class Client extends AbstractClient {
|
|
|
26
26
|
*/
|
|
27
27
|
DescribeBindingPolicyObjectList(req: DescribeBindingPolicyObjectListRequest, cb?: (error: string, rep: DescribeBindingPolicyObjectListResponse) => void): Promise<DescribeBindingPolicyObjectListResponse>;
|
|
28
28
|
/**
|
|
29
|
-
* 更新 Prometheus
|
|
29
|
+
* 更新 Prometheus 的告警规则。
|
|
30
30
|
|
|
31
31
|
请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description**,,请参考 [Prometheus Rule更多配置请参考](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)。
|
|
32
32
|
*/
|
|
@@ -190,7 +190,7 @@ export declare class Client extends AbstractClient {
|
|
|
190
190
|
*/
|
|
191
191
|
UpdateExporterIntegration(req: UpdateExporterIntegrationRequest, cb?: (error: string, rep: UpdateExporterIntegrationResponse) => void): Promise<UpdateExporterIntegrationResponse>;
|
|
192
192
|
/**
|
|
193
|
-
* 更新 Prometheus 抓取任务
|
|
193
|
+
* 更新 Prometheus Agent 抓取任务
|
|
194
194
|
*/
|
|
195
195
|
UpdatePrometheusScrapeJob(req: UpdatePrometheusScrapeJobRequest, cb?: (error: string, rep: UpdatePrometheusScrapeJobResponse) => void): Promise<UpdatePrometheusScrapeJobResponse>;
|
|
196
196
|
/**
|
|
@@ -363,7 +363,7 @@ export declare class Client extends AbstractClient {
|
|
|
363
363
|
*/
|
|
364
364
|
RunPrometheusInstance(req: RunPrometheusInstanceRequest, cb?: (error: string, rep: RunPrometheusInstanceResponse) => void): Promise<RunPrometheusInstanceResponse>;
|
|
365
365
|
/**
|
|
366
|
-
*
|
|
366
|
+
* 查询集成中心 exporter 集成列表
|
|
367
367
|
*/
|
|
368
368
|
DescribeExporterIntegrations(req: DescribeExporterIntegrationsRequest, cb?: (error: string, rep: DescribeExporterIntegrationsResponse) => void): Promise<DescribeExporterIntegrationsResponse>;
|
|
369
369
|
/**
|
|
@@ -54,7 +54,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
54
54
|
return this.request("DescribeBindingPolicyObjectList", req, cb);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* 更新 Prometheus
|
|
57
|
+
* 更新 Prometheus 的告警规则。
|
|
58
58
|
|
|
59
59
|
请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description**,,请参考 [Prometheus Rule更多配置请参考](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)。
|
|
60
60
|
*/
|
|
@@ -298,7 +298,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
298
298
|
return this.request("UpdateExporterIntegration", req, cb);
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
301
|
-
* 更新 Prometheus 抓取任务
|
|
301
|
+
* 更新 Prometheus Agent 抓取任务
|
|
302
302
|
*/
|
|
303
303
|
async UpdatePrometheusScrapeJob(req, cb) {
|
|
304
304
|
return this.request("UpdatePrometheusScrapeJob", req, cb);
|
|
@@ -555,7 +555,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
555
555
|
return this.request("RunPrometheusInstance", req, cb);
|
|
556
556
|
}
|
|
557
557
|
/**
|
|
558
|
-
*
|
|
558
|
+
* 查询集成中心 exporter 集成列表
|
|
559
559
|
*/
|
|
560
560
|
async DescribeExporterIntegrations(req, cb) {
|
|
561
561
|
return this.request("DescribeExporterIntegrations", req, cb);
|
|
@@ -1792,7 +1792,7 @@ export interface UpdateAlertRuleResponse {
|
|
|
1792
1792
|
/**
|
|
1793
1793
|
* 规则 ID
|
|
1794
1794
|
*/
|
|
1795
|
-
RuleId
|
|
1795
|
+
RuleId?: string;
|
|
1796
1796
|
/**
|
|
1797
1797
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1798
1798
|
*/
|
|
@@ -2726,11 +2726,11 @@ export interface UpdateRecordingRuleRequest {
|
|
|
2726
2726
|
*/
|
|
2727
2727
|
Group: string;
|
|
2728
2728
|
/**
|
|
2729
|
-
* Prometheus 实例 ID
|
|
2729
|
+
* Prometheus 实例 ID(可通过 DescribePrometheusInstances 接口获取)
|
|
2730
2730
|
*/
|
|
2731
2731
|
InstanceId: string;
|
|
2732
2732
|
/**
|
|
2733
|
-
* Prometheus 聚合规则 ID
|
|
2733
|
+
* Prometheus 聚合规则 ID(可通过 DescribeRecordingRules 接口获取)
|
|
2734
2734
|
*/
|
|
2735
2735
|
RuleId: string;
|
|
2736
2736
|
/**
|
|
@@ -3679,18 +3679,18 @@ export interface DescribeExporterIntegrationsRequest {
|
|
|
3679
3679
|
*/
|
|
3680
3680
|
InstanceId: string;
|
|
3681
3681
|
/**
|
|
3682
|
-
* Kubernetes
|
|
3682
|
+
* Kubernetes 集群类型,可不填。取值如下:
|
|
3683
3683
|
<li> 1= 容器集群(TKE) </li>
|
|
3684
|
-
<li> 2
|
|
3685
|
-
<li> 3= Prometheus
|
|
3684
|
+
<li> 2=弹性集群(EKS) </li>
|
|
3685
|
+
<li> 3= Prometheus管理的弹性集群(MEKS) </li>
|
|
3686
3686
|
*/
|
|
3687
3687
|
KubeType?: number;
|
|
3688
3688
|
/**
|
|
3689
|
-
* 集群 ID
|
|
3689
|
+
* 集群 ID,可不填
|
|
3690
3690
|
*/
|
|
3691
3691
|
ClusterId?: string;
|
|
3692
3692
|
/**
|
|
3693
|
-
* 类型
|
|
3693
|
+
* 类型(不填返回全部集成。可通过 DescribePrometheusIntegrations 接口获取,取每一项中的 ExporterType 字段)
|
|
3694
3694
|
*/
|
|
3695
3695
|
Kind?: string;
|
|
3696
3696
|
/**
|
|
@@ -3893,19 +3893,19 @@ export interface DescribePrometheusClusterAgentsResponse {
|
|
|
3893
3893
|
*/
|
|
3894
3894
|
export interface UpdatePrometheusScrapeJobRequest {
|
|
3895
3895
|
/**
|
|
3896
|
-
* Prometheus 实例 ID
|
|
3896
|
+
* Prometheus 实例 ID(可通过 DescribePrometheusInstances 接口获取)
|
|
3897
3897
|
*/
|
|
3898
3898
|
InstanceId: string;
|
|
3899
3899
|
/**
|
|
3900
|
-
* Agent ID
|
|
3900
|
+
* Agent ID(可通过DescribePrometheusAgents 接口获取)
|
|
3901
3901
|
*/
|
|
3902
3902
|
AgentId: string;
|
|
3903
3903
|
/**
|
|
3904
|
-
* 抓取任务 ID
|
|
3904
|
+
* 抓取任务 ID(可通过 DescribePrometheusScrapeJobs 接口获取)
|
|
3905
3905
|
*/
|
|
3906
3906
|
JobId: string;
|
|
3907
3907
|
/**
|
|
3908
|
-
*
|
|
3908
|
+
* 抓取任务配置
|
|
3909
3909
|
*/
|
|
3910
3910
|
Config: string;
|
|
3911
3911
|
}
|
|
@@ -3914,15 +3914,15 @@ export interface UpdatePrometheusScrapeJobRequest {
|
|
|
3914
3914
|
*/
|
|
3915
3915
|
export interface PrometheusAgentInfo {
|
|
3916
3916
|
/**
|
|
3917
|
-
*
|
|
3917
|
+
* 集群类型。可填入tke、eks、tkeedge、tdcc,分别代表标准集群、弹性集群、边缘集群、注册集群
|
|
3918
3918
|
*/
|
|
3919
3919
|
ClusterType: string;
|
|
3920
3920
|
/**
|
|
3921
|
-
*
|
|
3921
|
+
* 集成容器服务中关联的集群ID
|
|
3922
3922
|
*/
|
|
3923
3923
|
ClusterId: string;
|
|
3924
3924
|
/**
|
|
3925
|
-
*
|
|
3925
|
+
* 该参数未使用,不需要填写
|
|
3926
3926
|
*/
|
|
3927
3927
|
Describe?: string;
|
|
3928
3928
|
}
|
|
@@ -4050,7 +4050,7 @@ export interface UpdateRecordingRuleResponse {
|
|
|
4050
4050
|
* 规则 ID
|
|
4051
4051
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4052
4052
|
*/
|
|
4053
|
-
RuleId
|
|
4053
|
+
RuleId?: string;
|
|
4054
4054
|
/**
|
|
4055
4055
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4056
4056
|
*/
|
|
@@ -4171,7 +4171,7 @@ export interface CreateGrafanaInstanceResponse {
|
|
|
4171
4171
|
*/
|
|
4172
4172
|
export interface UpdateAlertRuleRequest {
|
|
4173
4173
|
/**
|
|
4174
|
-
* Prometheus
|
|
4174
|
+
* Prometheus 高警规则 ID
|
|
4175
4175
|
*/
|
|
4176
4176
|
RuleId: string;
|
|
4177
4177
|
/**
|
|
@@ -4187,19 +4187,19 @@ export interface UpdateAlertRuleRequest {
|
|
|
4187
4187
|
*/
|
|
4188
4188
|
RuleState: number;
|
|
4189
4189
|
/**
|
|
4190
|
-
*
|
|
4190
|
+
* 告警规则名称
|
|
4191
4191
|
*/
|
|
4192
4192
|
RuleName: string;
|
|
4193
4193
|
/**
|
|
4194
|
-
*
|
|
4194
|
+
* 告警规则表达式
|
|
4195
4195
|
*/
|
|
4196
4196
|
Expr: string;
|
|
4197
4197
|
/**
|
|
4198
|
-
*
|
|
4198
|
+
* 告警规则持续时间
|
|
4199
4199
|
*/
|
|
4200
4200
|
Duration: string;
|
|
4201
4201
|
/**
|
|
4202
|
-
*
|
|
4202
|
+
* 告警规则接收组列表(当前规则绑定的接收组列表可通过 DescribeAlertRules 接口获取;用户已有的接收组列表可通过 DescribeAlarmNotices 接口获取)
|
|
4203
4203
|
*/
|
|
4204
4204
|
Receivers: Array<string>;
|
|
4205
4205
|
/**
|
|
@@ -4213,7 +4213,7 @@ export interface UpdateAlertRuleRequest {
|
|
|
4213
4213
|
*/
|
|
4214
4214
|
Annotations?: Array<PrometheusRuleKV>;
|
|
4215
4215
|
/**
|
|
4216
|
-
* 报警策略模板分类
|
|
4216
|
+
* 报警策略模板分类(自定义,可不填)
|
|
4217
4217
|
*/
|
|
4218
4218
|
Type?: string;
|
|
4219
4219
|
}
|
|
@@ -4362,7 +4362,7 @@ export interface DescribeDNSConfigResponse {
|
|
|
4362
4362
|
*/
|
|
4363
4363
|
export interface DeleteRecordingRulesRequest {
|
|
4364
4364
|
/**
|
|
4365
|
-
* 规则 ID 列表
|
|
4365
|
+
* 规则 ID 列表(规则 ID 可通过 DescribeRecordingRules 接口获取)
|
|
4366
4366
|
*/
|
|
4367
4367
|
RuleIds: Array<string>;
|
|
4368
4368
|
/**
|
|
@@ -7460,26 +7460,26 @@ export interface RunPrometheusInstanceResponse {
|
|
|
7460
7460
|
*/
|
|
7461
7461
|
export interface UpdateExporterIntegrationRequest {
|
|
7462
7462
|
/**
|
|
7463
|
-
* 实例 ID
|
|
7463
|
+
* Prometheus 实例 ID
|
|
7464
7464
|
*/
|
|
7465
7465
|
InstanceId: string;
|
|
7466
7466
|
/**
|
|
7467
|
-
* 类型
|
|
7467
|
+
* 类型(可通过 DescribeExporterIntegrations 获取对应集成的 Kind)
|
|
7468
7468
|
*/
|
|
7469
7469
|
Kind: string;
|
|
7470
7470
|
/**
|
|
7471
|
-
* 配置内容
|
|
7471
|
+
* 配置内容(可通过 DescribeExporterIntegrations 接口获取对应集成的 Content,并在此基础上做修改)
|
|
7472
7472
|
*/
|
|
7473
7473
|
Content: string;
|
|
7474
7474
|
/**
|
|
7475
|
-
* Kubernetes
|
|
7475
|
+
* Kubernetes 集群类型,可不填。取值如下:
|
|
7476
7476
|
<li> 1= 容器集群(TKE) </li>
|
|
7477
|
-
<li> 2
|
|
7478
|
-
<li> 3= Prometheus
|
|
7477
|
+
<li> 2=弹性集群(EKS) </li>
|
|
7478
|
+
<li> 3= Prometheus管理的弹性集群(MEKS) </li>
|
|
7479
7479
|
*/
|
|
7480
7480
|
KubeType?: number;
|
|
7481
7481
|
/**
|
|
7482
|
-
* 集群 ID
|
|
7482
|
+
* 集群 ID,可不填
|
|
7483
7483
|
*/
|
|
7484
7484
|
ClusterId?: string;
|
|
7485
7485
|
}
|