tencentcloud-sdk-tke 1.0.313 → 1.0.316

Sign up to get free protection for your applications and to get access to all the features.
@@ -2278,6 +2278,49 @@ module TencentCloud
2278
2278
  end
2279
2279
  end
2280
2280
 
2281
+ # CreatePrometheusAlertPolicy请求参数结构体
2282
+ class CreatePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
2283
+ # @param InstanceId: 实例id
2284
+ # @type InstanceId: String
2285
+ # @param AlertRule: 告警配置
2286
+ # @type AlertRule: :class:`Tencentcloud::Tke.v20180525.models.PrometheusAlertPolicyItem`
2287
+
2288
+ attr_accessor :InstanceId, :AlertRule
2289
+
2290
+ def initialize(instanceid=nil, alertrule=nil)
2291
+ @InstanceId = instanceid
2292
+ @AlertRule = alertrule
2293
+ end
2294
+
2295
+ def deserialize(params)
2296
+ @InstanceId = params['InstanceId']
2297
+ unless params['AlertRule'].nil?
2298
+ @AlertRule = PrometheusAlertPolicyItem.new
2299
+ @AlertRule.deserialize(params['AlertRule'])
2300
+ end
2301
+ end
2302
+ end
2303
+
2304
+ # CreatePrometheusAlertPolicy返回参数结构体
2305
+ class CreatePrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
2306
+ # @param Id: 告警id
2307
+ # @type Id: String
2308
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2309
+ # @type RequestId: String
2310
+
2311
+ attr_accessor :Id, :RequestId
2312
+
2313
+ def initialize(id=nil, requestid=nil)
2314
+ @Id = id
2315
+ @RequestId = requestid
2316
+ end
2317
+
2318
+ def deserialize(params)
2319
+ @Id = params['Id']
2320
+ @RequestId = params['RequestId']
2321
+ end
2322
+ end
2323
+
2281
2324
  # CreatePrometheusAlertRule请求参数结构体
2282
2325
  class CreatePrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
2283
2326
  # @param InstanceId: 实例id
@@ -2362,6 +2405,89 @@ module TencentCloud
2362
2405
  end
2363
2406
  end
2364
2407
 
2408
+ # CreatePrometheusGlobalNotification请求参数结构体
2409
+ class CreatePrometheusGlobalNotificationRequest < TencentCloud::Common::AbstractModel
2410
+ # @param InstanceId: 实例ID
2411
+ # @type InstanceId: String
2412
+ # @param Notification: 告警通知渠道
2413
+ # @type Notification: :class:`Tencentcloud::Tke.v20180525.models.PrometheusNotificationItem`
2414
+
2415
+ attr_accessor :InstanceId, :Notification
2416
+
2417
+ def initialize(instanceid=nil, notification=nil)
2418
+ @InstanceId = instanceid
2419
+ @Notification = notification
2420
+ end
2421
+
2422
+ def deserialize(params)
2423
+ @InstanceId = params['InstanceId']
2424
+ unless params['Notification'].nil?
2425
+ @Notification = PrometheusNotificationItem.new
2426
+ @Notification.deserialize(params['Notification'])
2427
+ end
2428
+ end
2429
+ end
2430
+
2431
+ # CreatePrometheusGlobalNotification返回参数结构体
2432
+ class CreatePrometheusGlobalNotificationResponse < TencentCloud::Common::AbstractModel
2433
+ # @param Id: 全局告警通知渠道ID
2434
+ # 注意:此字段可能返回 null,表示取不到有效值。
2435
+ # @type Id: String
2436
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2437
+ # @type RequestId: String
2438
+
2439
+ attr_accessor :Id, :RequestId
2440
+
2441
+ def initialize(id=nil, requestid=nil)
2442
+ @Id = id
2443
+ @RequestId = requestid
2444
+ end
2445
+
2446
+ def deserialize(params)
2447
+ @Id = params['Id']
2448
+ @RequestId = params['RequestId']
2449
+ end
2450
+ end
2451
+
2452
+ # CreatePrometheusTemp请求参数结构体
2453
+ class CreatePrometheusTempRequest < TencentCloud::Common::AbstractModel
2454
+ # @param Template: 模板设置
2455
+ # @type Template: :class:`Tencentcloud::Tke.v20180525.models.PrometheusTemp`
2456
+
2457
+ attr_accessor :Template
2458
+
2459
+ def initialize(template=nil)
2460
+ @Template = template
2461
+ end
2462
+
2463
+ def deserialize(params)
2464
+ unless params['Template'].nil?
2465
+ @Template = PrometheusTemp.new
2466
+ @Template.deserialize(params['Template'])
2467
+ end
2468
+ end
2469
+ end
2470
+
2471
+ # CreatePrometheusTemp返回参数结构体
2472
+ class CreatePrometheusTempResponse < TencentCloud::Common::AbstractModel
2473
+ # @param TemplateId: 模板Id
2474
+ # @type TemplateId: String
2475
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2476
+ # @type RequestId: String
2477
+
2478
+ attr_accessor :TemplateId, :RequestId
2479
+
2480
+ def initialize(templateid=nil, requestid=nil)
2481
+ @TemplateId = templateid
2482
+ @RequestId = requestid
2483
+ end
2484
+
2485
+ def deserialize(params)
2486
+ @TemplateId = params['TemplateId']
2487
+ @RequestId = params['RequestId']
2488
+ end
2489
+ end
2490
+
2365
2491
  # CreatePrometheusTemplate请求参数结构体
2366
2492
  class CreatePrometheusTemplateRequest < TencentCloud::Common::AbstractModel
2367
2493
  # @param Template: 模板设置
@@ -2925,6 +3051,46 @@ module TencentCloud
2925
3051
  end
2926
3052
  end
2927
3053
 
3054
+ # DeletePrometheusAlertPolicy请求参数结构体
3055
+ class DeletePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
3056
+ # @param InstanceId: 实例id
3057
+ # @type InstanceId: String
3058
+ # @param AlertIds: 告警策略id列表
3059
+ # @type AlertIds: Array
3060
+ # @param Names: 告警策略名称
3061
+ # @type Names: Array
3062
+
3063
+ attr_accessor :InstanceId, :AlertIds, :Names
3064
+
3065
+ def initialize(instanceid=nil, alertids=nil, names=nil)
3066
+ @InstanceId = instanceid
3067
+ @AlertIds = alertids
3068
+ @Names = names
3069
+ end
3070
+
3071
+ def deserialize(params)
3072
+ @InstanceId = params['InstanceId']
3073
+ @AlertIds = params['AlertIds']
3074
+ @Names = params['Names']
3075
+ end
3076
+ end
3077
+
3078
+ # DeletePrometheusAlertPolicy返回参数结构体
3079
+ class DeletePrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
3080
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3081
+ # @type RequestId: String
3082
+
3083
+ attr_accessor :RequestId
3084
+
3085
+ def initialize(requestid=nil)
3086
+ @RequestId = requestid
3087
+ end
3088
+
3089
+ def deserialize(params)
3090
+ @RequestId = params['RequestId']
3091
+ end
3092
+ end
3093
+
2928
3094
  # DeletePrometheusAlertRule请求参数结构体
2929
3095
  class DeletePrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
2930
3096
  # @param InstanceId: 实例id
@@ -2961,6 +3127,81 @@ module TencentCloud
2961
3127
  end
2962
3128
  end
2963
3129
 
3130
+ # DeletePrometheusTemp请求参数结构体
3131
+ class DeletePrometheusTempRequest < TencentCloud::Common::AbstractModel
3132
+ # @param TemplateId: 模板id
3133
+ # @type TemplateId: String
3134
+
3135
+ attr_accessor :TemplateId
3136
+
3137
+ def initialize(templateid=nil)
3138
+ @TemplateId = templateid
3139
+ end
3140
+
3141
+ def deserialize(params)
3142
+ @TemplateId = params['TemplateId']
3143
+ end
3144
+ end
3145
+
3146
+ # DeletePrometheusTemp返回参数结构体
3147
+ class DeletePrometheusTempResponse < TencentCloud::Common::AbstractModel
3148
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3149
+ # @type RequestId: String
3150
+
3151
+ attr_accessor :RequestId
3152
+
3153
+ def initialize(requestid=nil)
3154
+ @RequestId = requestid
3155
+ end
3156
+
3157
+ def deserialize(params)
3158
+ @RequestId = params['RequestId']
3159
+ end
3160
+ end
3161
+
3162
+ # DeletePrometheusTempSync请求参数结构体
3163
+ class DeletePrometheusTempSyncRequest < TencentCloud::Common::AbstractModel
3164
+ # @param TemplateId: 模板id
3165
+ # @type TemplateId: String
3166
+ # @param Targets: 取消同步的对象列表
3167
+ # @type Targets: Array
3168
+
3169
+ attr_accessor :TemplateId, :Targets
3170
+
3171
+ def initialize(templateid=nil, targets=nil)
3172
+ @TemplateId = templateid
3173
+ @Targets = targets
3174
+ end
3175
+
3176
+ def deserialize(params)
3177
+ @TemplateId = params['TemplateId']
3178
+ unless params['Targets'].nil?
3179
+ @Targets = []
3180
+ params['Targets'].each do |i|
3181
+ prometheustemplatesynctarget_tmp = PrometheusTemplateSyncTarget.new
3182
+ prometheustemplatesynctarget_tmp.deserialize(i)
3183
+ @Targets << prometheustemplatesynctarget_tmp
3184
+ end
3185
+ end
3186
+ end
3187
+ end
3188
+
3189
+ # DeletePrometheusTempSync返回参数结构体
3190
+ class DeletePrometheusTempSyncResponse < TencentCloud::Common::AbstractModel
3191
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3192
+ # @type RequestId: String
3193
+
3194
+ attr_accessor :RequestId
3195
+
3196
+ def initialize(requestid=nil)
3197
+ @RequestId = requestid
3198
+ end
3199
+
3200
+ def deserialize(params)
3201
+ @RequestId = params['RequestId']
3202
+ end
3203
+ end
3204
+
2964
3205
  # DeletePrometheusTemplate请求参数结构体
