tencentcloud-sdk-nodejs 4.0.291 → 4.0.294
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 +313 -0
- package/SERVICE_CHANGELOG.md +351 -70
- package/package.json +1 -1
- package/products.md +164 -164
- package/src/common/sdk_version.ts +1 -1
- package/src/services/ame/v20190916/ame_client.ts +13 -0
- package/src/services/ame/v20190916/ame_models.ts +65 -0
- package/src/services/as/v20180419/as_models.ts +10 -0
- package/src/services/asr/v20190614/asr_models.ts +1 -1
- package/src/services/cdb/v20170320/cdb_models.ts +13 -13
- package/src/services/cii/v20210408/cii_client.ts +15 -0
- package/src/services/cii/v20210408/cii_models.ts +67 -0
- package/src/services/ckafka/v20190819/ckafka_client.ts +34 -10
- package/src/services/ckafka/v20190819/ckafka_models.ts +151 -46
- package/src/services/clb/v20180317/clb_client.ts +29 -15
- package/src/services/clb/v20180317/clb_models.ts +94 -0
- package/src/services/cpdp/v20190820/cpdp_client.ts +209 -46
- package/src/services/cpdp/v20190820/cpdp_models.ts +2012 -541
- package/src/services/cvm/v20170312/cvm_models.ts +11 -1
- package/src/services/dcdb/v20180411/dcdb_client.ts +18 -6
- package/src/services/dcdb/v20180411/dcdb_models.ts +245 -107
- package/src/services/eb/v20210416/eb_client.ts +1 -1
- package/src/services/faceid/v20180301/faceid_models.ts +1 -1
- package/src/services/iecp/v20210914/iecp_client.ts +5 -5
- package/src/services/iecp/v20210914/iecp_models.ts +19 -9
- package/src/services/iotcloud/v20180614/iotcloud_client.ts +25 -1
- package/src/services/iotcloud/v20180614/iotcloud_models.ts +69 -4
- package/src/services/lighthouse/v20200324/lighthouse_client.ts +1 -1
- package/src/services/mariadb/v20170312/mariadb_client.ts +21 -5
- package/src/services/mariadb/v20170312/mariadb_models.ts +164 -69
- package/src/services/mna/v20210119/mna_client.ts +3 -0
- package/src/services/mna/v20210119/mna_models.ts +75 -0
- package/src/services/monitor/v20180724/monitor_client.ts +19 -2
- package/src/services/monitor/v20180724/monitor_models.ts +397 -19
- package/src/services/scf/v20180416/scf_models.ts +1 -1
- package/src/services/ses/v20201002/ses_client.ts +1 -1
- package/src/services/sms/v20210111/sms_models.ts +6 -0
- package/src/services/vpc/v20170312/vpc_client.ts +1 -1
- package/src/services/vpc/v20170312/vpc_models.ts +4 -4
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/ame/v20190916/ame_client.d.ts +5 -1
- package/tencentcloud/services/ame/v20190916/ame_client.js +6 -0
- package/tencentcloud/services/ame/v20190916/ame_models.d.ts +55 -0
- package/tencentcloud/services/as/v20180419/as_models.d.ts +8 -0
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +13 -13
- package/tencentcloud/services/cii/v20210408/cii_client.d.ts +5 -1
- package/tencentcloud/services/cii/v20210408/cii_client.js +9 -0
- package/tencentcloud/services/cii/v20210408/cii_models.d.ts +57 -0
- package/tencentcloud/services/ckafka/v20190819/ckafka_client.d.ts +11 -3
- package/tencentcloud/services/ckafka/v20190819/ckafka_client.js +15 -3
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +129 -41
- package/tencentcloud/services/clb/v20180317/clb_client.d.ts +10 -6
- package/tencentcloud/services/clb/v20180317/clb_client.js +13 -7
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +80 -0
- package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +61 -13
- package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +90 -18
- package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +1714 -463
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +9 -1
- package/tencentcloud/services/dcdb/v20180411/dcdb_client.d.ts +5 -1
- package/tencentcloud/services/dcdb/v20180411/dcdb_client.js +6 -0
- package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +210 -96
- package/tencentcloud/services/eb/v20210416/eb_client.d.ts +1 -1
- package/tencentcloud/services/eb/v20210416/eb_client.js +1 -1
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +1 -1
- package/tencentcloud/services/iecp/v20210914/iecp_client.d.ts +5 -5
- package/tencentcloud/services/iecp/v20210914/iecp_client.js +5 -5
- package/tencentcloud/services/iecp/v20210914/iecp_models.d.ts +17 -9
- package/tencentcloud/services/iotcloud/v20180614/iotcloud_client.d.ts +9 -1
- package/tencentcloud/services/iotcloud/v20180614/iotcloud_client.js +12 -0
- package/tencentcloud/services/iotcloud/v20180614/iotcloud_models.d.ts +60 -4
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.d.ts +1 -1
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.js +1 -1
- package/tencentcloud/services/mariadb/v20170312/mariadb_client.d.ts +5 -1
- package/tencentcloud/services/mariadb/v20170312/mariadb_client.js +6 -0
- package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +141 -59
- package/tencentcloud/services/mna/v20210119/mna_models.d.ts +63 -0
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +5 -1
- package/tencentcloud/services/monitor/v20180724/monitor_client.js +6 -0
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +331 -18
- package/tencentcloud/services/scf/v20180416/scf_models.d.ts +1 -1
- package/tencentcloud/services/ses/v20201002/ses_client.d.ts +1 -1
- package/tencentcloud/services/ses/v20201002/ses_client.js +1 -1
- package/tencentcloud/services/sms/v20210111/sms_models.d.ts +5 -0
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +4 -4
- package/test/ame.v20190916.test.js +10 -0
- package/test/cii.v20210408.test.js +10 -0
- package/test/ckafka.v20190819.test.js +22 -2
- package/test/clb.v20180317.test.js +14 -4
- package/test/cpdp.v20190820.test.js +132 -12
- package/test/dcdb.v20180411.test.js +10 -0
- package/test/iotcloud.v20180614.test.js +20 -0
- package/test/mariadb.v20170312.test.js +10 -0
- package/test/monitor.v20180724.test.js +10 -0
|
@@ -29,6 +29,27 @@ export interface DestAddressInfo {
|
|
|
29
29
|
*/
|
|
30
30
|
DestIp: Array<string>;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* 测速数据
|
|
34
|
+
*/
|
|
35
|
+
export interface NetworkData {
|
|
36
|
+
/**
|
|
37
|
+
* 时延数组,最大长度30
|
|
38
|
+
*/
|
|
39
|
+
RTT: Array<number>;
|
|
40
|
+
/**
|
|
41
|
+
* 丢包率
|
|
42
|
+
*/
|
|
43
|
+
Loss: number;
|
|
44
|
+
/**
|
|
45
|
+
* 抖动
|
|
46
|
+
*/
|
|
47
|
+
Jitter: number;
|
|
48
|
+
/**
|
|
49
|
+
* 10位秒级时间戳
|
|
50
|
+
*/
|
|
51
|
+
Timestamp: number;
|
|
52
|
+
}
|
|
32
53
|
/**
|
|
33
54
|
* 移动网络加速源地址结构体
|
|
34
55
|
*/
|
|
@@ -94,6 +115,23 @@ Android 填写 IMEI
|
|
|
94
115
|
*/
|
|
95
116
|
Wireless?: number;
|
|
96
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* 用户期望门限
|
|
120
|
+
*/
|
|
121
|
+
export interface ExpectedThreshold {
|
|
122
|
+
/**
|
|
123
|
+
* 期望发起加速的时延阈值
|
|
124
|
+
*/
|
|
125
|
+
RTT: number;
|
|
126
|
+
/**
|
|
127
|
+
* 期望发起加速的丢包率阈值
|
|
128
|
+
*/
|
|
129
|
+
Loss: number;
|
|
130
|
+
/**
|
|
131
|
+
* 期望发起加速的抖动阈值
|
|
132
|
+
*/
|
|
133
|
+
Jitter: number;
|
|
134
|
+
}
|
|
97
135
|
/**
|
|
98
136
|
* DeleteQos返回参数结构体
|
|
99
137
|
*/
|
|
@@ -111,6 +149,23 @@ export interface DeleteQosResponse {
|
|
|
111
149
|
*/
|
|
112
150
|
RequestId?: string;
|
|
113
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* 加速策略关键数据
|
|
154
|
+
*/
|
|
155
|
+
export interface Context {
|
|
156
|
+
/**
|
|
157
|
+
* 测速数据
|
|
158
|
+
*/
|
|
159
|
+
NetworkData?: NetworkData;
|
|
160
|
+
/**
|
|
161
|
+
* 用户期望最低门限
|
|
162
|
+
*/
|
|
163
|
+
ExpectedLowThreshold?: ExpectedThreshold;
|
|
164
|
+
/**
|
|
165
|
+
* 用户期望最高门限
|
|
166
|
+
*/
|
|
167
|
+
ExpectedHighThreshold?: ExpectedThreshold;
|
|
168
|
+
}
|
|
114
169
|
/**
|
|
115
170
|
* CreateQos返回参数结构体
|
|
116
171
|
*/
|
|
@@ -210,4 +265,12 @@ BU4M:带宽型保障 + 上行带宽保障4Mbps
|
|
|
210
265
|
3. TCP
|
|
211
266
|
*/
|
|
212
267
|
Protocol?: number;
|
|
268
|
+
/**
|
|
269
|
+
* 加速策略关键数据
|
|
270
|
+
*/
|
|
271
|
+
Context?: Context;
|
|
272
|
+
/**
|
|
273
|
+
* 签名
|
|
274
|
+
*/
|
|
275
|
+
Extern?: string;
|
|
213
276
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { ModifyAlarmPolicyNoticeResponse, ModifyAlarmPolicyInfoRequest, DescribeProductEventListRequest, DescribeServiceDiscoveryResponse, DescribeAlertRulesRequest, DescribePrometheusInstancesResponse, DescribePolicyGroupListResponse, BindingPolicyObjectRequest, CreateServiceDiscoveryResponse, PutMonitorDataResponse, DescribePolicyGroupInfoRequest, UpdateAlertRuleStateResponse, BindingPolicyTagResponse, DeleteServiceDiscoveryResponse, CreateAlarmPolicyRequest, DescribeAlarmEventsResponse, DescribePolicyGroupInfoResponse, ModifyAlarmPolicyNoticeRequest, DeleteAlarmPolicyRequest,
|
|
3
|
+
import { ModifyAlarmPolicyNoticeResponse, ModifyAlarmPolicyInfoRequest, DescribeProductEventListRequest, DescribeServiceDiscoveryResponse, DescribeAlertRulesRequest, DescribePrometheusInstancesResponse, DescribePolicyGroupListResponse, BindingPolicyObjectRequest, CreateServiceDiscoveryResponse, PutMonitorDataResponse, DescribePolicyGroupInfoRequest, UpdateAlertRuleStateResponse, BindingPolicyTagResponse, DeleteServiceDiscoveryResponse, CreateAlarmPolicyRequest, DescribeAlarmEventsResponse, DescribePolicyGroupInfoResponse, ModifyAlarmPolicyNoticeRequest, DeleteAlarmPolicyRequest, DescribeConditionsTemplateListRequest, CreateAlertRuleResponse, CreatePolicyGroupResponse, ModifyAlarmPolicyTasksResponse, DescribeBaseMetricsResponse, DeleteAlertRulesResponse, GetMonitorDataRequest, DescribeAlarmPoliciesResponse, DescribeStatisticDataRequest, SendCustomAlarmMsgRequest, UnBindingPolicyObjectRequest, DescribeServiceDiscoveryRequest, DescribePolicyConditionListRequest, DeletePolicyGroupResponse, DescribeAccidentEventListResponse, DescribeMonitorTypesRequest, DescribeAlarmNoticesResponse, ModifyAlarmPolicyTasksRequest, SetDefaultAlarmPolicyRequest, ModifyAlarmNoticeRequest, CreateServiceDiscoveryRequest, DescribeAlertRulesResponse, DescribeProductListRequest, CreateAlarmPolicyResponse, ModifyAlarmReceiversResponse, DescribePolicyConditionListResponse, DescribeAllNamespacesResponse, DeleteAlarmNoticesResponse, DescribeBasicAlarmListResponse, ModifyAlarmReceiversRequest, DescribeAlarmNoticeCallbacksRequest, ModifyAlarmPolicyConditionResponse, UpdateAlertRuleStateRequest, ModifyPolicyGroupRequest, DescribeAlarmHistoriesResponse, DescribeAlarmMetricsRequest, DescribeBaseMetricsRequest, DescribeAlarmNoticeCallbacksResponse, ModifyAlarmPolicyConditionRequest, ModifyAlarmPolicyStatusResponse, DeletePolicyGroupRequest, DescribeAlarmPolicyResponse, UpdateServiceDiscoveryResponse, DescribeMonitorTypesResponse, UpdateServiceDiscoveryRequest, CreateAlarmNoticeResponse, DescribeAlarmHistoriesRequest, ModifyPolicyGroupResponse, PutMonitorDataRequest, ModifyAlarmPolicyStatusRequest, BindingPolicyTagRequest, UpdateAlertRuleRequest, DescribeBindingPolicyObjectListResponse, DescribeBindingPolicyObjectListRequest, UnBindingPolicyObjectResponse, DeleteAlarmNoticesRequest, DescribeAllNamespacesRequest, UpdateAlertRuleResponse, DescribeAlarmMetricsResponse, DescribeAlarmPoliciesRequest, DescribeConditionsTemplateListResponse, ModifyAlarmPolicyInfoResponse, DescribeAlarmEventsRequest, ModifyAlarmNoticeResponse, CreateAlertRuleRequest, DescribeProductListResponse, DescribeProductEventListResponse, DeleteAlarmPolicyResponse, DescribeAlarmPolicyRequest, CreatePolicyGroupRequest, DescribeStatisticDataResponse, DescribePolicyGroupListRequest, DescribeBasicAlarmListRequest, UnBindingAllPolicyObjectResponse, DescribeAlarmNoticesRequest, DescribeAccidentEventListRequest, DescribeAlarmNoticeResponse, DeleteAlertRulesRequest, DescribeAlarmNoticeRequest, CreateAlarmNoticeRequest, GetMonitorDataResponse, UnBindingAllPolicyObjectRequest, SendCustomAlarmMsgResponse, DeleteServiceDiscoveryRequest, DescribePrometheusInstancesRequest, SetDefaultAlarmPolicyResponse, BindingPolicyObjectResponse } from "./monitor_models";
|
|
4
4
|
/**
|
|
5
5
|
* monitor client
|
|
6
6
|
* @class
|
|
@@ -35,6 +35,10 @@ export declare class Client extends AbstractClient {
|
|
|
35
35
|
* 发送自定义消息告警
|
|
36
36
|
*/
|
|
37
37
|
SendCustomAlarmMsg(req: SendCustomAlarmMsgRequest, cb?: (error: string, rep: SendCustomAlarmMsgResponse) => void): Promise<SendCustomAlarmMsgResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* 获取条件模板列表
|
|
40
|
+
*/
|
|
41
|
+
DescribeConditionsTemplateList(req: DescribeConditionsTemplateListRequest, cb?: (error: string, rep: DescribeConditionsTemplateListResponse) => void): Promise<DescribeConditionsTemplateListResponse>;
|
|
38
42
|
/**
|
|
39
43
|
* 获取已绑定对象列表
|
|
40
44
|
*/
|
|
@@ -65,6 +65,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
65
65
|
async SendCustomAlarmMsg(req, cb) {
|
|
66
66
|
return this.request("SendCustomAlarmMsg", req, cb);
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* 获取条件模板列表
|
|
70
|
+
*/
|
|
71
|
+
async DescribeConditionsTemplateList(req, cb) {
|
|
72
|
+
return this.request("DescribeConditionsTemplateList", req, cb);
|
|
73
|
+
}
|
|
68
74
|
/**
|
|
69
75
|
* 获取已绑定对象列表
|
|
70
76
|
*/
|
|
@@ -680,6 +680,33 @@ export interface PolicyTag {
|
|
|
680
680
|
*/
|
|
681
681
|
Value: string;
|
|
682
682
|
}
|
|
683
|
+
/**
|
|
684
|
+
* 事件告警条件
|
|
685
|
+
*/
|
|
686
|
+
export interface EventCondition {
|
|
687
|
+
/**
|
|
688
|
+
* 告警通知频率
|
|
689
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
690
|
+
*/
|
|
691
|
+
AlarmNotifyPeriod: string;
|
|
692
|
+
/**
|
|
693
|
+
* 重复通知策略预定义(0 - 只告警一次, 1 - 指数告警,2 - 连接告警)
|
|
694
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
695
|
+
*/
|
|
696
|
+
AlarmNotifyType: string;
|
|
697
|
+
/**
|
|
698
|
+
* 事件ID
|
|
699
|
+
*/
|
|
700
|
+
EventID: string;
|
|
701
|
+
/**
|
|
702
|
+
* 事件展示名称(对外)
|
|
703
|
+
*/
|
|
704
|
+
EventDisplayName: string;
|
|
705
|
+
/**
|
|
706
|
+
* 规则ID
|
|
707
|
+
*/
|
|
708
|
+
RuleID: string;
|
|
709
|
+
}
|
|
683
710
|
/**
|
|
684
711
|
* Prometheus 服务响应体
|
|
685
712
|
*/
|
|
@@ -853,25 +880,37 @@ export interface PrometheusInstancesItem {
|
|
|
853
880
|
GrafanaInstanceId: string;
|
|
854
881
|
}
|
|
855
882
|
/**
|
|
856
|
-
*
|
|
883
|
+
* DescribeConditionsTemplateList请求参数结构体
|
|
857
884
|
*/
|
|
858
|
-
export interface
|
|
885
|
+
export interface DescribeConditionsTemplateListRequest {
|
|
859
886
|
/**
|
|
860
|
-
*
|
|
887
|
+
* 固定值,为"monitor"
|
|
861
888
|
*/
|
|
862
|
-
|
|
889
|
+
Module: string;
|
|
863
890
|
/**
|
|
864
|
-
*
|
|
891
|
+
* 视图名,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
|
|
865
892
|
*/
|
|
866
|
-
|
|
893
|
+
ViewName?: string;
|
|
867
894
|
/**
|
|
868
|
-
*
|
|
895
|
+
* 根据触发条件模板名称过滤查询
|
|
869
896
|
*/
|
|
870
|
-
|
|
897
|
+
GroupName?: string;
|
|
871
898
|
/**
|
|
872
|
-
*
|
|
899
|
+
* 根据触发条件模板ID过滤查询
|
|
873
900
|
*/
|
|
874
|
-
|
|
901
|
+
GroupID?: string;
|
|
902
|
+
/**
|
|
903
|
+
* 分页参数,每页返回的数量,取值1~100,默认20
|
|
904
|
+
*/
|
|
905
|
+
Limit?: number;
|
|
906
|
+
/**
|
|
907
|
+
* 分页参数,页偏移量,从0开始计数,默认0
|
|
908
|
+
*/
|
|
909
|
+
Offset?: number;
|
|
910
|
+
/**
|
|
911
|
+
* 指定按更新时间的排序方式,asc=升序, desc=降序
|
|
912
|
+
*/
|
|
913
|
+
UpdateTimeOrder?: string;
|
|
875
914
|
}
|
|
876
915
|
/**
|
|
877
916
|
* CreateAlertRule返回参数结构体
|
|
@@ -1217,6 +1256,25 @@ export interface DeletePolicyGroupResponse {
|
|
|
1217
1256
|
*/
|
|
1218
1257
|
RequestId?: string;
|
|
1219
1258
|
}
|
|
1259
|
+
/**
|
|
1260
|
+
* DescribeAccidentEventList返回参数结构体
|
|
1261
|
+
*/
|
|
1262
|
+
export interface DescribeAccidentEventListResponse {
|
|
1263
|
+
/**
|
|
1264
|
+
* 平台事件列表
|
|
1265
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1266
|
+
*/
|
|
1267
|
+
Alarms?: Array<DescribeAccidentEventListAlarms>;
|
|
1268
|
+
/**
|
|
1269
|
+
* 平台事件的总数
|
|
1270
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1271
|
+
*/
|
|
1272
|
+
Total?: number;
|
|
1273
|
+
/**
|
|
1274
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1275
|
+
*/
|
|
1276
|
+
RequestId?: string;
|
|
1277
|
+
}
|
|
1220
1278
|
/**
|
|
1221
1279
|
* DescribeMonitorTypes请求参数结构体
|
|
1222
1280
|
*/
|
|
@@ -1953,6 +2011,58 @@ export interface PrometheusInstanceGrantInfo {
|
|
|
1953
2011
|
*/
|
|
1954
2012
|
HasApiOperation: number;
|
|
1955
2013
|
}
|
|
2014
|
+
/**
|
|
2015
|
+
* 模板列表
|
|
2016
|
+
*/
|
|
2017
|
+
export interface TemplateGroup {
|
|
2018
|
+
/**
|
|
2019
|
+
* 指标告警规则
|
|
2020
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2021
|
+
*/
|
|
2022
|
+
Conditions: Array<Condition>;
|
|
2023
|
+
/**
|
|
2024
|
+
* 事件告警规则
|
|
2025
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2026
|
+
*/
|
|
2027
|
+
EventConditions: Array<EventCondition>;
|
|
2028
|
+
/**
|
|
2029
|
+
* 关联告警策略组
|
|
2030
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2031
|
+
*/
|
|
2032
|
+
PolicyGroups: Array<PolicyGroup>;
|
|
2033
|
+
/**
|
|
2034
|
+
* 模板策略组ID
|
|
2035
|
+
*/
|
|
2036
|
+
GroupID: number;
|
|
2037
|
+
/**
|
|
2038
|
+
* 模板策略组名称
|
|
2039
|
+
*/
|
|
2040
|
+
GroupName: string;
|
|
2041
|
+
/**
|
|
2042
|
+
* 创建时间
|
|
2043
|
+
*/
|
|
2044
|
+
InsertTime: number;
|
|
2045
|
+
/**
|
|
2046
|
+
* 最后修改人UIN
|
|
2047
|
+
*/
|
|
2048
|
+
LastEditUin: number;
|
|
2049
|
+
/**
|
|
2050
|
+
* 备注
|
|
2051
|
+
*/
|
|
2052
|
+
Remark: string;
|
|
2053
|
+
/**
|
|
2054
|
+
* 更新时间
|
|
2055
|
+
*/
|
|
2056
|
+
UpdateTime: number;
|
|
2057
|
+
/**
|
|
2058
|
+
* 视图
|
|
2059
|
+
*/
|
|
2060
|
+
ViewName: string;
|
|
2061
|
+
/**
|
|
2062
|
+
* 是否为与关系
|
|
2063
|
+
*/
|
|
2064
|
+
IsUnionRule: number;
|
|
2065
|
+
}
|
|
1956
2066
|
/**
|
|
1957
2067
|
* 查询策略绑定对象列表接口返回的对象实例信息
|
|
1958
2068
|
*/
|
|
@@ -2742,6 +2852,75 @@ export interface DescribePolicyConditionListConfigManualCalcType {
|
|
|
2742
2852
|
*/
|
|
2743
2853
|
Need: boolean;
|
|
2744
2854
|
}
|
|
2855
|
+
/**
|
|
2856
|
+
* 告警条件
|
|
2857
|
+
*/
|
|
2858
|
+
export interface Condition {
|
|
2859
|
+
/**
|
|
2860
|
+
* 告警通知频率
|
|
2861
|
+
*/
|
|
2862
|
+
AlarmNotifyPeriod: number;
|
|
2863
|
+
/**
|
|
2864
|
+
* 重复通知策略预定义(0 - 只告警一次, 1 - 指数告警,2 - 连接告警)
|
|
2865
|
+
*/
|
|
2866
|
+
AlarmNotifyType: number;
|
|
2867
|
+
/**
|
|
2868
|
+
* 检测方式
|
|
2869
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2870
|
+
*/
|
|
2871
|
+
CalcType: string;
|
|
2872
|
+
/**
|
|
2873
|
+
* 检测值
|
|
2874
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2875
|
+
*/
|
|
2876
|
+
CalcValue: string;
|
|
2877
|
+
/**
|
|
2878
|
+
* 持续时间
|
|
2879
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2880
|
+
*/
|
|
2881
|
+
ContinueTime: string;
|
|
2882
|
+
/**
|
|
2883
|
+
* 指标ID
|
|
2884
|
+
*/
|
|
2885
|
+
MetricID: number;
|
|
2886
|
+
/**
|
|
2887
|
+
* 指标展示名称(对外)
|
|
2888
|
+
*/
|
|
2889
|
+
MetricDisplayName: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* 周期
|
|
2892
|
+
*/
|
|
2893
|
+
Period: number;
|
|
2894
|
+
/**
|
|
2895
|
+
* 规则ID
|
|
2896
|
+
*/
|
|
2897
|
+
RuleID: number;
|
|
2898
|
+
/**
|
|
2899
|
+
* 指标单位
|
|
2900
|
+
*/
|
|
2901
|
+
Unit: string;
|
|
2902
|
+
}
|
|
2903
|
+
/**
|
|
2904
|
+
* PutMonitorData请求参数结构体
|
|
2905
|
+
*/
|
|
2906
|
+
export interface PutMonitorDataRequest {
|
|
2907
|
+
/**
|
|
2908
|
+
* 一组指标和数据
|
|
2909
|
+
*/
|
|
2910
|
+
Metrics: Array<MetricDatum>;
|
|
2911
|
+
/**
|
|
2912
|
+
* 上报时自行指定的 IP
|
|
2913
|
+
*/
|
|
2914
|
+
AnnounceIp?: string;
|
|
2915
|
+
/**
|
|
2916
|
+
* 上报时自行指定的时间戳
|
|
2917
|
+
*/
|
|
2918
|
+
AnnounceTimestamp?: number;
|
|
2919
|
+
/**
|
|
2920
|
+
* 上报时自行指定的 IP 或 产品实例ID
|
|
2921
|
+
*/
|
|
2922
|
+
AnnounceInstance?: string;
|
|
2923
|
+
}
|
|
2745
2924
|
/**
|
|
2746
2925
|
* ModifyAlarmPolicyStatus请求参数结构体
|
|
2747
2926
|
*/
|
|
@@ -3152,6 +3331,76 @@ export interface DescribeAllNamespacesRequest {
|
|
|
3152
3331
|
*/
|
|
3153
3332
|
Ids?: Array<string>;
|
|
3154
3333
|
}
|
|
3334
|
+
/**
|
|
3335
|
+
* 策略组信息
|
|
3336
|
+
*/
|
|
3337
|
+
export interface PolicyGroup {
|
|
3338
|
+
/**
|
|
3339
|
+
* 是否可设为默认告警策略
|
|
3340
|
+
*/
|
|
3341
|
+
CanSetDefault: boolean;
|
|
3342
|
+
/**
|
|
3343
|
+
* 告警策略组ID
|
|
3344
|
+
*/
|
|
3345
|
+
GroupID: number;
|
|
3346
|
+
/**
|
|
3347
|
+
* 告警策略组名称
|
|
3348
|
+
*/
|
|
3349
|
+
GroupName: string;
|
|
3350
|
+
/**
|
|
3351
|
+
* 创建时间
|
|
3352
|
+
*/
|
|
3353
|
+
InsertTime: number;
|
|
3354
|
+
/**
|
|
3355
|
+
* 是否为默认告警策略
|
|
3356
|
+
*/
|
|
3357
|
+
IsDefault: number;
|
|
3358
|
+
/**
|
|
3359
|
+
* 告警策略启用状态
|
|
3360
|
+
*/
|
|
3361
|
+
Enable: boolean;
|
|
3362
|
+
/**
|
|
3363
|
+
* 最后修改人UIN
|
|
3364
|
+
*/
|
|
3365
|
+
LastEditUin: number;
|
|
3366
|
+
/**
|
|
3367
|
+
* 未屏蔽的实例数
|
|
3368
|
+
*/
|
|
3369
|
+
NoShieldedInstanceCount: number;
|
|
3370
|
+
/**
|
|
3371
|
+
* 父策略组ID
|
|
3372
|
+
*/
|
|
3373
|
+
ParentGroupID: number;
|
|
3374
|
+
/**
|
|
3375
|
+
* 所属项目ID
|
|
3376
|
+
*/
|
|
3377
|
+
ProjectID: number;
|
|
3378
|
+
/**
|
|
3379
|
+
* 告警接收对象信息
|
|
3380
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3381
|
+
*/
|
|
3382
|
+
ReceiverInfos: Array<PolicyGroupReceiverInfo>;
|
|
3383
|
+
/**
|
|
3384
|
+
* 备注信息
|
|
3385
|
+
*/
|
|
3386
|
+
Remark: string;
|
|
3387
|
+
/**
|
|
3388
|
+
* 修改时间
|
|
3389
|
+
*/
|
|
3390
|
+
UpdateTime: number;
|
|
3391
|
+
/**
|
|
3392
|
+
* 总绑定实例数
|
|
3393
|
+
*/
|
|
3394
|
+
TotalInstanceCount: number;
|
|
3395
|
+
/**
|
|
3396
|
+
* 视图
|
|
3397
|
+
*/
|
|
3398
|
+
ViewName: string;
|
|
3399
|
+
/**
|
|
3400
|
+
* 是否为与关系规则
|
|
3401
|
+
*/
|
|
3402
|
+
IsUnionRule: number;
|
|
3403
|
+
}
|
|
3155
3404
|
/**
|
|
3156
3405
|
* UpdateAlertRule返回参数结构体
|
|
3157
3406
|
*/
|
|
@@ -3246,6 +3495,8 @@ export interface DescribeAlarmPoliciesRequest {
|
|
|
3246
3495
|
具体也可以参考下方的示例 2。
|
|
3247
3496
|
|
|
3248
3497
|
不同云产品参数示例详见 [维度信息Dimensions列表](https://cloud.tencent.com/document/product/248/50397)
|
|
3498
|
+
|
|
3499
|
+
注意:如果NeedCorrespondence传入1,即需要返回策略与实例对应关系,请传入不多于20个告警对象维度,否则容易请求超时
|
|
3249
3500
|
*/
|
|
3250
3501
|
Dimensions?: string;
|
|
3251
3502
|
/**
|
|
@@ -3300,19 +3551,18 @@ export interface DescribeAlarmPoliciesRequest {
|
|
|
3300
3551
|
NeedCorrespondence?: number;
|
|
3301
3552
|
}
|
|
3302
3553
|
/**
|
|
3303
|
-
*
|
|
3554
|
+
* DescribeConditionsTemplateList返回参数结构体
|
|
3304
3555
|
*/
|
|
3305
|
-
export interface
|
|
3556
|
+
export interface DescribeConditionsTemplateListResponse {
|
|
3306
3557
|
/**
|
|
3307
|
-
*
|
|
3308
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
3558
|
+
* 模板总数
|
|
3309
3559
|
*/
|
|
3310
|
-
|
|
3560
|
+
Total: number;
|
|
3311
3561
|
/**
|
|
3312
|
-
*
|
|
3562
|
+
* 模板列表
|
|
3313
3563
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3314
3564
|
*/
|
|
3315
|
-
|
|
3565
|
+
TemplateGroupList: Array<TemplateGroup>;
|
|
3316
3566
|
/**
|
|
3317
3567
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3318
3568
|
*/
|
|
@@ -3444,6 +3694,69 @@ export interface MetricConfig {
|
|
|
3444
3694
|
*/
|
|
3445
3695
|
ContinuePeriod: Array<number>;
|
|
3446
3696
|
}
|
|
3697
|
+
/**
|
|
3698
|
+
* 2018版策略模板列表接收人信息
|
|
3699
|
+
*/
|
|
3700
|
+
export interface PolicyGroupReceiverInfo {
|
|
3701
|
+
/**
|
|
3702
|
+
* 有效时段结束时间
|
|
3703
|
+
*/
|
|
3704
|
+
EndTime: number;
|
|
3705
|
+
/**
|
|
3706
|
+
* 是否需要发送通知
|
|
3707
|
+
*/
|
|
3708
|
+
NeedSendNotice: number;
|
|
3709
|
+
/**
|
|
3710
|
+
* 告警接收渠道
|
|
3711
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3712
|
+
*/
|
|
3713
|
+
NotifyWay: Array<string>;
|
|
3714
|
+
/**
|
|
3715
|
+
* 电话告警对个人间隔(秒)
|
|
3716
|
+
*/
|
|
3717
|
+
PersonInterval: number;
|
|
3718
|
+
/**
|
|
3719
|
+
* 消息接收组列表
|
|
3720
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3721
|
+
*/
|
|
3722
|
+
ReceiverGroupList: Array<number>;
|
|
3723
|
+
/**
|
|
3724
|
+
* 接受者类型
|
|
3725
|
+
*/
|
|
3726
|
+
ReceiverType: string;
|
|
3727
|
+
/**
|
|
3728
|
+
* 接收人列表。通过平台接口查询到的接收人id列表
|
|
3729
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3730
|
+
*/
|
|
3731
|
+
ReceiverUserList: Array<number>;
|
|
3732
|
+
/**
|
|
3733
|
+
* 告警恢复通知方式
|
|
3734
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3735
|
+
*/
|
|
3736
|
+
RecoverNotify: Array<string>;
|
|
3737
|
+
/**
|
|
3738
|
+
* 电话告警每轮间隔(秒)
|
|
3739
|
+
*/
|
|
3740
|
+
RoundInterval: number;
|
|
3741
|
+
/**
|
|
3742
|
+
* 电话告警轮数
|
|
3743
|
+
*/
|
|
3744
|
+
RoundNumber: number;
|
|
3745
|
+
/**
|
|
3746
|
+
* 电话告警通知时机。可选"OCCUR"(告警时通知),"RECOVER"(恢复时通知)
|
|
3747
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3748
|
+
*/
|
|
3749
|
+
SendFor: Array<string>;
|
|
3750
|
+
/**
|
|
3751
|
+
* 有效时段开始时间
|
|
3752
|
+
*/
|
|
3753
|
+
StartTime: number;
|
|
3754
|
+
/**
|
|
3755
|
+
* 电话告警接收者uid
|
|
3756
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3757
|
+
*/
|
|
3758
|
+
UIDList: Array<number>;
|
|
3759
|
+
}
|
|
3447
3760
|
/**
|
|
3448
3761
|
* DescribeAlarmEvents请求参数结构体
|
|
3449
3762
|
*/
|
|
@@ -4277,7 +4590,7 @@ export interface DescribeAlarmNoticeResponse {
|
|
|
4277
4590
|
/**
|
|
4278
4591
|
* 告警通知模板详细信息
|
|
4279
4592
|
*/
|
|
4280
|
-
Notice
|
|
4593
|
+
Notice: AlarmNotice;
|
|
4281
4594
|
/**
|
|
4282
4595
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4283
4596
|
*/
|
|
@@ -1239,7 +1239,7 @@ export interface CreateTriggerRequest {
|
|
|
1239
1239
|
*/
|
|
1240
1240
|
Namespace?: string;
|
|
1241
1241
|
/**
|
|
1242
|
-
*
|
|
1242
|
+
* 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。
|
|
1243
1243
|
*/
|
|
1244
1244
|
Qualifier?: string;
|
|
1245
1245
|
/**
|
|
@@ -53,7 +53,7 @@ export declare class Client extends AbstractClient {
|
|
|
53
53
|
ListEmailAddress(req?: ListEmailAddressRequest, cb?: (error: string, rep: ListEmailAddressResponse) => void): Promise<ListEmailAddressResponse>;
|
|
54
54
|
/**
|
|
55
55
|
* 创建模板,该模板可以是TXT或者HTML,请注意如果HTML不要包含外部文件的CSS。模板中的变量使用 {{变量名}} 表示。
|
|
56
|
-
|
|
56
|
+
注意:模板需要审核通过才可以使用。
|
|
57
57
|
*/
|
|
58
58
|
CreateEmailTemplate(req: CreateEmailTemplateRequest, cb?: (error: string, rep: CreateEmailTemplateResponse) => void): Promise<CreateEmailTemplateResponse>;
|
|
59
59
|
/**
|
|
@@ -95,7 +95,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
97
|
* 创建模板,该模板可以是TXT或者HTML,请注意如果HTML不要包含外部文件的CSS。模板中的变量使用 {{变量名}} 表示。
|
|
98
|
-
|
|
98
|
+
注意:模板需要审核通过才可以使用。
|
|
99
99
|
*/
|
|
100
100
|
async CreateEmailTemplate(req, cb) {
|
|
101
101
|
return this.request("CreateEmailTemplate", req, cb);
|
|
@@ -688,6 +688,11 @@ export interface PullSmsSendStatus {
|
|
|
688
688
|
* 用户接收短信状态描述。
|
|
689
689
|
*/
|
|
690
690
|
Description: string;
|
|
691
|
+
/**
|
|
692
|
+
* 用户的 session 内容。与请求中的 SessionContext 一致,默认为空,如需开通请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
|
|
693
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
694
|
+
*/
|
|
695
|
+
SessionContext: string;
|
|
691
696
|
}
|
|
692
697
|
/**
|
|
693
698
|
* DescribeSmsSignList返回参数结构体
|
|
@@ -807,7 +807,7 @@ export declare class Client extends AbstractClient {
|
|
|
807
807
|
*/
|
|
808
808
|
DescribeCrossBorderCompliance(req: DescribeCrossBorderComplianceRequest, cb?: (error: string, rep: DescribeCrossBorderComplianceResponse) => void): Promise<DescribeCrossBorderComplianceResponse>;
|
|
809
809
|
/**
|
|
810
|
-
* 本接口(CreateAddressTemplateGroup)用于创建IP
|
|
810
|
+
* 本接口(CreateAddressTemplateGroup)用于创建IP地址模板集合
|
|
811
811
|
*/
|
|
812
812
|
CreateAddressTemplateGroup(req: CreateAddressTemplateGroupRequest, cb?: (error: string, rep: CreateAddressTemplateGroupResponse) => void): Promise<CreateAddressTemplateGroupResponse>;
|
|
813
813
|
/**
|
|
@@ -1155,7 +1155,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
1155
1155
|
return this.request("DescribeCrossBorderCompliance", req, cb);
|
|
1156
1156
|
}
|
|
1157
1157
|
/**
|
|
1158
|
-
* 本接口(CreateAddressTemplateGroup)用于创建IP
|
|
1158
|
+
* 本接口(CreateAddressTemplateGroup)用于创建IP地址模板集合
|
|
1159
1159
|
*/
|
|
1160
1160
|
async CreateAddressTemplateGroup(req, cb) {
|
|
1161
1161
|
return this.request("CreateAddressTemplateGroup", req, cb);
|
|
@@ -3241,11 +3241,11 @@ export interface DescribeNetDetectsRequest {
|
|
|
3241
3241
|
*/
|
|
3242
3242
|
export interface CreateAddressTemplateGroupRequest {
|
|
3243
3243
|
/**
|
|
3244
|
-
* IP
|
|
3244
|
+
* IP地址模板集合名称。
|
|
3245
3245
|
*/
|
|
3246
3246
|
AddressTemplateGroupName: string;
|
|
3247
3247
|
/**
|
|
3248
|
-
* IP
|
|
3248
|
+
* IP地址模板实例ID,例如:ipm-mdunqeb6。
|
|
3249
3249
|
*/
|
|
3250
3250
|
AddressTemplateIds: Array<string>;
|
|
3251
3251
|
}
|
|
@@ -8658,7 +8658,7 @@ export interface CreateAddressTemplateGroupResponse {
|
|
|
8658
8658
|
/**
|
|
8659
8659
|
* IP地址模板集合对象。
|
|
8660
8660
|
*/
|
|
8661
|
-
AddressTemplateGroup
|
|
8661
|
+
AddressTemplateGroup: AddressTemplateGroup;
|
|
8662
8662
|
/**
|
|
8663
8663
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
8664
8664
|
*/
|
|
@@ -10994,7 +10994,7 @@ export interface DescribeAddressTemplatesResponse {
|
|
|
10994
10994
|
*/
|
|
10995
10995
|
TotalCount: number;
|
|
10996
10996
|
/**
|
|
10997
|
-
* IP
|
|
10997
|
+
* IP地址模板。
|
|
10998
10998
|
*/
|
|
10999
10999
|
AddressTemplateSet: Array<AddressTemplate>;
|
|
11000
11000
|
/**
|
|
@@ -58,6 +58,16 @@ it("ame.v20190916.DescribeAuthInfo", async function () {
|
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
60
|
|
|
61
|
+
it("ame.v20190916.BatchDescribeKTVMusicDetails", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.BatchDescribeKTVMusicDetails({})
|
|
64
|
+
expect(data).to.be.ok
|
|
65
|
+
} catch(error) {
|
|
66
|
+
expect(error.requestId).to.be.ok
|
|
67
|
+
expect(error.code).to.be.ok
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
61
71
|
it("ame.v20190916.DescribeCloudMusicPurchased", async function () {
|
|
62
72
|
try {
|
|
63
73
|
const data = await client.DescribeCloudMusicPurchased({})
|
|
@@ -108,6 +108,16 @@ it("cii.v20210408.DescribeStructCompareData", async function () {
|
|
|
108
108
|
}
|
|
109
109
|
})
|
|
110
110
|
|
|
111
|
+
it("cii.v20210408.DescribeQualityScore", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.DescribeQualityScore({})
|
|
114
|
+
expect(data).to.be.ok
|
|
115
|
+
} catch(error) {
|
|
116
|
+
expect(error.requestId).to.be.ok
|
|
117
|
+
expect(error.code).to.be.ok
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
|
|
111
121
|
it("cii.v20210408.DescribeStructureResult", async function () {
|
|
112
122
|
try {
|
|
113
123
|
const data = await client.DescribeStructureResult({})
|