tencentcloud-sdk-monitor 3.0.492 → 3.0.493

Sign up to get free protection for your applications and to get access to all the features.
@@ -1019,6 +1019,33 @@ module TencentCloud
1019
1019
  end
1020
1020
  end
1021
1021
 
1022
+ # CheckIsPrometheusNewUser请求参数结构体
1023
+ class CheckIsPrometheusNewUserRequest < TencentCloud::Common::AbstractModel
1024
+
1025
+
1026
+ def initialize()
1027
+ end
1028
+
1029
+ def deserialize(params)
1030
+ end
1031
+ end
1032
+
1033
+ # CheckIsPrometheusNewUser返回参数结构体
1034
+ class CheckIsPrometheusNewUserResponse < TencentCloud::Common::AbstractModel
1035
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1036
+ # @type RequestId: String
1037
+
1038
+ attr_accessor :RequestId
1039
+
1040
+ def initialize(requestid=nil)
1041
+ @RequestId = requestid
1042
+ end
1043
+
1044
+ def deserialize(params)
1045
+ @RequestId = params['RequestId']
1046
+ end
1047
+ end
1048
+
1022
1049
  # CleanGrafanaInstance请求参数结构体
1023
1050
  class CleanGrafanaInstanceRequest < TencentCloud::Common::AbstractModel
1024
1051
  # @param InstanceId: Grafana 实例 ID,例如:grafana-abcdefgh
@@ -2048,6 +2075,42 @@ module TencentCloud
2048
2075
  end
2049
2076
  end
2050
2077
 
2078
+ # CreatePrometheusRecordRuleYaml请求参数结构体
2079
+ class CreatePrometheusRecordRuleYamlRequest < TencentCloud::Common::AbstractModel
2080
+ # @param InstanceId: 实例id
2081
+ # @type InstanceId: String
2082
+ # @param Content: yaml的内容
2083
+ # @type Content: String
2084
+
2085
+ attr_accessor :InstanceId, :Content
2086
+
2087
+ def initialize(instanceid=nil, content=nil)
2088
+ @InstanceId = instanceid
2089
+ @Content = content
2090
+ end
2091
+
2092
+ def deserialize(params)
2093
+ @InstanceId = params['InstanceId']
2094
+ @Content = params['Content']
2095
+ end
2096
+ end
2097
+
2098
+ # CreatePrometheusRecordRuleYaml返回参数结构体
2099
+ class CreatePrometheusRecordRuleYamlResponse < TencentCloud::Common::AbstractModel
2100
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2101
+ # @type RequestId: String
2102
+
2103
+ attr_accessor :RequestId
2104
+
2105
+ def initialize(requestid=nil)
2106
+ @RequestId = requestid
2107
+ end
2108
+
2109
+ def deserialize(params)
2110
+ @RequestId = params['RequestId']
2111
+ end
2112
+ end
2113
+
2051
2114
  # CreatePrometheusScrapeJob请求参数结构体
2052
2115
  class CreatePrometheusScrapeJobRequest < TencentCloud::Common::AbstractModel
2053
2116
  # @param InstanceId: Prometheus 实例 ID,例如:prom-abcd1234
@@ -2092,6 +2155,45 @@ module TencentCloud
2092
2155
  end
2093
2156
  end
2094
2157
 
2158
+ # CreatePrometheusTemp请求参数结构体
2159
+ class CreatePrometheusTempRequest < TencentCloud::Common::AbstractModel
2160
+ # @param Template: 模板设置
2161
+ # @type Template: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusTemp`
2162
+
2163
+ attr_accessor :Template
2164
+
2165
+ def initialize(template=nil)
2166
+ @Template = template
2167
+ end
2168
+
2169
+ def deserialize(params)
2170
+ unless params['Template'].nil?
2171
+ @Template = PrometheusTemp.new
2172
+ @Template.deserialize(params['Template'])
2173
+ end
2174
+ end
2175
+ end
2176
+
2177
+ # CreatePrometheusTemp返回参数结构体
2178
+ class CreatePrometheusTempResponse < TencentCloud::Common::AbstractModel
2179
+ # @param TemplateId: 模板Id
2180
+ # @type TemplateId: String
2181
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2182
+ # @type RequestId: String
2183
+
2184
+ attr_accessor :TemplateId, :RequestId
2185
+
2186
+ def initialize(templateid=nil, requestid=nil)
2187
+ @TemplateId = templateid
2188
+ @RequestId = requestid
2189
+ end
2190
+
2191
+ def deserialize(params)
2192
+ @TemplateId = params['TemplateId']
2193
+ @RequestId = params['RequestId']
2194
+ end
2195
+ end
2196
+
2095
2197
  # CreateRecordingRule请求参数结构体
2096
2198
  class CreateRecordingRuleRequest < TencentCloud::Common::AbstractModel
2097
2199
  # @param Name: 聚合规则名称
@@ -2600,6 +2702,42 @@ module TencentCloud
2600
2702
  end
2601
2703
  end
2602
2704
 
2705
+ # DeletePrometheusRecordRuleYaml请求参数结构体
2706
+ class DeletePrometheusRecordRuleYamlRequest < TencentCloud::Common::AbstractModel
2707
+ # @param InstanceId: 实例id
2708
+ # @type InstanceId: String
2709
+ # @param Names: 聚合规则列表
2710
+ # @type Names: Array
2711
+
2712
+ attr_accessor :InstanceId, :Names
2713
+
2714
+ def initialize(instanceid=nil, names=nil)
2715
+ @InstanceId = instanceid
2716
+ @Names = names
2717
+ end
2718
+
2719
+ def deserialize(params)
2720
+ @InstanceId = params['InstanceId']
2721
+ @Names = params['Names']
2722
+ end
2723
+ end
2724
+
2725
+ # DeletePrometheusRecordRuleYaml返回参数结构体
2726
+ class DeletePrometheusRecordRuleYamlResponse < TencentCloud::Common::AbstractModel
2727
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2728
+ # @type RequestId: String
2729
+
2730
+ attr_accessor :RequestId
2731
+
2732
+ def initialize(requestid=nil)
2733
+ @RequestId = requestid
2734
+ end
2735
+
2736
+ def deserialize(params)
2737
+ @RequestId = params['RequestId']
2738
+ end
2739
+ end
2740
+
2603
2741
  # DeletePrometheusScrapeJobs请求参数结构体
2604
2742
  class DeletePrometheusScrapeJobsRequest < TencentCloud::Common::AbstractModel
2605
2743
  # @param InstanceId: 实例 ID
@@ -2640,6 +2778,81 @@ module TencentCloud
2640
2778
  end
2641
2779
  end
2642
2780
 
2781
+ # DeletePrometheusTemp请求参数结构体
2782
+ class DeletePrometheusTempRequest < TencentCloud::Common::AbstractModel
2783
+ # @param TemplateId: 模板id
2784
+ # @type TemplateId: String
2785
+
2786
+ attr_accessor :TemplateId
2787
+
2788
+ def initialize(templateid=nil)
2789
+ @TemplateId = templateid
2790
+ end
2791
+
2792
+ def deserialize(params)
2793
+ @TemplateId = params['TemplateId']
2794
+ end
2795
+ end
2796
+
2797
+ # DeletePrometheusTemp返回参数结构体
2798
+ class DeletePrometheusTempResponse < TencentCloud::Common::AbstractModel
2799
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2800
+ # @type RequestId: String
2801
+
2802
+ attr_accessor :RequestId
2803
+
2804
+ def initialize(requestid=nil)
2805
+ @RequestId = requestid
2806
+ end
2807
+
2808
+ def deserialize(params)
2809
+ @RequestId = params['RequestId']
2810
+ end
2811
+ end
2812
+
2813
+ # DeletePrometheusTempSync请求参数结构体
2814
+ class DeletePrometheusTempSyncRequest < TencentCloud::Common::AbstractModel
2815
+ # @param TemplateId: 模板id
2816
+ # @type TemplateId: String
2817
+ # @param Targets: 取消同步的对象列表
2818
+ # @type Targets: Array
2819
+
2820
+ attr_accessor :TemplateId, :Targets
2821
+
2822
+ def initialize(templateid=nil, targets=nil)
2823
+ @TemplateId = templateid
2824
+ @Targets = targets
2825
+ end
2826
+
2827
+ def deserialize(params)
2828
+ @TemplateId = params['TemplateId']
2829
+ unless params['Targets'].nil?
2830
+ @Targets = []
2831
+ params['Targets'].each do |i|
2832
+ prometheustemplatesynctarget_tmp = PrometheusTemplateSyncTarget.new
2833
+ prometheustemplatesynctarget_tmp.deserialize(i)
2834
+ @Targets << prometheustemplatesynctarget_tmp
2835
+ end
2836
+ end
2837
+ end
2838
+ end
2839
+
2840
+ # DeletePrometheusTempSync返回参数结构体
2841
+ class DeletePrometheusTempSyncResponse < TencentCloud::Common::AbstractModel
2842
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2843
+ # @type RequestId: String
2844
+
2845
+ attr_accessor :RequestId
2846
+
2847
+ def initialize(requestid=nil)
2848
+ @RequestId = requestid
2849
+ end
2850
+
2851
+ def deserialize(params)
2852
+ @RequestId = params['RequestId']
2853
+ end
2854
+ end
2855
+
2643
2856
  # DeleteRecordingRules请求参数结构体
2644
2857
  class DeleteRecordingRulesRequest < TencentCloud::Common::AbstractModel
2645
2858
  # @param RuleIds: 规则 ID 列表
@@ -6302,6 +6515,44 @@ module TencentCloud
6302
6515
  end
6303
6516
  end
6304
6517
 
6518
+ # DescribePrometheusAgentInstances请求参数结构体
6519
+ class DescribePrometheusAgentInstancesRequest < TencentCloud::Common::AbstractModel
6520
+ # @param ClusterId: 集群id
6521
+ # 可以是tke, eks, edge的集群id
6522
+ # @type ClusterId: String
6523
+
6524
+ attr_accessor :ClusterId
6525
+
6526
+ def initialize(clusterid=nil)
6527
+ @ClusterId = clusterid
6528
+ end
6529
+
6530
+ def deserialize(params)
6531
+ @ClusterId = params['ClusterId']
6532
+ end
6533
+ end
6534
+
6535
+ # DescribePrometheusAgentInstances返回参数结构体
6536
+ class DescribePrometheusAgentInstancesResponse < TencentCloud::Common::AbstractModel
6537
+ # @param Instances: 关联该集群的实例列表
6538
+ # 注意:此字段可能返回 null,表示取不到有效值。
6539
+ # @type Instances: Array
6540
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6541
+ # @type RequestId: String
6542
+
6543
+ attr_accessor :Instances, :RequestId
6544
+
6545
+ def initialize(instances=nil, requestid=nil)
6546
+ @Instances = instances
6547
+ @RequestId = requestid
6548
+ end
6549
+
6550
+ def deserialize(params)
6551
+ @Instances = params['Instances']
6552
+ @RequestId = params['RequestId']
6553
+ end
6554
+ end
6555
+
6305
6556
  # DescribePrometheusAgents请求参数结构体
6306
6557
  class DescribePrometheusAgentsRequest < TencentCloud::Common::AbstractModel
6307
6558
  # @param InstanceId: 实例 ID
@@ -6366,98 +6617,443 @@ module TencentCloud
6366
6617
  end
6367
6618
  end
6368
6619
 