2965
3206
  class DeletePrometheusTemplateRequest < TencentCloud::Common::AbstractModel
2966
3207
  # @param TemplateId: 模板id
@@ -4921,8 +5162,8 @@ module TencentCloud
4921
5162
  end
4922
5163
  end
4923
5164
 
4924
- # DescribePrometheusAlertRule请求参数结构体
4925
- class DescribePrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
5165
+ # DescribePrometheusAlertPolicy请求参数结构体
5166
+ class DescribePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
4926
5167
  # @param InstanceId: 实例id
4927
5168
  # @type InstanceId: String
4928
5169
  # @param Offset: 分页
@@ -4957,9 +5198,10 @@ module TencentCloud
4957
5198
  end
4958
5199
  end
4959
5200
 
4960
- # DescribePrometheusAlertRule返回参数结构体
4961
- class DescribePrometheusAlertRuleResponse < TencentCloud::Common::AbstractModel
5201
+ # DescribePrometheusAlertPolicy返回参数结构体
5202
+ class DescribePrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
4962
5203
  # @param AlertRules: 告警详情
5204
+ # 注意:此字段可能返回 null,表示取不到有效值。
4963
5205
  # @type AlertRules: Array
4964
5206
  # @param Total: 总数
4965
5207
  # @type Total: Integer
@@ -4978,9 +5220,9 @@ module TencentCloud
4978
5220
  unless params['AlertRules'].nil?
4979
5221
  @AlertRules = []
4980
5222
  params['AlertRules'].each do |i|
4981
- prometheusalertruledetail_tmp = PrometheusAlertRuleDetail.new
4982
- prometheusalertruledetail_tmp.deserialize(i)
4983
- @AlertRules << prometheusalertruledetail_tmp
5223
+ prometheusalertpolicyitem_tmp = PrometheusAlertPolicyItem.new
5224
+ prometheusalertpolicyitem_tmp.deserialize(i)
5225
+ @AlertRules << prometheusalertpolicyitem_tmp
4984
5226
  end
4985
5227
  end
4986
5228
  @Total = params['Total']
@@ -4988,42 +5230,204 @@ module TencentCloud
4988
5230
  end
4989
5231
  end
4990
5232
 
4991
- # DescribePrometheusInstance请求参数结构体
4992
- class DescribePrometheusInstanceRequest < TencentCloud::Common::AbstractModel
5233
+ # DescribePrometheusAlertRule请求参数结构体
5234
+ class DescribePrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
4993
5235
  # @param InstanceId: 实例id
4994
5236
  # @type InstanceId: String
5237
+ # @param Offset: 分页
5238
+ # @type Offset: Integer
5239
+ # @param Limit: 分页
5240
+ # @type Limit: Integer
5241
+ # @param Filters: 过滤
5242
+ # 支持ID,Name
5243
+ # @type Filters: Array
4995
5244
 
4996
- attr_accessor :InstanceId
5245
+ attr_accessor :InstanceId, :Offset, :Limit, :Filters
4997
5246
 
4998
- def initialize(instanceid=nil)
5247
+ def initialize(instanceid=nil, offset=nil, limit=nil, filters=nil)
4999
5248
  @InstanceId = instanceid
5249
+ @Offset = offset
5250
+ @Limit = limit
5251
+ @Filters = filters
5000
5252
  end
5001
5253
 
5002
5254
  def deserialize(params)
5003
5255
  @InstanceId = params['InstanceId']
5256
+ @Offset = params['Offset']
5257
+ @Limit = params['Limit']
5258
+ unless params['Filters'].nil?
5259
+ @Filters = []
5260
+ params['Filters'].each do |i|
5261
+ filter_tmp = Filter.new
5262
+ filter_tmp.deserialize(i)
5263
+ @Filters << filter_tmp
5264
+ end
5265
+ end
5004
5266
  end
5005
5267
  end
5006
5268
 
5007
- # DescribePrometheusInstance返回参数结构体
5008
- class DescribePrometheusInstanceResponse < TencentCloud::Common::AbstractModel
5009
- # @param InstanceId: 实例id
5010
- # @type InstanceId: String
5011
- # @param Name: 实例名称
5012
- # @type Name: String
5013
- # @param VpcId: 私有网络id
5014
- # @type VpcId: String
5015
- # @param SubnetId: 子网id
5016
- # @type SubnetId: String
5017
- # @param COSBucket: cos桶名称
5018
- # @type COSBucket: String
5019
- # @param QueryAddress: 数据查询地址
5020
- # @type QueryAddress: String
5021
- # @param Grafana: 实例中grafana相关的信息
5022
- # 注意:此字段可能返回 null,表示取不到有效值。
5023
- # @type Grafana: :class:`Tencentcloud::Tke.v20180525.models.PrometheusGrafanaInfo`
5024
- # @param AlertManagerUrl: 用户自定义alertmanager
5025
- # 注意:此字段可能返回 null,表示取不到有效值。
5026
- # @type AlertManagerUrl: String
5269
+ # DescribePrometheusAlertRule返回参数结构体
5270
+ class DescribePrometheusAlertRuleResponse < TencentCloud::Common::AbstractModel
5271
+ # @param AlertRules: 告警详情
5272
+ # @type AlertRules: Array
5273
+ # @param Total: 总数
5274
+ # @type Total: Integer
5275
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5276
+ # @type RequestId: String
5277
+
5278
+ attr_accessor :AlertRules, :Total, :RequestId
5279
+
5280
+ def initialize(alertrules=nil, total=nil, requestid=nil)
5281
+ @AlertRules = alertrules
5282
+ @Total = total
5283
+ @RequestId = requestid
5284
+ end
5285
+
5286
+ def deserialize(params)
5287
+ unless params['AlertRules'].nil?
5288
+ @AlertRules = []
5289
+ params['AlertRules'].each do |i|
5290
+ prometheusalertruledetail_tmp = PrometheusAlertRuleDetail.new
5291
+ prometheusalertruledetail_tmp.deserialize(i)
5292
+ @AlertRules << prometheusalertruledetail_tmp
5293
+ end
5294
+ end
5295
+ @Total = params['Total']
5296
+ @RequestId = params['RequestId']
5297
+ end
5298
+ end
5299
+
5300
+ # DescribePrometheusClusterAgents请求参数结构体
5301
+ class DescribePrometheusClusterAgentsRequest < TencentCloud::Common::AbstractModel
5302
+ # @param InstanceId: 实例id
5303
+ # @type InstanceId: String
5304
+ # @param Offset: 用于分页
5305
+ # @type Offset: Integer
5306
+ # @param Limit: 用于分页
5307
+ # @type Limit: Integer
5308
+
5309
+ attr_accessor :InstanceId, :Offset, :Limit
5310
+
5311
+ def initialize(instanceid=nil, offset=nil, limit=nil)
5312
+ @InstanceId = instanceid
5313
+ @Offset = offset
5314
+ @Limit = limit
5315
+ end
5316
+
5317
+ def deserialize(params)
5318
+ @InstanceId = params['InstanceId']
5319
+ @Offset = params['Offset']
5320
+ @Limit = params['Limit']
5321
+ end
5322
+ end
5323
+
5324
+ # DescribePrometheusClusterAgents返回参数结构体
5325
+ class DescribePrometheusClusterAgentsResponse < TencentCloud::Common::AbstractModel
5326
+ # @param Agents: 被关联集群信息
5327
+ # @type Agents: Array
5328
+ # @param Total: 被关联集群总量
5329
+ # @type Total: Integer
5330
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5331
+ # @type RequestId: String
5332
+
5333
+ attr_accessor :Agents, :Total, :RequestId
5334
+
5335
+ def initialize(agents=nil, total=nil, requestid=nil)
5336
+ @Agents = agents
5337
+ @Total = total
5338
+ @RequestId = requestid
5339
+ end
5340
+
5341
+ def deserialize(params)
5342
+ unless params['Agents'].nil?
5343
+ @Agents = []
5344
+ params['Agents'].each do |i|
5345
+ prometheusagentoverview_tmp = PrometheusAgentOverview.new
5346
+ prometheusagentoverview_tmp.deserialize(i)
5347
+ @Agents << prometheusagentoverview_tmp
5348
+ end
5349
+ end
5350
+ @Total = params['Total']
5351
+ @RequestId = params['RequestId']
5352
+ end
5353
+ end
5354
+
5355
+ # DescribePrometheusGlobalNotification请求参数结构体
5356
+ class DescribePrometheusGlobalNotificationRequest < TencentCloud::Common::AbstractModel
5357
+ # @param InstanceId: 实例ID
5358
+ # @type InstanceId: String
5359
+
5360
+ attr_accessor :InstanceId
5361
+
5362
+ def initialize(instanceid=nil)
5363
+ @InstanceId = instanceid
5364
+ end
5365
+
5366
+ def deserialize(params)
5367
+ @InstanceId = params['InstanceId']
5368
+ end
5369
+ end
5370
+
5371
+ # DescribePrometheusGlobalNotification返回参数结构体
5372
+ class DescribePrometheusGlobalNotificationResponse < TencentCloud::Common::AbstractModel
5373
+ # @param Notification: 全局告警通知渠道
5374
+ # 注意:此字段可能返回 null,表示取不到有效值。
5375
+ # @type Notification: :class:`Tencentcloud::Tke.v20180525.models.PrometheusNotificationItem`
5376
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5377
+ # @type RequestId: String
5378
+
5379
+ attr_accessor :Notification, :RequestId
5380
+
5381
+ def initialize(notification=nil, requestid=nil)
5382
+ @Notification = notification
5383
+ @RequestId = requestid
5384
+ end
5385
+
5386
+ def deserialize(params)
5387
+ unless params['Notification'].nil?
5388
+ @Notification = PrometheusNotificationItem.new
5389
+ @Notification.deserialize(params['Notification'])
5390
+ end
5391
+ @RequestId = params['RequestId']
5392
+ end
5393
+ end
5394
+
5395
+ # DescribePrometheusInstance请求参数结构体
5396
+ class DescribePrometheusInstanceRequest < TencentCloud::Common::AbstractModel
5397
+ # @param InstanceId: 实例id
5398
+ # @type InstanceId: String
5399
+
5400
+ attr_accessor :InstanceId
5401
+
5402
+ def initialize(instanceid=nil)
5403
+ @InstanceId = instanceid
5404
+ end
5405
+
5406
+ def deserialize(params)
5407
+ @InstanceId = params['InstanceId']
5408
+ end
5409
+ end
5410
+
5411
+ # DescribePrometheusInstance返回参数结构体
5412
+ class DescribePrometheusInstanceResponse < TencentCloud::Common::AbstractModel
5413
+ # @param InstanceId: 实例id
5414
+ # @type InstanceId: String
5415
+ # @param Name: 实例名称
5416
+ # @type Name: String
5417
+ # @param VpcId: 私有网络id
5418
+ # @type VpcId: String
5419
+ # @param SubnetId: 子网id
5420
+ # @type SubnetId: String
5421
+ # @param COSBucket: cos桶名称
5422
+ # @type COSBucket: String
5423
+ # @param QueryAddress: 数据查询地址
5424
+ # @type QueryAddress: String
5425
+ # @param Grafana: 实例中grafana相关的信息
5426
+ # 注意:此字段可能返回 null,表示取不到有效值。
5427
+ # @type Grafana: :class:`Tencentcloud::Tke.v20180525.models.PrometheusGrafanaInfo`
5428
+ # @param AlertManagerUrl: 用户自定义alertmanager
5429
+ # 注意:此字段可能返回 null,表示取不到有效值。
5430
+ # @type AlertManagerUrl: String
5027
5431
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5028
5432
  # @type RequestId: String
