tencentcloud-sdk-nodejs 4.0.779 → 4.0.781

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/SERVICE_CHANGELOG.md +183 -52
  3. package/package.json +1 -1
  4. package/products.md +16 -16
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/antiddos/v20200309/antiddos_models.ts +16 -6
  7. package/src/services/dts/v20211206/dts_models.ts +6 -1
  8. package/src/services/faceid/v20180301/faceid_models.ts +8 -0
  9. package/src/services/monitor/v20180724/monitor_client.ts +88 -21
  10. package/src/services/monitor/v20180724/monitor_models.ts +489 -139
  11. package/src/services/ocr/v20181119/ocr_models.ts +9 -1
  12. package/src/services/rum/v20210622/rum_client.ts +36 -72
  13. package/src/services/rum/v20210622/rum_models.ts +36 -120
  14. package/src/services/tcb/v20180608/tcb_models.ts +9 -0
  15. package/src/services/tdid/v20210519/tdid_client.ts +135 -24
  16. package/src/services/tdid/v20210519/tdid_models.ts +520 -113
  17. package/src/services/tdmq/v20200217/tdmq_client.ts +12 -0
  18. package/src/services/tdmq/v20200217/tdmq_models.ts +95 -0
  19. package/src/services/teo/v20220901/teo_models.ts +7 -5
  20. package/src/services/tse/v20201207/tse_models.ts +1 -1
  21. package/src/services/tsf/v20180326/tsf_models.ts +14 -9
  22. package/tencentcloud/common/sdk_version.d.ts +1 -1
  23. package/tencentcloud/common/sdk_version.js +1 -1
  24. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +16 -6
  25. package/tencentcloud/services/dts/v20211206/dts_models.d.ts +6 -1
  26. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +8 -0
  27. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +28 -5
  28. package/tencentcloud/services/monitor/v20180724/monitor_client.js +39 -6
  29. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +473 -137
  30. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +9 -1
  31. package/tencentcloud/services/rum/v20210622/rum_client.d.ts +13 -25
  32. package/tencentcloud/services/rum/v20210622/rum_client.js +18 -36
  33. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +36 -114
  34. package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +9 -0
  35. package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +41 -5
  36. package/tencentcloud/services/tdid/v20210519/tdid_client.js +60 -6
  37. package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +498 -112
  38. package/tencentcloud/services/tdmq/v20200217/tdmq_client.d.ts +5 -1
  39. package/tencentcloud/services/tdmq/v20200217/tdmq_client.js +6 -0
  40. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +93 -0
  41. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +7 -5
  42. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +1 -1
  43. package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +14 -9
  44. package/test/monitor.v20180724.test.js +54 -4
  45. package/test/rum.v20210622.test.js +14 -44
  46. package/test/tdid.v20210519.test.js +100 -10
  47. package/test/tdmq.v20200217.test.js +10 -0
