tencentcloud-sdk-monitor 3.0.723 → 3.0.725

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: 171bd32834dbe834575bc2e62c65c133fb44af31
4
- data.tar.gz: c64dd6b73c00f0761d169f3b7ef5ed502f2893bf
3
+ metadata.gz: 6de3124310823c279e854d71b94c217873ea30d6
4
+ data.tar.gz: 55cae46497868aa0b7e20d5a877198b575968f80
5
5
  SHA512:
6
- metadata.gz: 836891b350b82d2418c0ba4c933e2a1f143150ed23cc0113601c8d477d6ac0fcc0206f8e870e9225590a0c8a76d43e5cf40b1066359663219808ad44b35dd9a2
7
- data.tar.gz: 432e54131dd452e96ee019a3b631b6071fa6c18dd7373fa84928de0003668b8f2a8f831b55dbee086cf2a5d436eb4bfb660787118071ef8663ec9f8624a1aa1b
6
+ metadata.gz: 063fe55f8c39d5819d35a0346110852a1edd5196fff8ba8d3e444fef63493814a539d981137d47f2b9f84969cdee54e3431d5117633f304f1ffbe1480b68a6dd
7
+ data.tar.gz: f7e84911d7458b1627791a9e0e1e7bfdf24430e599baadbc93af51bb765019bb776736ebe9cb3bb3a47164f70e3feebc96e7d3266f93ae4d7a008488ed7f6cbe
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.723
1
+ 3.0.725
@@ -223,7 +223,7 @@ module TencentCloud
223
223
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
224
224
  end
225
225
 
226
- # 创建 exporter 集成
226
+ # 创建集成中心 exporter 集成,因集成较多,建议控制台创建集成。(前提:已授权创建托管 EKS 集群,验证方式:1. 控制台界面确认,未提示授权则表示已授权创建;2. 通过 DescribePrometheusInstanceInitStatus 接口查询集群状态,如果托管集群不存在,可通过 RunPrometheusInstance 接口创建)
227
227
 
228
228
  # @param request: Request instance for CreateExporterIntegration.
229
229
  # @type request: :class:`Tencentcloud::monitor::V20180724::CreateExporterIntegrationRequest`
@@ -511,7 +511,7 @@ module TencentCloud
511
511
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
512
512
  end
513
513
 
514
- # 创建 Prometheus 抓取任务
514
+ # 创建 Prometheus Agent 抓取任务
515
515
 
516
516
  # @param request: Request instance for CreatePrometheusScrapeJob.
517
517
  # @type request: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusScrapeJobRequest`
@@ -705,7 +705,7 @@ module TencentCloud
705
705
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
706
706
  end
707
707
 
708
- # 删除 exporter 集成
708
+ # 删除集成中心 exporter 集成
709
709
 
710
710
  # @param request: Request instance for DeleteExporterIntegration.
711
711
  # @type request: :class:`Tencentcloud::monitor::V20180724::DeleteExporterIntegrationRequest`
@@ -921,7 +921,7 @@ module TencentCloud
921
921
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
922
922
  end
923
923
 
924
- # 删除 Prometheus 抓取任务
924
+ # 删除 Prometheus Agent 抓取任务
925
925
 
926
926
  # @param request: Request instance for DeletePrometheusScrapeJobs.
927
927
  # @type request: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusScrapeJobsRequest`
@@ -2443,7 +2443,7 @@ module TencentCloud
2443
2443
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2444
2444
  end
2445
2445
 
2446
- # 彻底删除 Prometheus 实例相关数据,给定的实例必须先被 Terminate
2446
+ # 彻底删除 Prometheus 实例相关数据,给定的实例必须先被 Terminate(该接口是异步接口,实例是否释放需要通过 DescribePrometheusInstances 接口返回的状态来判断)。
2447
2447
 
2448
2448
  # @param request: Request instance for DestroyPrometheusInstance.
2449
2449
  # @type request: :class:`Tencentcloud::monitor::V20180724::DestroyPrometheusInstanceRequest`
@@ -17,6 +17,33 @@
17
17
  module TencentCloud
18
18
  module Monitor
19
19
  module V20180724
20
+ # 策略过滤条件
21
+ class AlarmConditionFilter < TencentCloud::Common::AbstractModel
22
+ # @param Type: 类型
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type Type: String
25
+ # @param Expression: 表达式
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type Expression: String
28
+ # @param Dimensions: 过滤条件
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # @type Dimensions: String
31
+
32
+ attr_accessor :Type, :Expression, :Dimensions
33
+
34
+ def initialize(type=nil, expression=nil, dimensions=nil)
35
+ @Type = type
36
+ @Expression = expression
37
+ @Dimensions = dimensions
38
+ end
39
+
40
+ def deserialize(params)
41
+ @Type = params['Type']
42
+ @Expression = params['Expression']
43
+ @Dimensions = params['Dimensions']
44
+ end
45
+ end
46
+
20
47
  # 告警事件