6369
- # DescribePrometheusInstanceUsage请求参数结构体
6370
- class DescribePrometheusInstanceUsageRequest < TencentCloud::Common::AbstractModel
6371
- # @param InstanceIds: 按照一个或者多个实例ID查询。实例ID形如:prom-xxxxxxxx。请求的实例的上限为100。
6372
- # @type InstanceIds: Array
6373
- # @param StartCalcDate: 开始时间
6374
- # @type StartCalcDate: String
6375
- # @param EndCalcDate: 结束时间
6376
- # @type EndCalcDate: String
6620
+ # DescribePrometheusAlertPolicy请求参数结构体
6621
+ class DescribePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
6622
+ # @param InstanceId: 实例id
6623
+ # @type InstanceId: String
6624
+ # @param Offset: 分页
6625
+ # @type Offset: Integer
6626
+ # @param Limit: 分页
6627
+ # @type Limit: Integer
6628
+ # @param Filters: 过滤
6629
+ # 支持ID,Name
6630
+ # @type Filters: Array
6377
6631
 
6378
- attr_accessor :InstanceIds, :StartCalcDate, :EndCalcDate
6632
+ attr_accessor :InstanceId, :Offset, :Limit, :Filters
6379
6633
 
6380
- def initialize(instanceids=nil, startcalcdate=nil, endcalcdate=nil)
6381
- @InstanceIds = instanceids
6382
- @StartCalcDate = startcalcdate
6383
- @EndCalcDate = endcalcdate
6634
+ def initialize(instanceid=nil, offset=nil, limit=nil, filters=nil)
6635
+ @InstanceId = instanceid
6636
+ @Offset = offset
6637
+ @Limit = limit
6638
+ @Filters = filters
6384
6639
  end
6385
6640
 
6386
6641
  def deserialize(params)
6387
- @InstanceIds = params['InstanceIds']
6388
- @StartCalcDate = params['StartCalcDate']
6389
- @EndCalcDate = params['EndCalcDate']
6642
+ @InstanceId = params['InstanceId']
6643
+ @Offset = params['Offset']
6644
+ @Limit = params['Limit']
6645
+ unless params['Filters'].nil?
6646
+ @Filters = []
6647
+ params['Filters'].each do |i|
6648
+ filter_tmp = Filter.new
6649
+ filter_tmp.deserialize(i)
6650
+ @Filters << filter_tmp
6651
+ end
6652
+ end
6390
6653
  end
6391
6654
  end
6392
6655
 
6393
- # DescribePrometheusInstanceUsage返回参数结构体
6394
- class DescribePrometheusInstanceUsageResponse < TencentCloud::Common::AbstractModel
6395
- # @param UsageSet: 用量列表
6656
+ # DescribePrometheusAlertPolicy返回参数结构体
6657
+ class DescribePrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
6658
+ # @param AlertRules: 告警详情
6396
6659
  # 注意:此字段可能返回 null,表示取不到有效值。
6397
- # @type UsageSet: Array
6660
+ # @type AlertRules: Array
6661
+ # @param Total: 总数
6662
+ # @type Total: Integer
6398
6663
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6399
6664
  # @type RequestId: String
6400
6665
 
6401
- attr_accessor :UsageSet, :RequestId
6666
+ attr_accessor :AlertRules, :Total, :RequestId
6402
6667
 
6403
- def initialize(usageset=nil, requestid=nil)
6404
- @UsageSet = usageset
6668
+ def initialize(alertrules=nil, total=nil, requestid=nil)
6669
+ @AlertRules = alertrules
6670
+ @Total = total
6405
6671
  @RequestId = requestid
6406
6672
  end
6407
6673
 
6408
6674
  def deserialize(params)
6409
- unless params['UsageSet'].nil?
6410
- @UsageSet = []
6411
- params['UsageSet'].each do |i|
6412
- prometheusinstancetenantusage_tmp = PrometheusInstanceTenantUsage.new
6413
- prometheusinstancetenantusage_tmp.deserialize(i)
6414
- @UsageSet << prometheusinstancetenantusage_tmp
6675
+ unless params['AlertRules'].nil?
6676
+ @AlertRules = []
6677
+ params['AlertRules'].each do |i|
6678
+ prometheusalertpolicyitem_tmp = PrometheusAlertPolicyItem.new
6679
+ prometheusalertpolicyitem_tmp.deserialize(i)
6680
+ @AlertRules << prometheusalertpolicyitem_tmp
6415
6681
  end
6416
6682
  end
6683
+ @Total = params['Total']
6417
6684
  @RequestId = params['RequestId']
6418
6685
  end
6419
6686
  end
6420
6687
 
6421
- # DescribePrometheusInstances请求参数结构体
6422
- class DescribePrometheusInstancesRequest < TencentCloud::Common::AbstractModel
6423
- # @param InstanceIds: 按照一个或者多个实例ID查询。实例ID形如:prom-xxxxxxxx。请求的实例的上限为100。
6424
- # @type InstanceIds: Array
6425
- # @param InstanceStatus: 按照【实例状态】进行过滤。
6426
- # <ul>
6427
- # <li>1:正在创建</li>
6428
- # <li>2:运行中</li>
6429
- # <li>3:异常</li>
6430
- # <li>4:重建中</li>
6431
- # <li>5:销毁中</li>
6432
- # <li>6:已停服</li>
6433
- # <li>8:欠费停服中</li>
6434
- # <li>9:欠费已停服</li>
6435
- # </ul>
6436
- # @type InstanceStatus: Array
6437
- # @param InstanceName: 按照【实例名称】进行过滤。
6438
- # @type InstanceName: String
6439
- # @param Zones: 按照【可用区】进行过滤。可用区形如:ap-guangzhou-1。
6440
- # @type Zones: Array
6441
- # @param TagFilters: 按照【标签键值对】进行过滤。tag-key使用具体的标签键进行替换。
6442
- # @type TagFilters: Array
6443
- # @param IPv4Address: 按照【实例的IPv4地址】进行过滤。
6444
- # @type IPv4Address: Array
6445
- # @param Limit: 返回数量,默认为20,最大值为100。
6446
- # @type Limit: Integer
6447
- # @param Offset: 偏移量,默认为0。
6448
- # @type Offset: Integer
6449
- # @param InstanceChargeType: 按照【计费类型】进行过滤。
6450
- # <li>2:包年包月</li>
6451
- # <li>3:按量</li>
6452
- # @type InstanceChargeType: Integer
6688
+ # DescribePrometheusConfig请求参数结构体
6689
+ class DescribePrometheusConfigRequest < TencentCloud::Common::AbstractModel
6690
+ # @param InstanceId: 实例id
6691
+ # @type InstanceId: String
6692
+ # @param ClusterId: 集群id
6693
+ # @type ClusterId: String
6694
+ # @param ClusterType: 集群类型
6695
+ # @type ClusterType: String
6453
6696
 
6454
- attr_accessor :InstanceIds, :InstanceStatus, :InstanceName, :Zones, :TagFilters, :IPv4Address, :Limit, :Offset, :InstanceChargeType
6697
+ attr_accessor :InstanceId, :ClusterId, :ClusterType
6455
6698
 
