tencentcloud-sdk-monitor 1.0.341 → 1.0.342

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: 34d322173746830650bde6ee069a89abbe2c4b31
4
- data.tar.gz: ae27911444b300a24b5a2756230e8a394ae90eeb
3
+ metadata.gz: d1537e427354ce8d14152a161a07a1e36d7148ce
4
+ data.tar.gz: 0e6431ad4f99559c4c5ff46bb7127a748e2751b8
5
5
  SHA512:
6
- metadata.gz: 5ed58a5279f91c52845a0f7126e731fc978eb5756c145c2df40485298d4656193216145096ed136bdb1d2ffa2a9eaa50ebf61d3cf6d0e5523f51a6db27fe4f5f
7
- data.tar.gz: dad3f878008464bd794a89b15fe2028813451c229b286fb0f19e2913fa0c1b1c41ed2f70353f5d24a662f75882e8dd8baf510220f036d08808cafc10b29a32d8
6
+ metadata.gz: 265461acf7f0735be3e23f490669c25fdd8141e0cd5d0072d9eeb9d9b0aaa41b761cc11f04712b99a52015060172315d12f5daa7cece5e3444d7e5cb0b7ebbda
7
+ data.tar.gz: 59bd0ffd1d992f5e8c6671a424eb431bcdc4db825acb0478d665ee29c306079d0b53b845d3decff7ef794e5138899b495f91724cb541caeab91c56de88df37aa
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.341
1
+ 1.0.342
@@ -271,6 +271,30 @@ module TencentCloud
271
271
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
272
272
  end
273
273
 
274
+ # 创建 Prometheus 的预聚合规则
275
+
276
+ # @param request: Request instance for CreateRecordingRule.
277
+ # @type request: :class:`Tencentcloud::monitor::V20180724::CreateRecordingRuleRequest`
278
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::CreateRecordingRuleResponse`
279
+ def CreateRecordingRule(request)
280
+ body = send_request('CreateRecordingRule', request.serialize)
281
+ response = JSON.parse(body)
282
+ if response['Response'].key?('Error') == false
283
+ model = CreateRecordingRuleResponse.new
284
+ model.deserialize(response['Response'])
285
+ model
286
+ else
287
+ code = response['Response']['Error']['Code']
288
+ message = response['Response']['Error']['Message']
289
+ reqid = response['Response']['RequestId']
290
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
291
+ end
292
+ rescue TencentCloud::Common::TencentCloudSDKException => e
293
+ raise e
294
+ rescue StandardError => e
295
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
296
+ end
297
+
274
298
  # 在腾讯云容器服务下创建 Prometheus 服务发现。
275
299
  # <p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
276
300
  # <a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
@@ -441,6 +465,30 @@ module TencentCloud
441
465
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
442
466
  end
443
467
 
468
+ # 批量删除 Prometheus 预聚合规则
469
+
470
+ # @param request: Request instance for DeleteRecordingRules.
471
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DeleteRecordingRulesRequest`
472
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DeleteRecordingRulesResponse`
473
+ def DeleteRecordingRules(request)
474
+ body = send_request('DeleteRecordingRules', request.serialize)
475
+ response = JSON.parse(body)
476
+ if response['Response'].key?('Error') == false
477
+ model = DeleteRecordingRulesResponse.new
478
+ model.deserialize(response['Response'])
479
+ model
480
+ else
481
+ code = response['Response']['Error']['Code']
482
+ message = response['Response']['Error']['Message']
483
+ reqid = response['Response']['RequestId']
484
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
485
+ end
486
+ rescue TencentCloud::Common::TencentCloudSDKException => e
487
+ raise e
488
+ rescue StandardError => e
489
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
490
+ end
491
+
444
492
  # 删除在腾讯云容器服务下创建的 Prometheus 服务发现。
445
493
  # <p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
446
494
  # <a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
@@ -1073,6 +1121,30 @@ module TencentCloud
1073
1121
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1074
1122
  end
1075
1123
 
1124
+ # 根据条件查询 Prometheus 预聚合规则
1125
+
1126
+ # @param request: Request instance for DescribeRecordingRules.
1127
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribeRecordingRulesRequest`
1128
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeRecordingRulesResponse`
1129
+ def DescribeRecordingRules(request)
1130
+ body = send_request('DescribeRecordingRules', request.serialize)
1131
+ response = JSON.parse(body)
1132
+ if response['Response'].key?('Error') == false
1133
+ model = DescribeRecordingRulesResponse.new
1134
+ model.deserialize(response['Response'])
1135
+ model
1136
+ else
1137
+ code = response['Response']['Error']['Code']
1138
+ message = response['Response']['Error']['Message']
1139
+ reqid = response['Response']['RequestId']
1140
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1141
+ end
1142
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1143
+ raise e
1144
+ rescue StandardError => e
1145
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1146
+ end
1147
+
1076
1148
  # 列出在腾讯云容器服务下创建的 Prometheus 服务发现。
1077
1149
  # <p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
1078
1150
  # <a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
@@ -1735,6 +1807,30 @@ module TencentCloud
1735
1807
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1736
1808
  end
1737
1809
 
1810
+ # 更新 Prometheus 的预聚合规则
1811
+
1812
+ # @param request: Request instance for UpdateRecordingRule.
1813
+ # @type request: :class:`Tencentcloud::monitor::V20180724::UpdateRecordingRuleRequest`
1814
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::UpdateRecordingRuleResponse`
1815
+ def UpdateRecordingRule(request)
1816
+ body = send_request('UpdateRecordingRule', request.serialize)
1817
+ response = JSON.parse(body)
1818
+ if response['Response'].key?('Error') == false
1819
+ model = UpdateRecordingRuleResponse.new
1820
+ model.deserialize(response['Response'])
1821
+ model
1822
+ else
1823
+ code = response['Response']['Error']['Code']
1824
+ message = response['Response']['Error']['Message']
1825
+ reqid = response['Response']['RequestId']
1826
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1827
+ end
1828
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1829
+ raise e
1830
+ rescue StandardError => e
1831
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1832
+ end
1833
+
1738
1834
  # 在腾讯云容器服务下更新 Prometheus 服务发现。
