tencentcloud-sdk-monitor 3.0.464 → 3.0.465
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180724/client.rb +24 -0
- data/lib/v20180724/models.rb +76 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e41484d4155ef4ab685b0ef80466cf915eb42b06
|
4
|
+
data.tar.gz: c2fce5577b7a04b7b2cf7afcdee72ca6c873c2be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49a4991f135d67254fe3096eb048e8f35b16fb22c4eda2975fbac18b9b93a12d283a0cfa95ce2f52be235f5eed1771a3546deb1093a0b466b283a28f19ffc7b1
|
7
|
+
data.tar.gz: 5d57e2fcec901f6086448103f1bb6480b833abd8397548b7f99d596fbb4b032c480ab71fe55cfd49b606eb7b26e88bdae8a0ffe6a2ad536a2469c305da23b0ef
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.465
|
data/lib/v20180724/client.rb
CHANGED
@@ -1601,6 +1601,30 @@ module TencentCloud
|
|
1601
1601
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1602
1602
|
end
|
1603
1603
|
|
1604
|
+
# 列出 Prometheus 服务可用区
|
1605
|
+
|
1606
|
+
# @param request: Request instance for DescribePrometheusZones.
|
1607
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusZonesRequest`
|
1608
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusZonesResponse`
|
1609
|
+
def DescribePrometheusZones(request)
|
1610
|
+
body = send_request('DescribePrometheusZones', request.serialize)
|
1611
|
+
response = JSON.parse(body)
|
1612
|
+
if response['Response'].key?('Error') == false
|
1613
|
+
model = DescribePrometheusZonesResponse.new
|
1614
|
+
model.deserialize(response['Response'])
|
1615
|
+
model
|
1616
|
+
else
|
1617
|
+
code = response['Response']['Error']['Code']
|
1618
|
+
message = response['Response']['Error']['Message']
|
1619
|
+
reqid = response['Response']['RequestId']
|
1620
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1621
|
+
end
|
1622
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1623
|
+
raise e
|
1624
|
+
rescue StandardError => e
|
1625
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1626
|
+
end
|
1627
|
+
|
1604
1628
|
# 根据条件查询 Prometheus 预聚合规则
|
1605
1629
|
|
1606
1630
|
# @param request: Request instance for DescribeRecordingRules.
|
data/lib/v20180724/models.rb
CHANGED
@@ -6510,6 +6510,50 @@ module TencentCloud
|
|
6510
6510
|
end
|
6511
6511
|
end
|
6512
6512
|
|
6513
|
+
# DescribePrometheusZones请求参数结构体
|
6514
|
+
class DescribePrometheusZonesRequest < TencentCloud::Common::AbstractModel
|
6515
|
+
# @param RegionId: 地域 ID
|
6516
|
+
# @type RegionId: Integer
|
6517
|
+
|
6518
|
+
attr_accessor :RegionId
|
6519
|
+
|
6520
|
+
def initialize(regionid=nil)
|
6521
|
+
@RegionId = regionid
|
6522
|
+
end
|
6523
|
+
|
6524
|
+
def deserialize(params)
|
6525
|
+
@RegionId = params['RegionId']
|
6526
|
+
end
|
6527
|
+
end
|
6528
|
+
|
6529
|
+
# DescribePrometheusZones返回参数结构体
|
6530
|
+
class DescribePrometheusZonesResponse < TencentCloud::Common::AbstractModel
|
6531
|
+
# @param ZoneSet: 区域列表
|
6532
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6533
|
+
# @type ZoneSet: Array
|
6534
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6535
|
+
# @type RequestId: String
|
6536
|
+
|
6537
|
+
attr_accessor :ZoneSet, :RequestId
|
6538
|
+
|
6539
|
+
def initialize(zoneset=nil, requestid=nil)
|
6540
|
+
@ZoneSet = zoneset
|
6541
|
+
@RequestId = requestid
|
6542
|
+
end
|
6543
|
+
|
6544
|
+
def deserialize(params)
|
6545
|
+
unless params['ZoneSet'].nil?
|
6546
|
+
@ZoneSet = []
|
6547
|
+
params['ZoneSet'].each do |i|
|
6548
|
+
prometheuszoneitem_tmp = PrometheusZoneItem.new
|
6549
|
+
prometheuszoneitem_tmp.deserialize(i)
|
6550
|
+
@ZoneSet << prometheuszoneitem_tmp
|
6551
|
+
end
|
6552
|
+
end
|
6553
|
+
@RequestId = params['RequestId']
|
6554
|
+
end
|
6555
|
+
end
|
6556
|
+
|
6513
6557
|
# DescribeRecordingRules请求参数结构体
|
6514
6558
|
class DescribeRecordingRulesRequest < TencentCloud::Common::AbstractModel
|
6515
6559
|
# @param InstanceId: Prometheus 实例 ID
|
@@ -9373,6 +9417,38 @@ module TencentCloud
|
|
9373
9417
|
end
|
9374
9418
|
end
|
9375
9419
|
|
9420
|
+
# PrometheusZoneItem 响应结构体内的地域信息
|
9421
|
+
class PrometheusZoneItem < TencentCloud::Common::AbstractModel
|
9422
|
+
# @param Zone: 可用区
|
9423
|
+
# @type Zone: String
|
9424
|
+
# @param ZoneId: 可用区 ID
|
9425
|
+
# @type ZoneId: Integer
|
9426
|
+
# @param ZoneState: 可用区状态( 0: 不可用;1: 可用)
|
9427
|
+
# @type ZoneState: Integer
|
9428
|
+
# @param RegionId: 地域 ID
|
9429
|
+
# @type RegionId: Integer
|
9430
|
+
# @param ZoneName: 可用区名(目前为中文)
|
9431
|
+
# @type ZoneName: String
|
9432
|
+
|
9433
|
+
attr_accessor :Zone, :ZoneId, :ZoneState, :RegionId, :ZoneName
|
9434
|
+
|
9435
|
+
def initialize(zone=nil, zoneid=nil, zonestate=nil, regionid=nil, zonename=nil)
|
9436
|
+
@Zone = zone
|
9437
|
+
@ZoneId = zoneid
|
9438
|
+
@ZoneState = zonestate
|
9439
|
+
@RegionId = regionid
|
9440
|
+
@ZoneName = zonename
|
9441
|
+
end
|
9442
|
+
|
9443
|
+
def deserialize(params)
|
9444
|
+
@Zone = params['Zone']
|
9445
|
+
@ZoneId = params['ZoneId']
|
9446
|
+
@ZoneState = params['ZoneState']
|
9447
|
+
@RegionId = params['RegionId']
|
9448
|
+
@ZoneName = params['ZoneName']
|
9449
|
+
end
|
9450
|
+
end
|
9451
|
+
|
9376
9452
|
# PutMonitorData请求参数结构体
|
9377
9453
|
class PutMonitorDataRequest < TencentCloud::Common::AbstractModel
|
9378
9454
|
# @param Metrics: 一组指标和数据
|
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.
|
4
|
+
version: 3.0.465
|
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-12-
|
11
|
+
date: 2022-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|