tencentcloud-sdk-nodejs-tke 4.0.342 → 4.0.345

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.
@@ -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
  */
@@ -1437,6 +1622,21 @@ export interface PodLimitsInstance {
1437
1622
  PodLimits: PodLimitsByType
1438
1623
  }
1439
1624
 
1625
+ /**
1626
+ * ModifyPrometheusTemp请求参数结构体
1627
+ */
1628
+ export interface ModifyPrometheusTempRequest {
1629
+ /**
1630
+ * 模板ID
1631
+ */
1632
+ TemplateId: string
1633
+
1634
+ /**
1635
+ * 修改内容
1636
+ */
1637
+ Template: PrometheusTempModify
1638
+ }
1639
+
1440
1640
  /**
1441
1641
  * 集群中控制器的状态描述
1442
1642
  */
@@ -1465,7 +1665,27 @@ export interface DeletePrometheusTempSyncResponse {
1465
1665
  /**
1466
1666
  * DescribePrometheusRecordRules请求参数结构体
1467
1667
  */
1468
- 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
+ }
1469
1689
 
1470
1690
  /**
1471
1691
  * AcquireClusterAdminRole返回参数结构体
@@ -1830,12 +2050,27 @@ export interface DescribeClusterNodePoolDetailRequest {
1830
2050
  /**
1831
2051
  * DescribePrometheusTempSync请求参数结构体
1832
2052
  */
1833
- export type DescribePrometheusTempSyncRequest = null
2053
+ export interface DescribePrometheusTempSyncRequest {
2054
+ /**
2055
+ * 模板ID
2056
+ */
2057
+ TemplateId: string
2058
+ }
1834
2059
 
1835
2060
  /**
1836
2061
  * DescribePrometheusClusterAgents返回参数结构体
1837
2062
  */