1739
1835
  # <p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
1740
1836
  # <a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
@@ -1611,6 +1611,59 @@ module TencentCloud
1611
1611
  end
1612
1612
  end
1613
1613
 
1614
+ # CreateRecordingRule请求参数结构体
1615
+ class CreateRecordingRuleRequest < TencentCloud::Common::AbstractModel
1616
+ # @param Name: 聚合规则名称
1617
+ # @type Name: String
1618
+ # @param Group: 聚合规则组内容,格式为 yaml
1619
+ # @type Group: String
1620
+ # @param InstanceId: Prometheus 实例 ID
1621
+ # @type InstanceId: String
1622
+ # @param RuleState: 规则状态码,取值如下:
1623
+ # <li>1=RuleDeleted</li>
1624
+ # <li>2=RuleEnabled</li>
1625
+ # <li>3=RuleDisabled</li>
1626
+ # 默认状态码为 2 启用。
1627
+ # @type RuleState: Integer
1628
+
1629
+ attr_accessor :Name, :Group, :InstanceId, :RuleState
1630
+
1631
+ def initialize(name=nil, group=nil, instanceid=nil, rulestate=nil)
1632
+ @Name = name
1633
+ @Group = group
1634
+ @InstanceId = instanceid
1635
+ @RuleState = rulestate
1636
+ end
1637
+
1638
+ def deserialize(params)
1639
+ @Name = params['Name']
1640
+ @Group = params['Group']
1641
+ @InstanceId = params['InstanceId']
1642
+ @RuleState = params['RuleState']
1643
+ end
1644
+ end
1645
+
1646
+ # CreateRecordingRule返回参数结构体
1647
+ class CreateRecordingRuleResponse < TencentCloud::Common::AbstractModel
1648
+ # @param RuleId: 规则 ID
1649
+ # 注意:此字段可能返回 null,表示取不到有效值。
1650
+ # @type RuleId: String
1651
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1652
+ # @type RequestId: String
1653
+
1654
+ attr_accessor :RuleId, :RequestId
1655
+
1656
+ def initialize(ruleid=nil, requestid=nil)
1657
+ @RuleId = ruleid
1658
+ @RequestId = requestid
1659
+ end
1660
+
1661
+ def deserialize(params)
1662
+ @RuleId = params['RuleId']
1663
+ @RequestId = params['RequestId']
1664
+ end
1665
+ end
1666
+
1614
1667
  # CreateServiceDiscovery请求参数结构体
1615
1668
  class CreateServiceDiscoveryRequest < TencentCloud::Common::AbstractModel
1616
1669
  # @param InstanceId: Prometheus 实例 ID
@@ -1936,6 +1989,42 @@ module TencentCloud
1936
1989
  end
1937
1990
  end
1938
1991
 