5029
5433
 
@@ -5057,6 +5461,71 @@ module TencentCloud
5057
5461
  end
5058
5462
  end
5059
5463
 
5464
+ # DescribePrometheusInstancesOverview请求参数结构体
5465
+ class DescribePrometheusInstancesOverviewRequest < TencentCloud::Common::AbstractModel
5466
+ # @param Offset: 用于分页
5467
+ # @type Offset: Integer
5468
+ # @param Limit: 用于分页
5469
+ # @type Limit: Integer
5470
+ # @param Filters: 过滤实例,目前支持:
5471
+ # ID: 通过实例ID来过滤
5472
+ # Name: 通过实例名称来过滤
5473
+ # @type Filters: Array
5474
+
5475
+ attr_accessor :Offset, :Limit, :Filters
5476
+
5477
+ def initialize(offset=nil, limit=nil, filters=nil)
5478
+ @Offset = offset
5479
+ @Limit = limit
5480
+ @Filters = filters
5481
+ end
5482
+
5483
+ def deserialize(params)
5484
+ @Offset = params['Offset']
5485
+ @Limit = params['Limit']
5486
+ unless params['Filters'].nil?
5487
+ @Filters = []
5488
+ params['Filters'].each do |i|
5489
+ filter_tmp = Filter.new
5490
+ filter_tmp.deserialize(i)
5491
+ @Filters << filter_tmp
5492
+ end
5493
+ end
5494
+ end
5495
+ end
5496
+
5497
+ # DescribePrometheusInstancesOverview返回参数结构体
5498
+ class DescribePrometheusInstancesOverviewResponse < TencentCloud::Common::AbstractModel
5499
+ # @param Instances: 实例列表
5500
+ # @type Instances: Array
5501
+ # @param Total: 实例总数
5502
+ # 注意:此字段可能返回 null,表示取不到有效值。
5503
+ # @type Total: Integer
5504
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5505
+ # @type RequestId: String
5506
+
5507
+ attr_accessor :Instances, :Total, :RequestId
5508
+
5509
+ def initialize(instances=nil, total=nil, requestid=nil)
5510
+ @Instances = instances
5511
+ @Total = total
5512
+ @RequestId = requestid
5513
+ end
5514
+
5515
+ def deserialize(params)
5516
+ unless params['Instances'].nil?
5517
+ @Instances = []
5518
+ params['Instances'].each do |i|
5519
+ prometheusinstancesoverview_tmp = PrometheusInstancesOverview.new
5520
+ prometheusinstancesoverview_tmp.deserialize(i)
5521
+ @Instances << prometheusinstancesoverview_tmp
5522
+ end
5523
+ end
5524
+ @Total = params['Total']
5525
+ @RequestId = params['RequestId']
5526
+ end
5527
+ end
5528
+
5060
5529
  # DescribePrometheusOverviews请求参数结构体
5061
5530
  class DescribePrometheusOverviewsRequest < TencentCloud::Common::AbstractModel
5062
5531
  # @param Offset: 用于分页
@@ -5122,6 +5591,72 @@ module TencentCloud
5122
5591
  end
5123
5592
  end
5124
5593
 
5594
+ # DescribePrometheusRecordRules请求参数结构体
5595
+ class DescribePrometheusRecordRulesRequest < TencentCloud::Common::AbstractModel
5596
+ # @param InstanceId: 实例id
5597
+ # @type InstanceId: String
5598
+ # @param Offset: 分页
5599
+ # @type Offset: Integer
5600
+ # @param Limit: 分页
5601
+ # @type Limit: Integer
5602
+ # @param Filters: 过滤
5603
+ # @type Filters: Array
5604
+
5605
+ attr_accessor :InstanceId, :Offset, :Limit, :Filters
5606
+
5607
+ def initialize(instanceid=nil, offset=nil, limit=nil, filters=nil)
5608
+ @InstanceId = instanceid
5609
+ @Offset = offset
5610
+ @Limit = limit
5611
+ @Filters = filters
5612
+ end
5613
+
5614
+ def deserialize(params)
5615
+ @InstanceId = params['InstanceId']
5616
+ @Offset = params['Offset']
5617
+ @Limit = params['Limit']
5618
+ unless params['Filters'].nil?
5619
+ @Filters = []
5620
+ params['Filters'].each do |i|
5621
+ filter_tmp = Filter.new
5622
+ filter_tmp.deserialize(i)
5623
+ @Filters << filter_tmp
5624
+ end
5625
+ end
5626
+ end
5627
+ end
5628
+
5629
+ # DescribePrometheusRecordRules返回参数结构体
5630
+ class DescribePrometheusRecordRulesResponse < TencentCloud::Common::AbstractModel
5631
+ # @param Records: 聚合规则
5632
+ # @type Records: Array
5633
+ # @param Total: 总数
5634
+ # @type Total: Integer
5635
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5636
+ # @type RequestId: String
5637
+
5638
+ attr_accessor :Records, :Total, :RequestId
5639
+
5640
+ def initialize(records=nil, total=nil, requestid=nil)
5641
+ @Records = records
5642
+ @Total = total
5643
+ @RequestId = requestid
5644
+ end
5645
+
5646
+ def deserialize(params)
5647
+ unless params['Records'].nil?
5648
+ @Records = []
5649
+ params['Records'].each do |i|
5650
+ prometheusrecordruleyamlitem_tmp = PrometheusRecordRuleYamlItem.new
5651
+ prometheusrecordruleyamlitem_tmp.deserialize(i)
5652
+ @Records << prometheusrecordruleyamlitem_tmp
5653
+ end
5654
+ end
5655
+ @Total = params['Total']
5656
+ @RequestId = params['RequestId']
5657
+ end
5658
+ end
5659
+
5125
5660
  # DescribePrometheusTargets请求参数结构体
5126
5661
  class DescribePrometheusTargetsRequest < TencentCloud::Common::AbstractModel
5127
5662
  # @param InstanceId: 实例id
@@ -5186,6 +5721,116 @@ module TencentCloud
5186
5721
  end
5187
5722
  end
5188
5723
 
5724
+ # DescribePrometheusTemp请求参数结构体
5725
+ class DescribePrometheusTempRequest < TencentCloud::Common::AbstractModel
5726
+ # @param Filters: 模糊过滤条件,支持
5727
+ # Level 按模板级别过滤
5728
+ # Name 按名称过滤
5729
+ # Describe 按描述过滤
5730
+ # ID 按templateId过滤
5731
+ # @type Filters: Array
5732
+ # @param Offset: 分页偏移
5733
+ # @type Offset: Integer
5734
+ # @param Limit: 总数限制
5735
+ # @type Limit: Integer
5736
+
5737
+ attr_accessor :Filters, :Offset, :Limit
5738
+
5739
+ def initialize(filters=nil, offset=nil, limit=nil)
5740
+ @Filters = filters
5741
+ @Offset = offset
5742
+ @Limit = limit
5743
+ end
5744
+
5745
+ def deserialize(params)
5746
+ unless params['Filters'].nil?
5747
+ @Filters = []
5748
+ params['Filters'].each do |i|
5749
+ filter_tmp = Filter.new
5750
+ filter_tmp.deserialize(i)
5751
+ @Filters << filter_tmp
5752
+ end
5753
+ end
5754
+ @Offset = params['Offset']
5755
+ @Limit = params['Limit']
5756
+ end
5757
+ end
5758
+
5759
+ # DescribePrometheusTemp返回参数结构体
5760
+ class DescribePrometheusTempResponse < TencentCloud::Common::AbstractModel
5761
+ # @param Templates: 模板列表
5762
+ # @type Templates: Array
5763
+ # @param Total: 总数
5764
+ # @type Total: Integer
5765
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5766
+ # @type RequestId: String
5767
+
5768
+ attr_accessor :Templates, :Total, :RequestId
5769
+
5770
+ def initialize(templates=nil, total=nil, requestid=nil)
5771
+ @Templates = templates
5772
+ @Total = total
5773
+ @RequestId = requestid
5774
+ end
5775
+
5776
+ def deserialize(params)
5777
+ unless params['Templates'].nil?
5778
+ @Templates = []
5779
+ params['Templates'].each do |i|
5780
+ prometheustemp_tmp = PrometheusTemp.new
5781
+ prometheustemp_tmp.deserialize(i)
5782
+ @Templates << prometheustemp_tmp
5783
+ end
5784
+ end
5785
+ @Total = params['Total']
5786
+ @RequestId = params['RequestId']
5787
+ end
5788
+ end
5789
+
5790
+ # DescribePrometheusTempSync请求参数结构体
5791
+ class DescribePrometheusTempSyncRequest < TencentCloud::Common::AbstractModel
5792
+ # @param TemplateId: 模板ID
5793
+ # @type TemplateId: String
5794
+
5795
+ attr_accessor :TemplateId
5796
+
5797
+ def initialize(templateid=nil)
5798
+ @TemplateId = templateid
5799
+ end
5800
+
5801
+ def deserialize(params)
5802
+ @TemplateId = params['TemplateId']
5803
+ end
5804
+ end
5805
+
5806
+ # DescribePrometheusTempSync返回参数结构体
5807
+ class DescribePrometheusTempSyncResponse < TencentCloud::Common::AbstractModel
5808
+ # @param Targets: 同步目标详情
5809
+ # 注意:此字段可能返回 null,表示取不到有效值。
5810
+ # @type Targets: Array
5811
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5812
+ # @type RequestId: String
5813
+
5814
+ attr_accessor :Targets, :RequestId
5815
+
5816
+ def initialize(targets=nil, requestid=nil)
5817
+ @Targets = targets
5818
+ @RequestId = requestid
5819
+ end
5820
+
5821
+ def deserialize(params)
5822
+ unless params['Targets'].nil?
5823
+ @Targets = []
5824
+ params['Targets'].each do |i|
5825
+ prometheustemplatesynctarget_tmp = PrometheusTemplateSyncTarget.new
5826
+ prometheustemplatesynctarget_tmp.deserialize(i)
5827
+ @Targets << prometheustemplatesynctarget_tmp
5828
+ end
5829
+ end
5830
+ @RequestId = params['RequestId']
5831
+ end
5832
+ end
5833
+
5189
5834
  # DescribePrometheusTemplateSync请求参数结构体