6456
- def initialize(instanceids=nil, instancestatus=nil, instancename=nil, zones=nil, tagfilters=nil, ipv4address=nil, limit=nil, offset=nil, instancechargetype=nil)
6457
- @InstanceIds = instanceids
6458
- @InstanceStatus = instancestatus
6459
- @InstanceName = instancename
6460
- @Zones = zones
6699
+ def initialize(instanceid=nil, clusterid=nil, clustertype=nil)
6700
+ @InstanceId = instanceid
6701
+ @ClusterId = clusterid
6702
+ @ClusterType = clustertype
6703
+ end
6704
+
6705
+ def deserialize(params)
6706
+ @InstanceId = params['InstanceId']
6707
+ @ClusterId = params['ClusterId']
6708
+ @ClusterType = params['ClusterType']
6709
+ end
6710
+ end
6711
+
6712
+ # DescribePrometheusConfig返回参数结构体
6713
+ class DescribePrometheusConfigResponse < TencentCloud::Common::AbstractModel
6714
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6715
+ # @type RequestId: String
6716
+
6717
+ attr_accessor :RequestId
6718
+
6719
+ def initialize(requestid=nil)
6720
+ @RequestId = requestid
6721
+ end
6722
+
6723
+ def deserialize(params)
6724
+ @RequestId = params['RequestId']
6725
+ end
6726
+ end
6727
+
6728
+ # DescribePrometheusInstanceDetail请求参数结构体
6729
+ class DescribePrometheusInstanceDetailRequest < TencentCloud::Common::AbstractModel
6730
+ # @param InstanceId: 实例ID
6731
+ # @type InstanceId: String
6732
+
6733
+ attr_accessor :InstanceId
6734
+
6735
+ def initialize(instanceid=nil)
6736
+ @InstanceId = instanceid
6737
+ end
6738
+
6739
+ def deserialize(params)
6740
+ @InstanceId = params['InstanceId']
6741
+ end
6742
+ end
6743
+
6744
+ # DescribePrometheusInstanceDetail返回参数结构体
6745
+ class DescribePrometheusInstanceDetailResponse < TencentCloud::Common::AbstractModel
6746
+ # @param InstanceId: 实例ID
6747
+ # @type InstanceId: String
6748
+ # @param InstanceName: 实例名称
6749
+ # @type InstanceName: String
6750
+ # @param VpcId: VPC ID
6751
+ # @type VpcId: String
6752
+ # @param SubnetId: 子网 ID
6753
+ # @type SubnetId: String
6754
+ # @param InstanceStatus: 实例业务状态。取值范围:
6755
+
6756
+ # 1:正在创建
6757
+ # 2:运行中
6758
+ # 3:异常
6759
+ # 4:重建中
6760
+ # 5:销毁中
6761
+ # 6:已停服
6762
+ # 8:欠费停服中
6763
+ # 9:欠费已停服
6764
+ # @type InstanceStatus: Integer
6765
+ # @param ChargeStatus: 计费状态
6766
+
6767
+ # 1:正常
6768
+ # 2:过期
6769
+ # 3:销毁
6770
+ # 4:分配中
6771
+ # 5:分配失败
6772
+ # 注意:此字段可能返回 null,表示取不到有效值。
6773
+ # @type ChargeStatus: Integer
6774
+ # @param EnableGrafana: 是否开启 Grafana
6775
+ # 0:不开启
6776
+ # 1:开启
6777
+ # @type EnableGrafana: Integer
6778
+ # @param GrafanaURL: Grafana 面板 URL
6779
+ # 注意:此字段可能返回 null,表示取不到有效值。
6780
+ # @type GrafanaURL: String
6781
+ # @param InstanceChargeType: 实例计费模式。取值范围:
6782
+
6783
+ # 2:包年包月
6784
+ # 3:按量
6785
+ # @type InstanceChargeType: Integer
6786
+ # @param SpecName: 规格名称
6787
+ # 注意:此字段可能返回 null,表示取不到有效值。
6788
+ # @type SpecName: String
6789
+ # @param DataRetentionTime: 存储周期
6790
+ # 注意:此字段可能返回 null,表示取不到有效值。
6791
+ # @type DataRetentionTime: Integer
6792
+ # @param ExpireTime: 购买的实例过期时间
6793
+ # 注意:此字段可能返回 null,表示取不到有效值。
6794
+ # @type ExpireTime: String
6795
+ # @param AutoRenewFlag: 自动续费标记
6796
+
6797
+ # 0:不自动续费
6798
+ # 1:开启自动续费
6799
+ # 2:禁止自动续费
6800
+ # -1:无效
6801
+ # 注意:此字段可能返回 null,表示取不到有效值。
6802
+ # @type AutoRenewFlag: Integer
6803
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6804
+ # @type RequestId: String
6805
+
6806
+ attr_accessor :InstanceId, :InstanceName, :VpcId, :SubnetId, :InstanceStatus, :ChargeStatus, :EnableGrafana, :GrafanaURL, :InstanceChargeType, :SpecName, :DataRetentionTime, :ExpireTime, :AutoRenewFlag, :RequestId
6807
+
6808
+ 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, requestid=nil)
6809
+ @InstanceId = instanceid
6810
+ @InstanceName = instancename
6811
+ @VpcId = vpcid
6812
+ @SubnetId = subnetid
6813
+ @InstanceStatus = instancestatus
6814
+ @ChargeStatus = chargestatus
6815
+ @EnableGrafana = enablegrafana
6816
+ @GrafanaURL = grafanaurl
6817
+ @InstanceChargeType = instancechargetype
6818
+ @SpecName = specname
6819
+ @DataRetentionTime = dataretentiontime
6820
+ @ExpireTime = expiretime
6821
+ @AutoRenewFlag = autorenewflag
6822
+ @RequestId = requestid
6823
+ end
6824
+
6825
+ def deserialize(params)
6826
+ @InstanceId = params['InstanceId']
6827
+ @InstanceName = params['InstanceName']
6828
+ @VpcId = params['VpcId']
6829
+ @SubnetId = params['SubnetId']
6830
+ @InstanceStatus = params['InstanceStatus']
6831
+ @ChargeStatus = params['ChargeStatus']
6832
+ @EnableGrafana = params['EnableGrafana']
6833
+ @GrafanaURL = params['GrafanaURL']
6834
+ @InstanceChargeType = params['InstanceChargeType']
6835
+ @SpecName = params['SpecName']
6836
+ @DataRetentionTime = params['DataRetentionTime']
6837
+ @ExpireTime = params['ExpireTime']
6838
+ @AutoRenewFlag = params['AutoRenewFlag']
6839
+ @RequestId = params['RequestId']
6840
+ end
6841
+ end
6842
+
6843
+ # DescribePrometheusInstanceInitStatus请求参数结构体
6844
+ class DescribePrometheusInstanceInitStatusRequest < TencentCloud::Common::AbstractModel
6845
+ # @param InstanceId: 实例ID
6846
+ # @type InstanceId: String
6847
+
6848
+ attr_accessor :InstanceId
6849
+
6850
+ def initialize(instanceid=nil)
6851
+ @InstanceId = instanceid
6852
+ end
6853
+
6854
+ def deserialize(params)
6855
+ @InstanceId = params['InstanceId']
6856
+ end
6857
+ end
6858
+
6859
+ # DescribePrometheusInstanceInitStatus返回参数结构体
6860
+ class DescribePrometheusInstanceInitStatusResponse < TencentCloud::Common::AbstractModel
6861
+ # @param Status: 实例初始化状态,取值:
6862
+ # uninitialized 未初始化
6863
+ # initializing 初始化中
6864
+ # running 初始化完成,运行中
6865
+ # 注意:此字段可能返回 null,表示取不到有效值。
6866
+ # @type Status: String
6867
+ # @param Steps: 初始化任务步骤
6868
+ # 注意:此字段可能返回 null,表示取不到有效值。
6869
+ # @type Steps: Array
6870
+ # @param EksClusterId: 实例eks集群ID
6871
+ # 注意:此字段可能返回 null,表示取不到有效值。
6872
+ # @type EksClusterId: String
6873
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6874
+ # @type RequestId: String
6875
+
6876
+ attr_accessor :Status, :Steps, :EksClusterId, :RequestId
6877
+
6878
+ def initialize(status=nil, steps=nil, eksclusterid=nil, requestid=nil)
6879
+ @Status = status
6880
+ @Steps = steps
6881
+ @EksClusterId = eksclusterid
6882
+ @RequestId = requestid
6883
+ end
6884
+
6885
+ def deserialize(params)
6886
+ @Status = params['Status']
6887
+ unless params['Steps'].nil?
6888
+ @Steps = []
6889
+ params['Steps'].each do |i|
6890
+ taskstepinfo_tmp = TaskStepInfo.new
6891
+ taskstepinfo_tmp.deserialize(i)
6892
+ @Steps << taskstepinfo_tmp
6893
+ end
6894
+ end
6895
+ @EksClusterId = params['EksClusterId']
6896
+ @RequestId = params['RequestId']
6897
+ end
6898
+ end
6899
+
6900
+ # DescribePrometheusInstanceUsage请求参数结构体
6901
+ class DescribePrometheusInstanceUsageRequest < TencentCloud::Common::AbstractModel
6902
+ # @param InstanceIds: 按照一个或者多个实例ID查询。实例ID形如:prom-xxxxxxxx。请求的实例的上限为100。
6903
+ # @type InstanceIds: Array
6904
+ # @param StartCalcDate: 开始时间
6905
+ # @type StartCalcDate: String
6906
+ # @param EndCalcDate: 结束时间
6907
+ # @type EndCalcDate: String
6908
+
6909
+ attr_accessor :InstanceIds, :StartCalcDate, :EndCalcDate
6910
+
6911
+ def initialize(instanceids=nil, startcalcdate=nil, endcalcdate=nil)
6912
+ @InstanceIds = instanceids
6913
+ @StartCalcDate = startcalcdate
6914
+ @EndCalcDate = endcalcdate
6915
+ end
6916
+
6917
+ def deserialize(params)
6918
+ @InstanceIds = params['InstanceIds']
6919
+ @StartCalcDate = params['StartCalcDate']
6920
+ @EndCalcDate = params['EndCalcDate']
6921
+ end
6922
+ end
6923
+
6924
+ # DescribePrometheusInstanceUsage返回参数结构体
6925
+ class DescribePrometheusInstanceUsageResponse < TencentCloud::Common::AbstractModel
6926
+ # @param UsageSet: 用量列表
6927
+ # 注意:此字段可能返回 null,表示取不到有效值。
6928
+ # @type UsageSet: Array
6929
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6930
+ # @type RequestId: String
6931
+
6932
+ attr_accessor :UsageSet, :RequestId
6933
+
6934
+ def initialize(usageset=nil, requestid=nil)
6935
+ @UsageSet = usageset
6936
+ @RequestId = requestid
6937
+ end
6938
+
6939
+ def deserialize(params)
6940
+ unless params['UsageSet'].nil?
6941
+ @UsageSet = []
6942
+ params['UsageSet'].each do |i|
6943
+ prometheusinstancetenantusage_tmp = PrometheusInstanceTenantUsage.new
6944
+ prometheusinstancetenantusage_tmp.deserialize(i)
6945
+ @UsageSet << prometheusinstancetenantusage_tmp
6946
+ end
6947
+ end
6948
+ @RequestId = params['RequestId']
6949
+ end
6950
+ end
6951
+
6952
+ # DescribePrometheusInstancesOverview请求参数结构体
6953
+ class DescribePrometheusInstancesOverviewRequest < TencentCloud::Common::AbstractModel
6954
+ # @param Offset: 用于分页
6955
+ # @type Offset: Integer
6956
+ # @param Limit: 用于分页
6957
+ # @type Limit: Integer
6958
+ # @param Filters: 过滤实例,目前支持:
6959
+ # ID: 通过实例ID来过滤
6960
+ # Name: 通过实例名称来过滤
6961
+ # @type Filters: Array
6962
+
6963
+ attr_accessor :Offset, :Limit, :Filters
6964
+
6965
+ def initialize(offset=nil, limit=nil, filters=nil)
6966
+ @Offset = offset
6967
+ @Limit = limit
6968
+ @Filters = filters
6969
+ end
6970
+
6971
+ def deserialize(params)
6972
+ @Offset = params['Offset']
6973
+ @Limit = params['Limit']
6974
+ unless params['Filters'].nil?
6975
+ @Filters = []
6976
+ params['Filters'].each do |i|
6977
+ filter_tmp = Filter.new
6978
+ filter_tmp.deserialize(i)
6979
+ @Filters << filter_tmp
6980
+ end
6981
+ end
6982
+ end
6983
+ end
6984
+
6985
+ # DescribePrometheusInstancesOverview返回参数结构体
6986
+ class DescribePrometheusInstancesOverviewResponse < TencentCloud::Common::AbstractModel
6987
+ # @param Instances: 实例列表
6988
+ # @type Instances: Array
6989
+ # @param Total: 实例总数
6990
+ # 注意:此字段可能返回 null,表示取不到有效值。
6991
+ # @type Total: Integer
6992
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6993
+ # @type RequestId: String
6994
+
6995
+ attr_accessor :Instances, :Total, :RequestId
6996
+
6997
+ def initialize(instances=nil, total=nil, requestid=nil)
6998
+ @Instances = instances
6999
+ @Total = total
7000
+ @RequestId = requestid
7001
+ end
7002
+
7003
+ def deserialize(params)
7004
+ unless params['Instances'].nil?
7005
+ @Instances = []
7006
+ params['Instances'].each do |i|
7007
+ prometheusinstancesoverview_tmp = PrometheusInstancesOverview.new
7008
+ prometheusinstancesoverview_tmp.deserialize(i)
7009
+ @Instances << prometheusinstancesoverview_tmp
7010
+ end
7011
+ end
7012
+ @Total = params['Total']
7013
+ @RequestId = params['RequestId']
7014
+ end
7015
+ end
7016
+
7017
+ # DescribePrometheusInstances请求参数结构体
7018
+ class DescribePrometheusInstancesRequest < TencentCloud::Common::AbstractModel
7019
+ # @param InstanceIds: 按照一个或者多个实例ID查询。实例ID形如:prom-xxxxxxxx。请求的实例的上限为100。
7020
+ # @type InstanceIds: Array
7021
+ # @param InstanceStatus: 按照【实例状态】进行过滤。
7022
+ # <ul>
7023
+ # <li>1:正在创建</li>
7024
+ # <li>2:运行中</li>
7025
+ # <li>3:异常</li>
7026
+ # <li>4:重建中</li>
7027
+ # <li>5:销毁中</li>
7028
+ # <li>6:已停服</li>
7029
+ # <li>8:欠费停服中</li>
7030
+ # <li>9:欠费已停服</li>
7031
+ # </ul>
7032
+ # @type InstanceStatus: Array
7033
+ # @param InstanceName: 按照【实例名称】进行过滤。
7034
+ # @type InstanceName: String
7035
+ # @param Zones: 按照【可用区】进行过滤。可用区形如:ap-guangzhou-1。
7036
+ # @type Zones: Array
7037
+ # @param TagFilters: 按照【标签键值对】进行过滤。tag-key使用具体的标签键进行替换。
7038
+ # @type TagFilters: Array
7039
+ # @param IPv4Address: 按照【实例的IPv4地址】进行过滤。
7040
+ # @type IPv4Address: Array
7041
+ # @param Limit: 返回数量,默认为20,最大值为100。
7042
+ # @type Limit: Integer
7043
+ # @param Offset: 偏移量,默认为0。
7044
+ # @type Offset: Integer
7045
+ # @param InstanceChargeType: 按照【计费类型】进行过滤。
7046
+ # <li>2:包年包月</li>
7047
+ # <li>3:按量</li>
7048
+ # @type InstanceChargeType: Integer
7049
+
7050
+ attr_accessor :InstanceIds, :InstanceStatus, :InstanceName, :Zones, :TagFilters, :IPv4Address, :Limit, :Offset, :InstanceChargeType
7051
+
7052
+ def initialize(instanceids=nil, instancestatus=nil, instancename=nil, zones=nil, tagfilters=nil, ipv4address=nil, limit=nil, offset=nil, instancechargetype=nil)
7053
+ @InstanceIds = instanceids
7054
+ @InstanceStatus = instancestatus
7055
+ @InstanceName = instancename
7056
+ @Zones = zones
6461
7057
  @TagFilters = tagfilters
