tencentcloud-sdk-tke 1.0.344 → 1.0.345

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 650167a4d55020ebddf35862ec104dee7565fe0d
4
- data.tar.gz: 02d8b14f92c8d8d378f13df8a4d7b53e068b8971
3
+ metadata.gz: 7f5d5feaa8831d4418b74284d6ad39e614bb747d
4
+ data.tar.gz: c84741784b3eba30abba08501fbf7c74b7515181
5
5
  SHA512:
6
- metadata.gz: 741e3d0d92853f7197e98f84d88a20cc3e56e56c392a432a26b38011b560a4dca45b6fc312afa783fefe7e6436e0e75c5622c98dc2326d2e3a066252236b31bd
7
- data.tar.gz: 90ecde879349ab419af993b9b7eeaf1f030666fe10145935a17b278d7833b453194930ff827bb214ac664b428a8dd90609ce70e1758431c5e1f5976e857ccd14
6
+ metadata.gz: 635600c72be4c7818d983a54f37a00591d626253adafa7b0fa1d2b29278d6f54d8ed591b9a2a405807109033892feaf0f2092ff8bbc3046ec27663a8b6054ae4
7
+ data.tar.gz: 85b6a212cb1b4ba7db435e01a224c7b54741009113dac8efbfadaa69d91c3c70874668c65446234a1f0a635343c14d995d652b5bd2fbef4fd8994a85a7578154
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.344
1
+ 1.0.345
@@ -533,6 +533,54 @@ module TencentCloud
533
533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
534
  end
535
535
 