5190
5835
  class DescribePrometheusTemplateSyncRequest < TencentCloud::Common::AbstractModel
5191
5836
  # @param TemplateId: 模板ID
@@ -5590,6 +6235,38 @@ module TencentCloud
5590
6235
  end
5591
6236
  end
5592
6237
 
6238
+ # DisableClusterAudit请求参数结构体
6239
+ class DisableClusterAuditRequest < TencentCloud::Common::AbstractModel
6240
+ # @param ClusterId: 集群ID
6241
+ # @type ClusterId: String
6242
+
6243
+ attr_accessor :ClusterId
6244
+
6245
+ def initialize(clusterid=nil)
6246
+ @ClusterId = clusterid
6247
+ end
6248
+
6249
+ def deserialize(params)
6250
+ @ClusterId = params['ClusterId']
6251
+ end
6252
+ end
6253
+
6254
+ # DisableClusterAudit返回参数结构体
6255
+ class DisableClusterAuditResponse < TencentCloud::Common::AbstractModel
6256
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6257
+ # @type RequestId: String
6258
+
6259
+ attr_accessor :RequestId
6260
+
6261
+ def initialize(requestid=nil)
6262
+ @RequestId = requestid
6263
+ end
6264
+
6265
+ def deserialize(params)
6266
+ @RequestId = params['RequestId']
6267
+ end
6268
+ end
6269
+
5593
6270
  # DisableClusterDeletionProtection请求参数结构体
5594
6271
  class DisableClusterDeletionProtectionRequest < TencentCloud::Common::AbstractModel
5595
6272
  # @param ClusterId: 集群ID
@@ -5622,6 +6299,38 @@ module TencentCloud
5622
6299
  end
5623
6300
  end
5624
6301
 
6302
+ # DisableEventPersistence请求参数结构体
6303
+ class DisableEventPersistenceRequest < TencentCloud::Common::AbstractModel
6304
+ # @param ClusterId: 集群ID
6305
+ # @type ClusterId: String
6306
+
6307
+ attr_accessor :ClusterId
6308
+
6309
+ def initialize(clusterid=nil)
6310
+ @ClusterId = clusterid
6311
+ end
6312
+
6313
+ def deserialize(params)
6314
+ @ClusterId = params['ClusterId']
6315
+ end
6316
+ end
6317
+
6318
+ # DisableEventPersistence返回参数结构体
6319
+ class DisableEventPersistenceResponse < TencentCloud::Common::AbstractModel
6320
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6321
+ # @type RequestId: String
6322
+
6323
+ attr_accessor :RequestId
6324
+
6325
+ def initialize(requestid=nil)
6326
+ @RequestId = requestid
6327
+ end
6328
+
6329
+ def deserialize(params)
6330
+ @RequestId = params['RequestId']
6331
+ end
6332
+ end
6333
+
5625
6334
  # DisableVpcCniNetworkType请求参数结构体
5626
6335
  class DisableVpcCniNetworkTypeRequest < TencentCloud::Common::AbstractModel
5627
6336
  # @param ClusterId: 集群ID
@@ -5991,6 +6700,46 @@ module TencentCloud
5991
6700
  end
5992
6701
  end
5993
6702
 
6703
+ # EnableClusterAudit请求参数结构体
6704
+ class EnableClusterAuditRequest < TencentCloud::Common::AbstractModel
6705
+ # @param ClusterId: 集群ID
6706
+ # @type ClusterId: String
6707
+ # @param LogsetId: CLS日志集ID
6708
+ # @type LogsetId: String
6709
+ # @param TopicId: CLS日志主题ID
6710
+ # @type TopicId: String
6711
+
6712
+ attr_accessor :ClusterId, :LogsetId, :TopicId
6713
+
6714
+ def initialize(clusterid=nil, logsetid=nil, topicid=nil)
6715
+ @ClusterId = clusterid
6716
+ @LogsetId = logsetid
6717
+ @TopicId = topicid
6718
+ end
6719
+
6720
+ def deserialize(params)
6721
+ @ClusterId = params['ClusterId']
6722
+ @LogsetId = params['LogsetId']
6723
+ @TopicId = params['TopicId']
6724
+ end
6725
+ end
6726
+
6727
+ # EnableClusterAudit返回参数结构体
6728
+ class EnableClusterAuditResponse < TencentCloud::Common::AbstractModel
6729
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6730
+ # @type RequestId: String
6731
+
6732
+ attr_accessor :RequestId
6733
+
6734
+ def initialize(requestid=nil)
6735
+ @RequestId = requestid
6736
+ end
6737
+
6738
+ def deserialize(params)
6739
+ @RequestId = params['RequestId']
6740
+ end
6741
+ end
6742
+
5994
6743
  # EnableClusterDeletionProtection请求参数结构体
5995
6744
  class EnableClusterDeletionProtectionRequest < TencentCloud::Common::AbstractModel
5996
6745
  # @param ClusterId: 集群ID
@@ -6023,6 +6772,46 @@ module TencentCloud
6023
6772
  end
6024
6773
  end
6025
6774
 
6775
+ # EnableEventPersistence请求参数结构体
6776
+ class EnableEventPersistenceRequest < TencentCloud::Common::AbstractModel
6777
+ # @param ClusterId: 集群ID
6778
+ # @type ClusterId: String
6779
+ # @param LogsetId: cls服务的logsetID
6780
+ # @type LogsetId: String
6781
+ # @param TopicId: cls服务的topicID
6782
+ # @type TopicId: String
6783
+
6784
+ attr_accessor :ClusterId, :LogsetId, :TopicId
6785
+
6786
+ def initialize(clusterid=nil, logsetid=nil, topicid=nil)
6787
+ @ClusterId = clusterid
6788
+ @LogsetId = logsetid
6789
+ @TopicId = topicid
6790
+ end
6791
+
6792
+ def deserialize(params)
6793
+ @ClusterId = params['ClusterId']
6794
+ @LogsetId = params['LogsetId']
6795
+ @TopicId = params['TopicId']
6796
+ end
6797
+ end
6798
+
6799
+ # EnableEventPersistence返回参数结构体
6800
+ class EnableEventPersistenceResponse < TencentCloud::Common::AbstractModel
6801
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6802
+ # @type RequestId: String
6803
+
6804
+ attr_accessor :RequestId
6805
+
6806
+ def initialize(requestid=nil)
6807
+ @RequestId = requestid
6808
+ end
6809
+
6810
+ def deserialize(params)
6811
+ @RequestId = params['RequestId']
6812
+ end
6813
+ end
6814
+
6026
6815
  # EnableVpcCniNetworkType请求参数结构体
6027
6816
  class EnableVpcCniNetworkTypeRequest < TencentCloud::Common::AbstractModel
6028
6817
  # @param ClusterId: 集群ID
@@ -6877,6 +7666,42 @@ module TencentCloud
6877
7666
  end
6878
7667
  end
6879
7668
 
7669
+ # InstallLogAgent请求参数结构体
7670
+ class InstallLogAgentRequest < TencentCloud::Common::AbstractModel
7671
+ # @param ClusterId: TKE集群ID
7672
+ # @type ClusterId: String
7673
+ # @param KubeletRootDir: kubelet根目录
7674
+ # @type KubeletRootDir: String
7675
+
7676
+ attr_accessor :ClusterId, :KubeletRootDir
7677
+
7678
+ def initialize(clusterid=nil, kubeletrootdir=nil)
7679
+ @ClusterId = clusterid
7680
+ @KubeletRootDir = kubeletrootdir
7681
+ end
7682
+
7683
+ def deserialize(params)
7684
+ @ClusterId = params['ClusterId']
7685
+ @KubeletRootDir = params['KubeletRootDir']
7686
+ end
7687
+ end
7688
+
7689
+ # InstallLogAgent返回参数结构体
7690
+ class InstallLogAgentResponse < TencentCloud::Common::AbstractModel
7691
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7692
+ # @type RequestId: String
7693
+
7694
+ attr_accessor :RequestId
7695
+
7696
+ def initialize(requestid=nil)
7697
+ @RequestId = requestid
7698
+ end
7699
+
7700
+ def deserialize(params)
7701
+ @RequestId = params['RequestId']
7702
+ end
7703
+ end
7704
+
6880
7705
  # 集群的实例信息