21
48
  class AlarmEvent < TencentCloud::Common::AbstractModel
22
49
  # @param EventName: 事件名
@@ -41,6 +68,28 @@ module TencentCloud
41
68
  end
42
69
  end
43
70
 
71
+ # 聚合条件
72
+ class AlarmGroupByItem < TencentCloud::Common::AbstractModel
73
+ # @param Id: Item Id
74
+ # 注意:此字段可能返回 null,表示取不到有效值。
75
+ # @type Id: String
76
+ # @param Name: 名称
77
+ # 注意:此字段可能返回 null,表示取不到有效值。
78
+ # @type Name: String
79
+
80
+ attr_accessor :Id, :Name
81
+
82
+ def initialize(id=nil, name=nil)
83
+ @Id = id
84
+ @Name = name
85
+ end
86
+
87
+ def deserialize(params)
88
+ @Id = params['Id']
89
+ @Name = params['Name']
90
+ end
91
+ end
92
+
44
93
  # 通知模板ID及通知等级列表,["Remind","Serious"]表示该通知模板仅接收提醒和严重类别的告警
45
94
  class AlarmHierarchicalNotice < TencentCloud::Common::AbstractModel
46
95
  # @param NoticeId: 通知模板ID
@@ -488,6 +537,12 @@ module TencentCloud
488
537
  # @param TagInstances: 标签
489
538
  # 注意:此字段可能返回 null,表示取不到有效值。
490
539
  # @type TagInstances: Array
540
+ # @param Filter: 过滤条件
541
+ # 注意:此字段可能返回 null,表示取不到有效值。
542
+ # @type Filter: :class:`Tencentcloud::Monitor.v20180724.models.AlarmConditionFilter`
543
+ # @param GroupBy: 聚合条件
544
+ # 注意:此字段可能返回 null,表示取不到有效值。
545
+ # @type GroupBy: Array
491
546
  # @param FilterDimensionsParam: 策略关联的过滤维度信息
492
547
  # 注意:此字段可能返回 null,表示取不到有效值。
493
548
  # @type FilterDimensionsParam: String
@@ -510,9 +565,9 @@ module TencentCloud
510
565
  # 注意:此字段可能返回 null,表示取不到有效值。
511
566
  # @type IsSupportAlarmTag: Integer
512
567
 
513
- attr_accessor :PolicyId, :PolicyName, :Remark, :MonitorType, :Enable, :UseSum, :ProjectId, :ProjectName, :Namespace, :ConditionTemplateId, :Condition, :EventCondition, :NoticeIds, :Notices, :TriggerTasks, :ConditionsTemp, :LastEditUin, :UpdateTime, :InsertTime, :Region, :NamespaceShowName, :IsDefault, :CanSetDefault, :InstanceGroupId, :InstanceSum, :InstanceGroupName, :RuleType, :OriginId, :TagInstances, :FilterDimensionsParam, :IsOneClick, :OneClickStatus, :AdvancedMetricNumber, :IsBindAll, :Tags, :IsSupportAlarmTag
568
+ attr_accessor :PolicyId, :PolicyName, :Remark, :MonitorType, :Enable, :UseSum, :ProjectId, :ProjectName, :Namespace, :ConditionTemplateId, :Condition, :EventCondition, :NoticeIds, :Notices, :TriggerTasks, :ConditionsTemp, :LastEditUin, :UpdateTime, :InsertTime, :Region, :NamespaceShowName, :IsDefault, :CanSetDefault, :InstanceGroupId, :InstanceSum, :InstanceGroupName, :RuleType, :OriginId, :TagInstances, :Filter, :GroupBy, :FilterDimensionsParam, :IsOneClick, :OneClickStatus, :AdvancedMetricNumber, :IsBindAll, :Tags, :IsSupportAlarmTag
514
569
 
515
- def initialize(policyid=nil, policyname=nil, remark=nil, monitortype=nil, enable=nil, usesum=nil, projectid=nil, projectname=nil, namespace=nil, conditiontemplateid=nil, condition=nil, eventcondition=nil, noticeids=nil, notices=nil, triggertasks=nil, conditionstemp=nil, lastedituin=nil, updatetime=nil, inserttime=nil, region=nil, namespaceshowname=nil, isdefault=nil, cansetdefault=nil, instancegroupid=nil, instancesum=nil, instancegroupname=nil, ruletype=nil, originid=nil, taginstances=nil, filterdimensionsparam=nil, isoneclick=nil, oneclickstatus=nil, advancedmetricnumber=nil, isbindall=nil, tags=nil, issupportalarmtag=nil)
570
+ def initialize(policyid=nil, policyname=nil, remark=nil, monitortype=nil, enable=nil, usesum=nil, projectid=nil, projectname=nil, namespace=nil, conditiontemplateid=nil, condition=nil, eventcondition=nil, noticeids=nil, notices=nil, triggertasks=nil, conditionstemp=nil, lastedituin=nil, updatetime=nil, inserttime=nil, region=nil, namespaceshowname=nil, isdefault=nil, cansetdefault=nil, instancegroupid=nil, instancesum=nil, instancegroupname=nil, ruletype=nil, originid=nil, taginstances=nil, filter=nil, groupby=nil, filterdimensionsparam=nil, isoneclick=nil, oneclickstatus=nil, advancedmetricnumber=nil, isbindall=nil, tags=nil, issupportalarmtag=nil)
516
571
  @PolicyId = policyid