536
+ # 与云监控融合的2.0实例关联集群
537
+
538
+ # @param request: Request instance for CreatePrometheusClusterAgent.
539
+ # @type request: :class:`Tencentcloud::tke::V20180525::CreatePrometheusClusterAgentRequest`
540
+ # @rtype: :class:`Tencentcloud::tke::V20180525::CreatePrometheusClusterAgentResponse`
541
+ def CreatePrometheusClusterAgent(request)
542
+ body = send_request('CreatePrometheusClusterAgent', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = CreatePrometheusClusterAgentResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
560
+ # 创建prometheus配置
561
+
562
+ # @param request: Request instance for CreatePrometheusConfig.
563
+ # @type request: :class:`Tencentcloud::tke::V20180525::CreatePrometheusConfigRequest`
564
+ # @rtype: :class:`Tencentcloud::tke::V20180525::CreatePrometheusConfigResponse`
565
+ def CreatePrometheusConfig(request)
566
+ body = send_request('CreatePrometheusConfig', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = CreatePrometheusConfigResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
536
584
  # 创建grafana监控面板
537
585
 
538
586
  # @param request: Request instance for CreatePrometheusDashboard.
@@ -581,6 +629,30 @@ module TencentCloud
581
629
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
630
  end
583
631
 
632
+ # 以Yaml的方式创建聚合规则
633
+
634
+ # @param request: Request instance for CreatePrometheusRecordRuleYaml.
635
+ # @type request: :class:`Tencentcloud::tke::V20180525::CreatePrometheusRecordRuleYamlRequest`
636
+ # @rtype: :class:`Tencentcloud::tke::V20180525::CreatePrometheusRecordRuleYamlResponse`
637
+ def CreatePrometheusRecordRuleYaml(request)
638
+ body = send_request('CreatePrometheusRecordRuleYaml', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = CreatePrometheusRecordRuleYamlResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
584
656
  # 创建一个云原生Prometheus模板
585
657
 
586
658
  # @param request: Request instance for CreatePrometheusTemp.
@@ -1037,6 +1109,78 @@ module TencentCloud
1037
1109
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
1110
  end
1039
1111
 
1112
+ # 解除2.0实例的集群关联
1113
+
1114
+ # @param request: Request instance for DeletePrometheusClusterAgent.
1115
+ # @type request: :class:`Tencentcloud::tke::V20180525::DeletePrometheusClusterAgentRequest`
1116
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DeletePrometheusClusterAgentResponse`
1117
+ def DeletePrometheusClusterAgent(request)
1118
+ body = send_request('DeletePrometheusClusterAgent', request.serialize)
1119
+ response = JSON.parse(body)
1120
+ if response['Response'].key?('Error') == false
1121
+ model = DeletePrometheusClusterAgentResponse.new
1122
+ model.deserialize(response['Response'])
1123
+ model
1124
+ else
1125
+ code = response['Response']['Error']['Code']
1126
+ message = response['Response']['Error']['Message']
1127
+ reqid = response['Response']['RequestId']
1128
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1129
+ end
1130
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1131
+ raise e
1132
+ rescue StandardError => e
1133
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1134
+ end
1135
+
1136
+ # 删除Prometheus配置,如果目标不存在,将返回成功
1137
+
1138
+ # @param request: Request instance for DeletePrometheusConfig.
1139
+ # @type request: :class:`Tencentcloud::tke::V20180525::DeletePrometheusConfigRequest`
1140
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DeletePrometheusConfigResponse`
1141
+ def DeletePrometheusConfig(request)
1142
+ body = send_request('DeletePrometheusConfig', request.serialize)
1143
+ response = JSON.parse(body)
1144
+ if response['Response'].key?('Error') == false
1145
+ model = DeletePrometheusConfigResponse.new
1146
+ model.deserialize(response['Response'])
1147
+ model
1148
+ else
1149
+ code = response['Response']['Error']['Code']
1150
+ message = response['Response']['Error']['Message']
1151
+ reqid = response['Response']['RequestId']
1152
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1153
+ end
1154
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1155
+ raise e
1156
+ rescue StandardError => e
1157
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1158
+ end
1159
+
1160
+ # 删除聚合实例
1161
+
1162
+ # @param request: Request instance for DeletePrometheusRecordRuleYaml.
1163
+ # @type request: :class:`Tencentcloud::tke::V20180525::DeletePrometheusRecordRuleYamlRequest`
1164
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DeletePrometheusRecordRuleYamlResponse`
1165
+ def DeletePrometheusRecordRuleYaml(request)
1166
+ body = send_request('DeletePrometheusRecordRuleYaml', request.serialize)
1167
+ response = JSON.parse(body)
1168
+ if response['Response'].key?('Error') == false
1169
+ model = DeletePrometheusRecordRuleYamlResponse.new
1170
+ model.deserialize(response['Response'])
1171
+ model
1172
+ else
1173
+ code = response['Response']['Error']['Code']
1174
+ message = response['Response']['Error']['Message']
1175
+ reqid = response['Response']['RequestId']
1176
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1177
+ end
1178
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1179
+ raise e
1180
+ rescue StandardError => e
1181
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1182
+ end
1183
+
1040
1184
  # 删除一个云原生Prometheus配置模板
1041
1185
 
1042
1186
  # @param request: Request instance for DeletePrometheusTemp.
@@ -2165,6 +2309,54 @@ module TencentCloud
2165
2309
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2166
2310
  end
2167
2311
 
2312
+ # 拉取Prometheus配置
2313
+
2314
+ # @param request: Request instance for DescribePrometheusConfig.
2315
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePrometheusConfigRequest`
2316
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePrometheusConfigResponse`
2317
+ def DescribePrometheusConfig(request)
2318
+ body = send_request('DescribePrometheusConfig', request.serialize)
2319
+ response = JSON.parse(body)
2320
+ if response['Response'].key?('Error') == false
2321
+ model = DescribePrometheusConfigResponse.new
2322
+ model.deserialize(response['Response'])
2323
+ model
2324
+ else
2325
+ code = response['Response']['Error']['Code']
2326
+ message = response['Response']['Error']['Message']
2327
+ reqid = response['Response']['RequestId']
2328
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2329
+ end
2330
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2331
+ raise e
2332
+ rescue StandardError => e
2333
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2334
+ end
2335
+
2336
+ # 获得实例级别抓取配置
2337
+
2338
+ # @param request: Request instance for DescribePrometheusGlobalConfig.
2339
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePrometheusGlobalConfigRequest`
2340
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePrometheusGlobalConfigResponse`
2341
+ def DescribePrometheusGlobalConfig(request)
2342
+ body = send_request('DescribePrometheusGlobalConfig', request.serialize)
2343
+ response = JSON.parse(body)
2344
+ if response['Response'].key?('Error') == false
2345
+ model = DescribePrometheusGlobalConfigResponse.new
2346
+ model.deserialize(response['Response'])
2347
+ model
2348
+ else
2349
+ code = response['Response']['Error']['Code']
2350
+ message = response['Response']['Error']['Message']
2351
+ reqid = response['Response']['RequestId']
2352
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2353
+ end
2354
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2355
+ raise e
2356
+ rescue StandardError => e
2357
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2358
+ end
2359
+
2168
2360
  # 查询全局告警通知渠道
2169
2361
 
2170
2362
  # @param request: Request instance for DescribePrometheusGlobalNotification.
@@ -2213,6 +2405,30 @@ module TencentCloud
2213
2405
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2214
2406
  end
2215
2407
 
2408
+ # 获取2.0实例初始化任务状态
2409
+
2410
+ # @param request: Request instance for DescribePrometheusInstanceInitStatus.
2411
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePrometheusInstanceInitStatusRequest`
2412
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePrometheusInstanceInitStatusResponse`
2413
+ def DescribePrometheusInstanceInitStatus(request)
2414
+ body = send_request('DescribePrometheusInstanceInitStatus', request.serialize)
2415
+ response = JSON.parse(body)
2416
+ if response['Response'].key?('Error') == false
2417
+ model = DescribePrometheusInstanceInitStatusResponse.new
2418
+ model.deserialize(response['Response'])
2419
+ model
2420
+ else
2421
+ code = response['Response']['Error']['Code']
2422
+ message = response['Response']['Error']['Message']
2423
+ reqid = response['Response']['RequestId']
2424
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2425
+ end
2426
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2427
+ raise e
2428
+ rescue StandardError => e
2429
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2430
+ end
2431
+
2216
2432
  # 获取与云监控融合实例列表
2217
2433
 
2218
2434
  # @param request: Request instance for DescribePrometheusInstancesOverview.
@@ -3197,6 +3413,30 @@ module TencentCloud
3197
3413
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3198
3414
  end
3199
3415
 
3416
+ # 修改被关联集群的external labels
3417
+
3418
+ # @param request: Request instance for ModifyPrometheusAgentExternalLabels.
3419
+ # @type request: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusAgentExternalLabelsRequest`
3420
+ # @rtype: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusAgentExternalLabelsResponse`
3421
+ def ModifyPrometheusAgentExternalLabels(request)
3422
+ body = send_request('ModifyPrometheusAgentExternalLabels', request.serialize)
3423
+ response = JSON.parse(body)
3424
+ if response['Response'].key?('Error') == false
3425
+ model = ModifyPrometheusAgentExternalLabelsResponse.new
3426
+ model.deserialize(response['Response'])
3427
+ model
3428
+ else
3429
+ code = response['Response']['Error']['Code']
3430
+ message = response['Response']['Error']['Message']
3431
+ reqid = response['Response']['RequestId']
3432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3433
+ end
3434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3435
+ raise e
3436
+ rescue StandardError => e
3437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3438
+ end
3439
+
3200
3440
  # 修改2.0实例告警策略
3201
3441
 
3202
3442
  # @param request: Request instance for ModifyPrometheusAlertPolicy.
@@ -3245,6 +3485,30 @@ module TencentCloud
3245
3485
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3246
3486
  end
3247
3487
 
3488
+ # 修改prometheus配置,如果配置项不存在,则会新增
3489
+
3490
+ # @param request: Request instance for ModifyPrometheusConfig.
3491
+ # @type request: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusConfigRequest`
3492
+ # @rtype: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusConfigResponse`
3493
+ def ModifyPrometheusConfig(request)
3494
+ body = send_request('ModifyPrometheusConfig', request.serialize)
3495
+ response = JSON.parse(body)
3496
+ if response['Response'].key?('Error') == false
3497
+ model = ModifyPrometheusConfigResponse.new
3498
+ model.deserialize(response['Response'])
3499
+ model
3500
+ else
3501
+ code = response['Response']['Error']['Code']
3502
+ message = response['Response']['Error']['Message']
3503
+ reqid = response['Response']['RequestId']
3504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3505
+ end
3506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3507
+ raise e
3508
+ rescue StandardError => e
3509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3510
+ end
3511
+
3248
3512
  # 修改全局告警通知渠道
3249
3513
 
3250
3514
  # @param request: Request instance for ModifyPrometheusGlobalNotification.
@@ -3269,6 +3533,30 @@ module TencentCloud
3269
3533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3270
3534
  end
3271
3535
 
3536
+ # 通过yaml的方式修改Prometheus聚合实例
3537
+
3538
+ # @param request: Request instance for ModifyPrometheusRecordRuleYaml.
3539
+ # @type request: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusRecordRuleYamlRequest`
3540
+ # @rtype: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusRecordRuleYamlResponse`
3541
+ def ModifyPrometheusRecordRuleYaml(request)
3542
+ body = send_request('ModifyPrometheusRecordRuleYaml', request.serialize)
3543
+ response = JSON.parse(body)
3544
+ if response['Response'].key?('Error') == false
3545
+ model = ModifyPrometheusRecordRuleYamlResponse.new
3546
+ model.deserialize(response['Response'])
3547
+ model
3548
+ else
3549
+ code = response['Response']['Error']['Code']
3550
+ message = response['Response']['Error']['Message']
3551
+ reqid = response['Response']['RequestId']
3552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3553
+ end
3554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3555
+ raise e
3556
+ rescue StandardError => e
3557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3558
+ end
3559
+
3272
3560
  # 修改模板内容
3273
3561
 
3274
3562
  # @param request: Request instance for ModifyPrometheusTemp.
@@ -3365,6 +3653,30 @@ module TencentCloud
3365
3653
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3366
3654
  end
3367
3655
 
3656
+ # 初始化与云监控融合的2.0版本实例,开启集成中心时调用
3657
+
3658
+ # @param request: Request instance for RunPrometheusInstance.
3659
+ # @type request: :class:`Tencentcloud::tke::V20180525::RunPrometheusInstanceRequest`
3660
+ # @rtype: :class:`Tencentcloud::tke::V20180525::RunPrometheusInstanceResponse`
3661
+ def RunPrometheusInstance(request)
3662
+ body = send_request('RunPrometheusInstance', request.serialize)
3663
+ response = JSON.parse(body)
3664
+ if response['Response'].key?('Error') == false
3665
+ model = RunPrometheusInstanceResponse.new
3666
+ model.deserialize(response['Response'])
3667
+ model
3668
+ else
3669
+ code = response['Response']['Error']['Code']
3670
+ message = response['Response']['Error']['Message']
3671
+ reqid = response['Response']['RequestId']
3672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3673
+ end
3674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3675
+ raise e
3676
+ rescue StandardError => e
3677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3678
+ end
3679
+
3368
3680
  # 缩容独立集群master节点
3369
3681
 
3370
3682
  # @param request: Request instance for ScaleInClusterMaster.
@@ -708,10 +708,12 @@ module TencentCloud
708
708
  # @type BasePodNumber: Integer
709
709
  # @param CiliumMode: 启用 CiliumMode 的模式,空值表示不启用,“clusterIP” 表示启用 Cilium 支持 ClusterIP
710
710
  # @type CiliumMode: String
711
+ # @param IsDualStack: 集群VPC-CNI模式下是否是双栈集群,默认false,表明非双栈集群。
712
+ # @type IsDualStack: Boolean
711
713
 
712
- attr_accessor :IPVS, :AsEnabled, :ContainerRuntime, :NodeNameType, :ExtraArgs, :NetworkType, :IsNonStaticIpMode, :DeletionProtection, :KubeProxyMode, :AuditEnabled, :AuditLogsetId, :AuditLogTopicId, :VpcCniType, :RuntimeVersion, :EnableCustomizedPodCIDR, :BasePodNumber, :CiliumMode
714
+ attr_accessor :IPVS, :AsEnabled, :ContainerRuntime, :NodeNameType, :ExtraArgs, :NetworkType, :IsNonStaticIpMode, :DeletionProtection, :KubeProxyMode, :AuditEnabled, :AuditLogsetId, :AuditLogTopicId, :VpcCniType, :RuntimeVersion, :EnableCustomizedPodCIDR, :BasePodNumber, :CiliumMode, :IsDualStack
713
715
 
714
- def initialize(ipvs=nil, asenabled=nil, containerruntime=nil, nodenametype=nil, extraargs=nil, networktype=nil, isnonstaticipmode=nil, deletionprotection=nil, kubeproxymode=nil, auditenabled=nil, auditlogsetid=nil, auditlogtopicid=nil, vpccnitype=nil, runtimeversion=nil, enablecustomizedpodcidr=nil, basepodnumber=nil, ciliummode=nil)
716
+ def initialize(ipvs=nil, asenabled=nil, containerruntime=nil, nodenametype=nil, extraargs=nil, networktype=nil, isnonstaticipmode=nil, deletionprotection=nil, kubeproxymode=nil, auditenabled=nil, auditlogsetid=nil, auditlogtopicid=nil, vpccnitype=nil, runtimeversion=nil, enablecustomizedpodcidr=nil, basepodnumber=nil, ciliummode=nil, isdualstack=nil)
715
717
  @IPVS = ipvs
716
718
  @AsEnabled = asenabled
717
719
  @ContainerRuntime = containerruntime
@@ -729,6 +731,7 @@ module TencentCloud
729
731
  @EnableCustomizedPodCIDR = enablecustomizedpodcidr
730
732
  @BasePodNumber = basepodnumber
731
733
  @CiliumMode = ciliummode
734
+ @IsDualStack = isdualstack
732
735
  end
733
736
 
734
737
  def deserialize(params)
@@ -752,6 +755,7 @@ module TencentCloud
752
755
  @EnableCustomizedPodCIDR = params['EnableCustomizedPodCIDR']
753
756
  @BasePodNumber = params['BasePodNumber']
754
757
  @CiliumMode = params['CiliumMode']
758
+ @IsDualStack = params['IsDualStack']
755
759
  end
756
760
  end
757
761
 
@@ -2579,6 +2583,106 @@ module TencentCloud
2579
2583
  end
2580
2584
  end
2581
2585
 
2586
+ # CreatePrometheusClusterAgent请求参数结构体
2587
+ class CreatePrometheusClusterAgentRequest < TencentCloud::Common::AbstractModel
2588
+
2589
+
2590
+ def initialize()
2591
+ end
2592
+
2593
+ def deserialize(params)
2594
+ end
2595
+ end
2596
+
2597
+ # CreatePrometheusClusterAgent返回参数结构体
2598
+ class CreatePrometheusClusterAgentResponse < TencentCloud::Common::AbstractModel
2599
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2600
+ # @type RequestId: String
2601
+
2602
+ attr_accessor :RequestId
2603
+
2604
+ def initialize(requestid=nil)
2605
+ @RequestId = requestid
2606
+ end
2607
+
2608
+ def deserialize(params)
2609
+ @RequestId = params['RequestId']
2610
+ end
2611
+ end
2612
+
2613
+ # CreatePrometheusConfig请求参数结构体
2614
+ class CreatePrometheusConfigRequest < TencentCloud::Common::AbstractModel
2615
+ # @param InstanceId: 实例id
2616
+ # @type InstanceId: String
2617
+ # @param ClusterType: 集群类型
2618
+ # @type ClusterType: String
2619
+ # @param ClusterId: 集群id
2620
+ # @type ClusterId: String
2621
+ # @param ServiceMonitors: ServiceMonitors配置
2622
+ # @type ServiceMonitors: Array
2623
+ # @param PodMonitors: PodMonitors配置
2624
+ # @type PodMonitors: Array
2625
+ # @param RawJobs: prometheus原生Job配置
2626
+ # @type RawJobs: Array
2627
+
2628
+ attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs
2629
+
2630
+ def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil)
2631
+ @InstanceId = instanceid
2632
+ @ClusterType = clustertype
2633
+ @ClusterId = clusterid
2634
+ @ServiceMonitors = servicemonitors
2635
+ @PodMonitors = podmonitors
2636
+ @RawJobs = rawjobs
2637
+ end
2638
+
2639
+ def deserialize(params)
2640
+ @InstanceId = params['InstanceId']
2641
+ @ClusterType = params['ClusterType']
2642
+ @ClusterId = params['ClusterId']
2643
+ unless params['ServiceMonitors'].nil?
2644
+ @ServiceMonitors = []
2645
+ params['ServiceMonitors'].each do |i|
2646
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
2647
+ prometheusconfigitem_tmp.deserialize(i)
2648
+ @ServiceMonitors << prometheusconfigitem_tmp
2649
+ end
2650
+ end
2651
+ unless params['PodMonitors'].nil?
2652
+ @PodMonitors = []
2653
+ params['PodMonitors'].each do |i|
2654
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
2655
+ prometheusconfigitem_tmp.deserialize(i)
2656
+ @PodMonitors << prometheusconfigitem_tmp
2657
+ end
2658
+ end
2659
+ unless params['RawJobs'].nil?
2660
+ @RawJobs = []
2661
+ params['RawJobs'].each do |i|
2662
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
2663
+ prometheusconfigitem_tmp.deserialize(i)
2664
+ @RawJobs << prometheusconfigitem_tmp
2665
+ end
2666
+ end
2667
+ end
2668
+ end
2669
+
2670
+ # CreatePrometheusConfig返回参数结构体
2671
+ class CreatePrometheusConfigResponse < TencentCloud::Common::AbstractModel
2672
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2673
+ # @type RequestId: String
2674
+
2675
+ attr_accessor :RequestId
2676
+
2677
+ def initialize(requestid=nil)
2678
+ @RequestId = requestid
2679
+ end
2680
+
2681
+ def deserialize(params)
2682
+ @RequestId = params['RequestId']
2683
+ end
2684
+ end
2685
+
2582
2686
  # CreatePrometheusDashboard请求参数结构体
2583
2687
  class CreatePrometheusDashboardRequest < TencentCloud::Common::AbstractModel
2584
2688
  # @param InstanceId: 实例id
@@ -2664,6 +2768,42 @@ module TencentCloud
2664
2768
  end
2665
2769
  end
2666
2770
 
2771
+ # CreatePrometheusRecordRuleYaml请求参数结构体
2772
+ class CreatePrometheusRecordRuleYamlRequest < TencentCloud::Common::AbstractModel
2773
+ # @param InstanceId: 实例id
2774
+ # @type InstanceId: String
2775
+ # @param Content: yaml的内容
2776
+ # @type Content: String
2777
+
2778
+ attr_accessor :InstanceId, :Content
2779
+
2780
+ def initialize(instanceid=nil, content=nil)
2781
+ @InstanceId = instanceid
2782
+ @Content = content
2783
+ end
2784
+
2785
+ def deserialize(params)
2786
+ @InstanceId = params['InstanceId']
2787
+ @Content = params['Content']
2788
+ end
2789
+ end
2790
+
2791
+ # CreatePrometheusRecordRuleYaml返回参数结构体
2792
+ class CreatePrometheusRecordRuleYamlResponse < TencentCloud::Common::AbstractModel
2793
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2794
+ # @type RequestId: String
2795
+
2796
+ attr_accessor :RequestId
2797
+
2798
+ def initialize(requestid=nil)
2799
+ @RequestId = requestid
2800
+ end
2801
+
2802
+ def deserialize(params)
2803
+ @RequestId = params['RequestId']
2804
+ end
2805
+ end
2806
+
2667
2807
  # CreatePrometheusTemp请求参数结构体
2668
2808
  class CreatePrometheusTempRequest < TencentCloud::Common::AbstractModel
2669
2809
  # @param Template: 模板设置
@@ -3524,6 +3664,121 @@ module TencentCloud
3524
3664
  end
3525
3665
  end
3526
3666
 
3667
+ # DeletePrometheusClusterAgent请求参数结构体
3668
+ class DeletePrometheusClusterAgentRequest < TencentCloud::Common::AbstractModel
3669
+
3670
+
3671
+ def initialize()
3672
+ end
3673
+
3674
+ def deserialize(params)
3675
+ end
3676
+ end
3677
+
3678
+ # DeletePrometheusClusterAgent返回参数结构体
3679
+ class DeletePrometheusClusterAgentResponse < TencentCloud::Common::AbstractModel
3680
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3681
+ # @type RequestId: String
3682
+
3683
+ attr_accessor :RequestId
3684
+
3685
+ def initialize(requestid=nil)
3686
+ @RequestId = requestid
3687
+ end
3688
+
3689
+ def deserialize(params)
3690
+ @RequestId = params['RequestId']
3691
+ end
3692
+ end
3693
+
3694
+ # DeletePrometheusConfig请求参数结构体
3695
+ class DeletePrometheusConfigRequest < TencentCloud::Common::AbstractModel
3696
+ # @param InstanceId: 实例id
3697
+ # @type InstanceId: String
3698
+ # @param ClusterType: 集群类型
3699
+ # @type ClusterType: String
3700
+ # @param ClusterId: 集群id
3701
+ # @type ClusterId: String
3702
+ # @param ServiceMonitors: 要删除的ServiceMonitor名字列表
3703
+ # @type ServiceMonitors: Array
3704
+ # @param PodMonitors: 要删除的PodMonitor名字列表
3705
+ # @type PodMonitors: Array
3706
+ # @param RawJobs: 要删除的RawJobs名字列表
3707
+ # @type RawJobs: Array
3708
+
3709
+ attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs
3710
+
3711
+ def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil)
3712
+ @InstanceId = instanceid
3713
+ @ClusterType = clustertype
3714
+ @ClusterId = clusterid
3715
+ @ServiceMonitors = servicemonitors
3716
+ @PodMonitors = podmonitors
3717
+ @RawJobs = rawjobs
3718
+ end
3719
+
3720
+ def deserialize(params)
3721
+ @InstanceId = params['InstanceId']
3722
+ @ClusterType = params['ClusterType']
3723
+ @ClusterId = params['ClusterId']
3724
+ @ServiceMonitors = params['ServiceMonitors']
3725
+ @PodMonitors = params['PodMonitors']
3726
+ @RawJobs = params['RawJobs']
3727
+ end
3728
+ end
3729
+
3730
+ # DeletePrometheusConfig返回参数结构体
3731
+ class DeletePrometheusConfigResponse < TencentCloud::Common::AbstractModel
3732
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3733
+ # @type RequestId: String
3734
+
3735
+ attr_accessor :RequestId
3736
+
3737
+ def initialize(requestid=nil)
3738
+ @RequestId = requestid
3739
+ end
3740
+
3741
+ def deserialize(params)
3742
+ @RequestId = params['RequestId']
3743
+ end
3744
+ end
3745
+
3746
+ # DeletePrometheusRecordRuleYaml请求参数结构体
3747
+ class DeletePrometheusRecordRuleYamlRequest < TencentCloud::Common::AbstractModel
3748
+ # @param InstanceId: 实例id
3749
+ # @type InstanceId: String
3750
+ # @param Names: 聚合规则列表
3751
+ # @type Names: Array
3752
+
3753
+ attr_accessor :InstanceId, :Names
3754
+
3755
+ def initialize(instanceid=nil, names=nil)
3756
+ @InstanceId = instanceid
3757
+ @Names = names
3758
+ end
3759
+
3760
+ def deserialize(params)
3761
+ @InstanceId = params['InstanceId']
3762
+ @Names = params['Names']
3763
+ end
3764
+ end
3765
+
3766
+ # DeletePrometheusRecordRuleYaml返回参数结构体
3767
+ class DeletePrometheusRecordRuleYamlResponse < TencentCloud::Common::AbstractModel
3768
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3769
+ # @type RequestId: String
3770
+
3771
+ attr_accessor :RequestId
3772
+
3773
+ def initialize(requestid=nil)
3774
+ @RequestId = requestid
3775
+ end
3776
+
3777
+ def deserialize(params)
3778
+ @RequestId = params['RequestId']
3779
+ end
3780
+ end
3781
+
3527
3782
  # DeletePrometheusTemp请求参数结构体
3528
3783
  class DeletePrometheusTempRequest < TencentCloud::Common::AbstractModel
3529
3784
  # @param TemplateId: 模板id
@@ -6000,62 +6255,215 @@ module TencentCloud
6000
6255
  @AlertRules << prometheusalertruledetail_tmp
6001
6256
  end
6002
6257
  end
6003
- @Total = params['Total']
6258
+ @Total = params['Total']
6259
+ @RequestId = params['RequestId']
6260
+ end
6261
+ end
6262
+
6263
+ # DescribePrometheusClusterAgents请求参数结构体
6264
+ class DescribePrometheusClusterAgentsRequest < TencentCloud::Common::AbstractModel
6265
+ # @param InstanceId: 实例id
6266
+ # @type InstanceId: String
6267
+ # @param Offset: 用于分页
6268
+ # @type Offset: Integer
6269
+ # @param Limit: 用于分页
6270
+ # @type Limit: Integer
6271
+
6272
+ attr_accessor :InstanceId, :Offset, :Limit
6273
+
6274
+ def initialize(instanceid=nil, offset=nil, limit=nil)
6275
+ @InstanceId = instanceid
6276
+ @Offset = offset
6277
+ @Limit = limit
6278
+ end
6279
+
6280
+ def deserialize(params)
6281
+ @InstanceId = params['InstanceId']
6282
+ @Offset = params['Offset']
6283
+ @Limit = params['Limit']
6284
+ end
6285
+ end
6286
+
6287
+ # DescribePrometheusClusterAgents返回参数结构体
6288
+ class DescribePrometheusClusterAgentsResponse < TencentCloud::Common::AbstractModel
6289
+ # @param Agents: 被关联集群信息
6290
+ # @type Agents: Array
6291
+ # @param Total: 被关联集群总量
6292
+ # @type Total: Integer
6293
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6294
+ # @type RequestId: String
6295
+
6296
+ attr_accessor :Agents, :Total, :RequestId
6297
+
6298
+ def initialize(agents=nil, total=nil, requestid=nil)
6299
+ @Agents = agents
6300
+ @Total = total
6301
+ @RequestId = requestid
6302
+ end
6303
+
6304
+ def deserialize(params)
6305
+ unless params['Agents'].nil?
6306
+ @Agents = []
6307
+ params['Agents'].each do |i|
6308
+ prometheusagentoverview_tmp = PrometheusAgentOverview.new
6309
+ prometheusagentoverview_tmp.deserialize(i)
6310
+ @Agents << prometheusagentoverview_tmp
6311
+ end
6312
+ end
6313
+ @Total = params['Total']
6314
+ @RequestId = params['RequestId']
6315
+ end
6316
+ end
6317
+
6318
+ # DescribePrometheusConfig请求参数结构体
6319
+ class DescribePrometheusConfigRequest < TencentCloud::Common::AbstractModel
6320
+ # @param InstanceId: 实例id
6321
+ # @type InstanceId: String
6322
+ # @param ClusterId: 集群id
6323
+ # @type ClusterId: String
6324
+ # @param ClusterType: 集群类型
6325
+ # @type ClusterType: String
6326
+
6327
+ attr_accessor :InstanceId, :ClusterId, :ClusterType
6328
+
6329
+ def initialize(instanceid=nil, clusterid=nil, clustertype=nil)
6330
+ @InstanceId = instanceid
6331
+ @ClusterId = clusterid
6332
+ @ClusterType = clustertype
6333
+ end
6334
+
6335
+ def deserialize(params)
6336
+ @InstanceId = params['InstanceId']
6337
+ @ClusterId = params['ClusterId']
6338
+ @ClusterType = params['ClusterType']
6339
+ end
6340
+ end
6341
+
6342
+ # DescribePrometheusConfig返回参数结构体
6343
+ class DescribePrometheusConfigResponse < TencentCloud::Common::AbstractModel
6344
+ # @param Config: 全局配置
6345
+ # @type Config: String
6346
+ # @param ServiceMonitors: ServiceMonitor配置
6347
+ # @type ServiceMonitors: Array
6348
+ # @param PodMonitors: PodMonitor配置
6349
+ # @type PodMonitors: Array
6350
+ # @param RawJobs: 原生Job
6351
+ # @type RawJobs: Array
6352
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6353
+ # @type RequestId: String
6354
+
6355
+ attr_accessor :Config, :ServiceMonitors, :PodMonitors, :RawJobs, :RequestId
6356
+
6357
+ def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, requestid=nil)
6358
+ @Config = config
6359
+ @ServiceMonitors = servicemonitors
6360
+ @PodMonitors = podmonitors
6361
+ @RawJobs = rawjobs
6362
+ @RequestId = requestid
6363
+ end
6364
+
6365
+ def deserialize(params)
6366
+ @Config = params['Config']
6367
+ unless params['ServiceMonitors'].nil?
6368
+ @ServiceMonitors = []
6369
+ params['ServiceMonitors'].each do |i|
6370
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
6371
+ prometheusconfigitem_tmp.deserialize(i)
6372
+ @ServiceMonitors << prometheusconfigitem_tmp
6373
+ end
6374
+ end
6375
+ unless params['PodMonitors'].nil?
6376
+ @PodMonitors = []
6377
+ params['PodMonitors'].each do |i|
6378
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
6379
+ prometheusconfigitem_tmp.deserialize(i)
6380
+ @PodMonitors << prometheusconfigitem_tmp
6381
+ end
6382
+ end
6383
+ unless params['RawJobs'].nil?
6384
+ @RawJobs = []
6385
+ params['RawJobs'].each do |i|
6386
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
6387
+ prometheusconfigitem_tmp.deserialize(i)
6388
+ @RawJobs << prometheusconfigitem_tmp
6389
+ end
6390
+ end
6004
6391
  @RequestId = params['RequestId']