6881
7706
  class Instance < TencentCloud::Common::AbstractModel
6882
7707
  # @param InstanceId: 实例ID
@@ -7700,32 +8525,149 @@ module TencentCloud
7700
8525
  end
7701
8526
  end
7702
8527
 
7703
- # ModifyNodePoolInstanceTypes请求参数结构体
7704
- class ModifyNodePoolInstanceTypesRequest < TencentCloud::Common::AbstractModel
7705
- # @param ClusterId: 集群id
7706
- # @type ClusterId: String
7707
- # @param NodePoolId: 节点池id
7708
- # @type NodePoolId: String
7709
- # @param InstanceTypes: 机型列表
7710
- # @type InstanceTypes: Array
8528
+ # ModifyNodePoolInstanceTypes请求参数结构体
8529
+ class ModifyNodePoolInstanceTypesRequest < TencentCloud::Common::AbstractModel
8530
+ # @param ClusterId: 集群id
8531
+ # @type ClusterId: String
8532
+ # @param NodePoolId: 节点池id
8533
+ # @type NodePoolId: String
8534
+ # @param InstanceTypes: 机型列表
8535
+ # @type InstanceTypes: Array
8536
+
8537
+ attr_accessor :ClusterId, :NodePoolId, :InstanceTypes
8538
+
8539
+ def initialize(clusterid=nil, nodepoolid=nil, instancetypes=nil)
8540
+ @ClusterId = clusterid
8541
+ @NodePoolId = nodepoolid
8542
+ @InstanceTypes = instancetypes
8543
+ end
8544
+
8545
+ def deserialize(params)
8546
+ @ClusterId = params['ClusterId']
8547
+ @NodePoolId = params['NodePoolId']
8548
+ @InstanceTypes = params['InstanceTypes']
8549
+ end
8550
+ end
8551
+
8552
+ # ModifyNodePoolInstanceTypes返回参数结构体
8553
+ class ModifyNodePoolInstanceTypesResponse < TencentCloud::Common::AbstractModel
8554
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8555
+ # @type RequestId: String
8556
+
8557
+ attr_accessor :RequestId
8558
+
8559
+ def initialize(requestid=nil)
8560
+ @RequestId = requestid
8561
+ end
8562
+
8563
+ def deserialize(params)
8564
+ @RequestId = params['RequestId']
8565
+ end
8566
+ end
8567
+
8568
+ # ModifyPrometheusAlertPolicy请求参数结构体
8569
+ class ModifyPrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
8570
+ # @param InstanceId: 实例id
8571
+ # @type InstanceId: String
8572
+ # @param AlertRule: 告警配置
8573
+ # @type AlertRule: :class:`Tencentcloud::Tke.v20180525.models.PrometheusAlertPolicyItem`
8574
+
8575
+ attr_accessor :InstanceId, :AlertRule
8576
+
8577
+ def initialize(instanceid=nil, alertrule=nil)
8578
+ @InstanceId = instanceid
8579
+ @AlertRule = alertrule
8580
+ end
8581
+
8582
+ def deserialize(params)
8583
+ @InstanceId = params['InstanceId']
8584
+ unless params['AlertRule'].nil?
8585
+ @AlertRule = PrometheusAlertPolicyItem.new
8586
+ @AlertRule.deserialize(params['AlertRule'])
8587
+ end
8588
+ end
8589
+ end
8590
+
8591
+ # ModifyPrometheusAlertPolicy返回参数结构体
8592
+ class ModifyPrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
8593
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8594
+ # @type RequestId: String
8595
+
8596
+ attr_accessor :RequestId
8597
+
8598
+ def initialize(requestid=nil)
8599
+ @RequestId = requestid
8600
+ end
8601
+
8602
+ def deserialize(params)
8603
+ @RequestId = params['RequestId']
8604
+ end
8605
+ end
8606
+
8607
+ # ModifyPrometheusAlertRule请求参数结构体
8608
+ class ModifyPrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
8609
+ # @param InstanceId: 实例id
8610
+ # @type InstanceId: String
8611
+ # @param AlertRule: 告警配置
8612
+ # @type AlertRule: :class:`Tencentcloud::Tke.v20180525.models.PrometheusAlertRuleDetail`
8613
+
8614
+ attr_accessor :InstanceId, :AlertRule
8615
+
8616
+ def initialize(instanceid=nil, alertrule=nil)
8617
+ @InstanceId = instanceid
8618
+ @AlertRule = alertrule
8619
+ end
8620
+
8621
+ def deserialize(params)
8622
+ @InstanceId = params['InstanceId']
8623
+ unless params['AlertRule'].nil?
8624
+ @AlertRule = PrometheusAlertRuleDetail.new
8625
+ @AlertRule.deserialize(params['AlertRule'])
8626
+ end
8627
+ end
8628
+ end
8629
+
8630
+ # ModifyPrometheusAlertRule返回参数结构体
8631
+ class ModifyPrometheusAlertRuleResponse < TencentCloud::Common::AbstractModel
8632
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8633
+ # @type RequestId: String
8634
+
8635
+ attr_accessor :RequestId
8636
+
8637
+ def initialize(requestid=nil)
8638
+ @RequestId = requestid
8639
+ end
8640
+
8641
+ def deserialize(params)
8642
+ @RequestId = params['RequestId']
8643
+ end
8644
+ end
8645
+
8646
+ # ModifyPrometheusGlobalNotification请求参数结构体
8647
+ class ModifyPrometheusGlobalNotificationRequest < TencentCloud::Common::AbstractModel
8648
+ # @param InstanceId: 实例ID
8649
+ # @type InstanceId: String
8650
+ # @param Notification: 告警通知渠道
8651
+ # @type Notification: :class:`Tencentcloud::Tke.v20180525.models.PrometheusNotificationItem`
7711
8652
 
7712
- attr_accessor :ClusterId, :NodePoolId, :InstanceTypes
8653
+ attr_accessor :InstanceId, :Notification
7713
8654
 
7714
- def initialize(clusterid=nil, nodepoolid=nil, instancetypes=nil)
7715
- @ClusterId = clusterid
7716
- @NodePoolId = nodepoolid
7717
- @InstanceTypes = instancetypes
8655
+ def initialize(instanceid=nil, notification=nil)
8656
+ @InstanceId = instanceid
8657
+ @Notification = notification
7718
8658
  end
7719
8659
 
7720
8660
  def deserialize(params)
7721
- @ClusterId = params['ClusterId']
7722
- @NodePoolId = params['NodePoolId']
7723
- @InstanceTypes = params['InstanceTypes']
8661
+ @InstanceId = params['InstanceId']
8662
+ unless params['Notification'].nil?
8663
+ @Notification = PrometheusNotificationItem.new
8664
+ @Notification.deserialize(params['Notification'])
8665
+ end
7724
8666
  end
7725
8667
  end
7726
8668
 
7727
- # ModifyNodePoolInstanceTypes返回参数结构体
7728
- class ModifyNodePoolInstanceTypesResponse < TencentCloud::Common::AbstractModel
8669
+ # ModifyPrometheusGlobalNotification返回参数结构体
8670
+ class ModifyPrometheusGlobalNotificationResponse < TencentCloud::Common::AbstractModel
7729
8671
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7730
8672
  # @type RequestId: String
7731
8673
 
@@ -7740,31 +8682,31 @@ module TencentCloud
7740
8682
  end
7741
8683
  end
7742
8684
 
7743
- # ModifyPrometheusAlertRule请求参数结构体
7744
- class ModifyPrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
7745
- # @param InstanceId: 实例id
7746
- # @type InstanceId: String
7747
- # @param AlertRule: 告警配置
7748
- # @type AlertRule: :class:`Tencentcloud::Tke.v20180525.models.PrometheusAlertRuleDetail`
8685
+ # ModifyPrometheusTemp请求参数结构体
8686
+ class ModifyPrometheusTempRequest < TencentCloud::Common::AbstractModel
8687
+ # @param TemplateId: 模板ID
8688
+ # @type TemplateId: String
8689
+ # @param Template: 修改内容
8690
+ # @type Template: :class:`Tencentcloud::Tke.v20180525.models.PrometheusTempModify`
7749
8691
 
7750
- attr_accessor :InstanceId, :AlertRule
8692
+ attr_accessor :TemplateId, :Template
7751
8693
 
7752
- def initialize(instanceid=nil, alertrule=nil)
7753
- @InstanceId = instanceid
7754
- @AlertRule = alertrule
8694
+ def initialize(templateid=nil, template=nil)
8695
+ @TemplateId = templateid
8696
+ @Template = template
7755
8697
  end
7756
8698
 
7757
8699
  def deserialize(params)
7758
- @InstanceId = params['InstanceId']
7759
- unless params['AlertRule'].nil?
7760
- @AlertRule = PrometheusAlertRuleDetail.new
7761
- @AlertRule.deserialize(params['AlertRule'])
8700
+ @TemplateId = params['TemplateId']
8701
+ unless params['Template'].nil?
8702
+ @Template = PrometheusTempModify.new
8703
+ @Template.deserialize(params['Template'])
7762
8704
  end
7763
8705
  end
7764
8706
  end
7765
8707
 
7766
- # ModifyPrometheusAlertRule返回参数结构体
7767
- class ModifyPrometheusAlertRuleResponse < TencentCloud::Common::AbstractModel
8708
+ # ModifyPrometheusTemp返回参数结构体
8709
+ class ModifyPrometheusTempResponse < TencentCloud::Common::AbstractModel
7768
8710
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7769
8711
  # @type RequestId: String
7770
8712
 
@@ -8207,6 +9149,87 @@ module TencentCloud
8207
9149
  end
8208
9150
  end
8209
9151
 