517
572
  @PolicyName = policyname
518
573
  @Remark = remark
@@ -542,6 +597,8 @@ module TencentCloud
542
597
  @RuleType = ruletype
543
598
  @OriginId = originid
544
599
  @TagInstances = taginstances
600
+ @Filter = filter
601
+ @GroupBy = groupby
545
602
  @FilterDimensionsParam = filterdimensionsparam
546
603
  @IsOneClick = isoneclick
547
604
  @OneClickStatus = oneclickstatus
@@ -611,6 +668,18 @@ module TencentCloud
611
668
  @TagInstances << taginstance_tmp
612
669
  end
613
670
  end
671
+ unless params['Filter'].nil?
672
+ @Filter = AlarmConditionFilter.new
673
+ @Filter.deserialize(params['Filter'])
674
+ end
675
+ unless params['GroupBy'].nil?
676
+ @GroupBy = []
677
+ params['GroupBy'].each do |i|
678
+ alarmgroupbyitem_tmp = AlarmGroupByItem.new
679
+ alarmgroupbyitem_tmp.deserialize(i)
680
+ @GroupBy << alarmgroupbyitem_tmp
681
+ end
682
+ end
614
683
  @FilterDimensionsParam = params['FilterDimensionsParam']
615
684
  @IsOneClick = params['IsOneClick']
616
685
  @OneClickStatus = params['OneClickStatus']
@@ -1649,16 +1718,16 @@ module TencentCloud
1649
1718
  class CreateExporterIntegrationRequest < TencentCloud::Common::AbstractModel
1650
1719
  # @param InstanceId: 实例 ID
1651
1720
  # @type InstanceId: String
1652
- # @param Kind: 类型
1721
+ # @param Kind: 类型(可通过 DescribePrometheusIntegrations 接口获取,取每一项中的 ExporterType 字段)
1653
1722
  # @type Kind: String
1654
1723
  # @param Content: 集成配置
1655
1724
  # @type Content: String
1656
- # @param KubeType: Kubernetes 集群类型,取值如下:
1725
+ # @param KubeType: Kubernetes 集群类型,可不填,取值如下:
1657
1726
  # <li> 1= 容器集群(TKE) </li>
1658
- # <li> 2=弹性集群<EKS> </li>
1659
- # <li> 3= Prometheus管理的弹性集群<MEKS> </li>
1727
+ # <li> 2=弹性集群(EKS) </li>
1728
+ # <li> 3= Prometheus管理的弹性集群(MEKS) </li>
1660
1729
  # @type KubeType: Integer
1661
- # @param ClusterId: 集群 ID
1730
+ # @param ClusterId: 集群 ID,可不填
1662
1731
  # @type ClusterId: String
1663
1732
 
1664
1733
  attr_accessor :InstanceId, :Kind, :Content, :KubeType, :ClusterId
@@ -2278,13 +2347,13 @@ module TencentCloud
2278
2347
  class CreatePrometheusMultiTenantInstancePostPayModeRequest < TencentCloud::Common::AbstractModel
2279
2348
  # @param InstanceName: 实例名
2280
2349
  # @type InstanceName: String
2281
- # @param VpcId: VPC ID
2350
+ # @param VpcId: VPC ID(可通过 vpc:DescribeVpcs 接口获取,与实例同地域)
2282
2351
  # @type VpcId: String
2283
- # @param SubnetId: 子网 ID
2352
+ # @param SubnetId: 子网 ID(可通过 vpc:DescribeSubnets 接口获取)
2284
2353
  # @type SubnetId: String
2285
2354
  # @param DataRetentionTime: 数据存储时间(单位天),限制值为15,30,45之一
2286
2355
  # @type DataRetentionTime: Integer
2287
- # @param Zone: 可用区
2356
+ # @param Zone: 可用区(与子网同可用区)
2288
2357
  # @type Zone: String
2289
2358
  # @param TagSpecification: 实例的标签
2290
2359
  # @type TagSpecification: Array
@@ -2383,11 +2452,11 @@ module TencentCloud
2383
2452
 