6005
6392
  end
6006
6393
  end
6007
6394
 
6008
- # DescribePrometheusClusterAgents请求参数结构体
6009
- class DescribePrometheusClusterAgentsRequest < TencentCloud::Common::AbstractModel
6010
- # @param InstanceId: 实例id
6395
+ # DescribePrometheusGlobalConfig请求参数结构体
6396
+ class DescribePrometheusGlobalConfigRequest < TencentCloud::Common::AbstractModel
6397
+ # @param InstanceId: 实例级别抓取配置
6011
6398
  # @type InstanceId: String
6012
- # @param Offset: 用于分页
6013
- # @type Offset: Integer
6014
- # @param Limit: 用于分页
6015
- # @type Limit: Integer
6399
+ # @param DisableStatistics: 是否禁用统计
6400
+ # @type DisableStatistics: Boolean
6016
6401
 
6017
- attr_accessor :InstanceId, :Offset, :Limit
6402
+ attr_accessor :InstanceId, :DisableStatistics
6018
6403
 
6019
- def initialize(instanceid=nil, offset=nil, limit=nil)
6404
+ def initialize(instanceid=nil, disablestatistics=nil)
6020
6405
  @InstanceId = instanceid
6021
- @Offset = offset
6022
- @Limit = limit
6406
+ @DisableStatistics = disablestatistics
6023
6407
  end
