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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1537e427354ce8d14152a161a07a1e36d7148ce
4
- data.tar.gz: 0e6431ad4f99559c4c5ff46bb7127a748e2751b8
3
+ metadata.gz: 514f5d8c388dbf5f9efc67d86dd7a8f9da9ec281
4
+ data.tar.gz: 85e27ba6cdc71fae3b9d5600a2f963487881c953
5
5
  SHA512:
6
- metadata.gz: 265461acf7f0735be3e23f490669c25fdd8141e0cd5d0072d9eeb9d9b0aaa41b761cc11f04712b99a52015060172315d12f5daa7cece5e3444d7e5cb0b7ebbda
7
- data.tar.gz: 59bd0ffd1d992f5e8c6671a424eb431bcdc4db825acb0478d665ee29c306079d0b53b845d3decff7ef794e5138899b495f91724cb541caeab91c56de88df37aa
6
+ metadata.gz: db14211c968ea7aa0c8ee229335906c371e722e2d998b4522a4622a14bb055aea36fb30c5a017f53f81ef05d79deaa8a25714bff32d8281124d58c40e54bbe5c
7
+ data.tar.gz: e0216e21b7a5aefa8df116ee9a9aff37518e98d75e1b9f5b37e06ee104d20bd80d0b29863e448756b03ae3f815a903e2412e240c3084ca6f7d21c953d4c32a65
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.342
1
+ 1.0.343
@@ -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.
@@ -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.342
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-26 00:00:00.000000000 Z
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