1992
+ # DeleteRecordingRules请求参数结构体
1993
+ class DeleteRecordingRulesRequest < TencentCloud::Common::AbstractModel
1994
+ # @param RuleIds: 规则 ID 列表
1995
+ # @type RuleIds: Array
1996
+ # @param InstanceId: Prometheus 实例 ID
1997
+ # @type InstanceId: String
1998
+
1999
+ attr_accessor :RuleIds, :InstanceId
2000
+
2001
+ def initialize(ruleids=nil, instanceid=nil)
2002
+ @RuleIds = ruleids
2003
+ @InstanceId = instanceid
2004
+ end
2005
+
2006
+ def deserialize(params)
2007
+ @RuleIds = params['RuleIds']
2008
+ @InstanceId = params['InstanceId']
2009
+ end
2010
+ end
2011
+
2012
+ # DeleteRecordingRules返回参数结构体
2013
+ class DeleteRecordingRulesResponse < TencentCloud::Common::AbstractModel
2014
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2015
+ # @type RequestId: String
2016
+
2017
+ attr_accessor :RequestId
2018
+
2019
+ def initialize(requestid=nil)
2020
+ @RequestId = requestid
2021
+ end
2022
+
2023
+ def deserialize(params)
2024
+ @RequestId = params['RequestId']
2025
+ end
2026
+ end
2027
+
1939
2028
  # DeleteServiceDiscovery请求参数结构体
1940
2029
  class DeleteServiceDiscoveryRequest < TencentCloud::Common::AbstractModel
1941
2030
  # @param InstanceId: Prometheus 实例 ID
@@ -5199,6 +5288,77 @@ module TencentCloud
5199
5288
  end
5200
5289
  end
5201
5290
 
5291
+ # DescribeRecordingRules请求参数结构体
5292
+ class DescribeRecordingRulesRequest < TencentCloud::Common::AbstractModel
5293
+ # @param InstanceId: Prometheus 实例 ID
5294
+ # @type InstanceId: String
5295
+ # @param Limit: 返回数量,默认为 20,最大值为 100
5296
+ # @type Limit: Integer
5297
+ # @param Offset: 偏移量,默认为 0
5298
+ # @type Offset: Integer
5299
+ # @param RuleId: 规则 ID
5300
+ # @type RuleId: String
5301
+ # @param RuleState: 规则状态码,取值如下:
5302
+ # <li>1=RuleDeleted</li>
5303
+ # <li>2=RuleEnabled</li>
5304
+ # <li>3=RuleDisabled</li>
5305
+ # @type RuleState: Integer
5306
+ # @param Name: 规则名称
5307
+ # @type Name: String
5308
+
5309
+ attr_accessor :InstanceId, :Limit, :Offset, :RuleId, :RuleState, :Name
5310
+
5311
+ def initialize(instanceid=nil, limit=nil, offset=nil, ruleid=nil, rulestate=nil, name=nil)
5312
+ @InstanceId = instanceid
5313
+ @Limit = limit
5314
+ @Offset = offset
5315
+ @RuleId = ruleid
5316
+ @RuleState = rulestate
5317
+ @Name = name
5318
+ end
5319
+
5320
+ def deserialize(params)
5321
+ @InstanceId = params['InstanceId']
5322
+ @Limit = params['Limit']
5323
+ @Offset = params['Offset']
5324
+ @RuleId = params['RuleId']
5325
+ @RuleState = params['RuleState']
5326
+ @Name = params['Name']
5327
+ end
5328
+ end
5329
+
5330
+ # DescribeRecordingRules返回参数结构体
5331
+ class DescribeRecordingRulesResponse < TencentCloud::Common::AbstractModel
5332
+ # @param TotalCount: 规则组数量
5333
+ # @type TotalCount: Integer
5334
+ # @param RecordingRuleSet: 规则组详情
5335
+ # 注意:此字段可能返回 null,表示取不到有效值。
5336
+ # @type RecordingRuleSet: Array
5337
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5338
+ # @type RequestId: String
5339
+
5340
+ attr_accessor :TotalCount, :RecordingRuleSet, :RequestId
5341
+
5342
+ def initialize(totalcount=nil, recordingruleset=nil, requestid=nil)
5343
+ @TotalCount = totalcount
5344
+ @RecordingRuleSet = recordingruleset
5345
+ @RequestId = requestid
5346
+ end
5347
+
5348
+ def deserialize(params)
5349
+ @TotalCount = params['TotalCount']
5350
+ unless params['RecordingRuleSet'].nil?
5351
+ @RecordingRuleSet = []
5352
+ params['RecordingRuleSet'].each do |i|
5353
+ recordingruleset_tmp = RecordingRuleSet.new
5354
+ recordingruleset_tmp.deserialize(i)
5355
+ @RecordingRuleSet << recordingruleset_tmp
5356
+ end
5357
+ end
5358
+ @RequestId = params['RequestId']
5359
+ end
5360
+ end
5361
+
5202
5362
  # DescribeServiceDiscovery请求参数结构体
5203
5363
  class DescribeServiceDiscoveryRequest < TencentCloud::Common::AbstractModel
5204
5364
  # @param InstanceId: Prometheus 实例 ID
@@ -7375,6 +7535,46 @@ module TencentCloud
7375
7535
  end
7376
7536
  end
7377
7537
 