6024
6408
 
6025
6409
  def deserialize(params)
6026
6410
  @InstanceId = params['InstanceId']
6027
- @Offset = params['Offset']
6028
- @Limit = params['Limit']
6411
+ @DisableStatistics = params['DisableStatistics']
6029
6412
  end
6030
6413
  end
6031
6414
 
6032
- # DescribePrometheusClusterAgents返回参数结构体
6033
- class DescribePrometheusClusterAgentsResponse < TencentCloud::Common::AbstractModel
6034
- # @param Agents: 被关联集群信息
6035
- # @type Agents: Array
6036
- # @param Total: 被关联集群总量
6037
- # @type Total: Integer
6415
+ # DescribePrometheusGlobalConfig返回参数结构体
6416
+ class DescribePrometheusGlobalConfigResponse < TencentCloud::Common::AbstractModel
6417
+ # @param Config: 配置内容
6418
+ # @type Config: String
6419
+ # @param ServiceMonitors: ServiceMonitors列表以及对应targets信息
6420
+ # 注意:此字段可能返回 null,表示取不到有效值。
6421
+ # @type ServiceMonitors: Array
6422
+ # @param PodMonitors: PodMonitors列表以及对应targets信息
6423
+ # 注意:此字段可能返回 null,表示取不到有效值。
6424
+ # @type PodMonitors: Array
6425
+ # @param RawJobs: RawJobs列表以及对应targets信息
6426
+ # 注意:此字段可能返回 null,表示取不到有效值。
6427
+ # @type RawJobs: Array
6038
6428
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6039
6429
  # @type RequestId: String
