tencentcloud-sdk-nodejs 4.0.343 → 4.0.344

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 (55) hide show
  1. package/CHANGELOG.md +304 -0
  2. package/SERVICE_CHANGELOG.md +493 -25
  3. package/package.json +1 -1
  4. package/products.md +14 -14
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cdn/v20180606/cdn_models.ts +1 -1
  7. package/src/services/cpdp/v20190820/cpdp_client.ts +94 -21
  8. package/src/services/cpdp/v20190820/cpdp_models.ts +895 -387
  9. package/src/services/cvm/v20170312/cvm_models.ts +5 -0
  10. package/src/services/dlc/v20210125/dlc_models.ts +24 -0
  11. package/src/services/ecm/v20190719/ecm_models.ts +6 -0
  12. package/src/services/emr/v20190103/emr_client.ts +135 -108
  13. package/src/services/emr/v20190103/emr_models.ts +329 -57
  14. package/src/services/iotcloud/v20210408/iotcloud_client.ts +27 -2
  15. package/src/services/iotcloud/v20210408/iotcloud_models.ts +144 -30
  16. package/src/services/lighthouse/v20200324/lighthouse_client.ts +1 -1
  17. package/src/services/lighthouse/v20200324/lighthouse_models.ts +17 -1
  18. package/src/services/live/v20180801/live_models.ts +1 -1
  19. package/src/services/sqlserver/v20180328/sqlserver_models.ts +101 -80
  20. package/src/services/ssl/v20191205/ssl_client.ts +15 -2
  21. package/src/services/ssl/v20191205/ssl_models.ts +89 -31
  22. package/src/services/tke/v20180525/tke_client.ts +61 -18
  23. package/src/services/tke/v20180525/tke_models.ts +783 -46
  24. package/src/services/tsf/v20180326/tsf_models.ts +4 -3
  25. package/tencentcloud/common/sdk_version.d.ts +1 -1
  26. package/tencentcloud/common/sdk_version.js +1 -1
  27. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +1 -1
  28. package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +29 -5
  29. package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +42 -6
  30. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +785 -360
  31. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +4 -0
  32. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +20 -0
  33. package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +5 -0
  34. package/tencentcloud/services/emr/v20190103/emr_client.d.ts +47 -39
  35. package/tencentcloud/services/emr/v20190103/emr_client.js +69 -57
  36. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +278 -50
  37. package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.d.ts +9 -1
  38. package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.js +12 -0
  39. package/tencentcloud/services/iotcloud/v20210408/iotcloud_models.d.ts +124 -27
  40. package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.d.ts +1 -1
  41. package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +16 -1
  42. package/tencentcloud/services/live/v20180801/live_models.d.ts +1 -1
  43. package/tencentcloud/services/sqlserver/v20180328/sqlserver_models.d.ts +95 -78
  44. package/tencentcloud/services/ssl/v20191205/ssl_client.d.ts +5 -1
  45. package/tencentcloud/services/ssl/v20191205/ssl_client.js +6 -0
  46. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +77 -27
  47. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +27 -15
  48. package/tencentcloud/services/tke/v20180525/tke_client.js +18 -0
  49. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +671 -40
  50. package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +2 -1
  51. package/test/cpdp.v20190820.test.js +64 -4
  52. package/test/emr.v20190103.test.js +60 -40
  53. package/test/iotcloud.v20210408.test.js +20 -0
  54. package/test/ssl.v20191205.test.js +10 -0
  55. package/test/tke.v20180525.test.js +30 -0