9152
+ # 告警渠道使用自建alertmanager的配置
9153
+ class PrometheusAlertManagerConfig < TencentCloud::Common::AbstractModel
9154
+ # @param Url: alertmanager url
9155
+ # @type Url: String
9156
+ # @param ClusterType: alertmanager部署所在集群类型
9157
+ # 注意:此字段可能返回 null,表示取不到有效值。
9158
+ # @type ClusterType: String
9159
+ # @param ClusterId: alertmanager部署所在集群ID
9160
+ # 注意:此字段可能返回 null,表示取不到有效值。
9161
+ # @type ClusterId: String
9162
+
9163
+ attr_accessor :Url, :ClusterType, :ClusterId
9164
+
9165
+ def initialize(url=nil, clustertype=nil, clusterid=nil)
9166
+ @Url = url
9167
+ @ClusterType = clustertype
9168
+ @ClusterId = clusterid
9169
+ end
9170
+
9171
+ def deserialize(params)
9172
+ @Url = params['Url']
9173
+ @ClusterType = params['ClusterType']
9174
+ @ClusterId = params['ClusterId']
9175
+ end
9176
+ end
9177
+
9178
+ # 托管prometheus告警策略实例
9179
+ class PrometheusAlertPolicyItem < TencentCloud::Common::AbstractModel
9180
+ # @param Name: 策略名称
9181
+ # @type Name: String
9182
+ # @param Rules: 规则列表
9183
+ # @type Rules: Array
9184
+ # @param Id: 告警策略 id
9185
+ # 注意:此字段可能返回 null,表示取不到有效值。
9186
+ # @type Id: String
9187
+ # @param TemplateId: 如果该告警来自模板下发,则TemplateId为模板id
9188
+ # 注意:此字段可能返回 null,表示取不到有效值。
9189
+ # @type TemplateId: String
9190
+ # @param Notification: 告警渠道,模板中使用可能返回null
9191
+ # 注意:此字段可能返回 null,表示取不到有效值。
9192
+ # @type Notification: :class:`Tencentcloud::Tke.v20180525.models.PrometheusNotificationItem`
9193
+ # @param UpdatedAt: 最后修改时间
9194
+ # 注意:此字段可能返回 null,表示取不到有效值。
9195
+ # @type UpdatedAt: String
9196
+ # @param ClusterId: 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID
9197
+ # 注意:此字段可能返回 null,表示取不到有效值。
9198
+ # @type ClusterId: String
9199
+
9200
+ attr_accessor :Name, :Rules, :Id, :TemplateId, :Notification, :UpdatedAt, :ClusterId
9201
+
9202
+ def initialize(name=nil, rules=nil, id=nil, templateid=nil, notification=nil, updatedat=nil, clusterid=nil)
9203
+ @Name = name
9204
+ @Rules = rules
9205
+ @Id = id
9206
+ @TemplateId = templateid
9207
+ @Notification = notification
9208
+ @UpdatedAt = updatedat
9209
+ @ClusterId = clusterid
9210
+ end
9211
+
9212
+ def deserialize(params)
9213
+ @Name = params['Name']
9214
+ unless params['Rules'].nil?
9215
+ @Rules = []
9216
+ params['Rules'].each do |i|
9217
+ prometheusalertrule_tmp = PrometheusAlertRule.new
9218
+ prometheusalertrule_tmp.deserialize(i)
9219
+ @Rules << prometheusalertrule_tmp
9220
+ end
9221
+ end
9222
+ @Id = params['Id']
9223
+ @TemplateId = params['TemplateId']
9224
+ unless params['Notification'].nil?
9225
+ @Notification = PrometheusNotificationItem.new
9226
+ @Notification.deserialize(params['Notification'])
9227
+ end
9228
+ @UpdatedAt = params['UpdatedAt']
9229
+ @ClusterId = params['ClusterId']
9230
+ end
9231
+ end
9232
+
8210
9233
  # Prometheus告警规则
8211
9234
  class PrometheusAlertRule < TencentCloud::Common::AbstractModel
8212
9235
  # @param Name: 规则名称
@@ -8434,6 +9457,84 @@ module TencentCloud
8434
9457
  end
8435
9458
  end
8436
9459
 
9460
+ # 托管prometheusV2实例概览
9461
+ class PrometheusInstancesOverview < TencentCloud::Common::AbstractModel
9462
+ # @param InstanceId: 实例ID
9463
+ # @type InstanceId: String
9464
+ # @param InstanceName: 实例名
9465
+ # @type InstanceName: String
9466
+ # @param VpcId: VPC ID
9467
+ # @type VpcId: String
9468
+ # @param SubnetId: 子网ID
9469
+ # @type SubnetId: String
9470
+ # @param InstanceStatus: 运行状态(1:正在创建;2:运行中;3:异常;4:重启中;5:销毁中; 6:已停机; 7: 已删除)
9471
+ # @type InstanceStatus: Integer
9472
+ # @param ChargeStatus: 计费状态(1:正常;2:过期; 3:销毁; 4:分配中; 5:分配失败)
9473
+ # 注意:此字段可能返回 null,表示取不到有效值。
9474
+ # @type ChargeStatus: Integer
9475
+ # @param EnableGrafana: 是否开启 Grafana(0:不开启,1:开启)
9476
+ # @type EnableGrafana: Integer
9477
+ # @param GrafanaURL: Grafana 面板 URL
9478
+ # 注意:此字段可能返回 null,表示取不到有效值。
9479
+ # @type GrafanaURL: String
9480
+ # @param InstanceChargeType: 实例付费类型(1:试用版;2:预付费)
9481
+ # @type InstanceChargeType: Integer
9482
+ # @param SpecName: 规格名称
9483
+ # 注意:此字段可能返回 null,表示取不到有效值。
9484
+ # @type SpecName: String
9485
+ # @param DataRetentionTime: 存储周期
9486
+ # 注意:此字段可能返回 null,表示取不到有效值。
9487
+ # @type DataRetentionTime: Integer
9488
+ # @param ExpireTime: 购买的实例过期时间
9489
+ # 注意:此字段可能返回 null,表示取不到有效值。
9490
+ # @type ExpireTime: String
9491
+ # @param AutoRenewFlag: 自动续费标记(0:不自动续费;1:开启自动续费;2:禁止自动续费;-1:无效)
9492
+ # 注意:此字段可能返回 null,表示取不到有效值。
9493
+ # @type AutoRenewFlag: Integer
9494
+ # @param BoundTotal: 绑定集群总数
9495
+ # @type BoundTotal: Integer
9496
+ # @param BoundNormal: 绑定集群正常状态总数
9497
+ # @type BoundNormal: Integer
9498
+
9499
+ attr_accessor :InstanceId, :InstanceName, :VpcId, :SubnetId, :InstanceStatus, :ChargeStatus, :EnableGrafana, :GrafanaURL, :InstanceChargeType, :SpecName, :DataRetentionTime, :ExpireTime, :AutoRenewFlag, :BoundTotal, :BoundNormal
9500
+
9501
+ def initialize(instanceid=nil, instancename=nil, vpcid=nil, subnetid=nil, instancestatus=nil, chargestatus=nil, enablegrafana=nil, grafanaurl=nil, instancechargetype=nil, specname=nil, dataretentiontime=nil, expiretime=nil, autorenewflag=nil, boundtotal=nil, boundnormal=nil)
9502
+ @InstanceId = instanceid
9503
+ @InstanceName = instancename
9504
+ @VpcId = vpcid
9505
+ @SubnetId = subnetid
9506
+ @InstanceStatus = instancestatus
9507
+ @ChargeStatus = chargestatus
9508
+ @EnableGrafana = enablegrafana
9509
+ @GrafanaURL = grafanaurl
9510
+ @InstanceChargeType = instancechargetype
9511
+ @SpecName = specname
9512
+ @DataRetentionTime = dataretentiontime
9513
+ @ExpireTime = expiretime
9514
+ @AutoRenewFlag = autorenewflag
9515
+ @BoundTotal = boundtotal
9516
+ @BoundNormal = boundnormal
9517
+ end
9518
+
9519
+ def deserialize(params)
9520
+ @InstanceId = params['InstanceId']
9521
+ @InstanceName = params['InstanceName']
9522
+ @VpcId = params['VpcId']
9523
+ @SubnetId = params['SubnetId']
9524
+ @InstanceStatus = params['InstanceStatus']
9525
+ @ChargeStatus = params['ChargeStatus']
9526
+ @EnableGrafana = params['EnableGrafana']
9527
+ @GrafanaURL = params['GrafanaURL']
9528
+ @InstanceChargeType = params['InstanceChargeType']
9529
+ @SpecName = params['SpecName']
9530
+ @DataRetentionTime = params['DataRetentionTime']
9531
+ @ExpireTime = params['ExpireTime']
9532
+ @AutoRenewFlag = params['AutoRenewFlag']
9533
+ @BoundTotal = params['BoundTotal']
9534
+ @BoundNormal = params['BoundNormal']
9535
+ end
9536
+ end
9537
+
8437
9538
  # prometheus一个job的targets
8438
9539
  class PrometheusJobTargets < TencentCloud::Common::AbstractModel
8439
9540
  # @param Targets: 该Job的targets列表
@@ -8550,6 +9651,128 @@ module TencentCloud
8550
9651
  end
8551
9652
  end
8552
9653
 