6040
6430
 
6041
- attr_accessor :Agents, :Total, :RequestId
6431
+ attr_accessor :Config, :ServiceMonitors, :PodMonitors, :RawJobs, :RequestId
6042
6432
 
6043
- def initialize(agents=nil, total=nil, requestid=nil)
6044
- @Agents = agents
6045
- @Total = total
6433
+ def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, requestid=nil)
6434
+ @Config = config
6435
+ @ServiceMonitors = servicemonitors
6436
+ @PodMonitors = podmonitors
6437
+ @RawJobs = rawjobs
6046
6438
  @RequestId = requestid
6047
6439
  end
6048
6440
 
6049
6441
  def deserialize(params)
6050
- unless params['Agents'].nil?
6051
- @Agents = []
6052
- params['Agents'].each do |i|
6053
- prometheusagentoverview_tmp = PrometheusAgentOverview.new
6054
- prometheusagentoverview_tmp.deserialize(i)
6055
- @Agents << prometheusagentoverview_tmp
6442
+ @Config = params['Config']
6443
+ unless params['ServiceMonitors'].nil?
6444
+ @ServiceMonitors = []
6445
+ params['ServiceMonitors'].each do |i|
6446
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
6447
+ prometheusconfigitem_tmp.deserialize(i)
6448
+ @ServiceMonitors << prometheusconfigitem_tmp
6449
+ end
6450
+ end
6451
+ unless params['PodMonitors'].nil?
6452
+ @PodMonitors = []
6453
+ params['PodMonitors'].each do |i|
6454
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
6455
+ prometheusconfigitem_tmp.deserialize(i)
6456
+ @PodMonitors << prometheusconfigitem_tmp
6457
+ end
6458
+ end
6459
+ unless params['RawJobs'].nil?
6460
+ @RawJobs = []
6461
+ params['RawJobs'].each do |i|
6462
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
6463
+ prometheusconfigitem_tmp.deserialize(i)
6464
+ @RawJobs << prometheusconfigitem_tmp
6056
6465
  end