6462
7058
  @IPv4Address = ipv4address
6463
7059
  @Limit = limit
@@ -6517,6 +7113,125 @@ module TencentCloud
6517
7113
  end
6518
7114
  end
6519
7115
 
7116
+ # DescribePrometheusRecordRuleYaml请求参数结构体
7117
+ class DescribePrometheusRecordRuleYamlRequest < TencentCloud::Common::AbstractModel
7118
+ # @param InstanceId: 实例id
7119
+ # @type InstanceId: String
7120
+ # @param Offset: 分页
7121
+ # @type Offset: Integer
7122
+ # @param Limit: 分页
7123
+ # @type Limit: Integer
7124
+ # @param Filters: 过滤,当前支持
7125
+ # Name = Name
7126
+ # Values = 目标名称列表
7127
+ # @type Filters: Array
7128
+
7129
+ attr_accessor :InstanceId, :Offset, :Limit, :Filters
7130
+
7131
+ def initialize(instanceid=nil, offset=nil, limit=nil, filters=nil)
7132
+ @InstanceId = instanceid
7133
+ @Offset = offset
7134
+ @Limit = limit
7135
+ @Filters = filters
7136
+ end
7137
+
7138
+ def deserialize(params)
7139
+ @InstanceId = params['InstanceId']
7140
+ @Offset = params['Offset']
7141
+ @Limit = params['Limit']
7142
+ unless params['Filters'].nil?
7143
+ @Filters = []
7144
+ params['Filters'].each do |i|
7145
+ filter_tmp = Filter.new
7146
+ filter_tmp.deserialize(i)
7147
+ @Filters << filter_tmp
7148
+ end
7149
+ end
7150
+ end
7151
+ end
7152
+
7153
+ # DescribePrometheusRecordRuleYaml返回参数结构体
7154
+ class DescribePrometheusRecordRuleYamlResponse < TencentCloud::Common::AbstractModel
7155
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7156
+ # @type RequestId: String
7157
+
7158
+ attr_accessor :RequestId
7159
+
7160
+ def initialize(requestid=nil)
7161
+ @RequestId = requestid
7162
+ end
7163
+
7164
+ def deserialize(params)
7165
+ @RequestId = params['RequestId']
7166
+ end
7167
+ end
7168
+
7169
+ # DescribePrometheusRecordRules请求参数结构体
7170
+ class DescribePrometheusRecordRulesRequest < TencentCloud::Common::AbstractModel
7171
+ # @param InstanceId: 实例id
7172
+ # @type InstanceId: String
7173
+ # @param Offset: 分页
7174
+ # @type Offset: Integer
7175
+ # @param Limit: 分页
7176
+ # @type Limit: Integer
7177
+ # @param Filters: 过滤
7178
+ # @type Filters: Array
7179
+
7180
+ attr_accessor :InstanceId, :Offset, :Limit, :Filters
7181
+
7182
+ def initialize(instanceid=nil, offset=nil, limit=nil, filters=nil)
7183
+ @InstanceId = instanceid
7184
+ @Offset = offset
7185
+ @Limit = limit
7186
+ @Filters = filters
7187
+ end
7188
+
7189
+ def deserialize(params)
7190
+ @InstanceId = params['InstanceId']
7191
+ @Offset = params['Offset']
7192
+ @Limit = params['Limit']
7193
+ unless params['Filters'].nil?
7194
+ @Filters = []
7195
+ params['Filters'].each do |i|
7196
+ filter_tmp = Filter.new
7197
+ filter_tmp.deserialize(i)
7198
+ @Filters << filter_tmp
7199
+ end
7200
+ end
7201
+ end
7202
+ end
7203
+
7204
+ # DescribePrometheusRecordRules返回参数结构体
7205
+ class DescribePrometheusRecordRulesResponse < TencentCloud::Common::AbstractModel
7206
+ # @param Records: 聚合规则
7207
+ # @type Records: Array
7208
+ # @param Total: 总数
7209
+ # @type Total: Integer
7210
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7211
+ # @type RequestId: String
7212
+
7213
+ attr_accessor :Records, :Total, :RequestId
7214
+
7215
+ def initialize(records=nil, total=nil, requestid=nil)
7216
+ @Records = records
7217
+ @Total = total
7218
+ @RequestId = requestid
7219
+ end
7220
+
7221
+ def deserialize(params)
7222
+ unless params['Records'].nil?
7223
+ @Records = []
7224
+ params['Records'].each do |i|
7225
+ prometheusrecordruleyamlitem_tmp = PrometheusRecordRuleYamlItem.new
7226
+ prometheusrecordruleyamlitem_tmp.deserialize(i)
7227
+ @Records << prometheusrecordruleyamlitem_tmp
7228
+ end
7229
+ end
7230
+ @Total = params['Total']
7231
+ @RequestId = params['RequestId']
7232
+ end
7233
+ end
7234
+
6520
7235
  # DescribePrometheusScrapeJobs请求参数结构体
6521
7236
  class DescribePrometheusScrapeJobsRequest < TencentCloud::Common::AbstractModel
6522
7237
  # @param InstanceId: 实例 ID
@@ -6585,6 +7300,116 @@ module TencentCloud
6585
7300
  end
6586
7301
  end
6587
7302
 
7303
+ # DescribePrometheusTemp请求参数结构体
7304
+ class DescribePrometheusTempRequest < TencentCloud::Common::AbstractModel
7305
+ # @param Filters: 模糊过滤条件,支持
7306
+ # Level 按模板级别过滤
7307
+ # Name 按名称过滤
7308
+ # Describe 按描述过滤
7309
+ # ID 按templateId过滤
7310
+ # @type Filters: Array
7311
+ # @param Offset: 分页偏移
7312
+ # @type Offset: Integer
7313
+ # @param Limit: 总数限制
7314
+ # @type Limit: Integer
7315
+
7316
+ attr_accessor :Filters, :Offset, :Limit
7317
+
7318
+ def initialize(filters=nil, offset=nil, limit=nil)
7319
+ @Filters = filters
7320
+ @Offset = offset
7321
+ @Limit = limit
7322
+ end
7323
+
7324
+ def deserialize(params)
7325
+ unless params['Filters'].nil?
7326
+ @Filters = []
7327
+ params['Filters'].each do |i|
7328
+ filter_tmp = Filter.new
7329
+ filter_tmp.deserialize(i)
7330
+ @Filters << filter_tmp
7331
+ end
7332
+ end
7333
+ @Offset = params['Offset']
7334
+ @Limit = params['Limit']
7335
+ end
7336
+ end
7337
+
7338
+ # DescribePrometheusTemp返回参数结构体
7339
+ class DescribePrometheusTempResponse < TencentCloud::Common::AbstractModel
7340
+ # @param Templates: 模板列表
7341
+ # @type Templates: Array
7342
+ # @param Total: 总数
7343
+ # @type Total: Integer
7344
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7345
+ # @type RequestId: String
7346
+
7347
+ attr_accessor :Templates, :Total, :RequestId
7348
+
7349
+ def initialize(templates=nil, total=nil, requestid=nil)
7350
+ @Templates = templates
7351
+ @Total = total
7352
+ @RequestId = requestid
7353
+ end
7354
+
7355
+ def deserialize(params)
7356
+ unless params['Templates'].nil?
7357
+ @Templates = []
7358
+ params['Templates'].each do |i|
7359
+ prometheustemp_tmp = PrometheusTemp.new
7360
+ prometheustemp_tmp.deserialize(i)
7361
+ @Templates << prometheustemp_tmp
7362
+ end
7363
+ end
7364
+ @Total = params['Total']
7365
+ @RequestId = params['RequestId']
7366
+ end
7367
+ end
7368
+
7369
+ # DescribePrometheusTempSync请求参数结构体
7370
+ class DescribePrometheusTempSyncRequest < TencentCloud::Common::AbstractModel
7371
+ # @param TemplateId: 模板ID
7372
+ # @type TemplateId: String
7373
+
7374
+ attr_accessor :TemplateId
7375
+
7376
+ def initialize(templateid=nil)
7377
+ @TemplateId = templateid
7378
+ end
7379
+
7380
+ def deserialize(params)
7381
+ @TemplateId = params['TemplateId']
7382
+ end
7383
+ end
7384
+
7385
+ # DescribePrometheusTempSync返回参数结构体
7386
+ class DescribePrometheusTempSyncResponse < TencentCloud::Common::AbstractModel
7387
+ # @param Targets: 同步目标详情
7388
+ # 注意:此字段可能返回 null,表示取不到有效值。
7389
+ # @type Targets: Array
7390
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7391
+ # @type RequestId: String
7392
+
7393
+ attr_accessor :Targets, :RequestId
7394
+
7395
+ def initialize(targets=nil, requestid=nil)
7396
+ @Targets = targets
7397
+ @RequestId = requestid
7398
+ end
7399
+
7400
+ def deserialize(params)
7401
+ unless params['Targets'].nil?
7402
+ @Targets = []
7403
+ params['Targets'].each do |i|
7404
+ prometheustemplatesynctarget_tmp = PrometheusTemplateSyncTarget.new
7405
+ prometheustemplatesynctarget_tmp.deserialize(i)
7406
+ @Targets << prometheustemplatesynctarget_tmp
7407
+ end
7408
+ end
7409
+ @RequestId = params['RequestId']
7410
+ end
7411
+ end
7412
+
6588
7413
  # DescribePrometheusZones请求参数结构体
6589
7414
  class DescribePrometheusZonesRequest < TencentCloud::Common::AbstractModel
6590
7415
  # @param RegionId: 地域 ID
@@ -7166,11 +7991,35 @@ module TencentCloud
7166
7991
  end
7167
7992
 
7168
7993
  def deserialize(params)
7169
- @AlarmNotifyPeriod = params['AlarmNotifyPeriod']
7170
- @AlarmNotifyType = params['AlarmNotifyType']
7171
- @EventID = params['EventID']
7172
- @EventDisplayName = params['EventDisplayName']
7173
- @RuleID = params['RuleID']
7994
+ @AlarmNotifyPeriod = params['AlarmNotifyPeriod']
7995
+ @AlarmNotifyType = params['AlarmNotifyType']
7996
+ @EventID = params['EventID']
7997
+ @EventDisplayName = params['EventDisplayName']
7998
+ @RuleID = params['RuleID']
7999
+ end
8000
+ end
8001
+
8002
+ # 查询过滤参数
8003
+ class Filter < TencentCloud::Common::AbstractModel
8004
+ # @param Type: 过滤方式(=, !=, in)
8005
+ # @type Type: String
8006
+ # @param Key: 过滤维度名
8007
+ # @type Key: String
8008
+ # @param Value: 过滤值,in过滤方式用逗号分割多个值
8009
+ # @type Value: String
8010
+
8011
+ attr_accessor :Type, :Key, :Value
8012
+
8013
+ def initialize(type=nil, key=nil, value=nil)
8014
+ @Type = type
8015
+ @Key = key
8016
+ @Value = value
8017
+ end
8018
+
8019
+ def deserialize(params)
8020
+ @Type = params['Type']
8021
+ @Key = params['Key']
8022
+ @Value = params['Value']
7174
8023
  end
