tencentcloud-sdk-monitor 1.0.342 → 1.0.343
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 +67 -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: 514f5d8c388dbf5f9efc67d86dd7a8f9da9ec281
|
4
|
+
data.tar.gz: 85e27ba6cdc71fae3b9d5600a2f963487881c953
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db14211c968ea7aa0c8ee229335906c371e722e2d998b4522a4622a14bb055aea36fb30c5a017f53f81ef05d79deaa8a25714bff32d8281124d58c40e54bbe5c
|
7
|
+
data.tar.gz: e0216e21b7a5aefa8df116ee9a9aff37518e98d75e1b9f5b37e06ee104d20bd80d0b29863e448756b03ae3f815a903e2412e240c3084ca6f7d21c953d4c32a65
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.343
|
data/lib/v20180724/client.rb
CHANGED
@@ -247,6 +247,30 @@ module TencentCloud
|
|
247
247
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
248
248
|
end
|
249
249
|
|
250
|
+
# 创建按量 Prometheus 实例,根据用量收费实例
|
251
|
+
|
252
|
+
# @param request: Request instance for CreatePrometheusMultiTenantInstancePostPayMode.
|
253
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusMultiTenantInstancePostPayModeRequest`
|
254
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusMultiTenantInstancePostPayModeResponse`
|
255
|
+
def CreatePrometheusMultiTenantInstancePostPayMode(request)
|
256
|
+
body = send_request('CreatePrometheusMultiTenantInstancePostPayMode', request.serialize)
|
257
|
+
response = JSON.parse(body)
|
258
|
+
if response['Response'].key?('Error') == false
|
259
|
+
model = CreatePrometheusMultiTenantInstancePostPayModeResponse.new
|
260
|
+
model.deserialize(response['Response'])
|
261
|
+
model
|
262
|
+
else
|
263
|
+
code = response['Response']['Error']['Code']
|
264
|
+
message = response['Response']['Error']['Message']
|
265
|
+
reqid = response['Response']['RequestId']
|
266
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
267
|
+
end
|
268
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
269
|
+
raise e
|
270
|
+
rescue StandardError => e
|
271
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
272
|
+
end
|
273
|
+
|
250
274
|
# 创建 Prometheus 抓取任务
|
251
275
|
|
252
276
|
# @param request: Request instance for CreatePrometheusScrapeJob.
|
data/lib/v20180724/models.rb
CHANGED
@@ -1571,6 +1571,73 @@ module TencentCloud
|
|
1571
1571
|
end
|
1572
1572
|
end
|
1573
1573
|
|
1574
|
+
# CreatePrometheusMultiTenantInstancePostPayMode请求参数结构体
|
1575
|
+
class CreatePrometheusMultiTenantInstancePostPayModeRequest < TencentCloud::Common::AbstractModel
|
1576
|
+
# @param InstanceName: 实例名
|
1577
|
+
# @type InstanceName: String
|
1578
|
+
# @param VpcId: VPC ID
|
1579
|
+
# @type VpcId: String
|
1580
|
+
# @param SubnetId: 子网 ID
|
1581
|
+
# @type SubnetId: String
|
1582
|
+
# @param DataRetentionTime: 数据存储时间(单位天),限制值为15,30,45之一
|
1583
|
+
# @type DataRetentionTime: Integer
|
1584
|
+
# @param Zone: 可用区
|
1585
|
+
# @type Zone: String
|
1586
|
+
# @param TagSpecification: 实例的标签
|
1587
|
+
# @type TagSpecification: Array
|
1588
|
+
# @param GrafanaInstanceId: 需要关联的 Grafana 实例
|
1589
|
+
# @type GrafanaInstanceId: String
|
1590
|
+
|
1591
|
+
attr_accessor :InstanceName, :VpcId, :SubnetId, :DataRetentionTime, :Zone, :TagSpecification, :GrafanaInstanceId
|
1592
|
+
|
1593
|
+
def initialize(instancename=nil, vpcid=nil, subnetid=nil, dataretentiontime=nil, zone=nil, tagspecification=nil, grafanainstanceid=nil)
|
1594
|
+
@InstanceName = instancename
|
1595
|
+
@VpcId = vpcid
|
1596
|
+
@SubnetId = subnetid
|
1597
|
+
@DataRetentionTime = dataretentiontime
|
1598
|
+
@Zone = zone
|
1599
|
+
@TagSpecification = tagspecification
|
1600
|
+
@GrafanaInstanceId = grafanainstanceid
|
1601
|
+
end
|
1602
|
+
|
1603
|
+
def deserialize(params)
|
1604
|
+
@InstanceName = params['InstanceName']
|
1605
|
+
@VpcId = params['VpcId']
|
1606
|
+
@SubnetId = params['SubnetId']
|
1607
|
+
@DataRetentionTime = params['DataRetentionTime']
|
1608
|
+
@Zone = params['Zone']
|
1609
|
+
unless params['TagSpecification'].nil?
|
1610
|
+
@TagSpecification = []
|
1611
|
+
params['TagSpecification'].each do |i|
|
1612
|
+
prometheustag_tmp = PrometheusTag.new
|
1613
|
+
prometheustag_tmp.deserialize(i)
|
1614
|
+
@TagSpecification << prometheustag_tmp
|
1615
|
+
end
|
1616
|
+
end
|
1617
|
+
@GrafanaInstanceId = params['GrafanaInstanceId']
|
1618
|
+
end
|
1619
|
+
end
|
1620
|
+
|
1621
|
+
# CreatePrometheusMultiTenantInstancePostPayMode返回参数结构体
|
1622
|
+
class CreatePrometheusMultiTenantInstancePostPayModeResponse < TencentCloud::Common::AbstractModel
|
1623
|
+
# @param InstanceId: 实例 ID
|
1624
|
+
# @type InstanceId: String
|
1625
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1626
|
+
# @type RequestId: String
|
1627
|
+
|
1628
|
+
attr_accessor :InstanceId, :RequestId
|
1629
|
+
|
1630
|
+
def initialize(instanceid=nil, requestid=nil)
|
1631
|
+
@InstanceId = instanceid
|
1632
|
+
@RequestId = requestid
|
1633
|
+
end
|
1634
|
+
|
1635
|
+
def deserialize(params)
|
1636
|
+
@InstanceId = params['InstanceId']
|
1637
|
+
@RequestId = params['RequestId']
|
1638
|
+
end
|
1639
|
+
end
|
1640
|
+
|
1574
1641
|
# CreatePrometheusScrapeJob请求参数结构体
|
1575
1642
|
class CreatePrometheusScrapeJobRequest < TencentCloud::Common::AbstractModel
|
1576
1643
|
# @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: 1.0.
|
4
|
+
version: 1.0.343
|
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-
|
11
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|