6057
6466
  end
6058
- @Total = params['Total']
6059
6467
  @RequestId = params['RequestId']
6060
6468
  end
6061
6469
  end
@@ -6100,6 +6508,33 @@ module TencentCloud
6100
6508
  end
6101
6509
  end
6102
6510
 
6511
+ # DescribePrometheusInstanceInitStatus请求参数结构体
6512
+ class DescribePrometheusInstanceInitStatusRequest < TencentCloud::Common::AbstractModel
6513
+
6514
+
6515
+ def initialize()
6516
+ end
6517
+
6518
+ def deserialize(params)
6519
+ end
6520
+ end
6521
+
6522
+ # DescribePrometheusInstanceInitStatus返回参数结构体
6523
+ class DescribePrometheusInstanceInitStatusResponse < TencentCloud::Common::AbstractModel
6524
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6525
+ # @type RequestId: String
6526
+
6527
+ attr_accessor :RequestId
6528
+
6529
+ def initialize(requestid=nil)
6530
+ @RequestId = requestid
6531
+ end
6532
+
6533
+ def deserialize(params)
6534
+ @RequestId = params['RequestId']
6535
+ end
6536
+ end
6537
+
6103
6538
  # DescribePrometheusInstance请求参数结构体
6104
6539
  class DescribePrometheusInstanceRequest < TencentCloud::Common::AbstractModel