7175
8024
  end
7176
8025
 
@@ -7762,6 +8611,17 @@ module TencentCloud
7762
8611
  end
7763
8612
  end
7764
8613
 
8614
+ # k8s中标签,一般以数组的方式存在
8615
+ class Label < TencentCloud::Common::AbstractModel
8616
+
8617
+
8618
+ def initialize()
8619
+ end
8620
+
8621
+ def deserialize(params)
8622
+ end
8623
+ end
8624
+
7765
8625
  # 日志告警请求信息
7766
8626
  class LogAlarmReq < TencentCloud::Common::AbstractModel
7767
8627
  # @param InstanceId: apm实例id
@@ -8762,6 +9622,85 @@ module TencentCloud
8762
9622
  end
8763
9623
  end
8764
9624
 
9625
+ # ModifyPrometheusRecordRuleYaml请求参数结构体
9626
+ class ModifyPrometheusRecordRuleYamlRequest < TencentCloud::Common::AbstractModel
9627
+ # @param InstanceId: 实例id
9628
+ # @type InstanceId: String
9629
+ # @param Name: 聚合实例名称
9630
+ # @type Name: String
9631
+ # @param Content: 新的内容
9632
+ # @type Content: String
9633
+
9634
+ attr_accessor :InstanceId, :Name, :Content
9635
+
9636
+ def initialize(instanceid=nil, name=nil, content=nil)
9637
+ @InstanceId = instanceid
9638
+ @Name = name
9639
+ @Content = content
9640
+ end
9641
+
9642
+ def deserialize(params)
9643
+ @InstanceId = params['InstanceId']
9644
+ @Name = params['Name']
9645
+ @Content = params['Content']
9646
+ end
9647
+ end
9648
+
9649
+ # ModifyPrometheusRecordRuleYaml返回参数结构体
9650
+ class ModifyPrometheusRecordRuleYamlResponse < TencentCloud::Common::AbstractModel
9651
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9652
+ # @type RequestId: String
9653
+
9654
+ attr_accessor :RequestId
9655
+
9656
+ def initialize(requestid=nil)
9657
+ @RequestId = requestid
9658
+ end
9659
+
9660
+ def deserialize(params)
9661
+ @RequestId = params['RequestId']
9662
+ end
9663
+ end
9664
+
9665
+ # ModifyPrometheusTemp请求参数结构体
9666
+ class ModifyPrometheusTempRequest < TencentCloud::Common::AbstractModel
9667
+ # @param TemplateId: 模板ID
9668
+ # @type TemplateId: String
9669
+ # @param Template: 修改内容
9670
+ # @type Template: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusTempModify`
9671
+
9672
+ attr_accessor :TemplateId, :Template
9673
+
9674
+ def initialize(templateid=nil, template=nil)
9675
+ @TemplateId = templateid
9676
+ @Template = template
9677
+ end
9678
+
9679
+ def deserialize(params)
9680
+ @TemplateId = params['TemplateId']
9681
+ unless params['Template'].nil?
9682
+ @Template = PrometheusTempModify.new
9683
+ @Template.deserialize(params['Template'])
9684
+ end
9685
+ end
9686
+ end
9687
+
9688
+ # ModifyPrometheusTemp返回参数结构体
9689
+ class ModifyPrometheusTempResponse < TencentCloud::Common::AbstractModel
9690
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9691
+ # @type RequestId: String
9692
+
9693
+ attr_accessor :RequestId
9694
+
9695
+ def initialize(requestid=nil)
9696
+ @RequestId = requestid
9697
+ end
9698
+
9699
+ def deserialize(params)
9700
+ @RequestId = params['RequestId']
9701
+ end
9702
+ end
9703
+
8765
9704
  # 监控类型详细信息
8766
9705
  class MonitorTypeInfo < TencentCloud::Common::AbstractModel
8767
9706
  # @param Id: 监控类型ID
@@ -9135,6 +10074,173 @@ module TencentCloud
9135
10074
  end
9136
10075
  end
9137
10076
 
10077
+ # 告警渠道使用自建alertmanager的配置
10078
+ class PrometheusAlertManagerConfig < TencentCloud::Common::AbstractModel
10079
+ # @param Url: alertmanager url
10080
+ # @type Url: String
10081
+ # @param ClusterType: alertmanager部署所在集群类型
10082
+ # 注意:此字段可能返回 null,表示取不到有效值。
10083
+ # @type ClusterType: String
10084
+ # @param ClusterId: alertmanager部署所在集群ID
10085
+ # 注意:此字段可能返回 null,表示取不到有效值。
10086
+ # @type ClusterId: String
10087
+
10088
+ attr_accessor :Url, :ClusterType, :ClusterId
10089
+
10090
+ def initialize(url=nil, clustertype=nil, clusterid=nil)
10091
+ @Url = url
10092
+ @ClusterType = clustertype
10093
+ @ClusterId = clusterid
10094
+ end
10095
+
10096
+ def deserialize(params)
10097
+ @Url = params['Url']
10098
+ @ClusterType = params['ClusterType']
10099
+ @ClusterId = params['ClusterId']
10100
+ end
10101
+ end
10102
+
10103
+ # 托管prometheus告警策略实例
10104
+ class PrometheusAlertPolicyItem < TencentCloud::Common::AbstractModel
10105
+ # @param Name: 策略名称
10106
+ # @type Name: String
10107
+ # @param Rules: 规则列表
10108
+ # @type Rules: Array
10109
+ # @param Id: 告警策略 id
10110
+ # 注意:此字段可能返回 null,表示取不到有效值。
10111
+ # @type Id: String
10112
+ # @param TemplateId: 如果该告警来自模板下发,则TemplateId为模板id
10113
+ # 注意:此字段可能返回 null,表示取不到有效值。
10114
+ # @type TemplateId: String
10115
+ # @param Notification: 告警渠道,模板中使用可能返回null
10116
+ # 注意:此字段可能返回 null,表示取不到有效值。
10117
+ # @type Notification: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusNotificationItem`
10118
+ # @param UpdatedAt: 最后修改时间
10119
+ # 注意:此字段可能返回 null,表示取不到有效值。
10120
+ # @type UpdatedAt: String
10121
+ # @param ClusterId: 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID
10122
+ # 注意:此字段可能返回 null,表示取不到有效值。
10123
+ # @type ClusterId: String
10124
+
10125
+ attr_accessor :Name, :Rules, :Id, :TemplateId, :Notification, :UpdatedAt, :ClusterId
10126
+
10127
+ def initialize(name=nil, rules=nil, id=nil, templateid=nil, notification=nil, updatedat=nil, clusterid=nil)
10128
+ @Name = name
10129
+ @Rules = rules
10130
+ @Id = id
10131
+ @TemplateId = templateid
10132
+ @Notification = notification
10133
+ @UpdatedAt = updatedat
10134
+ @ClusterId = clusterid
10135
+ end
10136
+
10137
+ def deserialize(params)
10138
+ @Name = params['Name']
10139
+ unless params['Rules'].nil?
10140
+ @Rules = []
10141
+ params['Rules'].each do |i|
10142
+ prometheusalertrule_tmp = PrometheusAlertRule.new
10143
+ prometheusalertrule_tmp.deserialize(i)
10144
+ @Rules << prometheusalertrule_tmp
10145
+ end
10146
+ end
10147
+ @Id = params['Id']
10148
+ @TemplateId = params['TemplateId']
10149
+ unless params['Notification'].nil?
10150
+ @Notification = PrometheusNotificationItem.new
10151
+ @Notification.deserialize(params['Notification'])
10152
+ end
10153
+ @UpdatedAt = params['UpdatedAt']
10154
+ @ClusterId = params['ClusterId']
10155
+ end
10156
+ end
10157
+
10158
+ # Prometheus告警规则
10159
+ class PrometheusAlertRule < TencentCloud::Common::AbstractModel
10160
+ # @param Name: 规则名称
10161
+ # @type Name: String
10162
+ # @param Rule: prometheus语句
10163
+ # @type Rule: String
10164
+ # @param Labels: 额外标签
10165
+ # @type Labels: Array
10166
+ # @param Template: 告警发送模板
10167
+ # @type Template: String
10168
+ # @param For: 持续时间
10169
+ # @type For: String
10170
+ # @param Describe: 该条规则的描述信息
10171
+ # 注意:此字段可能返回 null,表示取不到有效值。
10172
+ # @type Describe: String
10173
+ # @param Annotations: 参考prometheus rule中的annotations
10174
+ # 注意:此字段可能返回 null,表示取不到有效值。
10175
+ # @type Annotations: Array
10176
+ # @param RuleState: 告警规则状态
10177
+ # 注意:此字段可能返回 null,表示取不到有效值。
10178
+ # @type RuleState: Integer
10179
+
10180
+ attr_accessor :Name, :Rule, :Labels, :Template, :For, :Describe, :Annotations, :RuleState
10181
+
10182
+ def initialize(name=nil, rule=nil, labels=nil, template=nil, _for=nil, describe=nil, annotations=nil, rulestate=nil)
10183
+ @Name = name
10184
+ @Rule = rule
10185
+ @Labels = labels
10186
+ @Template = template
10187
+ @For = _for
10188
+ @Describe = describe
10189
+ @Annotations = annotations
10190
+ @RuleState = rulestate
10191
+ end
10192
+
10193
+ def deserialize(params)
10194
+ @Name = params['Name']
10195
+ @Rule = params['Rule']
10196
+ unless params['Labels'].nil?
10197
+ @Labels = []
10198
+ params['Labels'].each do |i|
10199
+ label_tmp = Label.new
10200
+ label_tmp.deserialize(i)
10201
+ @Labels << label_tmp
10202
+ end
10203
+ end
10204
+ @Template = params['Template']
10205
+ @For = params['For']
10206
+ @Describe = params['Describe']
10207
+ unless params['Annotations'].nil?
10208
+ @Annotations = []
10209
+ params['Annotations'].each do |i|
10210
+ label_tmp = Label.new
10211
+ label_tmp.deserialize(i)
10212
+ @Annotations << label_tmp
10213
+ end
10214
+ end
10215
+ @RuleState = params['RuleState']
10216
+ end
10217
+ end
10218
+
10219
+ # prometheus配置
10220
+ class PrometheusConfigItem < TencentCloud::Common::AbstractModel
10221
+ # @param Name: 名称
10222
+ # @type Name: String
10223
+ # @param Config: 配置内容
10224
+ # @type Config: String
10225
+ # @param TemplateId: 用于出参,如果该配置来至模板,则为模板id
10226
+ # 注意:此字段可能返回 null,表示取不到有效值。
10227
+ # @type TemplateId: String
10228
+
10229
+ attr_accessor :Name, :Config, :TemplateId
10230
+
10231
+ def initialize(name=nil, config=nil, templateid=nil)
10232
+ @Name = name
10233
+ @Config = config
10234
+ @TemplateId = templateid
10235
+ end
10236
+
10237
+ def deserialize(params)
10238
+ @Name = params['Name']
10239
+ @Config = params['Config']
10240
+ @TemplateId = params['TemplateId']
10241
+ end
10242
+ end
10243
+
9138
10244
  # 实例的授权信息