9654
+ # 告警通知渠道配置
9655
+ class PrometheusNotificationItem < TencentCloud::Common::AbstractModel
9656
+ # @param Enabled: 是否启用
9657
+ # @type Enabled: Boolean
9658
+ # @param Type: 通道类型,默认为amp,支持以下
9659
+ # amp
9660
+ # webhook
9661
+ # alertmanager
9662
+ # @type Type: String
9663
+ # @param WebHook: 如果Type为webhook, 则该字段为必填项
9664
+ # 注意:此字段可能返回 null,表示取不到有效值。
9665
+ # @type WebHook: String
9666
+ # @param AlertManager: 如果Type为alertmanager, 则该字段为必填项
9667
+ # 注意:此字段可能返回 null,表示取不到有效值。
9668
+ # @type AlertManager: :class:`Tencentcloud::Tke.v20180525.models.PrometheusAlertManagerConfig`
9669
+ # @param RepeatInterval: 收敛时间
9670
+ # @type RepeatInterval: String
9671
+ # @param TimeRangeStart: 生效起始时间
9672
+ # @type TimeRangeStart: String
9673
+ # @param TimeRangeEnd: 生效结束时间
9674
+ # @type TimeRangeEnd: String
9675
+ # @param NotifyWay: 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。
9676
+ # 注意:此字段可能返回 null,表示取不到有效值。
9677
+ # @type NotifyWay: Array
9678
+ # @param ReceiverGroups: 告警接收组(用户组)
9679
+ # 注意:此字段可能返回 null,表示取不到有效值。
9680
+ # @type ReceiverGroups: Array
9681
+ # @param PhoneNotifyOrder: 电话告警顺序。
9682
+ # 注:NotifyWay选择CALL,采用该参数。
9683
+ # 注意:此字段可能返回 null,表示取不到有效值。
9684
+ # @type PhoneNotifyOrder: Array
9685
+ # @param PhoneCircleTimes: 电话告警次数。
9686
+ # 注:NotifyWay选择CALL,采用该参数。
9687
+ # 注意:此字段可能返回 null,表示取不到有效值。
9688
+ # @type PhoneCircleTimes: Integer
9689
+ # @param PhoneInnerInterval: 电话告警轮内间隔。单位:秒
9690
+ # 注:NotifyWay选择CALL,采用该参数。
9691
+ # 注意:此字段可能返回 null,表示取不到有效值。
9692
+ # @type PhoneInnerInterval: Integer
9693
+ # @param PhoneCircleInterval: 电话告警轮外间隔。单位:秒
9694
+ # 注:NotifyWay选择CALL,采用该参数。
9695
+ # 注意:此字段可能返回 null,表示取不到有效值。
9696
+ # @type PhoneCircleInterval: Integer
9697
+ # @param PhoneArriveNotice: 电话告警触达通知
9698
+ # 注:NotifyWay选择CALL,采用该参数。
9699
+ # 注意:此字段可能返回 null,表示取不到有效值。
9700
+ # @type PhoneArriveNotice: Boolean
9701
+
9702
+ attr_accessor :Enabled, :Type, :WebHook, :AlertManager, :RepeatInterval, :TimeRangeStart, :TimeRangeEnd, :NotifyWay, :ReceiverGroups, :PhoneNotifyOrder, :PhoneCircleTimes, :PhoneInnerInterval, :PhoneCircleInterval, :PhoneArriveNotice
9703
+
9704
+ def initialize(enabled=nil, type=nil, webhook=nil, alertmanager=nil, repeatinterval=nil, timerangestart=nil, timerangeend=nil, notifyway=nil, receivergroups=nil, phonenotifyorder=nil, phonecircletimes=nil, phoneinnerinterval=nil, phonecircleinterval=nil, phonearrivenotice=nil)
9705
+ @Enabled = enabled
9706
+ @Type = type
9707
+ @WebHook = webhook
9708
+ @AlertManager = alertmanager
9709
+ @RepeatInterval = repeatinterval
9710
+ @TimeRangeStart = timerangestart
9711
+ @TimeRangeEnd = timerangeend
9712
+ @NotifyWay = notifyway
9713
+ @ReceiverGroups = receivergroups
9714
+ @PhoneNotifyOrder = phonenotifyorder
9715
+ @PhoneCircleTimes = phonecircletimes
9716
+ @PhoneInnerInterval = phoneinnerinterval
9717
+ @PhoneCircleInterval = phonecircleinterval
9718
+ @PhoneArriveNotice = phonearrivenotice
9719
+ end
9720
+
9721
+ def deserialize(params)
9722
+ @Enabled = params['Enabled']
9723
+ @Type = params['Type']
9724
+ @WebHook = params['WebHook']
9725
+ unless params['AlertManager'].nil?
9726
+ @AlertManager = PrometheusAlertManagerConfig.new
9727
+ @AlertManager.deserialize(params['AlertManager'])
9728
+ end
9729
+ @RepeatInterval = params['RepeatInterval']
9730
+ @TimeRangeStart = params['TimeRangeStart']
9731
+ @TimeRangeEnd = params['TimeRangeEnd']
9732
+ @NotifyWay = params['NotifyWay']
9733
+ @ReceiverGroups = params['ReceiverGroups']
9734
+ @PhoneNotifyOrder = params['PhoneNotifyOrder']
9735
+ @PhoneCircleTimes = params['PhoneCircleTimes']
9736
+ @PhoneInnerInterval = params['PhoneInnerInterval']
9737
+ @PhoneCircleInterval = params['PhoneCircleInterval']
9738
+ @PhoneArriveNotice = params['PhoneArriveNotice']
9739
+ end
9740
+ end
9741
+
9742
+ # prometheus聚合规则实例详情,包含所属集群ID
9743
+ class PrometheusRecordRuleYamlItem < TencentCloud::Common::AbstractModel
9744
+ # @param Name: 实例名称
9745
+ # @type Name: String
9746
+ # @param UpdateTime: 最近更新时间
9747
+ # @type UpdateTime: String
9748
+ # @param TemplateId: Yaml内容
9749
+ # @type TemplateId: String
9750
+ # @param Content: 如果该聚合规则来至模板,则TemplateId为模板id
9751
+ # 注意:此字段可能返回 null,表示取不到有效值。
9752
+ # @type Content: String
9753
+ # @param ClusterId: 该聚合规则如果来源于用户集群crd资源定义,则ClusterId为所属集群ID
9754
+ # 注意:此字段可能返回 null,表示取不到有效值。
9755
+ # @type ClusterId: String
9756
+
9757
+ attr_accessor :Name, :UpdateTime, :TemplateId, :Content, :ClusterId
9758
+
9759
+ def initialize(name=nil, updatetime=nil, templateid=nil, content=nil, clusterid=nil)
9760
+ @Name = name
9761
+ @UpdateTime = updatetime
9762
+ @TemplateId = templateid
9763
+ @Content = content
9764
+ @ClusterId = clusterid
9765
+ end
9766
+
9767
+ def deserialize(params)
9768
+ @Name = params['Name']
9769
+ @UpdateTime = params['UpdateTime']
9770
+ @TemplateId = params['TemplateId']
9771
+ @Content = params['Content']
9772
+ @ClusterId = params['ClusterId']
9773
+ end
9774
+ end
9775
+
8553
9776
  # prometheus一个抓取目标的信息
8554
9777
  class PrometheusTarget < TencentCloud::Common::AbstractModel
8555
9778
  # @param Url: 抓取目标的URL
@@ -8596,6 +9819,208 @@ module TencentCloud
8596
9819
  end
8597
9820
  end
8598
9821
 