6105
6540
  # @param InstanceId: 实例id
@@ -9896,6 +10331,53 @@ module TencentCloud
9896
10331
  end
9897
10332
  end
9898
10333
 
10334
+ # ModifyPrometheusAgentExternalLabels请求参数结构体
10335
+ class ModifyPrometheusAgentExternalLabelsRequest < TencentCloud::Common::AbstractModel
10336
+ # @param InstanceId: 实例ID
10337
+ # @type InstanceId: String
10338
+ # @param ClusterId: 集群ID
10339
+ # @type ClusterId: String
10340
+ # @param ExternalLabels: 新的external_labels
10341
+ # @type ExternalLabels: Array
10342
+
10343
+ attr_accessor :InstanceId, :ClusterId, :ExternalLabels
10344
+
10345
+ def initialize(instanceid=nil, clusterid=nil, externallabels=nil)
10346
+ @InstanceId = instanceid
10347
+ @ClusterId = clusterid
10348
+ @ExternalLabels = externallabels
10349
+ end
10350
+
10351
+ def deserialize(params)
10352
+ @InstanceId = params['InstanceId']
10353
+ @ClusterId = params['ClusterId']
10354
+ unless params['ExternalLabels'].nil?
10355
+ @ExternalLabels = []
10356
+ params['ExternalLabels'].each do |i|
10357
+ label_tmp = Label.new
10358
+ label_tmp.deserialize(i)
10359
+ @ExternalLabels << label_tmp
10360
+ end
10361
+ end
10362
+ end
10363
+ end
10364
+
10365
+ # ModifyPrometheusAgentExternalLabels返回参数结构体
10366
+ class ModifyPrometheusAgentExternalLabelsResponse < TencentCloud::Common::AbstractModel
10367
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10368
+ # @type RequestId: String
10369
+
10370
+ attr_accessor :RequestId
10371
+
10372
+ def initialize(requestid=nil)
10373
+ @RequestId = requestid
10374
+ end
10375
+
10376
+ def deserialize(params)
10377
+ @RequestId = params['RequestId']
10378
+ end
10379
+ end
10380
+
9899
10381
  # ModifyPrometheusAlertPolicy请求参数结构体
9900
10382
  class ModifyPrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
9901
10383
  # @param InstanceId: 实例id
@@ -9974,6 +10456,79 @@ module TencentCloud
9974
10456
  end
9975
10457
  end
9976
10458
 