9139
10245
  class PrometheusInstanceGrantInfo < TencentCloud::Common::AbstractModel
9140
10246
  # @param HasChargeOperation: 是否有计费操作权限(1=有,2=无)
@@ -9371,44 +10477,244 @@ module TencentCloud
9371
10477
  def deserialize(params)
9372
10478
  @InstanceId = params['InstanceId']
9373
10479
  @InstanceName = params['InstanceName']
9374
- @InstanceChargeType = params['InstanceChargeType']
9375
- @RegionId = params['RegionId']
9376
- @Zone = params['Zone']
10480
+ @InstanceChargeType = params['InstanceChargeType']
10481
+ @RegionId = params['RegionId']
10482
+ @Zone = params['Zone']
10483
+ @VpcId = params['VpcId']
10484
+ @SubnetId = params['SubnetId']
10485
+ @DataRetentionTime = params['DataRetentionTime']
10486
+ @InstanceStatus = params['InstanceStatus']
10487
+ @GrafanaURL = params['GrafanaURL']
10488
+ @CreatedAt = params['CreatedAt']
10489
+ @EnableGrafana = params['EnableGrafana']
10490
+ @IPv4Address = params['IPv4Address']
10491
+ unless params['TagSpecification'].nil?
10492
+ @TagSpecification = []
10493
+ params['TagSpecification'].each do |i|
10494
+ prometheustag_tmp = PrometheusTag.new
10495
+ prometheustag_tmp.deserialize(i)
10496
+ @TagSpecification << prometheustag_tmp
10497
+ end
10498
+ end
10499
+ @ExpireTime = params['ExpireTime']
10500
+ @ChargeStatus = params['ChargeStatus']
10501
+ @SpecName = params['SpecName']
10502
+ @AutoRenewFlag = params['AutoRenewFlag']
10503
+ @IsNearExpire = params['IsNearExpire']
10504
+ @AuthToken = params['AuthToken']
10505
+ @RemoteWrite = params['RemoteWrite']
10506
+ @ApiRootPath = params['ApiRootPath']
10507
+ @ProxyAddress = params['ProxyAddress']
10508
+ @GrafanaStatus = params['GrafanaStatus']
10509
+ @GrafanaIpWhiteList = params['GrafanaIpWhiteList']
10510
+ unless params['Grant'].nil?
10511
+ @Grant = PrometheusInstanceGrantInfo.new
10512
+ @Grant.deserialize(params['Grant'])
10513
+ end
10514
+ @GrafanaInstanceId = params['GrafanaInstanceId']
10515
+ @AlertRuleLimit = params['AlertRuleLimit']
10516
+ @RecordingRuleLimit = params['RecordingRuleLimit']
10517
+ @MigrationType = params['MigrationType']
10518
+ end
10519
+ end
10520
+
10521
+ # 托管prometheusV2实例概览
10522
+ class PrometheusInstancesOverview < TencentCloud::Common::AbstractModel
10523
+ # @param InstanceId: 实例ID
10524
+ # @type InstanceId: String
10525
+ # @param InstanceName: 实例名
10526
+ # @type InstanceName: String
10527
+ # @param VpcId: VPC ID
10528
+ # @type VpcId: String
10529
+ # @param SubnetId: 子网ID
10530
+ # @type SubnetId: String
10531
+ # @param InstanceStatus: 运行状态(1:正在创建;2:运行中;3:异常;4:重启中;5:销毁中; 6:已停机; 7: 已删除)
10532
+ # @type InstanceStatus: Integer
10533
+ # @param ChargeStatus: 计费状态(1:正常;2:过期; 3:销毁; 4:分配中; 5:分配失败)
10534
+ # 注意:此字段可能返回 null,表示取不到有效值。
10535
+ # @type ChargeStatus: Integer
10536
+ # @param EnableGrafana: 是否开启 Grafana(0:不开启,1:开启)
10537
+ # @type EnableGrafana: Integer
10538
+ # @param GrafanaURL: Grafana 面板 URL
10539
+ # 注意:此字段可能返回 null,表示取不到有效值。
10540
+ # @type GrafanaURL: String
10541
+ # @param InstanceChargeType: 实例付费类型(1:试用版;2:预付费)
10542
+ # @type InstanceChargeType: Integer
10543
+ # @param SpecName: 规格名称
10544
+ # 注意:此字段可能返回 null,表示取不到有效值。
10545
+ # @type SpecName: String
10546
+ # @param DataRetentionTime: 存储周期
10547
+ # 注意:此字段可能返回 null,表示取不到有效值。
10548
+ # @type DataRetentionTime: Integer
10549
+ # @param ExpireTime: 购买的实例过期时间
10550
+ # 注意:此字段可能返回 null,表示取不到有效值。
10551
+ # @type ExpireTime: String
10552
+ # @param AutoRenewFlag: 自动续费标记(0:不自动续费;1:开启自动续费;2:禁止自动续费;-1:无效)
10553
+ # 注意:此字段可能返回 null,表示取不到有效值。
10554
+ # @type AutoRenewFlag: Integer
10555
+ # @param BoundTotal: 绑定集群总数
10556
+ # @type BoundTotal: Integer
10557
+ # @param BoundNormal: 绑定集群正常状态总数
10558
+ # @type BoundNormal: Integer
10559
+
10560
+ attr_accessor :InstanceId, :InstanceName, :VpcId, :SubnetId, :InstanceStatus, :ChargeStatus, :EnableGrafana, :GrafanaURL, :InstanceChargeType, :SpecName, :DataRetentionTime, :ExpireTime, :AutoRenewFlag, :BoundTotal, :BoundNormal
10561
+
10562
+ 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)
10563
+ @InstanceId = instanceid
10564
+ @InstanceName = instancename
10565
+ @VpcId = vpcid
10566
+ @SubnetId = subnetid
10567
+ @InstanceStatus = instancestatus
10568
+ @ChargeStatus = chargestatus
10569
+ @EnableGrafana = enablegrafana
10570
+ @GrafanaURL = grafanaurl
10571
+ @InstanceChargeType = instancechargetype
10572
+ @SpecName = specname
10573
+ @DataRetentionTime = dataretentiontime
10574
+ @ExpireTime = expiretime
10575
+ @AutoRenewFlag = autorenewflag
10576
+ @BoundTotal = boundtotal
10577
+ @BoundNormal = boundnormal
10578
+ end
10579
+
10580
+ def deserialize(params)
10581
+ @InstanceId = params['InstanceId']
10582
+ @InstanceName = params['InstanceName']
9377
10583
  @VpcId = params['VpcId']
9378
10584
  @SubnetId = params['SubnetId']
9379
- @DataRetentionTime = params['DataRetentionTime']
9380
10585
  @InstanceStatus = params['InstanceStatus']
9381
- @GrafanaURL = params['GrafanaURL']
9382
- @CreatedAt = params['CreatedAt']
9383
- @EnableGrafana = params['EnableGrafana']
9384
- @IPv4Address = params['IPv4Address']
9385
- unless params['TagSpecification'].nil?
9386
- @TagSpecification = []
9387
- params['TagSpecification'].each do |i|
9388
- prometheustag_tmp = PrometheusTag.new
9389
- prometheustag_tmp.deserialize(i)
9390
- @TagSpecification << prometheustag_tmp
9391
- end
9392
- end
9393
- @ExpireTime = params['ExpireTime']
9394
10586
  @ChargeStatus = params['ChargeStatus']
10587
+ @EnableGrafana = params['EnableGrafana']
10588
+ @GrafanaURL = params['GrafanaURL']
10589
+ @InstanceChargeType = params['InstanceChargeType']
9395
10590
  @SpecName = params['SpecName']
10591
+ @DataRetentionTime = params['DataRetentionTime']
10592
+ @ExpireTime = params['ExpireTime']
9396
10593
  @AutoRenewFlag = params['AutoRenewFlag']