9822
+ # 模板实例
9823
+ class PrometheusTemp < TencentCloud::Common::AbstractModel
9824
+ # @param Name: 模板名称
9825
+ # @type Name: String
9826
+ # @param Level: 模板维度,支持以下类型
9827
+ # instance 实例级别
9828
+ # cluster 集群级别
9829
+ # @type Level: String
9830
+ # @param Describe: 模板描述
9831
+ # 注意:此字段可能返回 null,表示取不到有效值。
9832
+ # @type Describe: String
9833
+ # @param RecordRules: 当Level为instance时有效,
9834
+ # 模板中的聚合规则列表
9835
+ # 注意:此字段可能返回 null,表示取不到有效值。
9836
+ # @type RecordRules: Array
9837
+ # @param ServiceMonitors: 当Level为cluster时有效,
9838
+ # 模板中的ServiceMonitor规则列表
9839
+ # 注意:此字段可能返回 null,表示取不到有效值。
9840
+ # @type ServiceMonitors: Array
9841
+ # @param PodMonitors: 当Level为cluster时有效,
9842
+ # 模板中的PodMonitors规则列表
9843
+ # 注意:此字段可能返回 null,表示取不到有效值。
9844
+ # @type PodMonitors: Array
9845
+ # @param RawJobs: 当Level为cluster时有效,
9846
+ # 模板中的RawJobs规则列表
9847
+ # 注意:此字段可能返回 null,表示取不到有效值。
9848
+ # @type RawJobs: Array
9849
+ # @param TemplateId: 模板的ID, 用于出参
9850
+ # 注意:此字段可能返回 null,表示取不到有效值。
9851
+ # @type TemplateId: String
9852
+ # @param UpdateTime: 最近更新时间,用于出参
9853
+ # 注意:此字段可能返回 null,表示取不到有效值。
9854
+ # @type UpdateTime: String
9855
+ # @param Version: 当前版本,用于出参
9856
+ # 注意:此字段可能返回 null,表示取不到有效值。
9857
+ # @type Version: String
9858
+ # @param IsDefault: 是否系统提供的默认模板,用于出参
9859
+ # 注意:此字段可能返回 null,表示取不到有效值。
9860
+ # @type IsDefault: Boolean
9861
+ # @param AlertDetailRules: 当Level为instance时有效,
9862
+ # 模板中的告警配置列表
9863
+ # 注意:此字段可能返回 null,表示取不到有效值。
9864
+ # @type AlertDetailRules: Array
9865
+ # @param TargetsTotal: 关联实例数目
9866
+ # 注意:此字段可能返回 null,表示取不到有效值。
9867
+ # @type TargetsTotal: Integer
9868
+
9869
+ attr_accessor :Name, :Level, :Describe, :RecordRules, :ServiceMonitors, :PodMonitors, :RawJobs, :TemplateId, :UpdateTime, :Version, :IsDefault, :AlertDetailRules, :TargetsTotal
9870
+
9871
+ def initialize(name=nil, level=nil, describe=nil, recordrules=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, templateid=nil, updatetime=nil, version=nil, isdefault=nil, alertdetailrules=nil, targetstotal=nil)
9872
+ @Name = name
9873
+ @Level = level
9874
+ @Describe = describe
9875
+ @RecordRules = recordrules
9876
+ @ServiceMonitors = servicemonitors
9877
+ @PodMonitors = podmonitors
9878
+ @RawJobs = rawjobs
9879
+ @TemplateId = templateid
9880
+ @UpdateTime = updatetime
9881
+ @Version = version
9882
+ @IsDefault = isdefault
9883
+ @AlertDetailRules = alertdetailrules
9884
+ @TargetsTotal = targetstotal
9885
+ end
9886
+
9887
+ def deserialize(params)
9888
+ @Name = params['Name']
9889
+ @Level = params['Level']
9890
+ @Describe = params['Describe']
9891
+ unless params['RecordRules'].nil?
9892
+ @RecordRules = []
9893
+ params['RecordRules'].each do |i|
9894
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
9895
+ prometheusconfigitem_tmp.deserialize(i)
9896
+ @RecordRules << prometheusconfigitem_tmp
9897
+ end
9898
+ end
9899
+ unless params['ServiceMonitors'].nil?
9900
+ @ServiceMonitors = []
9901
+ params['ServiceMonitors'].each do |i|
9902
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
9903
+ prometheusconfigitem_tmp.deserialize(i)
9904
+ @ServiceMonitors << prometheusconfigitem_tmp
9905
+ end
9906
+ end
9907
+ unless params['PodMonitors'].nil?
9908
+ @PodMonitors = []
9909
+ params['PodMonitors'].each do |i|
9910
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
9911
+ prometheusconfigitem_tmp.deserialize(i)
9912
+ @PodMonitors << prometheusconfigitem_tmp
9913
+ end
9914
+ end
9915
+ unless params['RawJobs'].nil?
9916
+ @RawJobs = []
9917
+ params['RawJobs'].each do |i|
9918
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
9919
+ prometheusconfigitem_tmp.deserialize(i)
9920
+ @RawJobs << prometheusconfigitem_tmp
9921
+ end
9922
+ end
9923
+ @TemplateId = params['TemplateId']
9924
+ @UpdateTime = params['UpdateTime']
9925
+ @Version = params['Version']
9926
+ @IsDefault = params['IsDefault']
9927
+ unless params['AlertDetailRules'].nil?
9928
+ @AlertDetailRules = []
9929
+ params['AlertDetailRules'].each do |i|
9930
+ prometheusalertpolicyitem_tmp = PrometheusAlertPolicyItem.new
9931
+ prometheusalertpolicyitem_tmp.deserialize(i)
9932
+ @AlertDetailRules << prometheusalertpolicyitem_tmp
9933
+ end
9934
+ end
9935
+ @TargetsTotal = params['TargetsTotal']
9936
+ end
9937
+ end
9938
+
9939
+ # 云原生Prometheus模板可修改项
9940
+ class PrometheusTempModify < TencentCloud::Common::AbstractModel
9941
+ # @param Name: 修改名称
9942
+ # @type Name: String
9943
+ # @param Describe: 修改描述
9944
+ # 注意:此字段可能返回 null,表示取不到有效值。
9945
+ # @type Describe: String
9946
+ # @param ServiceMonitors: 当Level为cluster时有效,
9947
+ # 模板中的ServiceMonitor规则列表
9948
+ # 注意:此字段可能返回 null,表示取不到有效值。
9949
+ # @type ServiceMonitors: Array
9950
+ # @param PodMonitors: 当Level为cluster时有效,
9951
+ # 模板中的PodMonitors规则列表
9952
+ # 注意:此字段可能返回 null,表示取不到有效值。
9953
+ # @type PodMonitors: Array
9954
+ # @param RawJobs: 当Level为cluster时有效,
9955
+ # 模板中的RawJobs规则列表
9956
+ # 注意:此字段可能返回 null,表示取不到有效值。
9957
+ # @type RawJobs: Array
9958
+ # @param RecordRules: 当Level为instance时有效,
9959
+ # 模板中的聚合规则列表
9960
+ # 注意:此字段可能返回 null,表示取不到有效值。
9961
+ # @type RecordRules: Array
9962
+ # @param AlertDetailRules: 修改内容,只有当模板类型是Alert时生效
9963
+ # 注意:此字段可能返回 null,表示取不到有效值。
9964
+ # @type AlertDetailRules: Array
9965
+
9966
+ attr_accessor :Name, :Describe, :ServiceMonitors, :PodMonitors, :RawJobs, :RecordRules, :AlertDetailRules
9967
+
9968
+ def initialize(name=nil, describe=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, recordrules=nil, alertdetailrules=nil)
9969
+ @Name = name
9970
+ @Describe = describe
9971
+ @ServiceMonitors = servicemonitors
9972
+ @PodMonitors = podmonitors
9973
+ @RawJobs = rawjobs
9974
+ @RecordRules = recordrules
9975
+ @AlertDetailRules = alertdetailrules
9976
+ end
9977
+
9978
+ def deserialize(params)
9979
+ @Name = params['Name']
9980
+ @Describe = params['Describe']
9981
+ unless params['ServiceMonitors'].nil?
9982
+ @ServiceMonitors = []
9983
+ params['ServiceMonitors'].each do |i|
9984
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
9985
+ prometheusconfigitem_tmp.deserialize(i)
9986
+ @ServiceMonitors << prometheusconfigitem_tmp
9987
+ end
9988
+ end
9989
+ unless params['PodMonitors'].nil?
9990
+ @PodMonitors = []
9991
+ params['PodMonitors'].each do |i|
9992
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
9993
+ prometheusconfigitem_tmp.deserialize(i)
9994
+ @PodMonitors << prometheusconfigitem_tmp
9995
+ end
9996
+ end
9997
+ unless params['RawJobs'].nil?
9998
+ @RawJobs = []
9999
+ params['RawJobs'].each do |i|
10000
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
10001
+ prometheusconfigitem_tmp.deserialize(i)
10002
+ @RawJobs << prometheusconfigitem_tmp
10003
+ end
10004
+ end
10005
+ unless params['RecordRules'].nil?
10006
+ @RecordRules = []
10007
+ params['RecordRules'].each do |i|
10008
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
10009
+ prometheusconfigitem_tmp.deserialize(i)
10010
+ @RecordRules << prometheusconfigitem_tmp
10011
+ end
10012
+ end
10013
+ unless params['AlertDetailRules'].nil?
10014
+ @AlertDetailRules = []
10015
+ params['AlertDetailRules'].each do |i|
10016
+ prometheusalertpolicyitem_tmp = PrometheusAlertPolicyItem.new
10017
+ prometheusalertpolicyitem_tmp.deserialize(i)
10018
+ @AlertDetailRules << prometheusalertpolicyitem_tmp
10019
+ end
10020
+ end
10021
+ end
10022
+ end
10023
+
8599
10024
  # 模板实例
8600
10025
  class PrometheusTemplate < TencentCloud::Common::AbstractModel
8601
10026
  # @param Name: 模板名称
@@ -9447,6 +10872,49 @@ module TencentCloud
9447
10872
  end
9448
10873
  end
9449
10874
 
10875
+ # SyncPrometheusTemp请求参数结构体
10876
+ class SyncPrometheusTempRequest < TencentCloud::Common::AbstractModel
10877
+ # @param TemplateId: 实例id
10878
+ # @type TemplateId: String
10879
+ # @param Targets: 同步目标
10880
+ # @type Targets: Array
10881
+
10882
+ attr_accessor :TemplateId, :Targets
10883
+
10884
+ def initialize(templateid=nil, targets=nil)
10885
+ @TemplateId = templateid
10886
+ @Targets = targets
10887
+ end
10888
+
10889
+ def deserialize(params)
10890
+ @TemplateId = params['TemplateId']
10891
+ unless params['Targets'].nil?
10892
+ @Targets = []
10893
+ params['Targets'].each do |i|
10894
+ prometheustemplatesynctarget_tmp = PrometheusTemplateSyncTarget.new
10895
+ prometheustemplatesynctarget_tmp.deserialize(i)
10896
+ @Targets << prometheustemplatesynctarget_tmp
10897
+ end
10898
+ end
10899
+ end
10900
+ end
10901
+
10902
+ # SyncPrometheusTemp返回参数结构体
10903
+ class SyncPrometheusTempResponse < TencentCloud::Common::AbstractModel
10904
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10905
+ # @type RequestId: String
10906
+
10907
+ attr_accessor :RequestId
10908
+
10909
+ def initialize(requestid=nil)
10910
+ @RequestId = requestid
10911
+ end
10912
+
10913
+ def deserialize(params)
10914
+ @RequestId = params['RequestId']
10915
+ end
10916
+ end
10917
+
9450
10918
  # SyncPrometheusTemplate请求参数结构体
9451
10919
  class SyncPrometheusTemplateRequest < TencentCloud::Common::AbstractModel
9452
10920
  # @param TemplateId: 实例id
@@ -9619,6 +11087,38 @@ module TencentCloud
9619
11087
  end
9620
11088
  end
9621
11089
 
11090
+ # UninstallLogAgent请求参数结构体
11091
+ class UninstallLogAgentRequest < TencentCloud::Common::AbstractModel
11092
+ # @param ClusterId: 集群ID
11093
+ # @type ClusterId: String
11094
+
11095
+ attr_accessor :ClusterId
11096
+
11097
+ def initialize(clusterid=nil)
11098
+ @ClusterId = clusterid
11099
+ end
11100
+
11101
+ def deserialize(params)
11102
+ @ClusterId = params['ClusterId']
11103
+ end
11104
+ end
11105
+
11106
+ # UninstallLogAgent返回参数结构体
11107
+ class UninstallLogAgentResponse < TencentCloud::Common::AbstractModel
11108
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11109
+ # @type RequestId: String
11110
+
11111
+ attr_accessor :RequestId
11112
+
11113
+ def initialize(requestid=nil)
11114
+ @RequestId = requestid
11115
+ end
11116
+
11117
+ def deserialize(params)
11118
+ @RequestId = params['RequestId']
11119
+ end
11120
+ end
11121
+
9622
11122
  # UpdateClusterVersion请求参数结构体
9623
11123
  class UpdateClusterVersionRequest < TencentCloud::Common::AbstractModel
9624
11124
  # @param ClusterId: 集群 Id