10459
+ # ModifyPrometheusConfig请求参数结构体
10460
+ class ModifyPrometheusConfigRequest < TencentCloud::Common::AbstractModel
10461
+ # @param InstanceId: 实例id
10462
+ # @type InstanceId: String
10463
+ # @param ClusterType: 集群类型
10464
+ # @type ClusterType: String
10465
+ # @param ClusterId: 集群id
10466
+ # @type ClusterId: String
10467
+ # @param ServiceMonitors: ServiceMonitors配置
10468
+ # @type ServiceMonitors: Array
10469
+ # @param PodMonitors: PodMonitors配置
10470
+ # @type PodMonitors: Array
10471
+ # @param RawJobs: prometheus原生Job配置
10472
+ # @type RawJobs: Array
10473
+
10474
+ attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs
10475
+
10476
+ def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil)
10477
+ @InstanceId = instanceid
10478
+ @ClusterType = clustertype
10479
+ @ClusterId = clusterid
10480
+ @ServiceMonitors = servicemonitors
10481
+ @PodMonitors = podmonitors
10482
+ @RawJobs = rawjobs
10483
+ end
10484
+
10485
+ def deserialize(params)
10486
+ @InstanceId = params['InstanceId']
10487
+ @ClusterType = params['ClusterType']
10488
+ @ClusterId = params['ClusterId']
10489
+ unless params['ServiceMonitors'].nil?
10490
+ @ServiceMonitors = []
10491
+ params['ServiceMonitors'].each do |i|
10492
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
10493
+ prometheusconfigitem_tmp.deserialize(i)
10494
+ @ServiceMonitors << prometheusconfigitem_tmp
10495
+ end
10496
+ end
10497
+ unless params['PodMonitors'].nil?
10498
+ @PodMonitors = []
10499
+ params['PodMonitors'].each do |i|
10500
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
10501
+ prometheusconfigitem_tmp.deserialize(i)
10502
+ @PodMonitors << prometheusconfigitem_tmp
10503
+ end
10504
+ end
10505
+ unless params['RawJobs'].nil?
10506
+ @RawJobs = []
10507
+ params['RawJobs'].each do |i|
10508
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
10509
+ prometheusconfigitem_tmp.deserialize(i)
10510
+ @RawJobs << prometheusconfigitem_tmp
10511
+ end
10512
+ end
10513
+ end
10514
+ end
10515
+
10516
+ # ModifyPrometheusConfig返回参数结构体
10517
+ class ModifyPrometheusConfigResponse < TencentCloud::Common::AbstractModel
10518
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10519
+ # @type RequestId: String
10520
+
10521
+ attr_accessor :RequestId
10522
+
10523
+ def initialize(requestid=nil)
10524
+ @RequestId = requestid
10525
+ end
10526
+
10527
+ def deserialize(params)
10528
+ @RequestId = params['RequestId']
10529
+ end
10530
+ end
10531
+
9977
10532
  # ModifyPrometheusGlobalNotification请求参数结构体
9978
10533
  class ModifyPrometheusGlobalNotificationRequest < TencentCloud::Common::AbstractModel
9979
10534
  # @param InstanceId: 实例ID
@@ -10013,6 +10568,46 @@ module TencentCloud
10013
10568
  end
10014
10569
  end
10015
10570
 
10571
+ # ModifyPrometheusRecordRuleYaml请求参数结构体
10572
+ class ModifyPrometheusRecordRuleYamlRequest < TencentCloud::Common::AbstractModel
10573
+ # @param InstanceId: 实例id
10574
+ # @type InstanceId: String
10575
+ # @param Name: 聚合实例名称
10576
+ # @type Name: String
10577
+ # @param Content: 新的内容
10578
+ # @type Content: String
10579
+
10580
+ attr_accessor :InstanceId, :Name, :Content
10581
+
10582
+ def initialize(instanceid=nil, name=nil, content=nil)
10583
+ @InstanceId = instanceid
10584
+ @Name = name
10585
+ @Content = content
10586
+ end
10587
+
10588
+ def deserialize(params)
10589
+ @InstanceId = params['InstanceId']
10590
+ @Name = params['Name']
10591
+ @Content = params['Content']
10592
+ end
10593
+ end
10594
+
10595
+ # ModifyPrometheusRecordRuleYaml返回参数结构体
10596
+ class ModifyPrometheusRecordRuleYamlResponse < TencentCloud::Common::AbstractModel
10597
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10598
+ # @type RequestId: String
10599
+
10600
+ attr_accessor :RequestId
10601
+
10602
+ def initialize(requestid=nil)
10603
+ @RequestId = requestid
10604
+ end
10605
+
10606
+ def deserialize(params)
10607
+ @RequestId = params['RequestId']
10608
+ end
10609
+ end
10610
+
10016
10611
  # ModifyPrometheusTemp请求参数结构体
10017
10612
  class ModifyPrometheusTempRequest < TencentCloud::Common::AbstractModel
10018
10613
  # @param TemplateId: 模板ID
@@ -11951,6 +12546,33 @@ module TencentCloud
11951
12546
  end
11952
12547
  end
11953
12548
 
12549
+ # RunPrometheusInstance请求参数结构体
12550
+ class RunPrometheusInstanceRequest < TencentCloud::Common::AbstractModel
12551
+
12552
+
12553
+ def initialize()
12554
+ end
12555
+
12556
+ def deserialize(params)
12557
+ end
12558
+ end
12559
+
12560
+ # RunPrometheusInstance返回参数结构体
12561
+ class RunPrometheusInstanceResponse < TencentCloud::Common::AbstractModel
12562
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
12563
+ # @type RequestId: String
12564
+
12565
+ attr_accessor :RequestId
12566
+
12567
+ def initialize(requestid=nil)
12568
+ @RequestId = requestid
12569
+ end
12570
+
12571
+ def deserialize(params)
12572
+ @RequestId = params['RequestId']
12573
+ end
12574
+ end
12575
+
11954
12576
  # 描述了 “云安全” 服务相关的信息
11955
12577
  class RunSecurityServiceEnabled < TencentCloud::Common::AbstractModel
11956
12578
  # @param Enabled: 是否开启[云安全](/document/product/296)服务。取值范围:<br><li>TRUE:表示开启云安全服务<br><li>FALSE:表示不开启云安全服务<br><br>默认取值:TRUE。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tke
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.344
4
+ version: 1.0.345
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-28 00:00:00.000000000 Z
11
+ date: 2022-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common