9397
- @IsNearExpire = params['IsNearExpire']
9398
- @AuthToken = params['AuthToken']
9399
- @RemoteWrite = params['RemoteWrite']
9400
- @ApiRootPath = params['ApiRootPath']
9401
- @ProxyAddress = params['ProxyAddress']
9402
- @GrafanaStatus = params['GrafanaStatus']
9403
- @GrafanaIpWhiteList = params['GrafanaIpWhiteList']
9404
- unless params['Grant'].nil?
9405
- @Grant = PrometheusInstanceGrantInfo.new
9406
- @Grant.deserialize(params['Grant'])
9407
- end
9408
- @GrafanaInstanceId = params['GrafanaInstanceId']
9409
- @AlertRuleLimit = params['AlertRuleLimit']
9410
- @RecordingRuleLimit = params['RecordingRuleLimit']
9411
- @MigrationType = params['MigrationType']
10594
+ @BoundTotal = params['BoundTotal']
10595
+ @BoundNormal = params['BoundNormal']
10596
+ end
10597
+ end
10598
+
10599
+ # 告警通知渠道配置
10600
+ class PrometheusNotificationItem < TencentCloud::Common::AbstractModel
10601
+ # @param Enabled: 是否启用
10602
+ # @type Enabled: Boolean
10603
+ # @param Type: 通道类型,默认为amp,支持以下
10604
+ # amp
10605
+ # webhook
10606
+ # alertmanager
10607
+ # @type Type: String
10608
+ # @param WebHook: 如果Type为webhook, 则该字段为必填项
10609
+ # 注意:此字段可能返回 null,表示取不到有效值。
10610
+ # @type WebHook: String
10611
+ # @param AlertManager: 如果Type为alertmanager, 则该字段为必填项
10612
+ # 注意:此字段可能返回 null,表示取不到有效值。
10613
+ # @type AlertManager: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusAlertManagerConfig`
10614
+ # @param RepeatInterval: 收敛时间
10615
+ # @type RepeatInterval: String
10616
+ # @param TimeRangeStart: 生效起始时间
10617
+ # @type TimeRangeStart: String
10618
+ # @param TimeRangeEnd: 生效结束时间
10619
+ # @type TimeRangeEnd: String
10620
+ # @param NotifyWay: 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。
10621
+ # 注意:此字段可能返回 null,表示取不到有效值。
10622
+ # @type NotifyWay: Array
10623
+ # @param ReceiverGroups: 告警接收组(用户组)
10624
+ # 注意:此字段可能返回 null,表示取不到有效值。
10625
+ # @type ReceiverGroups: Array
10626
+ # @param PhoneNotifyOrder: 电话告警顺序。
10627
+ # 注:NotifyWay选择CALL,采用该参数。
10628
+ # 注意:此字段可能返回 null,表示取不到有效值。
10629
+ # @type PhoneNotifyOrder: Array
10630
+ # @param PhoneCircleTimes: 电话告警次数。
10631
+ # 注:NotifyWay选择CALL,采用该参数。
10632
+ # 注意:此字段可能返回 null,表示取不到有效值。
10633
+ # @type PhoneCircleTimes: Integer
10634
+ # @param PhoneInnerInterval: 电话告警轮内间隔。单位:秒
10635
+ # 注:NotifyWay选择CALL,采用该参数。
10636
+ # 注意:此字段可能返回 null,表示取不到有效值。
10637
+ # @type PhoneInnerInterval: Integer
10638
+ # @param PhoneCircleInterval: 电话告警轮外间隔。单位:秒
10639
+ # 注:NotifyWay选择CALL,采用该参数。
10640
+ # 注意:此字段可能返回 null,表示取不到有效值。
10641
+ # @type PhoneCircleInterval: Integer
10642
+ # @param PhoneArriveNotice: 电话告警触达通知
10643
+ # 注:NotifyWay选择CALL,采用该参数。
10644
+ # 注意:此字段可能返回 null,表示取不到有效值。
10645
+ # @type PhoneArriveNotice: Boolean
10646
+
10647
+ attr_accessor :Enabled, :Type, :WebHook, :AlertManager, :RepeatInterval, :TimeRangeStart, :TimeRangeEnd, :NotifyWay, :ReceiverGroups, :PhoneNotifyOrder, :PhoneCircleTimes, :PhoneInnerInterval, :PhoneCircleInterval, :PhoneArriveNotice
10648
+
10649
+ 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)
10650
+ @Enabled = enabled
10651
+ @Type = type
10652
+ @WebHook = webhook
10653
+ @AlertManager = alertmanager
10654
+ @RepeatInterval = repeatinterval
10655
+ @TimeRangeStart = timerangestart
10656
+ @TimeRangeEnd = timerangeend
10657
+ @NotifyWay = notifyway
10658
+ @ReceiverGroups = receivergroups
10659
+ @PhoneNotifyOrder = phonenotifyorder
10660
+ @PhoneCircleTimes = phonecircletimes
10661
+ @PhoneInnerInterval = phoneinnerinterval
10662
+ @PhoneCircleInterval = phonecircleinterval
10663
+ @PhoneArriveNotice = phonearrivenotice
10664
+ end
10665
+
10666
+ def deserialize(params)
10667
+ @Enabled = params['Enabled']
10668
+ @Type = params['Type']
10669
+ @WebHook = params['WebHook']
10670
+ unless params['AlertManager'].nil?
10671
+ @AlertManager = PrometheusAlertManagerConfig.new
10672
+ @AlertManager.deserialize(params['AlertManager'])
10673
+ end
10674
+ @RepeatInterval = params['RepeatInterval']
10675
+ @TimeRangeStart = params['TimeRangeStart']
10676
+ @TimeRangeEnd = params['TimeRangeEnd']
10677
+ @NotifyWay = params['NotifyWay']
10678
+ @ReceiverGroups = params['ReceiverGroups']
10679
+ @PhoneNotifyOrder = params['PhoneNotifyOrder']
10680
+ @PhoneCircleTimes = params['PhoneCircleTimes']
10681
+ @PhoneInnerInterval = params['PhoneInnerInterval']
10682
+ @PhoneCircleInterval = params['PhoneCircleInterval']
10683
+ @PhoneArriveNotice = params['PhoneArriveNotice']
10684
+ end
10685
+ end
10686
+
10687
+ # prometheus聚合规则实例详情,包含所属集群ID
10688
+ class PrometheusRecordRuleYamlItem < TencentCloud::Common::AbstractModel
10689
+ # @param Name: 实例名称
10690
+ # @type Name: String
10691
+ # @param UpdateTime: 最近更新时间
10692
+ # @type UpdateTime: String
10693
+ # @param TemplateId: Yaml内容
10694
+ # @type TemplateId: String
10695
+ # @param Content: 如果该聚合规则来至模板,则TemplateId为模板id
10696
+ # 注意:此字段可能返回 null,表示取不到有效值。
10697
+ # @type Content: String
10698
+ # @param ClusterId: 该聚合规则如果来源于用户集群crd资源定义,则ClusterId为所属集群ID
10699
+ # 注意:此字段可能返回 null,表示取不到有效值。
10700
+ # @type ClusterId: String
10701
+
10702
+ attr_accessor :Name, :UpdateTime, :TemplateId, :Content, :ClusterId
10703
+
10704
+ def initialize(name=nil, updatetime=nil, templateid=nil, content=nil, clusterid=nil)
10705
+ @Name = name
10706
+ @UpdateTime = updatetime
10707
+ @TemplateId = templateid
10708
+ @Content = content
10709
+ @ClusterId = clusterid
10710
+ end
10711
+
10712
+ def deserialize(params)
10713
+ @Name = params['Name']
10714
+ @UpdateTime = params['UpdateTime']
10715
+ @TemplateId = params['TemplateId']
10716
+ @Content = params['Content']
10717
+ @ClusterId = params['ClusterId']
9412
10718
  end
9413
10719
  end
9414
10720
 
@@ -9569,6 +10875,258 @@ module TencentCloud
9569
10875
  end
9570
10876
  end
9571
10877
 
10878
+ # 模板实例
10879
+ class PrometheusTemp < TencentCloud::Common::AbstractModel
10880
+ # @param Name: 模板名称
10881
+ # @type Name: String
10882
+ # @param Level: 模板维度,支持以下类型
10883
+ # instance 实例级别
10884
+ # cluster 集群级别
10885
+ # @type Level: String
10886
+ # @param Describe: 模板描述
10887
+ # 注意:此字段可能返回 null,表示取不到有效值。
10888
+ # @type Describe: String
10889
+ # @param RecordRules: 当Level为instance时有效,
10890
+ # 模板中的聚合规则列表
10891
+ # 注意:此字段可能返回 null,表示取不到有效值。
10892
+ # @type RecordRules: Array
10893
+ # @param ServiceMonitors: 当Level为cluster时有效,
10894
+ # 模板中的ServiceMonitor规则列表
10895
+ # 注意:此字段可能返回 null,表示取不到有效值。
10896
+ # @type ServiceMonitors: Array
10897
+ # @param PodMonitors: 当Level为cluster时有效,
10898
+ # 模板中的PodMonitors规则列表
10899
+ # 注意:此字段可能返回 null,表示取不到有效值。
10900
+ # @type PodMonitors: Array
10901
+ # @param RawJobs: 当Level为cluster时有效,
10902
+ # 模板中的RawJobs规则列表
10903
+ # 注意:此字段可能返回 null,表示取不到有效值。
10904
+ # @type RawJobs: Array
10905
+ # @param TemplateId: 模板的ID, 用于出参
10906
+ # 注意:此字段可能返回 null,表示取不到有效值。
10907
+ # @type TemplateId: String
10908
+ # @param UpdateTime: 最近更新时间,用于出参
10909
+ # 注意:此字段可能返回 null,表示取不到有效值。
10910
+ # @type UpdateTime: String
10911
+ # @param Version: 当前版本,用于出参
10912
+ # 注意:此字段可能返回 null,表示取不到有效值。
10913
+ # @type Version: String
10914
+ # @param IsDefault: 是否系统提供的默认模板,用于出参
10915
+ # 注意:此字段可能返回 null,表示取不到有效值。
10916
+ # @type IsDefault: Boolean
10917
+ # @param AlertDetailRules: 当Level为instance时有效,
10918
+ # 模板中的告警配置列表
10919
+ # 注意:此字段可能返回 null,表示取不到有效值。
10920
+ # @type AlertDetailRules: Array
10921
+ # @param TargetsTotal: 关联实例数目
10922
+ # 注意:此字段可能返回 null,表示取不到有效值。
10923
+ # @type TargetsTotal: Integer
10924
+
10925
+ attr_accessor :Name, :Level, :Describe, :RecordRules, :ServiceMonitors, :PodMonitors, :RawJobs, :TemplateId, :UpdateTime, :Version, :IsDefault, :AlertDetailRules, :TargetsTotal
10926
+
10927
+ 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)
10928
+ @Name = name
10929
+ @Level = level
10930
+ @Describe = describe
10931
+ @RecordRules = recordrules
10932
+ @ServiceMonitors = servicemonitors
10933
+ @PodMonitors = podmonitors
10934
+ @RawJobs = rawjobs
10935
+ @TemplateId = templateid
10936
+ @UpdateTime = updatetime
10937
+ @Version = version
10938
+ @IsDefault = isdefault
10939
+ @AlertDetailRules = alertdetailrules
10940
+ @TargetsTotal = targetstotal
10941
+ end
10942
+
10943
+ def deserialize(params)
10944
+ @Name = params['Name']
10945
+ @Level = params['Level']
10946
+ @Describe = params['Describe']
10947
+ unless params['RecordRules'].nil?
10948
+ @RecordRules = []
10949
+ params['RecordRules'].each do |i|
10950
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
10951
+ prometheusconfigitem_tmp.deserialize(i)
10952
+ @RecordRules << prometheusconfigitem_tmp
10953
+ end
10954
+ end
10955
+ unless params['ServiceMonitors'].nil?
10956
+ @ServiceMonitors = []
10957
+ params['ServiceMonitors'].each do |i|
10958
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
10959
+ prometheusconfigitem_tmp.deserialize(i)
10960
+ @ServiceMonitors << prometheusconfigitem_tmp
10961
+ end
10962
+ end
10963
+ unless params['PodMonitors'].nil?
10964
+ @PodMonitors = []
10965
+ params['PodMonitors'].each do |i|
10966
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
10967
+ prometheusconfigitem_tmp.deserialize(i)
10968
+ @PodMonitors << prometheusconfigitem_tmp
10969
+ end
10970
+ end
10971
+ unless params['RawJobs'].nil?
10972
+ @RawJobs = []
10973
+ params['RawJobs'].each do |i|
10974
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
10975
+ prometheusconfigitem_tmp.deserialize(i)
10976
+ @RawJobs << prometheusconfigitem_tmp
10977
+ end
10978
+ end
10979
+ @TemplateId = params['TemplateId']
10980
+ @UpdateTime = params['UpdateTime']
10981
+ @Version = params['Version']
10982
+ @IsDefault = params['IsDefault']
10983
+ unless params['AlertDetailRules'].nil?
10984
+ @AlertDetailRules = []
10985
+ params['AlertDetailRules'].each do |i|
10986
+ prometheusalertpolicyitem_tmp = PrometheusAlertPolicyItem.new
10987
+ prometheusalertpolicyitem_tmp.deserialize(i)
10988
+ @AlertDetailRules << prometheusalertpolicyitem_tmp
10989
+ end
10990
+ end
10991
+ @TargetsTotal = params['TargetsTotal']
10992
+ end
10993
+ end
10994
+
10995
+ # 云原生Prometheus模板可修改项
10996
+ class PrometheusTempModify < TencentCloud::Common::AbstractModel
10997
+ # @param Name: 修改名称
10998
+ # @type Name: String
10999
+ # @param Describe: 修改描述
11000
+ # 注意:此字段可能返回 null,表示取不到有效值。
11001
+ # @type Describe: String
11002
+ # @param ServiceMonitors: 当Level为cluster时有效,
11003
+ # 模板中的ServiceMonitor规则列表
11004
+ # 注意:此字段可能返回 null,表示取不到有效值。
11005
+ # @type ServiceMonitors: Array
11006
+ # @param PodMonitors: 当Level为cluster时有效,
11007
+ # 模板中的PodMonitors规则列表
11008
+ # 注意:此字段可能返回 null,表示取不到有效值。
11009
+ # @type PodMonitors: Array
11010
+ # @param RawJobs: 当Level为cluster时有效,
11011
+ # 模板中的RawJobs规则列表
11012
+ # 注意:此字段可能返回 null,表示取不到有效值。
11013
+ # @type RawJobs: Array
11014
+ # @param RecordRules: 当Level为instance时有效,
11015
+ # 模板中的聚合规则列表
11016
+ # 注意:此字段可能返回 null,表示取不到有效值。
11017
+ # @type RecordRules: Array
11018
+ # @param AlertDetailRules: 修改内容,只有当模板类型是Alert时生效
11019
+ # 注意:此字段可能返回 null,表示取不到有效值。
11020
+ # @type AlertDetailRules: Array
11021
+
11022
+ attr_accessor :Name, :Describe, :ServiceMonitors, :PodMonitors, :RawJobs, :RecordRules, :AlertDetailRules
11023
+
11024
+ def initialize(name=nil, describe=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, recordrules=nil, alertdetailrules=nil)
11025
+ @Name = name
11026
+ @Describe = describe
11027
+ @ServiceMonitors = servicemonitors
11028
+ @PodMonitors = podmonitors
11029
+ @RawJobs = rawjobs
11030
+ @RecordRules = recordrules
11031
+ @AlertDetailRules = alertdetailrules
11032
+ end
11033
+
11034
+ def deserialize(params)
11035
+ @Name = params['Name']
11036
+ @Describe = params['Describe']
11037
+ unless params['ServiceMonitors'].nil?
11038
+ @ServiceMonitors = []
11039
+ params['ServiceMonitors'].each do |i|
11040
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
11041
+ prometheusconfigitem_tmp.deserialize(i)
11042
+ @ServiceMonitors << prometheusconfigitem_tmp
11043
+ end
11044
+ end
11045
+ unless params['PodMonitors'].nil?
11046
+ @PodMonitors = []
11047
+ params['PodMonitors'].each do |i|
11048
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
11049
+ prometheusconfigitem_tmp.deserialize(i)
11050
+ @PodMonitors << prometheusconfigitem_tmp
11051
+ end
11052
+ end
11053
+ unless params['RawJobs'].nil?
11054
+ @RawJobs = []
11055
+ params['RawJobs'].each do |i|
11056
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
11057
+ prometheusconfigitem_tmp.deserialize(i)
11058
+ @RawJobs << prometheusconfigitem_tmp
11059
+ end
11060
+ end
11061
+ unless params['RecordRules'].nil?
11062
+ @RecordRules = []
11063
+ params['RecordRules'].each do |i|
11064
+ prometheusconfigitem_tmp = PrometheusConfigItem.new
11065
+ prometheusconfigitem_tmp.deserialize(i)
11066
+ @RecordRules << prometheusconfigitem_tmp
11067
+ end
11068
+ end
11069
+ unless params['AlertDetailRules'].nil?
11070
+ @AlertDetailRules = []
11071
+ params['AlertDetailRules'].each do |i|
11072
+ prometheusalertpolicyitem_tmp = PrometheusAlertPolicyItem.new
11073
+ prometheusalertpolicyitem_tmp.deserialize(i)
11074
+ @AlertDetailRules << prometheusalertpolicyitem_tmp
11075
+ end
11076
+ end
11077
+ end
11078
+ end
11079
+
11080
+ # 云原生Prometheus模板同步目标
11081
+ class PrometheusTemplateSyncTarget < TencentCloud::Common::AbstractModel
11082
+ # @param Region: 目标所在地域
11083
+ # @type Region: String
11084
+ # @param InstanceId: 目标实例
11085
+ # @type InstanceId: String
11086
+ # @param ClusterId: 集群id,只有当采集模板的Level为cluster的时候需要
11087
+ # 注意:此字段可能返回 null,表示取不到有效值。
11088
+ # @type ClusterId: String
11089
+ # @param SyncTime: 最后一次同步时间, 用于出参
11090
+ # 注意:此字段可能返回 null,表示取不到有效值。
11091
+ # @type SyncTime: String
11092
+ # @param Version: 当前使用的模板版本,用于出参
11093
+ # 注意:此字段可能返回 null,表示取不到有效值。
11094
+ # @type Version: String
11095
+ # @param ClusterType: 集群类型,只有当采集模板的Level为cluster的时候需要
11096
+ # 注意:此字段可能返回 null,表示取不到有效值。
11097
+ # @type ClusterType: String
11098
+ # @param InstanceName: 用于出参,实例名称
11099
+ # 注意:此字段可能返回 null,表示取不到有效值。
11100
+ # @type InstanceName: String
11101
+ # @param ClusterName: 用于出参,集群名称
11102
+ # 注意:此字段可能返回 null,表示取不到有效值。
11103
+ # @type ClusterName: String
11104
+
11105
+ attr_accessor :Region, :InstanceId, :ClusterId, :SyncTime, :Version, :ClusterType, :InstanceName, :ClusterName
11106
+
11107
+ def initialize(region=nil, instanceid=nil, clusterid=nil, synctime=nil, version=nil, clustertype=nil, instancename=nil, clustername=nil)
11108
+ @Region = region
11109
+ @InstanceId = instanceid
11110
+ @ClusterId = clusterid
11111
+ @SyncTime = synctime
11112
+ @Version = version
11113
+ @ClusterType = clustertype
11114
+ @InstanceName = instancename
11115
+ @ClusterName = clustername
11116
+ end
11117
+
11118
+ def deserialize(params)
11119
+ @Region = params['Region']
11120
+ @InstanceId = params['InstanceId']
11121
+ @ClusterId = params['ClusterId']
11122
+ @SyncTime = params['SyncTime']
11123
+ @Version = params['Version']
11124
+ @ClusterType = params['ClusterType']
11125
+ @InstanceName = params['InstanceName']
11126
+ @ClusterName = params['ClusterName']
11127
+ end
11128
+ end
11129
+
9572
11130
  # PrometheusZoneItem 响应结构体内的地域信息