7538
+ # Prometheus 聚合规则响应结构体内信息
7539
+ class RecordingRuleSet < TencentCloud::Common::AbstractModel
7540
+ # @param RuleId: 规则 ID
7541
+ # @type RuleId: String
7542
+ # @param RuleState: 规则状态码
7543
+ # @type RuleState: Integer
7544
+ # @param Name: 规则名称
7545
+ # @type Name: String
7546
+ # @param Group: 规则内容组
7547
+ # @type Group: String
7548
+ # @param Total: 规则数量
7549
+ # @type Total: Integer
7550
+ # @param CreatedAt: 规则创建时间
7551
+ # @type CreatedAt: String
7552
+ # @param UpdatedAt: 规则最近更新时间
7553
+ # @type UpdatedAt: String
7554
+
7555
+ attr_accessor :RuleId, :RuleState, :Name, :Group, :Total, :CreatedAt, :UpdatedAt
7556
+
7557
+ def initialize(ruleid=nil, rulestate=nil, name=nil, group=nil, total=nil, createdat=nil, updatedat=nil)
7558
+ @RuleId = ruleid
7559
+ @RuleState = rulestate
7560
+ @Name = name
7561
+ @Group = group
7562
+ @Total = total
7563
+ @CreatedAt = createdat
7564
+ @UpdatedAt = updatedat
7565
+ end
7566
+
7567
+ def deserialize(params)
7568
+ @RuleId = params['RuleId']
7569
+ @RuleState = params['RuleState']
7570
+ @Name = params['Name']
7571
+ @Group = params['Group']
7572
+ @Total = params['Total']
7573
+ @CreatedAt = params['CreatedAt']
7574
+ @UpdatedAt = params['UpdatedAt']
7575
+ end
7576
+ end
7577
+
7378
7578
  # SendCustomAlarmMsg请求参数结构体
7379
7579
  class SendCustomAlarmMsgRequest < TencentCloud::Common::AbstractModel
7380
7580
  # @param Module: 接口模块名,当前取值monitor
@@ -8144,6 +8344,63 @@ module TencentCloud
8144
8344
  end
8145
8345
  end
8146
8346
 
8347
+ # UpdateRecordingRule请求参数结构体
8348
+ class UpdateRecordingRuleRequest < TencentCloud::Common::AbstractModel
8349
+ # @param Name: 聚合规则名称
8350
+ # @type Name: String
8351
+ # @param Group: 聚合规则组内容,格式为 yaml,通过 base64 进行编码。
8352
+ # @type Group: String
8353
+ # @param InstanceId: Prometheus 实例 ID
8354
+ # @type InstanceId: String
8355
+ # @param RuleId: Prometheus 聚合规则 ID
8356
+ # @type RuleId: String
8357
+ # @param RuleState: 规则状态码,取值如下:
8358
+ # <li>1=RuleDeleted</li>
8359
+ # <li>2=RuleEnabled</li>
8360
+ # <li>3=RuleDisabled</li>
8361
+ # 默认状态码为 2 启用。
8362
+ # @type RuleState: Integer
8363
+
8364
+ attr_accessor :Name, :Group, :InstanceId, :RuleId, :RuleState
8365
+
8366
+ def initialize(name=nil, group=nil, instanceid=nil, ruleid=nil, rulestate=nil)
8367
+ @Name = name
8368
+ @Group = group
8369
+ @InstanceId = instanceid
8370
+ @RuleId = ruleid
8371
+ @RuleState = rulestate
8372
+ end
8373
+
8374
+ def deserialize(params)
8375
+ @Name = params['Name']
8376
+ @Group = params['Group']
8377
+ @InstanceId = params['InstanceId']
8378
+ @RuleId = params['RuleId']
8379
+ @RuleState = params['RuleState']
8380
+ end
8381
+ end
8382
+
8383
+ # UpdateRecordingRule返回参数结构体
8384
+ class UpdateRecordingRuleResponse < TencentCloud::Common::AbstractModel
8385
+ # @param RuleId: 规则 ID
8386
+ # 注意:此字段可能返回 null,表示取不到有效值。
8387
+ # @type RuleId: String
8388
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8389
+ # @type RequestId: String
8390
+
8391
+ attr_accessor :RuleId, :RequestId
8392
+
8393
+ def initialize(ruleid=nil, requestid=nil)
8394
+ @RuleId = ruleid
8395
+ @RequestId = requestid
8396
+ end
8397
+
8398
+ def deserialize(params)
8399
+ @RuleId = params['RuleId']
8400
+ @RequestId = params['RequestId']
8401
+ end
8402
+ end
8403
+
8147
8404
  # UpdateServiceDiscovery请求参数结构体
8148
8405
  class UpdateServiceDiscoveryRequest < TencentCloud::Common::AbstractModel
8149
8406
  # @param InstanceId: Prometheus 实例 ID
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: 1.0.341
4
+ version: 1.0.342
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-23 00:00:00.000000000 Z
11
+ date: 2022-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common