tencentcloud-sdk-monitor 3.0.475 → 3.0.477
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 +89 -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: 1717cb9c7903e915ad93e119b21d0411e1fb57cf
|
4
|
+
data.tar.gz: 44b631836e15933a7cf201353f37ae9fb6b13ab8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d18ab07b4d0dc42bb805ddc0f43908d0e4dd1104a916b37290f70cc8c6fbd7edc3849cfe957e2fbee2a69ef0114baea449b8e9a00ecb6eb4c3b2901022194ae
|
7
|
+
data.tar.gz: 2b6ab5c02bbf93e32875f2ea91ad5094b5bb7ad5b91c2ac154bad2f075bda9150ccc4aaf89606d0c8df81963cd5962c1830b91787f8dc21807f6fca172c5a136
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.477
|
data/lib/v20180724/client.rb
CHANGED
@@ -1549,6 +1549,30 @@ module TencentCloud
|
|
1549
1549
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1550
1550
|
end
|
1551
1551
|
|
1552
|
+
# 查询Prometheus按量实例用量
|
1553
|
+
|
1554
|
+
# @param request: Request instance for DescribePrometheusInstanceUsage.
|
1555
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstanceUsageRequest`
|
1556
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstanceUsageResponse`
|
1557
|
+
def DescribePrometheusInstanceUsage(request)
|
1558
|
+
body = send_request('DescribePrometheusInstanceUsage', request.serialize)
|
1559
|
+
response = JSON.parse(body)
|
1560
|
+
if response['Response'].key?('Error') == false
|
1561
|
+
model = DescribePrometheusInstanceUsageResponse.new
|
1562
|
+
model.deserialize(response['Response'])
|
1563
|
+
model
|
1564
|
+
else
|
1565
|
+
code = response['Response']['Error']['Code']
|
1566
|
+
message = response['Response']['Error']['Message']
|
1567
|
+
reqid = response['Response']['RequestId']
|
1568
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1569
|
+
end
|
1570
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1571
|
+
raise e
|
1572
|
+
rescue StandardError => e
|
1573
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1574
|
+
end
|
1575
|
+
|
1552
1576
|
# 本接口 (DescribePrometheusInstances) 用于查询一个或多个实例的详细信息。
|
1553
1577
|
# <ul>
|
1554
1578
|
# <li>可以根据实例ID、实例名称或者实例状态等信息来查询实例的详细信息</li>
|
data/lib/v20180724/models.rb
CHANGED
@@ -6343,6 +6343,58 @@ module TencentCloud
|
|
6343
6343
|
end
|
6344
6344
|
end
|
6345
6345
|
|
6346
|
+
# DescribePrometheusInstanceUsage请求参数结构体
|
6347
|
+
class DescribePrometheusInstanceUsageRequest < TencentCloud::Common::AbstractModel
|
6348
|
+
# @param InstanceIds: 按照一个或者多个实例ID查询。实例ID形如:prom-xxxxxxxx。请求的实例的上限为100。
|
6349
|
+
# @type InstanceIds: Array
|
6350
|
+
# @param StartCalcDate: 开始时间
|
6351
|
+
# @type StartCalcDate: String
|
6352
|
+
# @param EndCalcDate: 结束时间
|
6353
|
+
# @type EndCalcDate: String
|
6354
|
+
|
6355
|
+
attr_accessor :InstanceIds, :StartCalcDate, :EndCalcDate
|
6356
|
+
|
6357
|
+
def initialize(instanceids=nil, startcalcdate=nil, endcalcdate=nil)
|
6358
|
+
@InstanceIds = instanceids
|
6359
|
+
@StartCalcDate = startcalcdate
|
6360
|
+
@EndCalcDate = endcalcdate
|
6361
|
+
end
|
6362
|
+
|
6363
|
+
def deserialize(params)
|
6364
|
+
@InstanceIds = params['InstanceIds']
|
6365
|
+
@StartCalcDate = params['StartCalcDate']
|
6366
|
+
@EndCalcDate = params['EndCalcDate']
|
6367
|
+
end
|
6368
|
+
end
|
6369
|
+
|
6370
|
+
# DescribePrometheusInstanceUsage返回参数结构体
|
6371
|
+
class DescribePrometheusInstanceUsageResponse < TencentCloud::Common::AbstractModel
|
6372
|
+
# @param UsageSet: 用量列表
|
6373
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6374
|
+
# @type UsageSet: Array
|
6375
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6376
|
+
# @type RequestId: String
|
6377
|
+
|
6378
|
+
attr_accessor :UsageSet, :RequestId
|
6379
|
+
|
6380
|
+
def initialize(usageset=nil, requestid=nil)
|
6381
|
+
@UsageSet = usageset
|
6382
|
+
@RequestId = requestid
|
6383
|
+
end
|
6384
|
+
|
6385
|
+
def deserialize(params)
|
6386
|
+
unless params['UsageSet'].nil?
|
6387
|
+
@UsageSet = []
|
6388
|
+
params['UsageSet'].each do |i|
|
6389
|
+
prometheusinstancetenantusage_tmp = PrometheusInstanceTenantUsage.new
|
6390
|
+
prometheusinstancetenantusage_tmp.deserialize(i)
|
6391
|
+
@UsageSet << prometheusinstancetenantusage_tmp
|
6392
|
+
end
|
6393
|
+
end
|
6394
|
+
@RequestId = params['RequestId']
|
6395
|
+
end
|
6396
|
+
end
|
6397
|
+
|
6346
6398
|
# DescribePrometheusInstances请求参数结构体
|
6347
6399
|
class DescribePrometheusInstancesRequest < TencentCloud::Common::AbstractModel
|
6348
6400
|
# @param InstanceIds: 按照一个或者多个实例ID查询。实例ID形如:prom-xxxxxxxx。请求的实例的上限为100。
|
@@ -9056,6 +9108,43 @@ module TencentCloud
|
|
9056
9108
|
end
|
9057
9109
|
end
|
9058
9110
|
|
9111
|
+
# Prometheus用量信息
|
9112
|
+
class PrometheusInstanceTenantUsage < TencentCloud::Common::AbstractModel
|
9113
|
+
# @param InstanceId: 实例ID
|
9114
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9115
|
+
# @type InstanceId: String
|
9116
|
+
# @param CalcDate: 计费周期
|
9117
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9118
|
+
# @type CalcDate: String
|
9119
|
+
# @param Total: 总用量
|
9120
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9121
|
+
# @type Total: Float
|
9122
|
+
# @param Basic: 基础指标用量
|
9123
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9124
|
+
# @type Basic: Float
|
9125
|
+
# @param Fee: 付费指标用量
|
9126
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9127
|
+
# @type Fee: Float
|
9128
|
+
|
9129
|
+
attr_accessor :InstanceId, :CalcDate, :Total, :Basic, :Fee
|
9130
|
+
|
9131
|
+
def initialize(instanceid=nil, calcdate=nil, total=nil, basic=nil, fee=nil)
|
9132
|
+
@InstanceId = instanceid
|
9133
|
+
@CalcDate = calcdate
|
9134
|
+
@Total = total
|
9135
|
+
@Basic = basic
|
9136
|
+
@Fee = fee
|
9137
|
+
end
|
9138
|
+
|
9139
|
+
def deserialize(params)
|
9140
|
+
@InstanceId = params['InstanceId']
|
9141
|
+
@CalcDate = params['CalcDate']
|
9142
|
+
@Total = params['Total']
|
9143
|
+
@Basic = params['Basic']
|
9144
|
+
@Fee = params['Fee']
|
9145
|
+
end
|
9146
|
+
end
|
9147
|
+
|
9059
9148
|
# Prometheus 服务响应体
|
9060
9149
|
class PrometheusInstancesItem < TencentCloud::Common::AbstractModel
|
9061
9150
|
# @param InstanceId: 实例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: 3.0.
|
4
|
+
version: 3.0.477
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|