1838
2063
  export interface DescribePrometheusClusterAgentsResponse {
2064
+ /**
2065
+ * 被关联集群信息
2066
+ */
2067
+ Agents: Array<PrometheusAgentOverview>
2068
+
2069
+ /**
2070
+ * 被关联集群总量
2071
+ */
2072
+ Total: number
2073
+
1839
2074
  /**
1840
2075
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1841
2076
  */
@@ -2471,7 +2706,17 @@ export interface DeleteClusterAsGroupsRequest {
2471
2706
  /**
2472
2707
  * ModifyPrometheusAlertPolicy请求参数结构体
2473
2708
  */
2474
- export type ModifyPrometheusAlertPolicyRequest = null
2709
+ export interface ModifyPrometheusAlertPolicyRequest {
2710
+ /**
2711
+ * 实例id
2712
+ */
2713
+ InstanceId: string
2714
+
2715
+ /**
2716
+ * 告警配置
2717
+ */
2718
+ AlertRule: PrometheusAlertPolicyItem
2719
+ }
2475
2720
 
2476
2721
  /**
2477
2722
  * ForwardApplicationRequestV3请求参数结构体
@@ -2636,6 +2881,17 @@ ID 按templateId过滤
2636
2881
  * DescribePrometheusAlertPolicy返回参数结构体
2637
2882
  */
2638
2883
  export interface DescribePrometheusAlertPolicyResponse {
2884
+ /**
2885
+ * 告警详情
2886
+ 注意:此字段可能返回 null,表示取不到有效值。
2887
+ */
2888
+ AlertRules: Array<PrometheusAlertPolicyItem>
2889
+
2890
+ /**
2891
+ * 总数
2892
+ */
2893
+ Total: number
2894
+
2639
2895
  /**
2640
2896
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2641
2897
  */
@@ -2742,6 +2998,22 @@ export interface Event {
2742
2998
  Message: string
2743
2999
  }
2744
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
+
2745
3017
  /**
2746
3018
  * Probe中的HttpGet
2747
3019
  */
@@ -2850,7 +3122,22 @@ export interface SetNodePoolNodeProtectionResponse {
2850
3122
  /**
2851
3123
  * DeletePrometheusAlertPolicy请求参数结构体
2852
3124
  */
2853
- 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
+ }
2854
3141
 
2855
3142
  /**
2856
3143
  * 路由表冲突对象
@@ -3208,25 +3495,47 @@ export interface ModifyNodePoolInstanceTypesResponse {
3208
3495
  }
3209
3496
 
3210
3497
  /**
3211
- * GetClusterLevelPrice返回参数结构体
3498
+ * 告警渠道使用自建alertmanager的配置
3212
3499
  */
3213
- export interface GetClusterLevelPriceResponse {
3500
+ export interface PrometheusAlertManagerConfig {
3214
3501
  /**
3215
- * 询价结果,单位:分,打折后
3502
+ * alertmanager url
3216
3503
  */
3217
- Cost: number
3504
+ Url: string
3218
3505
 
3219
3506
  /**
3220
- * 询价结果,单位:分,折扣前
3221
- */
3222
- TotalCost: number
3507
+ * alertmanager部署所在集群类型
3508
+ 注意:此字段可能返回 null,表示取不到有效值。
3509
+ */
3510
+ ClusterType?: string
3223
3511
 
3224
3512
  /**
3225
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3226
- */
3227
- RequestId?: string
3228
- }
3229
-
3513
+ * alertmanager部署所在集群ID
3514
+ 注意:此字段可能返回 null,表示取不到有效值。
3515
+ */
3516
+ ClusterId?: string
3517
+ }
3518
+
3519
+ /**
3520
+ * GetClusterLevelPrice返回参数结构体
3521
+ */
3522
+ export interface GetClusterLevelPriceResponse {
3523
+ /**
3524
+ * 询价结果,单位:分,打折后
3525
+ */
3526
+ Cost: number
3527
+
3528
+ /**
3529
+ * 询价结果,单位:分,折扣前
3530
+ */
3531
+ TotalCost: number
3532
+
3533
+ /**
3534
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3535
+ */
3536
+ RequestId?: string
3537
+ }
3538
+
3230
3539
  /**
3231
3540
  * DescribeResourceUsage返回参数结构体
3232
3541
  */
@@ -3295,7 +3604,28 @@ export interface DescribeAvailableClusterVersionRequest {
3295
3604
  /**
3296
3605
  * DescribePrometheusAlertPolicy请求参数结构体
3297
3606
  */
3298
- export type DescribePrometheusAlertPolicyRequest = null
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
+ }
3299
3629
 
3300
3630
  /**
3301
3631
  * DeleteClusterAsGroups返回参数结构体
@@ -3331,6 +3661,12 @@ export interface DeletePrometheusTemplateRequest {
3331
3661
  * DescribePrometheusTempSync返回参数结构体
3332
3662
  */
3333
3663
  export interface DescribePrometheusTempSyncResponse {
3664
+ /**
3665
+ * 同步目标详情
3666
+ 注意:此字段可能返回 null,表示取不到有效值。
3667
+ */
3668
+ Targets: Array<PrometheusTemplateSyncTarget>
3669
+
3334
3670
  /**
3335
3671
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3336
3672
  */
@@ -4445,6 +4781,11 @@ export interface DNSConfig {
4445
4781
  * CreatePrometheusAlertPolicy返回参数结构体
4446
4782
  */
4447
4783
  export interface CreatePrometheusAlertPolicyResponse {
4784
+ /**
4785
+ * 告警id
4786
+ */
4787
+ Id: string
4788
+
4448
4789
  /**
4449
4790
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4450
4791
  */
@@ -4590,6 +4931,16 @@ export interface AutoScalingGroupRange {
4590
4931
  MaxSize?: number
4591
4932
  }
4592
4933
 
4934
+ /**
4935
+ * DescribePrometheusGlobalNotification请求参数结构体
4936
+ */
4937
+ export interface DescribePrometheusGlobalNotificationRequest {
4938
+ /**
4939
+ * 实例ID
4940
+ */
4941
+ InstanceId: string
4942
+ }
4943
+
4593
4944
  /**
4594
4945
  * 弹性容器集群公网访问负载均衡信息
4595
4946
  */
@@ -4919,6 +5270,17 @@ export interface DeleteEKSContainerInstancesResponse {
4919
5270
  * DescribePrometheusInstancesOverview返回参数结构体
4920
5271
  */
4921
5272
  export interface DescribePrometheusInstancesOverviewResponse {
5273
+ /**
5274
+ * 实例列表
5275
+ */
5276
+ Instances: Array<PrometheusInstancesOverview>
5277
+
5278
+ /**
5279
+ * 实例总数
5280
+ 注意:此字段可能返回 null,表示取不到有效值。
5281
+ */
5282
+ Total: number
5283
+
4922
5284
  /**
4923
5285
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4924
5286
  */
@@ -5151,19 +5513,9 @@ export interface CreatePrometheusTemplateRequest {
5151
5513
  }
5152
5514
 
5153
5515
  /**
5154
- * DescribeEKSContainerInstances返回参数结构体
5516
+ * DeleteImageCaches返回参数结构体
5155
5517
  */
5156
- export interface DescribeEKSContainerInstancesResponse {
5157
- /**
5158
- * 容器组总数
5159
- */
5160
- TotalCount: number
5161
-
5162
- /**
5163
- * 容器组列表
5164
- */
5165
- EksCis: Array<EksCi>
5166
-
5518
+ export interface DeleteImageCachesResponse {
5167
5519
  /**
5168
5520
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5169
5521
  */
@@ -5352,6 +5704,114 @@ export interface TagSpecification {
5352
5704
  Tags?: Array<Tag>
5353
5705
  }
5354
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
+
5355
5815
  /**
5356
5816
  * DescribeClusterAuthenticationOptions返回参数结构体
5357
5817
  */
@@ -5489,7 +5949,17 @@ export interface ImageInstance {
5489
5949
  /**
5490
5950
  * CreatePrometheusAlertPolicy请求参数结构体
5491
5951
  */
5492
- export type CreatePrometheusAlertPolicyRequest = null
5952
+ export interface CreatePrometheusAlertPolicyRequest {
5953
+ /**
5954
+ * 实例id
5955
+ */
5956
+ InstanceId: string
5957
+
5958
+ /**
5959
+ * 告警配置
5960
+ */
5961
+ AlertRule: PrometheusAlertPolicyItem
5962
+ }
5493
5963
 
5494
5964
  /**
5495
5965
  * GetTkeAppChartList请求参数结构体
@@ -5589,7 +6059,22 @@ export interface CreateClusterNodePoolRequest {
5589
6059
  /**
5590
6060
  * DescribePrometheusClusterAgents请求参数结构体
5591
6061
  */
5592
- 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
+ }
5593
6078
 
5594
6079
  /**
5595
6080
  * CheckInstancesUpgradeAble返回参数结构体
@@ -5626,7 +6111,12 @@ export interface CheckInstancesUpgradeAbleResponse {
5626
6111
  /**
5627
6112
  * CreatePrometheusTemp请求参数结构体
5628
6113
  */
5629
- export type CreatePrometheusTempRequest = null
6114
+ export interface CreatePrometheusTempRequest {
6115
+ /**
6116
+ * 模板设置
6117
+ */
6118
+ Template: PrometheusTemp
6119
+ }
5630
6120
 
5631
6121
  /**
5632
6122
  * CreatePrometheusDashboard请求参数结构体
@@ -5728,6 +6218,11 @@ export interface UninstallLogAgentResponse {
5728
6218
  * CreatePrometheusTemp返回参数结构体
5729
6219
  */
5730
6220
  export interface CreatePrometheusTempResponse {
6221
+ /**
6222
+ * 模板Id
6223
+ */
6224
+ TemplateId: string
6225
+
5731
6226
  /**
5732
6227
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5733
6228
  */
@@ -5799,7 +6294,17 @@ export interface DescribeClusterAsGroupsRequest {
5799
6294
  /**
5800
6295
  * SyncPrometheusTemp请求参数结构体
5801
6296
  */
5802
- export type SyncPrometheusTempRequest = null
6297
+ export interface SyncPrometheusTempRequest {
6298
+ /**
6299
+ * 实例id
6300
+ */
6301
+ TemplateId: string
6302
+
6303
+ /**
6304
+ * 同步目标
6305
+ */
6306
+ Targets: Array<PrometheusTemplateSyncTarget>
6307
+ }
5803
6308
 
5804
6309
  /**
5805
6310
  * ModifyClusterEndpointSP返回参数结构体
@@ -6119,6 +6624,31 @@ export interface DeleteClusterInstancesResponse {
6119
6624
  RequestId?: string
6120
6625
  }
6121
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
+
6642
+ /**
6643
+ * ModifyPrometheusTemp返回参数结构体
6644
+ */
6645
+ export interface ModifyPrometheusTempResponse {
6646
+ /**
6647
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6648
+ */
6649
+ RequestId?: string
6650
+ }
6651
+
6122
6652
  /**
6123
6653
  * 托管prometheus告警配置实例
6124
6654
  */
@@ -6663,21 +7193,9 @@ export interface ClusterExtraArgs {
6663
7193
  }
6664
7194
 
6665
7195
  /**
6666
- * DescribeAvailableClusterVersion返回参数结构体
7196
+ * SyncPrometheusTemplate返回参数结构体
6667
7197
  */
6668
- export interface DescribeAvailableClusterVersionResponse {
6669
- /**
6670
- * 可升级的集群版本号
6671
- 注意:此字段可能返回 null,表示取不到有效值。
6672
- */
6673
- Versions?: Array<string>
6674
-
6675
- /**
6676
- * 集群信息
6677
- 注意:此字段可能返回 null,表示取不到有效值。
6678
- */
6679
- Clusters?: Array<ClusterVersion>
6680
-
7198
+ export interface SyncPrometheusTemplateResponse {
6681
7199
  /**
6682
7200
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6683
7201
  */
@@ -6963,7 +7481,12 @@ export interface ModifyClusterAsGroupAttributeResponse {
6963
7481
  /**
6964
7482
  * DeletePrometheusTemp请求参数结构体
6965
7483
  */
6966
- export type DeletePrometheusTempRequest = null
7484
+ export interface DeletePrometheusTempRequest {
7485
+ /**
7486
+ * 模板id
7487
+ */
7488
+ TemplateId: string
7489
+ }
6967
7490
 
6968
7491
  /**
6969
7492
  * DescribeTKEEdgeScript返回参数结构体
@@ -7013,7 +7536,17 @@ export interface DescribeClusterKubeconfigRequest {
7013
7536
  /**
7014
7537
  * DeletePrometheusTempSync请求参数结构体
7015
7538
  */
7016
- export type DeletePrometheusTempSyncRequest = null
7539
+ export interface DeletePrometheusTempSyncRequest {
7540
+ /**
7541
+ * 模板id
7542
+ */
7543
+ TemplateId: string
7544
+
7545
+ /**
7546
+ * 取消同步的对象列表
7547
+ */
7548
+ Targets: Array<PrometheusTemplateSyncTarget>
7549
+ }
7017
7550
 
7018
7551
  /**
7019
7552
  * CreatePrometheusTemplate返回参数结构体
@@ -7149,6 +7682,21 @@ export interface ExistedInstance {
7149
7682
  InstanceChargeType: string
7150
7683
  }
7151
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
+
7152
7700
  /**
7153
7701
  * GetUpgradeInstanceProgress请求参数结构体
7154
7702
  */
@@ -7183,6 +7731,16 @@ export interface UpdateEKSClusterResponse {
7183
7731
  * DescribePrometheusRecordRules返回参数结构体
7184
7732
  */
7185
7733
  export interface DescribePrometheusRecordRulesResponse {
7734
+ /**
7735
+ * 聚合规则
7736
+ */
7737
+ Records: Array<PrometheusRecordRuleYamlItem>
7738
+
7739
+ /**
7740
+ * 总数
7741
+ */
7742
+ Total: number
7743
+
7186
7744
  /**
7187
7745
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7188
7746
  */
@@ -7219,6 +7777,51 @@ export interface ModifyClusterNodePoolResponse {
7219
7777
  RequestId?: string
7220
7778
  }
7221
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
+
7222
7825
  /**
7223
7826
  * prometheus一个抓取目标的信息
7224
7827
  */
@@ -7384,7 +7987,46 @@ export type DescribeVersionsRequest = null
7384
7987
  /**
7385
7988
  * DescribePrometheusTemp请求参数结构体
7386
7989
  */
7387
- 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
+ }
7388
8030
 
7389
8031
  /**
7390
8032
  * DeleteClusterRouteTable请求参数结构体
@@ -7491,6 +8133,16 @@ export interface DescribePrometheusInstanceRequest {
7491
8133
  * DescribePrometheusTemp返回参数结构体
7492
8134
  */
7493
8135
  export interface DescribePrometheusTempResponse {
8136
+ /**
8137
+ * 模板列表
8138
+ */
8139
+ Templates: Array<PrometheusTemp>
8140
+
8141
+ /**
8142
+ * 总数
8143
+ */
8144
+ Total: number
8145
+
7494
8146
  /**
7495
8147
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7496
8148
  */
@@ -8004,9 +8656,9 @@ export interface DescribeVpcCniPodLimitsRequest {
8004
8656
  }
8005
8657
 
8006
8658
  /**
8007
- * DeleteImageCaches返回参数结构体
8659
+ * ModifyPrometheusGlobalNotification返回参数结构体
8008
8660
  */
8009
- export interface DeleteImageCachesResponse {
8661
+ export interface ModifyPrometheusGlobalNotificationResponse {
8010
8662
  /**
8011
8663
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8012
8664
  */
@@ -8171,9 +8823,21 @@ export interface ScaleInClusterMasterResponse {
8171
8823
  }
8172
8824
 
8173
8825
  /**
8174
- * SyncPrometheusTemplate返回参数结构体
8826
+ * DescribeAvailableClusterVersion返回参数结构体
8175
8827
  */
8176
- 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
+
8177
8841
  /**
8178
8842
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8179
8843
  */
@@ -8210,6 +8874,94 @@ export interface DescribeClusterCommonNamesResponse {
8210
8874
  RequestId?: string
8211
8875
  }
8212
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
+
8213
8965
  /**
8214
8966
  * 托管prometheus实例概览
8215
8967
  */