@@ -198,7 +198,24 @@ export interface DescribeEKSClustersRequest {
198
198
  /**
199
199
  * DescribePrometheusInstancesOverview请求参数结构体
200
200
  */
201
- export type DescribePrometheusInstancesOverviewRequest = null
201
+ export interface DescribePrometheusInstancesOverviewRequest {
202
+ /**
203
+ * 用于分页
204
+ */
205
+ Offset?: number
206
+
207
+ /**
208
+ * 用于分页
209
+ */
210
+ Limit?: number
211
+
212
+ /**
213
+ * 过滤实例,目前支持:
214
+ ID: 通过实例ID来过滤
215
+ Name: 通过实例名称来过滤
216
+ */
217
+ Filters?: Array<Filter>
218
+ }
202
219
 
203
220
  /**
204
221
  * ServiceAccount认证相关配置
@@ -455,6 +472,56 @@ export interface ClusterAsGroup {
455
472
  CreatedTime: string
456
473
  }
457
474
 
475
+ /**
476
+ * 云原生Prometheus模板可修改项
477
+ */
478
+ export interface PrometheusTempModify {
479
+ /**
480
+ * 修改名称
481
+ */
482
+ Name?: string
483
+
484
+ /**
485
+ * 修改描述
486
+ 注意:此字段可能返回 null,表示取不到有效值。
487
+ */
488
+ Describe?: string
489
+
490
+ /**
491
+ * 当Level为cluster时有效,
492
+ 模板中的ServiceMonitor规则列表
493
+ 注意:此字段可能返回 null,表示取不到有效值。
494
+ */
495
+ ServiceMonitors?: Array<PrometheusConfigItem>
496
+
497
+ /**
498
+ * 当Level为cluster时有效,
499
+ 模板中的PodMonitors规则列表
500
+ 注意:此字段可能返回 null,表示取不到有效值。
501
+ */
502
+ PodMonitors?: Array<PrometheusConfigItem>
503
+
504
+ /**
505
+ * 当Level为cluster时有效,
506
+ 模板中的RawJobs规则列表
507
+ 注意:此字段可能返回 null,表示取不到有效值。
508
+ */
509
+ RawJobs?: Array<PrometheusConfigItem>
510
+
511
+ /**
512
+ * 当Level为instance时有效,
513
+ 模板中的聚合规则列表
514
+ 注意:此字段可能返回 null,表示取不到有效值。
515
+ */
516
+ RecordRules?: Array<PrometheusConfigItem>
517
+
518
+ /**
519
+ * 修改内容,只有当模板类型是Alert时生效
520
+ 注意:此字段可能返回 null,表示取不到有效值。
521
+ */
522
+ AlertDetailRules?: Array<PrometheusAlertPolicyItem>
523
+ }
524
+
458
525
  /**
459
526
  * EnableClusterAudit返回参数结构体
460
527
  */
@@ -777,6 +844,38 @@ export interface RegionInstance {
777
844
  Remark: string
778
845
  }
779
846
 
847
+ /**
848
+ * prometheus聚合规则实例详情,包含所属集群ID
849
+ */
850
+ export interface PrometheusRecordRuleYamlItem {
851
+ /**
852
+ * 实例名称
853
+ */
854
+ Name: string
855
+
856
+ /**
857
+ * 最近更新时间
858
+ */
859
+ UpdateTime: string
860
+
861
+ /**
862
+ * Yaml内容
863
+ */
864
+ TemplateId: string
865
+
866
+ /**
867
+ * 如果该聚合规则来至模板,则TemplateId为模板id
868
+ 注意:此字段可能返回 null,表示取不到有效值。
869
+ */
870
+ Content: string
871
+
872
+ /**
873
+ * 该聚合规则如果来源于用户集群crd资源定义,则ClusterId为所属集群ID
874
+ 注意:此字段可能返回 null,表示取不到有效值。
875
+ */
876
+ ClusterId: string
877
+ }
878
+
780
879
  /**
781
880
  * k8s中标签,一般以数组的方式存在
782
881
  */
@@ -1070,6 +1169,92 @@ export interface AddNodeToNodePoolResponse {
1070
1169
  RequestId?: string
1071
1170
  }
1072
1171
 
1172
+ /**
1173
+ * 托管prometheusV2实例概览
1174
+ */
1175
+ export interface PrometheusInstancesOverview {
1176
+ /**
1177
+ * 实例ID
1178
+ */
1179
+ InstanceId: string
1180
+
1181
+ /**
1182
+ * 实例名
1183
+ */
1184
+ InstanceName: string
1185
+
1186
+ /**
1187
+ * VPC ID
1188
+ */
1189
+ VpcId: string
1190
+
1191
+ /**
1192
+ * 子网ID
1193
+ */
1194
+ SubnetId: string
1195
+
1196
+ /**
1197
+ * 运行状态(1:正在创建;2:运行中;3:异常;4:重启中;5:销毁中; 6:已停机; 7: 已删除)
1198
+ */
1199
+ InstanceStatus: number
1200
+
1201
+ /**
1202
+ * 计费状态(1:正常;2:过期; 3:销毁; 4:分配中; 5:分配失败)
1203
+ 注意:此字段可能返回 null,表示取不到有效值。
1204
+ */
1205
+ ChargeStatus: number
1206
+
1207
+ /**
1208
+ * 是否开启 Grafana(0:不开启,1:开启)
1209
+ */
1210
+ EnableGrafana: number
1211
+
1212
+ /**
1213
+ * Grafana 面板 URL
1214
+ 注意:此字段可能返回 null,表示取不到有效值。
1215
+ */
1216
+ GrafanaURL: string
1217
+
1218
+ /**
1219
+ * 实例付费类型(1:试用版;2:预付费)
1220
+ */
1221
+ InstanceChargeType: number
1222
+
1223
+ /**
1224
+ * 规格名称
1225
+ 注意:此字段可能返回 null,表示取不到有效值。
1226
+ */
1227
+ SpecName: string
1228
+
1229
+ /**
1230
+ * 存储周期
1231
+ 注意:此字段可能返回 null,表示取不到有效值。
1232
+ */
1233
+ DataRetentionTime: number
1234
+
1235
+ /**
1236
+ * 购买的实例过期时间
1237
+ 注意:此字段可能返回 null,表示取不到有效值。
1238
+ */
1239
+ ExpireTime: string
1240
+
1241
+ /**
1242
+ * 自动续费标记(0:不自动续费;1:开启自动续费;2:禁止自动续费;-1:无效)
1243
+ 注意:此字段可能返回 null,表示取不到有效值。
1244
+ */
1245
+ AutoRenewFlag: number
1246
+
1247
+ /**
1248
+ * 绑定集群总数
1249
+ */
1250
+ BoundTotal: number
1251
+
1252
+ /**
1253
+ * 绑定集群正常状态总数
1254
+ */
1255
+ BoundNormal: number
1256
+ }
1257
+
1073
1258
  /**
1074
1259
  * DisableEventPersistence返回参数结构体
1075
1260
  */
@@ -1440,7 +1625,17 @@ export interface PodLimitsInstance {
1440
1625
  /**
1441
1626
  * ModifyPrometheusTemp请求参数结构体
1442
1627
  */
1443
- export type ModifyPrometheusTempRequest = null
1628
+ export interface ModifyPrometheusTempRequest {
1629
+ /**
1630
+ * 模板ID
1631
+ */
1632
+ TemplateId: string
1633
+
1634
+ /**
1635
+ * 修改内容
1636
+ */
1637
+ Template: PrometheusTempModify
1638
+ }
1444
1639
 
1445
1640
  /**
1446
1641
  * 集群中控制器的状态描述
@@ -1470,7 +1665,27 @@ export interface DeletePrometheusTempSyncResponse {
1470
1665
  /**
1471
1666
  * DescribePrometheusRecordRules请求参数结构体
1472
1667
  */
1473
- export type DescribePrometheusRecordRulesRequest = null
1668
+ export interface DescribePrometheusRecordRulesRequest {
1669
+ /**
1670
+ * 实例id
1671
+ */
1672
+ InstanceId: string
1673
+
1674
+ /**
1675
+ * 分页
1676
+ */
1677
+ Offset?: number
1678
+
1679
+ /**
1680
+ * 分页
1681
+ */
1682
+ Limit?: number
1683
+
1684
+ /**
1685
+ * 过滤
1686
+ */
1687
+ Filters?: Array<Filter>
1688
+ }
1474
1689
 
1475
1690
  /**
1476
1691
  * AcquireClusterAdminRole返回参数结构体
@@ -1835,12 +2050,27 @@ export interface DescribeClusterNodePoolDetailRequest {
1835
2050
  /**
1836
2051
  * DescribePrometheusTempSync请求参数结构体
1837
2052
  */
1838
- export type DescribePrometheusTempSyncRequest = null
2053
+ export interface DescribePrometheusTempSyncRequest {
2054
+ /**
2055
+ * 模板ID
2056
+ */
2057
+ TemplateId: string
2058
+ }
1839
2059
 
1840
2060
  /**
1841
2061
  * DescribePrometheusClusterAgents返回参数结构体
1842
2062
  */
1843
2063
  export interface DescribePrometheusClusterAgentsResponse {
2064
+ /**
2065
+ * 被关联集群信息
2066
+ */
2067
+ Agents: Array<PrometheusAgentOverview>
2068
+
2069
+ /**
2070
+ * 被关联集群总量
2071
+ */
2072
+ Total: number
2073
+
1844
2074
  /**
1845
2075
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1846
2076
  */
@@ -2476,7 +2706,17 @@ export interface DeleteClusterAsGroupsRequest {
2476
2706
  /**
2477
2707
  * ModifyPrometheusAlertPolicy请求参数结构体
2478
2708
  */
2479
- export type ModifyPrometheusAlertPolicyRequest = null
2709
+ export interface ModifyPrometheusAlertPolicyRequest {
2710
+ /**
2711
+ * 实例id
2712
+ */
2713
+ InstanceId: string
2714
+
2715
+ /**
2716
+ * 告警配置
2717
+ */
2718
+ AlertRule: PrometheusAlertPolicyItem
2719
+ }
2480
2720
 
2481
2721
  /**
2482
2722
  * ForwardApplicationRequestV3请求参数结构体
@@ -2641,6 +2881,17 @@ ID 按templateId过滤
2641
2881
  * DescribePrometheusAlertPolicy返回参数结构体
2642
2882
  */
2643
2883
  export interface DescribePrometheusAlertPolicyResponse {
2884
+ /**
2885
+ * 告警详情
2886
+ 注意:此字段可能返回 null,表示取不到有效值。
2887
+ */
2888
+ AlertRules: Array<PrometheusAlertPolicyItem>
2889
+
2890
+ /**
2891
+ * 总数
2892
+ */
2893
+ Total: number
2894
+
2644
2895
  /**
2645
2896
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2646
2897
  */
@@ -2747,6 +2998,22 @@ export interface Event {
2747
2998
  Message: string
2748
2999
  }
2749
3000
 
3001
+ /**
3002
+ * DescribePrometheusGlobalNotification返回参数结构体
3003
+ */
3004
+ export interface DescribePrometheusGlobalNotificationResponse {
3005
+ /**
3006
+ * 全局告警通知渠道
3007
+ 注意:此字段可能返回 null,表示取不到有效值。
3008
+ */
3009
+ Notification: PrometheusNotificationItem
3010
+
3011
+ /**
3012
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3013
+ */
3014
+ RequestId?: string
3015
+ }
3016
+
2750
3017
  /**
2751
3018
  * Probe中的HttpGet
2752
3019
  */
@@ -2855,7 +3122,22 @@ export interface SetNodePoolNodeProtectionResponse {
2855
3122
  /**
2856
3123
  * DeletePrometheusAlertPolicy请求参数结构体
2857
3124
  */
2858
- export type DeletePrometheusAlertPolicyRequest = null
3125
+ export interface DeletePrometheusAlertPolicyRequest {
3126
+ /**
3127
+ * 实例id
3128
+ */
3129
+ InstanceId: string
3130
+
3131
+ /**
3132
+ * 告警策略id列表
3133
+ */
3134
+ AlertIds: Array<string>
3135
+
3136
+ /**
3137
+ * 告警策略名称
3138
+ */
3139
+ Names?: Array<string>
3140
+ }
2859
3141
 
2860
3142
  /**
2861
3143
  * 路由表冲突对象
@@ -3212,6 +3494,28 @@ export interface ModifyNodePoolInstanceTypesResponse {
3212
3494
  RequestId?: string
3213
3495
  }
3214
3496
 
3497
+ /**
3498
+ * 告警渠道使用自建alertmanager的配置
3499
+ */
3500
+ export interface PrometheusAlertManagerConfig {
3501
+ /**
3502
+ * alertmanager url
3503
+ */
3504
+ Url: string
3505
+
3506
+ /**
3507
+ * alertmanager部署所在集群类型
3508
+ 注意:此字段可能返回 null,表示取不到有效值。
3509
+ */
3510
+ ClusterType?: string
3511
+
3512
+ /**
3513
+ * alertmanager部署所在集群ID
3514
+ 注意:此字段可能返回 null,表示取不到有效值。
3515
+ */
3516
+ ClusterId?: string
3517
+ }
3518
+
3215
3519
  /**
3216
3520
  * GetClusterLevelPrice返回参数结构体
3217
3521
  */
@@ -3300,9 +3604,30 @@ export interface DescribeAvailableClusterVersionRequest {
3300
3604
  /**
3301
3605
  * DescribePrometheusAlertPolicy请求参数结构体
3302
3606
  */
3303
- export type DescribePrometheusAlertPolicyRequest = null
3304
-
3305
- /**
3607
+ export interface DescribePrometheusAlertPolicyRequest {
3608
+ /**
3609
+ * 实例id
3610
+ */
3611
+ InstanceId: string
3612
+
3613
+ /**
3614
+ * 分页
3615
+ */
3616
+ Offset?: number
3617
+
3618
+ /**
3619
+ * 分页
3620
+ */
3621
+ Limit?: number
3622
+
3623
+ /**
3624
+ * 过滤
3625
+ 支持ID,Name
3626
+ */
3627
+ Filters?: Array<Filter>
3628
+ }
3629
+
3630
+ /**
3306
3631
  * DeleteClusterAsGroups返回参数结构体
3307
3632
  */
3308
3633
  export interface DeleteClusterAsGroupsResponse {
@@ -3336,6 +3661,12 @@ export interface DeletePrometheusTemplateRequest {
3336
3661
  * DescribePrometheusTempSync返回参数结构体
3337
3662
  */
3338
3663
  export interface DescribePrometheusTempSyncResponse {
3664
+ /**
3665
+ * 同步目标详情
3666
+ 注意:此字段可能返回 null,表示取不到有效值。
3667
+ */
3668
+ Targets: Array<PrometheusTemplateSyncTarget>
3669
+
3339
3670
  /**
3340
3671
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3341
3672
  */
@@ -4450,6 +4781,11 @@ export interface DNSConfig {
4450
4781
  * CreatePrometheusAlertPolicy返回参数结构体
4451
4782
  */
4452
4783
  export interface CreatePrometheusAlertPolicyResponse {
4784
+ /**
4785
+ * 告警id
4786
+ */
4787
+ Id: string
4788
+
4453
4789
  /**
4454
4790
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4455
4791
  */
@@ -4595,6 +4931,16 @@ export interface AutoScalingGroupRange {
4595
4931
  MaxSize?: number
4596
4932
  }
4597
4933
 
4934
+ /**
4935
+ * DescribePrometheusGlobalNotification请求参数结构体
4936
+ */
4937
+ export interface DescribePrometheusGlobalNotificationRequest {
4938
+ /**
4939
+ * 实例ID
4940
+ */
4941
+ InstanceId: string
4942
+ }
4943
+
4598
4944
  /**
4599
4945
  * 弹性容器集群公网访问负载均衡信息
4600
4946
  */
@@ -4924,6 +5270,17 @@ export interface DeleteEKSContainerInstancesResponse {
4924
5270
  * DescribePrometheusInstancesOverview返回参数结构体
4925
5271
  */
4926
5272
  export interface DescribePrometheusInstancesOverviewResponse {
5273
+ /**
5274
+ * 实例列表
5275
+ */
5276
+ Instances: Array<PrometheusInstancesOverview>
5277
+
5278
+ /**
5279
+ * 实例总数
5280
+ 注意:此字段可能返回 null,表示取不到有效值。
5281
+ */
5282
+ Total: number
5283
+
4927
5284
  /**
4928
5285
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4929
5286
  */
@@ -5156,19 +5513,9 @@ export interface CreatePrometheusTemplateRequest {
5156
5513
  }
5157
5514
 
5158
5515
  /**
5159
- * DescribeEKSContainerInstances返回参数结构体
5516
+ * DeleteImageCaches返回参数结构体
5160
5517
  */
5161
- export interface DescribeEKSContainerInstancesResponse {
5162
- /**
5163
- * 容器组总数
5164
- */
5165
- TotalCount: number
5166
-
5167
- /**
5168
- * 容器组列表
5169
- */
5170
- EksCis: Array<EksCi>
5171
-
5518
+ export interface DeleteImageCachesResponse {
5172
5519
  /**
5173
5520
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5174
5521
  */
@@ -5357,6 +5704,114 @@ export interface TagSpecification {
5357
5704
  Tags?: Array<Tag>
5358
5705
  }
5359
5706
 
5707
+ /**
5708
+ * 告警通知渠道配置
5709
+ */
5710
+ export interface PrometheusNotificationItem {
5711
+ /**
5712
+ * 是否启用
5713
+ */
5714
+ Enabled: boolean
5715
+
5716
+ /**
5717
+ * 通道类型,默认为amp,支持以下
5718
+ amp
5719
+ webhook
5720
+ alertmanager
5721
+ */
5722
+ Type: string
5723
+
5724
+ /**
5725
+ * 如果Type为webhook, 则该字段为必填项
5726
+ 注意:此字段可能返回 null,表示取不到有效值。
5727
+ */
5728
+ WebHook?: string
5729
+
5730
+ /**
5731
+ * 如果Type为alertmanager, 则该字段为必填项
5732
+ 注意:此字段可能返回 null,表示取不到有效值。
5733
+ */
5734
+ AlertManager?: PrometheusAlertManagerConfig
5735
+
5736
+ /**
5737
+ * 收敛时间
5738
+ */
5739
+ RepeatInterval?: string
5740
+
5741
+ /**
5742
+ * 生效起始时间
5743
+ */
5744
+ TimeRangeStart?: string
5745
+
5746
+ /**
5747
+ * 生效结束时间
5748
+ */
5749
+ TimeRangeEnd?: string
5750
+
5751
+ /**
5752
+ * 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。
5753
+ 注意:此字段可能返回 null,表示取不到有效值。
5754
+ */
5755
+ NotifyWay?: Array<string>
5756
+
5757
+ /**
5758
+ * 告警接收组(用户组)
5759
+ 注意:此字段可能返回 null,表示取不到有效值。
5760
+ */
5761
+ ReceiverGroups?: Array<string>
5762
+
5763
+ /**
5764
+ * 电话告警顺序。
5765
+ 注:NotifyWay选择CALL,采用该参数。
5766
+ 注意:此字段可能返回 null,表示取不到有效值。
5767
+ */
5768
+ PhoneNotifyOrder?: Array<number>
5769
+
5770
+ /**
5771
+ * 电话告警次数。
5772
+ 注:NotifyWay选择CALL,采用该参数。
5773
+ 注意:此字段可能返回 null,表示取不到有效值。
5774
+ */
5775
+ PhoneCircleTimes?: number
5776
+
5777
+ /**
5778
+ * 电话告警轮内间隔。单位:秒
5779
+ 注:NotifyWay选择CALL,采用该参数。
5780
+ 注意:此字段可能返回 null,表示取不到有效值。
5781
+ */
5782
+ PhoneInnerInterval?: number
5783
+
5784
+ /**
5785
+ * 电话告警轮外间隔。单位:秒
5786
+ 注:NotifyWay选择CALL,采用该参数。
5787
+ 注意:此字段可能返回 null,表示取不到有效值。
5788
+ */
5789
+ PhoneCircleInterval?: number
5790
+
5791
+ /**
5792
+ * 电话告警触达通知
5793
+ 注:NotifyWay选择CALL,采用该参数。
5794
+ 注意:此字段可能返回 null,表示取不到有效值。
5795
+ */
5796
+ PhoneArriveNotice?: boolean
5797
+ }
5798
+
5799
+ /**
5800
+ * CreatePrometheusGlobalNotification返回参数结构体
5801
+ */
5802
+ export interface CreatePrometheusGlobalNotificationResponse {
5803
+ /**
5804
+ * 全局告警通知渠道ID
5805
+ 注意:此字段可能返回 null,表示取不到有效值。
5806
+ */
5807
+ Id: string
5808
+
5809
+ /**
5810
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5811
+ */
5812
+ RequestId?: string
5813
+ }
5814
+
5360
5815
  /**
5361
5816
  * DescribeClusterAuthenticationOptions返回参数结构体
5362
5817
  */
@@ -5494,7 +5949,17 @@ export interface ImageInstance {
5494
5949
  /**
5495
5950
  * CreatePrometheusAlertPolicy请求参数结构体
5496
5951
  */
5497
- export type CreatePrometheusAlertPolicyRequest = null
5952
+ export interface CreatePrometheusAlertPolicyRequest {
5953
+ /**
5954
+ * 实例id
5955
+ */
5956
+ InstanceId: string
5957
+
5958
+ /**
5959
+ * 告警配置
5960
+ */
5961
+ AlertRule: PrometheusAlertPolicyItem
5962
+ }
5498
5963
 
5499
5964
  /**
5500
5965
  * GetTkeAppChartList请求参数结构体
@@ -5594,7 +6059,22 @@ export interface CreateClusterNodePoolRequest {
5594
6059
  /**
5595
6060
  * DescribePrometheusClusterAgents请求参数结构体
5596
6061
  */
5597
- export type DescribePrometheusClusterAgentsRequest = null
6062
+ export interface DescribePrometheusClusterAgentsRequest {
6063
+ /**
6064
+ * 实例id
6065
+ */
6066
+ InstanceId: string
6067
+
6068
+ /**
6069
+ * 用于分页
6070
+ */
6071
+ Offset?: number
6072
+
6073
+ /**
6074
+ * 用于分页
6075
+ */
6076
+ Limit?: number
6077
+ }
5598
6078
 
5599
6079
  /**
5600
6080
  * CheckInstancesUpgradeAble返回参数结构体
@@ -5631,7 +6111,12 @@ export interface CheckInstancesUpgradeAbleResponse {
5631
6111
  /**
5632
6112
  * CreatePrometheusTemp请求参数结构体
5633
6113
  */
5634
- export type CreatePrometheusTempRequest = null
6114
+ export interface CreatePrometheusTempRequest {
6115
+ /**
6116
+ * 模板设置
6117
+ */
6118
+ Template: PrometheusTemp
6119
+ }
5635
6120
 
5636
6121
  /**
5637
6122
  * CreatePrometheusDashboard请求参数结构体
@@ -5733,6 +6218,11 @@ export interface UninstallLogAgentResponse {
5733
6218
  * CreatePrometheusTemp返回参数结构体
5734
6219
  */
5735
6220
  export interface CreatePrometheusTempResponse {
6221
+ /**
6222
+ * 模板Id
6223
+ */
6224
+ TemplateId: string
6225
+
5736
6226
  /**
5737
6227
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5738
6228
  */
@@ -5804,7 +6294,17 @@ export interface DescribeClusterAsGroupsRequest {
5804
6294
  /**
5805
6295
  * SyncPrometheusTemp请求参数结构体
5806
6296
  */
5807
- export type SyncPrometheusTempRequest = null
6297
+ export interface SyncPrometheusTempRequest {
6298
+ /**
6299
+ * 实例id
6300
+ */
6301
+ TemplateId: string
6302
+
6303
+ /**
6304
+ * 同步目标
6305
+ */
6306
+ Targets: Array<PrometheusTemplateSyncTarget>
6307
+ }
5808
6308
 
5809
6309
  /**
5810
6310
  * ModifyClusterEndpointSP返回参数结构体
@@ -6124,6 +6624,21 @@ export interface DeleteClusterInstancesResponse {
6124
6624
  RequestId?: string
6125
6625
  }
6126
6626
 
6627
+ /**
6628
+ * CreatePrometheusGlobalNotification请求参数结构体
6629
+ */
6630
+ export interface CreatePrometheusGlobalNotificationRequest {
6631
+ /**
6632
+ * 实例ID
6633
+ */
6634
+ InstanceId: string
6635
+
6636
+ /**
6637
+ * 告警通知渠道
6638
+ */
6639
+ Notification: PrometheusNotificationItem
6640
+ }
6641
+
6127
6642
  /**
6128
6643
  * ModifyPrometheusTemp返回参数结构体
6129
6644
  */
@@ -6678,21 +7193,9 @@ export interface ClusterExtraArgs {
6678
7193
  }
6679
7194
 
6680
7195
  /**
6681
- * DescribeAvailableClusterVersion返回参数结构体
7196
+ * SyncPrometheusTemplate返回参数结构体
6682
7197
  */
6683
- export interface DescribeAvailableClusterVersionResponse {
6684
- /**
6685
- * 可升级的集群版本号
6686
- 注意:此字段可能返回 null,表示取不到有效值。
6687
- */
6688
- Versions?: Array<string>
6689
-
6690
- /**
6691
- * 集群信息
6692
- 注意:此字段可能返回 null,表示取不到有效值。
6693
- */
6694
- Clusters?: Array<ClusterVersion>
6695
-
7198
+ export interface SyncPrometheusTemplateResponse {
6696
7199
  /**
6697
7200
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6698
7201
  */
@@ -6978,7 +7481,12 @@ export interface ModifyClusterAsGroupAttributeResponse {
6978
7481
  /**
6979
7482
  * DeletePrometheusTemp请求参数结构体
6980
7483
  */
6981
- export type DeletePrometheusTempRequest = null
7484
+ export interface DeletePrometheusTempRequest {
7485
+ /**
7486
+ * 模板id
7487
+ */
7488
+ TemplateId: string
7489
+ }
6982
7490
 
6983
7491
  /**
6984
7492
  * DescribeTKEEdgeScript返回参数结构体
@@ -7028,7 +7536,17 @@ export interface DescribeClusterKubeconfigRequest {
7028
7536
  /**
7029
7537
  * DeletePrometheusTempSync请求参数结构体
7030
7538
  */
7031
- export type DeletePrometheusTempSyncRequest = null
7539
+ export interface DeletePrometheusTempSyncRequest {
7540
+ /**
7541
+ * 模板id
7542
+ */
7543
+ TemplateId: string
7544
+
7545
+ /**
7546
+ * 取消同步的对象列表
7547
+ */
7548
+ Targets: Array<PrometheusTemplateSyncTarget>
7549
+ }
7032
7550
 
7033
7551
  /**
7034
7552
  * CreatePrometheusTemplate返回参数结构体
@@ -7164,6 +7682,21 @@ export interface ExistedInstance {
7164
7682
  InstanceChargeType: string
7165
7683
  }
7166
7684
 
7685
+ /**
7686
+ * ModifyPrometheusGlobalNotification请求参数结构体
7687
+ */
7688
+ export interface ModifyPrometheusGlobalNotificationRequest {
7689
+ /**
7690
+ * 实例ID
7691
+ */
7692
+ InstanceId: string
7693
+
7694
+ /**
7695
+ * 告警通知渠道
7696
+ */
7697
+ Notification: PrometheusNotificationItem
7698
+ }
7699
+
7167
7700
  /**
7168
7701
  * GetUpgradeInstanceProgress请求参数结构体
7169
7702
  */
@@ -7198,6 +7731,16 @@ export interface UpdateEKSClusterResponse {
7198
7731
  * DescribePrometheusRecordRules返回参数结构体
7199
7732
  */
7200
7733
  export interface DescribePrometheusRecordRulesResponse {
7734
+ /**
7735
+ * 聚合规则
7736
+ */
7737
+ Records: Array<PrometheusRecordRuleYamlItem>
7738
+
7739
+ /**
7740
+ * 总数
7741
+ */
7742
+ Total: number
7743
+
7201
7744
  /**
7202
7745
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7203
7746
  */
@@ -7234,6 +7777,51 @@ export interface ModifyClusterNodePoolResponse {
7234
7777
  RequestId?: string
7235
7778
  }
7236
7779
 
7780
+ /**
7781
+ * 托管prometheus告警策略实例
7782
+ */
7783
+ export interface PrometheusAlertPolicyItem {
7784
+ /**
7785
+ * 策略名称
7786
+ */
7787
+ Name: string
7788
+
7789
+ /**
7790
+ * 规则列表
7791
+ */
7792
+ Rules: Array<PrometheusAlertRule>
7793
+
7794
+ /**
7795
+ * 告警策略 id
7796
+ 注意:此字段可能返回 null,表示取不到有效值。
7797
+ */
7798
+ Id?: string
7799
+
7800
+ /**
7801
+ * 如果该告警来自模板下发,则TemplateId为模板id
7802
+ 注意:此字段可能返回 null,表示取不到有效值。
7803
+ */
7804
+ TemplateId?: string
7805
+
7806
+ /**
7807
+ * 告警渠道,模板中使用可能返回null
7808
+ 注意:此字段可能返回 null,表示取不到有效值。
7809
+ */
7810
+ Notification?: PrometheusNotificationItem
7811
+
7812
+ /**
7813
+ * 最后修改时间
7814
+ 注意:此字段可能返回 null,表示取不到有效值。
7815
+ */
7816
+ UpdatedAt?: string
7817
+
7818
+ /**
7819
+ * 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID
7820
+ 注意:此字段可能返回 null,表示取不到有效值。
7821
+ */
7822
+ ClusterId?: string
7823
+ }
7824
+
7237
7825
  /**
7238
7826
  * prometheus一个抓取目标的信息
7239
7827
  */
@@ -7399,7 +7987,46 @@ export type DescribeVersionsRequest = null
7399
7987
  /**
7400
7988
  * DescribePrometheusTemp请求参数结构体
7401
7989
  */
7402
- export type DescribePrometheusTempRequest = null
7990
+ export interface DescribePrometheusTempRequest {
7991
+ /**
7992
+ * 模糊过滤条件,支持
7993
+ Level 按模板级别过滤
7994
+ Name 按名称过滤
7995
+ Describe 按描述过滤
7996
+ ID 按templateId过滤
7997
+ */
7998
+ Filters?: Array<Filter>
7999
+
8000
+ /**
8001
+ * 分页偏移
8002
+ */
8003
+ Offset?: number
8004
+
8005
+ /**
8006
+ * 总数限制
8007
+ */
8008
+ Limit?: number
8009
+ }
8010
+
8011
+ /**
8012
+ * DescribeEKSContainerInstances返回参数结构体
8013
+ */
8014
+ export interface DescribeEKSContainerInstancesResponse {
8015
+ /**
8016
+ * 容器组总数
8017
+ */
8018
+ TotalCount: number
8019
+
8020
+ /**
8021
+ * 容器组列表
8022
+ */
8023
+ EksCis: Array<EksCi>
8024
+
8025
+ /**
8026
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8027
+ */
8028
+ RequestId?: string
8029
+ }
7403
8030
 
7404
8031
  /**
7405
8032
  * DeleteClusterRouteTable请求参数结构体
@@ -7506,6 +8133,16 @@ export interface DescribePrometheusInstanceRequest {
7506
8133
  * DescribePrometheusTemp返回参数结构体
7507
8134
  */
7508
8135
  export interface DescribePrometheusTempResponse {
8136
+ /**
8137
+ * 模板列表
8138
+ */
8139
+ Templates: Array<PrometheusTemp>
8140
+
8141
+ /**
8142
+ * 总数
8143
+ */
8144
+ Total: number
8145
+
7509
8146
  /**
7510
8147
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7511
8148
  */
@@ -8019,9 +8656,9 @@ export interface DescribeVpcCniPodLimitsRequest {
8019
8656
  }
8020
8657
 
8021
8658
  /**
8022
- * DeleteImageCaches返回参数结构体
8659
+ * ModifyPrometheusGlobalNotification返回参数结构体
8023
8660
  */
8024
- export interface DeleteImageCachesResponse {
8661
+ export interface ModifyPrometheusGlobalNotificationResponse {
8025
8662
  /**
8026
8663
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8027
8664
  */
@@ -8186,9 +8823,21 @@ export interface ScaleInClusterMasterResponse {
8186
8823
  }
8187
8824
 
8188
8825
  /**
8189
- * SyncPrometheusTemplate返回参数结构体
8826
+ * DescribeAvailableClusterVersion返回参数结构体
8190
8827
  */
8191
- export interface SyncPrometheusTemplateResponse {
8828
+ export interface DescribeAvailableClusterVersionResponse {
8829
+ /**
8830
+ * 可升级的集群版本号
8831
+ 注意:此字段可能返回 null,表示取不到有效值。
8832
+ */
8833
+ Versions?: Array<string>
8834
+
8835
+ /**
8836
+ * 集群信息
8837
+ 注意:此字段可能返回 null,表示取不到有效值。
8838
+ */
8839
+ Clusters?: Array<ClusterVersion>
8840
+
8192
8841
  /**
8193
8842
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8194
8843
  */
@@ -8225,6 +8874,94 @@ export interface DescribeClusterCommonNamesResponse {
8225
8874
  RequestId?: string
8226
8875
  }
8227
8876
 
8877
+ /**
8878
+ * 模板实例
8879
+ */
8880
+ export interface PrometheusTemp {
8881
+ /**
8882
+ * 模板名称
8883
+ */
8884
+ Name: string
8885
+
8886
+ /**
8887
+ * 模板维度,支持以下类型
8888
+ instance 实例级别
8889
+ cluster 集群级别
8890
+ */
8891
+ Level: string
8892
+
8893
+ /**
8894
+ * 模板描述
8895
+ 注意:此字段可能返回 null,表示取不到有效值。
8896
+ */
8897
+ Describe?: string
8898
+
8899
+ /**
8900
+ * 当Level为instance时有效,
8901
+ 模板中的聚合规则列表
8902
+ 注意:此字段可能返回 null,表示取不到有效值。
8903
+ */
8904
+ RecordRules?: Array<PrometheusConfigItem>
8905
+
8906
+ /**
8907
+ * 当Level为cluster时有效,
8908
+ 模板中的ServiceMonitor规则列表
8909
+ 注意:此字段可能返回 null,表示取不到有效值。
8910
+ */
8911
+ ServiceMonitors?: Array<PrometheusConfigItem>
8912
+
8913
+ /**
8914
+ * 当Level为cluster时有效,
8915
+ 模板中的PodMonitors规则列表
8916
+ 注意:此字段可能返回 null,表示取不到有效值。
8917
+ */
8918
+ PodMonitors?: Array<PrometheusConfigItem>
8919
+
8920
+ /**
8921
+ * 当Level为cluster时有效,
8922
+ 模板中的RawJobs规则列表
8923
+ 注意:此字段可能返回 null,表示取不到有效值。
8924
+ */
8925
+ RawJobs?: Array<PrometheusConfigItem>
8926
+
8927
+ /**
8928
+ * 模板的ID, 用于出参
8929
+ 注意:此字段可能返回 null,表示取不到有效值。
8930
+ */
8931
+ TemplateId?: string
8932
+
8933
+ /**
8934
+ * 最近更新时间,用于出参
8935
+ 注意:此字段可能返回 null,表示取不到有效值。
8936
+ */
8937
+ UpdateTime?: string
8938
+
8939
+ /**
8940
+ * 当前版本,用于出参
8941
+ 注意:此字段可能返回 null,表示取不到有效值。
8942
+ */
8943
+ Version?: string
8944
+
8945
+ /**
8946
+ * 是否系统提供的默认模板,用于出参
8947
+ 注意:此字段可能返回 null,表示取不到有效值。
8948
+ */
8949
+ IsDefault?: boolean
8950
+
8951
+ /**
8952
+ * 当Level为instance时有效,
8953
+ 模板中的告警配置列表
8954
+ 注意:此字段可能返回 null,表示取不到有效值。
8955
+ */
8956
+ AlertDetailRules?: Array<PrometheusAlertPolicyItem>
8957
+
8958
+ /**
8959
+ * 关联实例数目
8960
+ 注意:此字段可能返回 null,表示取不到有效值。
8961
+ */
8962
+ TargetsTotal?: number
8963
+ }
8964
+
8228
8965
  /**
8229
8966
  * 托管prometheus实例概览
8230
8967
  */