@@ -71,11 +71,12 @@ import {
71
71
  AlarmGroupByItem,
72
72
  DescribeAlarmNoticeCallbacksResponse,
73
73
  DescribePrometheusInstanceUsageRequest,
74
- DeletePrometheusScrapeJobsRequest,
74
+ DeleteSSOAccountRequest,
75
75
  CreatePrometheusRecordRuleYamlRequest,
76
76
  Instance,
77
77
  DescribeAlarmNoticesResponse,
78
78
  PrometheusClusterAgentPodConfig,
79
+ DeletePrometheusAlertGroupsRequest,
79
80
  GrafanaInstanceInfo,
80
81
  DeletePrometheusConfigResponse,
81
82
  CreatePrometheusRecordRuleYamlResponse,
@@ -91,6 +92,7 @@ import {
91
92
  DescribePolicyGroupInfoConditionTpl,
92
93
  UnBindingPolicyObjectResponse,
93
94
  DescribePrometheusRecordRulesRequest,
95
+ ModifyAlarmPolicyStatusResponse,
94
96
  DescribeExporterIntegrationsResponse,
95
97
  UpdateAlertRuleResponse,
96
98
  InstanceGroup,
@@ -99,11 +101,11 @@ import {
99
101
  EnableGrafanaInternetRequest,
100
102
  DescribePluginOverviewsResponse,
101
103
  GrafanaAccountRole,
102
- DestroyPrometheusInstanceRequest,
104
+ DeleteRecordingRulesResponse,
103
105
  PolicyGroupReceiverInfo,
104
106
  Metric,
105
107
  MidQueryCondition,
106
- DeleteSSOAccountRequest,
108
+ DescribeGrafanaInstancesRequest,
107
109
  DescribePrometheusAgentInstancesResponse,
108
110
  URLNotice,
109
111
  DescribeProductListResponse,
@@ -112,8 +114,7 @@ import {
112
114
  DescribePolicyGroupInfoReceiverInfo,
113
115
  RecordingRuleSet,
114
116
  DescribeBasicAlarmListRequest,
115
- ModifyAlarmPolicyStatusResponse,
116
- DescribeGrafanaInstancesRequest,
117
+ DescribePrometheusAlertGroupsResponse,
117
118
  DescribePrometheusTempSyncRequest,
118
119
  DescribePrometheusGlobalConfigResponse,
119
120
  CreateRecordingRuleResponse,
@@ -130,7 +131,7 @@ import {
130
131
  SendCustomAlarmMsgResponse,
131
132
  AlarmPolicyCondition,
132
133
  DescribeGrafanaChannelsRequest,
133
- DescribePolicyGroupListRequest,
134
+ NoticeBindPolicys,
134
135
  DescribeGrafanaConfigRequest,
135
136
  UpdateRecordingRuleRequest,
136
137
  DescribePolicyConditionListConfigManualCalcValue,
@@ -146,11 +147,13 @@ import {
146
147
  BindingPolicyObjectRequest,
147
148
  CreateServiceDiscoveryResponse,
148
149
  DescribeClusterAgentCreatingProgressRequest,
150
+ UpdatePrometheusAlertGroupRequest,
149
151
  EnableSSOCamCheckResponse,
150
152
  DescribeAccidentEventListRequest,
151
153
  CreatePrometheusScrapeJobResponse,
152
154
  CreateAlarmPolicyRequest,
153
155
  PrometheusZoneItem,
156
+ PrometheusAlertCustomReceiver,
154
157
  ModifyPrometheusAlertPolicyRequest,
155
158
  ModifyPrometheusInstanceAttributesResponse,
156
159
  PrometheusTemplateSyncTarget,
@@ -164,6 +167,7 @@ import {
164
167
  DescribePolicyConditionListConfigManualPeriod,
165
168
  DescribePrometheusRecordRulesResponse,
166
169
  DescribePrometheusGlobalNotificationResponse,
170
+ PrometheusAlertGroupRuleSet,
167
171
  DescribeMonitorTypesRequest,
168
172
  DimensionsDesc,
169
173
  DeletePrometheusAlertPolicyRequest,
@@ -185,8 +189,10 @@ import {
185
189
  UpdatePrometheusScrapeJobRequest,
186
190
  PrometheusAgentInfo,
187
191
  CreatePrometheusClusterAgentResponse,
192
+ PrometheusAlertAllowTimeRange,
188
193
  CreateGrafanaIntegrationResponse,
189
194
  BindPrometheusManagedGrafanaRequest,
195
+ UpdatePrometheusAlertGroupStateRequest,
190
196
  PrometheusAlertManagerConfig,
191
197
  CreateGrafanaInstanceRequest,
192
198
  DescribePrometheusInstanceUsageResponse,
@@ -212,6 +218,7 @@ import {
212
218
  UpdateDNSConfigRequest,
213
219
  DeletePrometheusClusterAgentResponse,
214
220
  DescribeDNSConfigResponse,
221
+ DestroyPrometheusInstanceRequest,
215
222
  DeleteRecordingRulesRequest,
216
223
  MonitorTypeNamespace,
217
224
  DeleteAlarmPolicyResponse,
@@ -270,6 +277,7 @@ import {
270
277
  DescribeSSOAccountResponse,
271
278
  CreateAlarmPolicyResponse,
272
279
  DeleteGrafanaNotificationChannelRequest,
280
+ CreatePrometheusAlertGroupRequest,
273
281
  AlarmNotice,
274
282
  DescribeProductEventListEventsDimensions,
275
283
  CreatePrometheusClusterAgentRequest,
@@ -316,6 +324,7 @@ import {
316
324
  UnbindPrometheusManagedGrafanaRequest,
317
325
  DescribePolicyGroupListGroupInstanceGroup,
318
326
  DescribeConditionsTemplateListResponse,
327
+ DeletePrometheusAlertGroupsResponse,
319
328
  CreatePrometheusTempRequest,
320
329
  ModifyAlarmPolicyInfoResponse,
321
330
  MetricConfig,
@@ -332,7 +341,7 @@ import {
332
341
  CreatePrometheusScrapeJobRequest,
333
342
  CreatePrometheusTempResponse,
334
343
  DescribePolicyConditionListEventMetric,
335
- NoticeBindPolicys,
344
+ DescribePolicyGroupListRequest,
336
345
  UnBindingAllPolicyObjectResponse,
337
346
  DescribeAlarmNoticesRequest,
338
347
  RunPrometheusInstanceResponse,
@@ -356,7 +365,6 @@ import {
356
365
  CreatePrometheusGlobalNotificationRequest,
357
366
  ModifyPrometheusTempResponse,
358
367
  DescribeRecordingRulesResponse,
359
- DeleteRecordingRulesResponse,
360
368
  UpdateGrafanaWhiteListRequest,
361
369
  UpdatePrometheusAgentStatusRequest,
362
370
  DescribeGrafanaInstancesResponse,
@@ -376,6 +384,7 @@ import {
376
384
  MonitorTypeInfo,
377
385
  DimensionNew,
378
386
  DeleteAlertRulesResponse,
387
+ DeletePrometheusScrapeJobsRequest,
379
388
  ModifyAlarmPolicyStatusRequest,
380
389
  ConditionsTemp,
381
390
  Operator,
@@ -398,6 +407,7 @@ import {
398
407
  DescribePrometheusGlobalConfigRequest,
399
408
  PrometheusInstanceTenantUsage,
400
409
  DescribePrometheusZonesRequest,
410
+ DescribePrometheusAlertGroupsRequest,
401
411
  ModifyPolicyGroupCondition,
402
412
  ModifyPolicyGroupRequest,
403
413
  DescribeBaseMetricsRequest,
@@ -410,6 +420,7 @@ import {
410
420
  BindingPolicyObjectDimension,
411
421
  DescribePrometheusTempRequest,
412
422
  UpdateServiceDiscoveryResponse,
423
+ UpdatePrometheusAlertGroupStateResponse,
413
424
  DescribeBasicAlarmListAlarms,
414
425
  CreateAlarmNoticeResponse,
415
426
  Condition,
@@ -417,10 +428,11 @@ import {
417
428
  PrometheusAgentOverview,
418
429
  Filter,
419
430
  DescribeProductEventListEventsGroupInfo,
420
- UpdateSSOAccountRequest,
431
+ UpdatePrometheusAlertGroupResponse,
421
432
  CreateSSOAccountResponse,
422
433
  UpdatePrometheusScrapeJobResponse,
423
434
  DescribeAlarmPoliciesRequest,
435
+ UpdateSSOAccountRequest,
424
436
  DescribePolicyConditionListConfigManualStatType,
425
437
  IntegrationConfiguration,
426
438
  DescribePrometheusAgentsResponse,
@@ -432,10 +444,12 @@ import {
432
444
  DescribeAlarmPolicyRequest,
433
445
  UninstallGrafanaDashboardRequest,
434
446
  UpdateGrafanaIntegrationRequest,
447
+ CreatePrometheusAlertGroupResponse,
435
448
  DeletePrometheusRecordRuleYamlRequest,
436
449
  DescribeAlarmNoticeCallbacksRequest,
437
450
  DescribeStatisticDataRequest,
438
451
  GrafanaNotificationChannel,
452
+ PrometheusAlertGroupSet,
439
453
  SetDefaultAlarmPolicyRequest,
440
454
  CLSNotice,
441
455
  LogAlarmReq,
@@ -520,6 +534,16 @@ export class Client extends AbstractClient {
520
534
  return this.request("ModifyPrometheusAlertPolicy", req, cb)
521
535
  }
522
536
 
537
+ /**
538
+ * 查询给定prometheus下的告警分组
539
+ */
540
+ async DescribePrometheusAlertGroups(
541
+ req: DescribePrometheusAlertGroupsRequest,
542
+ cb?: (error: string, rep: DescribePrometheusAlertGroupsResponse) => void
543
+ ): Promise<DescribePrometheusAlertGroupsResponse> {
544
+ return this.request("DescribePrometheusAlertGroups", req, cb)
545
+ }
546
+
523
547
  /**
524
548
  * 查询Prometheus按量实例用量
525
549
  */
@@ -550,6 +574,16 @@ export class Client extends AbstractClient {
550
574
  return this.request("BindingPolicyObject", req, cb)
551
575
  }
552
576
 
577
+ /**
578
+ * 删除Prometheus告警规则分组
579
+ */
580
+ async DeletePrometheusAlertGroups(
581
+ req: DeletePrometheusAlertGroupsRequest,
582
+ cb?: (error: string, rep: DeletePrometheusAlertGroupsResponse) => void
583
+ ): Promise<DeletePrometheusAlertGroupsResponse> {
584
+ return this.request("DeletePrometheusAlertGroups", req, cb)
585
+ }
586
+
553
587
  /**
554
588
  * 本接口(CreateGrafanaInstance)用于创建 Grafana 包年包月实例,默认基础版、到期自动续费、不可使用代金券。
555
589
  */
@@ -1067,13 +1101,13 @@ export class Client extends AbstractClient {
1067
1101
  }
1068
1102
 
1069
1103
  /**
1070
- * 创建通知模板
1104
+ * 创建全局告警通知渠道。集群内创建的告警规则如果未配置告警通知渠道,默认走全局告警通知渠道(建议在控制台创建告警,集群内创建告警不易维护)
1071
1105
  */
1072
- async CreateAlarmNotice(
1073
- req: CreateAlarmNoticeRequest,
1074
- cb?: (error: string, rep: CreateAlarmNoticeResponse) => void
1075
- ): Promise<CreateAlarmNoticeResponse> {
1076
- return this.request("CreateAlarmNotice", req, cb)
1106
+ async CreatePrometheusGlobalNotification(
1107
+ req: CreatePrometheusGlobalNotificationRequest,
1108
+ cb?: (error: string, rep: CreatePrometheusGlobalNotificationResponse) => void
1109
+ ): Promise<CreatePrometheusGlobalNotificationResponse> {
1110
+ return this.request("CreatePrometheusGlobalNotification", req, cb)
1077
1111
  }
1078
1112
 
1079
1113
  /**
@@ -1086,6 +1120,16 @@ export class Client extends AbstractClient {
1086
1120
  return this.request("DeleteSSOAccount", req, cb)
1087
1121
  }
1088
1122
 
1123
+ /**
1124
+ * 批量更新告警分组状态,将分组中全部告警规则更新为目标状态
1125
+ */
1126
+ async UpdatePrometheusAlertGroupState(
1127
+ req: UpdatePrometheusAlertGroupStateRequest,
1128
+ cb?: (error: string, rep: UpdatePrometheusAlertGroupStateResponse) => void
1129
+ ): Promise<UpdatePrometheusAlertGroupStateResponse> {
1130
+ return this.request("UpdatePrometheusAlertGroupState", req, cb)
1131
+ }
1132
+
1089
1133
  /**
1090
1134
  * 查询单个通知模板的详情
1091
1135
  */
@@ -1278,13 +1322,13 @@ export class Client extends AbstractClient {
1278
1322
  }
1279
1323
 
1280
1324
  /**
1281
- * 创建全局告警通知渠道。集群内创建的告警规则如果未配置告警通知渠道,默认走全局告警通知渠道(建议在控制台创建告警,集群内创建告警不易维护)
1325
+ * 创建通知模板
1282
1326
  */
1283
- async CreatePrometheusGlobalNotification(
1284
- req: CreatePrometheusGlobalNotificationRequest,
1285
- cb?: (error: string, rep: CreatePrometheusGlobalNotificationResponse) => void
1286
- ): Promise<CreatePrometheusGlobalNotificationResponse> {
1287
- return this.request("CreatePrometheusGlobalNotification", req, cb)
1327
+ async CreateAlarmNotice(
1328
+ req: CreateAlarmNoticeRequest,
1329
+ cb?: (error: string, rep: CreateAlarmNoticeResponse) => void
1330
+ ): Promise<CreateAlarmNoticeResponse> {
1331
+ return this.request("CreateAlarmNotice", req, cb)
1288
1332
  }
1289
1333
 
1290
1334
  /**
@@ -1387,6 +1431,19 @@ export class Client extends AbstractClient {
1387
1431
  return this.request("DescribeDNSConfig", req, cb)
1388
1432
  }
1389
1433
 
1434
+ /**
1435
+ * 创建Prometheus告警规则分组
1436
+
1437
+ 告警分组中可包含多条告警规则,分组内告警消息通过告警分组的通知模板发送。
1438
+ 支持单个告警分组下分别创建启用/禁用的告警规则。
1439
+ */
1440
+ async CreatePrometheusAlertGroup(
1441
+ req: CreatePrometheusAlertGroupRequest,
1442
+ cb?: (error: string, rep: CreatePrometheusAlertGroupResponse) => void
1443
+ ): Promise<CreatePrometheusAlertGroupResponse> {
1444
+ return this.request("CreatePrometheusAlertGroup", req, cb)
1445
+ }
1446
+
1390
1447
  /**
1391
1448
  * 修改全局告警通知渠道
1392
1449
  */
@@ -1461,6 +1518,16 @@ export class Client extends AbstractClient {
1461
1518
  return this.request("UpdateGrafanaConfig", req, cb)
1462
1519
  }
1463
1520
 
1521
+ /**
1522
+ * 更新Prometheus告警规则分组
1523
+ */
1524
+ async UpdatePrometheusAlertGroup(
1525
+ req: UpdatePrometheusAlertGroupRequest,
1526
+ cb?: (error: string, rep: UpdatePrometheusAlertGroupResponse) => void
1527
+ ): Promise<UpdatePrometheusAlertGroupResponse> {
1528
+ return this.request("UpdatePrometheusAlertGroup", req, cb)
1529
+ }
1530
+
1464
1531
  /**
1465
1532
  * 列出 Grafana 告警通道
1466
1533
  */