2384
2453
  # CreatePrometheusScrapeJob请求参数结构体
2385
2454
  class CreatePrometheusScrapeJobRequest < TencentCloud::Common::AbstractModel
2386
- # @param InstanceId: Prometheus 实例 ID,例如:prom-abcd1234
2455
+ # @param InstanceId: Prometheus 实例 ID
2387
2456
  # @type InstanceId: String
2388
- # @param AgentId: Agent ID,例如:agent-abcd1234,可在控制台 Agent 管理中获取
2457
+ # @param AgentId: Agent ID(可通过DescribePrometheusAgents 接口获取)
2389
2458
  # @type AgentId: String
2390
- # @param Config: 抓取任务配置,格式:job_name:xx
2459
+ # @param Config: 抓取任务配置
2391
2460
  # @type Config: String
2392
2461
 
2393
2462
  attr_accessor :InstanceId, :AgentId, :Config
@@ -2468,7 +2537,7 @@ module TencentCloud
2468
2537
  class CreateRecordingRuleRequest < TencentCloud::Common::AbstractModel
2469
2538
  # @param Name: 聚合规则名称
2470
2539
  # @type Name: String
2471
- # @param Group: 聚合规则组内容,格式为 yaml
2540
+ # @param Group: 聚合规则组内容,格式为 yaml,通过 base64 进行编码。
2472
2541
  # @type Group: String
2473
2542
  # @param InstanceId: Prometheus 实例 ID
2474
2543
  # @type InstanceId: String
@@ -2785,16 +2854,16 @@ module TencentCloud
2785
2854
  class DeleteExporterIntegrationRequest < TencentCloud::Common::AbstractModel
2786
2855
  # @param InstanceId: 实例 ID
2787
2856
  # @type InstanceId: String
2788
- # @param Kind: 类型
2857
+ # @param Kind: 类型(可通过 DescribeExporterIntegrations获取)
2789
2858
  # @type Kind: String
2790
2859
  # @param Name: 名字
2791
2860
  # @type Name: String
2792
2861
  # @param KubeType: Kubernetes 集群类型,取值如下:
2793
2862
  # <li> 1= 容器集群(TKE) </li>
2794
- # <li> 2=弹性集群<EKS> </li>
2795
- # <li> 3= Prometheus管理的弹性集群<MEKS> </li>
2863
+ # <li> 2=弹性集群(EKS) </li>
2864
+ # <li> 3= Prometheus管理的弹性集群(MEKS) </li>
2796
2865
  # @type KubeType: Integer
2797
- # @param ClusterId: 集群 ID
2866
+ # @param ClusterId: 集群 ID,可不填
2798
2867
  # @type ClusterId: String
2799
2868
 
2800
2869
  attr_accessor :InstanceId, :Kind, :Name, :KubeType, :ClusterId
@@ -3147,9 +3216,9 @@ module TencentCloud
3147
3216
  class DeletePrometheusScrapeJobsRequest < TencentCloud::Common::AbstractModel
3148
3217
  # @param InstanceId: 实例 ID
3149
3218
  # @type InstanceId: String
3150
- # @param AgentId: Agent ID
3219
+ # @param AgentId: Agent ID(可通过 DescribePrometheusAgents 接口获取)
3151
3220
  # @type AgentId: String
3152
- # @param JobIds: 任务 ID 列表
3221
+ # @param JobIds: 任务 ID 列表(可通过 DescribePrometheusScrapeJobs 接口获取)
3153
3222
  # @type JobIds: Array
3154
3223
 
3155
3224
  attr_accessor :InstanceId, :AgentId, :JobIds
@@ -14063,6 +14132,13 @@ module TencentCloud
14063
14132
  # @param InstanceId: 实例 ID
14064
14133
  # @type InstanceId: String
14065
14134
  # @param IntegrationCodes: Prometheus 集成项 Code,升级对应的 Dashboard,取值如下:
14135
+ # <li>qcloud</li>
14136
+ # <li>cvm_process_exporter</li>
14137
+ # <li>cvm_node_exporter</li>
14138
+ # <li>cvm</li>
14139
+ # <li>kubernetes</li>
14140
+ # <li>cdwch</li>
14141
+ # <li>rocketmq</li>
14066
14142
  # <li>spring_mvc</li>
14067
14143
  # <li>mysql</li>
14068
14144
  # <li>go</li>
@@ -14080,6 +14156,8 @@ module TencentCloud
14080
14156
  # <li>tps</li>
14081
14157
  # <li>istio</li>
14082
14158
  # <li>etcd</li>
14159
+ # <li>pts</li>
14160
+ # <li>kong</li>
14083
14161
  # @type IntegrationCodes: Array
14084
14162
 
14085
14163
  attr_accessor :InstanceId, :IntegrationCodes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.723
4
+ version: 3.0.725
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-07 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common