9573
11131
  class PrometheusZoneItem < TencentCloud::Common::AbstractModel
9574
11132
  # @param Zone: 可用区
@@ -9801,6 +11359,42 @@ module TencentCloud
9801
11359
  end
9802
11360
  end
9803
11361
 
11362
+ # RunPrometheusInstance请求参数结构体
11363
+ class RunPrometheusInstanceRequest < TencentCloud::Common::AbstractModel
11364
+ # @param InstanceId: 实例ID
11365
+ # @type InstanceId: String
11366
+ # @param SubnetId: 子网ID,默认使用实例所用子网初始化,也可通过该参数传递新的子网ID初始化
11367
+ # @type SubnetId: String
11368
+
11369
+ attr_accessor :InstanceId, :SubnetId
11370
+
11371
+ def initialize(instanceid=nil, subnetid=nil)
11372
+ @InstanceId = instanceid
11373
+ @SubnetId = subnetid
11374
+ end
11375
+
11376
+ def deserialize(params)
11377
+ @InstanceId = params['InstanceId']
11378
+ @SubnetId = params['SubnetId']
11379
+ end
11380
+ end
11381
+
11382
+ # RunPrometheusInstance返回参数结构体
11383
+ class RunPrometheusInstanceResponse < TencentCloud::Common::AbstractModel
11384
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11385
+ # @type RequestId: String
11386
+
11387
+ attr_accessor :RequestId
11388
+
11389
+ def initialize(requestid=nil)
11390
+ @RequestId = requestid
11391
+ end
11392
+
11393
+ def deserialize(params)
11394
+ @RequestId = params['RequestId']
11395
+ end
11396
+ end
11397
+
9804
11398
  # SendCustomAlarmMsg请求参数结构体
9805
11399
  class SendCustomAlarmMsgRequest < TencentCloud::Common::AbstractModel
9806
11400
  # @param Module: 接口模块名,当前取值monitor
@@ -9920,6 +11514,49 @@ module TencentCloud
9920
11514
  end
9921
11515
  end
9922
11516
 
11517
+ # SyncPrometheusTemp请求参数结构体
11518
+ class SyncPrometheusTempRequest < TencentCloud::Common::AbstractModel
11519
+ # @param TemplateId: 实例id
11520
+ # @type TemplateId: String
11521
+ # @param Targets: 同步目标
11522
+ # @type Targets: Array
11523
+
11524
+ attr_accessor :TemplateId, :Targets
11525
+
11526
+ def initialize(templateid=nil, targets=nil)
11527
+ @TemplateId = templateid
11528
+ @Targets = targets
11529
+ end
11530
+
11531
+ def deserialize(params)
11532
+ @TemplateId = params['TemplateId']
11533
+ unless params['Targets'].nil?
11534
+ @Targets = []
11535
+ params['Targets'].each do |i|
11536
+ prometheustemplatesynctarget_tmp = PrometheusTemplateSyncTarget.new
11537
+ prometheustemplatesynctarget_tmp.deserialize(i)
11538
+ @Targets << prometheustemplatesynctarget_tmp
11539
+ end
11540
+ end
11541
+ end
11542
+ end
11543
+
11544
+ # SyncPrometheusTemp返回参数结构体
11545
+ class SyncPrometheusTempResponse < TencentCloud::Common::AbstractModel
11546
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11547
+ # @type RequestId: String
11548
+
11549
+ attr_accessor :RequestId
11550
+
11551
+ def initialize(requestid=nil)
11552
+ @RequestId = requestid
11553
+ end
11554
+
11555
+ def deserialize(params)
11556
+ @RequestId = params['RequestId']
11557
+ end
11558
+ end
11559
+
9923
11560
  # 标签
9924
11561
  class Tag < TencentCloud::Common::AbstractModel
9925
11562
  # @param Key: 标签key
@@ -9987,6 +11624,45 @@ module TencentCloud
9987
11624
  end
9988
11625
  end
9989
11626
 
11627
+ # 任务步骤信息
11628
+ class TaskStepInfo < TencentCloud::Common::AbstractModel
11629
+ # @param Step: 步骤名称
11630
+ # @type Step: String
11631
+ # @param LifeState: 生命周期
11632
+ # pending : 步骤未开始
11633
+ # running: 步骤执行中
11634
+ # success: 步骤成功完成
11635
+ # failed: 步骤失败
11636
+ # @type LifeState: String
11637
+ # @param StartAt: 步骤开始时间
11638
+ # 注意:此字段可能返回 null,表示取不到有效值。
11639
+ # @type StartAt: String
11640
+ # @param EndAt: 步骤结束时间
11641
+ # 注意:此字段可能返回 null,表示取不到有效值。
11642
+ # @type EndAt: String
11643
+ # @param FailedMsg: 若步骤生命周期为failed,则此字段显示错误信息
11644
+ # 注意:此字段可能返回 null,表示取不到有效值。
11645
+ # @type FailedMsg: String
11646
+
11647
+ attr_accessor :Step, :LifeState, :StartAt, :EndAt, :FailedMsg
11648
+
11649
+ def initialize(step=nil, lifestate=nil, startat=nil, endat=nil, failedmsg=nil)
11650
+ @Step = step
11651
+ @LifeState = lifestate
11652
+ @StartAt = startat
11653
+ @EndAt = endat
11654
+ @FailedMsg = failedmsg
11655
+ end
11656
+
11657
+ def deserialize(params)
11658
+ @Step = params['Step']
11659
+ @LifeState = params['LifeState']
11660
+ @StartAt = params['StartAt']
11661
+ @EndAt = params['EndAt']
11662
+ @FailedMsg = params['FailedMsg']
11663
+ end
11664
+ end
11665
+
9990
11666
  # 模板列表
9991
11667
  class TemplateGroup < TencentCloud::Common::AbstractModel
9992
11668
  # @param Conditions: 指标告警规则