tencentcloud-sdk-monitor 3.0.785 → 3.0.786

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: b88b2d8261477e959c9dde72983264869f7588f6
4
- data.tar.gz: 425aee18fb96152fa83d318b42650f41d26b4596
3
+ metadata.gz: cd983e74c442786bb573455f452dcb6b7984bf2a
4
+ data.tar.gz: 6875d4144f20d426c016b277a9afbe5d9593d25e
5
5
  SHA512:
6
- metadata.gz: 73db8ec2208b056f1504c828fefb7b3eaa4f7a29c3dc98e00de49b570da4397c68b7ea18fe8f798e263286c20739c8830d0ae1f6f8f7fd234b1ce0ee75116871
7
- data.tar.gz: 36b6f93eda0897ae49a0f7f22d35c67c708060a890c57562bb2dcb7b222ea2f62742bb94b7ce7a9f238971754a6589950c23bd99b0b97aa91d40af2c3ca43b1d
6
+ metadata.gz: 15055f7fc1549093062a0554d53cbcd45c328bc5f45fba2ea8d1b4e167ef5687dc1668eac9204e5f2f96e3391da867f7104afb86c79333a80fdde0ee843c4410
7
+ data.tar.gz: 311d29dd94cc972465120ef59fde37e9937182a0d1ec3fa68972b431cb7ac4cbddf0036ae10e65aaba5d662557bfac42439e659c6e575424169f320b8c4bb917
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.785
1
+ 3.0.786
@@ -1336,6 +1336,30 @@ module TencentCloud
1336
1336
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1337
1337
  end
1338
1338
 
1339
+ # 获取告警短信配额
1340
+
1341
+ # @param request: Request instance for DescribeAlarmSmsQuota.
1342
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribeAlarmSmsQuotaRequest`
1343
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeAlarmSmsQuotaResponse`
1344
+ def DescribeAlarmSmsQuota(request)
1345
+ body = send_request('DescribeAlarmSmsQuota', request.serialize)
1346
+ response = JSON.parse(body)
1347
+ if response['Response'].key?('Error') == false
1348
+ model = DescribeAlarmSmsQuotaResponse.new
1349
+ model.deserialize(response['Response'])
1350
+ model
1351
+ else
1352
+ code = response['Response']['Error']['Code']
1353
+ message = response['Response']['Error']['Message']
1354
+ reqid = response['Response']['RequestId']
1355
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1356
+ end
1357
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1358
+ raise e
1359
+ rescue StandardError => e
1360
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1361
+ end
1362
+
1339
1363
  # Prometheus 报警规则查询接口
1340
1364
 
1341
1365
  # @param request: Request instance for DescribeAlertRules.
@@ -1744,6 +1768,30 @@ module TencentCloud
1744
1768
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1745
1769
  end
1746
1770
 
1771
+ # 获取资源消耗页概览
1772
+
1773
+ # @param request: Request instance for DescribeMonitorResourceInfo.
1774
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribeMonitorResourceInfoRequest`
1775
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeMonitorResourceInfoResponse`
1776
+ def DescribeMonitorResourceInfo(request)
1777
+ body = send_request('DescribeMonitorResourceInfo', request.serialize)
1778
+ response = JSON.parse(body)
1779
+ if response['Response'].key?('Error') == false
1780
+ model = DescribeMonitorResourceInfoResponse.new
1781
+ model.deserialize(response['Response'])
1782
+ model
1783
+ else
1784
+ code = response['Response']['Error']['Code']
1785
+ message = response['Response']['Error']['Message']
1786
+ reqid = response['Response']['RequestId']
1787
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1788
+ end
1789
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1790
+ raise e
1791
+ rescue StandardError => e
1792
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1793
+ end
1794
+
1747
1795
  # 腾讯云可观测平台支持多种类型的监控,此接口列出支持的所有类型
1748
1796
 
1749
1797
  # @param request: Request instance for DescribeMonitorTypes.
@@ -1768,6 +1816,30 @@ module TencentCloud
1768
1816
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1769
1817
  end
1770
1818
 
1819
+ # 查询周期内电话流水总数
1820
+
1821
+ # @param request: Request instance for DescribePhoneAlarmFlowTotalCount.
1822
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePhoneAlarmFlowTotalCountRequest`
1823
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePhoneAlarmFlowTotalCountResponse`
1824
+ def DescribePhoneAlarmFlowTotalCount(request)
1825
+ body = send_request('DescribePhoneAlarmFlowTotalCount', request.serialize)
1826
+ response = JSON.parse(body)
1827
+ if response['Response'].key?('Error') == false
1828
+ model = DescribePhoneAlarmFlowTotalCountResponse.new
1829
+ model.deserialize(response['Response'])
1830
+ model
1831
+ else
1832
+ code = response['Response']['Error']['Code']
1833
+ message = response['Response']['Error']['Message']
1834
+ reqid = response['Response']['RequestId']
1835
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1836
+ end
1837
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1838
+ raise e
1839
+ rescue StandardError => e
1840
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1841
+ end
1842
+
1771
1843
  # 列出可安装的所有 Grafana 插件
1772
1844
 
1773
1845
  # @param request: Request instance for DescribePluginOverviews.
@@ -4366,6 +4366,90 @@ module TencentCloud
4366
4366
  end
4367
4367
  end
4368
4368
 
4369
+ # DescribeAlarmSmsQuota接口的配额信息
4370
+ class DescribeAlarmSmsQuotaQuota < TencentCloud::Common::AbstractModel
4371
+ # @param Type: 配额类型
4372
+ # @type Type: String
4373
+ # @param Name: 配额名称
4374
+ # @type Name: String
4375
+ # @param FreeLeft: 免费配额剩余量
4376
+ # @type FreeLeft: Integer
4377
+ # @param PurchaseLeft: 付费配额剩余量
4378
+ # @type PurchaseLeft: Integer
4379
+ # @param Used: 已使用量
4380
+ # @type Used: Integer
4381
+
4382
+ attr_accessor :Type, :Name, :FreeLeft, :PurchaseLeft, :Used
4383
+
4384
+ def initialize(type=nil, name=nil, freeleft=nil, purchaseleft=nil, used=nil)
4385
+ @Type = type
4386
+ @Name = name
4387
+ @FreeLeft = freeleft
4388
+ @PurchaseLeft = purchaseleft
4389
+ @Used = used
4390
+ end
4391
+
4392
+ def deserialize(params)
4393
+ @Type = params['Type']
4394
+ @Name = params['Name']
4395
+ @FreeLeft = params['FreeLeft']
4396
+ @PurchaseLeft = params['PurchaseLeft']
4397
+ @Used = params['Used']
4398
+ end
4399
+ end
4400
+
4401
+ # DescribeAlarmSmsQuota请求参数结构体
4402
+ class DescribeAlarmSmsQuotaRequest < TencentCloud::Common::AbstractModel
4403
+ # @param Module: 固定值,为"monitor"
4404
+ # @type Module: String
4405
+
4406
+ attr_accessor :Module
4407
+
4408
+ def initialize(_module=nil)
4409
+ @Module = _module
4410
+ end
4411
+
4412
+ def deserialize(params)
4413
+ @Module = params['Module']
4414
+ end
4415
+ end
4416
+
4417
+ # DescribeAlarmSmsQuota返回参数结构体
4418
+ class DescribeAlarmSmsQuotaResponse < TencentCloud::Common::AbstractModel
4419
+ # @param Total: 配额总数
4420
+ # @type Total: Integer
4421
+ # @param Used: 总使用量
4422
+ # @type Used: Integer
4423
+ # @param QuotaList: 短信配额信息列表
4424
+ # 注意:此字段可能返回 null,表示取不到有效值。
4425
+ # @type QuotaList: Array
4426
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4427
+ # @type RequestId: String
4428
+
4429
+ attr_accessor :Total, :Used, :QuotaList, :RequestId
4430
+
4431
+ def initialize(total=nil, used=nil, quotalist=nil, requestid=nil)
4432
+ @Total = total
4433
+ @Used = used
4434
+ @QuotaList = quotalist
4435
+ @RequestId = requestid
4436
+ end
4437
+
4438
+ def deserialize(params)
4439
+ @Total = params['Total']
4440
+ @Used = params['Used']
4441
+ unless params['QuotaList'].nil?
4442
+ @QuotaList = []
4443
+ params['QuotaList'].each do |i|
4444
+ describealarmsmsquotaquota_tmp = DescribeAlarmSmsQuotaQuota.new
4445
+ describealarmsmsquotaquota_tmp.deserialize(i)
4446
+ @QuotaList << describealarmsmsquotaquota_tmp
4447
+ end
4448
+ end
4449
+ @RequestId = params['RequestId']
4450
+ end
4451
+ end
4452
+
4369
4453
  # DescribeAlertRules请求参数结构体
4370
4454
  class DescribeAlertRulesRequest < TencentCloud::Common::AbstractModel
4371
4455
  # @param InstanceId: Prometheus 实例 ID
@@ -5615,6 +5699,49 @@ module TencentCloud
5615
5699
  end
5616
5700
  end
5617
5701
 
5702
+ # DescribeMonitorResourceInfo请求参数结构体
5703
+ class DescribeMonitorResourceInfoRequest < TencentCloud::Common::AbstractModel
5704
+
5705
+
5706
+ def initialize()
5707
+ end
5708
+
5709
+ def deserialize(params)
5710
+ end
5711
+ end
5712
+
5713
+ # DescribeMonitorResourceInfo返回参数结构体
5714
+ class DescribeMonitorResourceInfoResponse < TencentCloud::Common::AbstractModel
5715
+ # @param PhoneAlarmNumber: 电话告警数量
5716
+ # @type PhoneAlarmNumber: Integer
5717
+ # @param AdvancedMetricNumber: 高级指标数量
5718
+ # @type AdvancedMetricNumber: Integer
5719
+ # @param APIUsageNumber: API调用量
5720
+ # @type APIUsageNumber: Integer
5721
+ # @param AlarmSMSNumber: 告警短信数量
5722
+ # @type AlarmSMSNumber: Integer
5723
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5724
+ # @type RequestId: String
5725
+
5726
+ attr_accessor :PhoneAlarmNumber, :AdvancedMetricNumber, :APIUsageNumber, :AlarmSMSNumber, :RequestId
5727
+
5728
+ def initialize(phonealarmnumber=nil, advancedmetricnumber=nil, apiusagenumber=nil, alarmsmsnumber=nil, requestid=nil)
5729
+ @PhoneAlarmNumber = phonealarmnumber
5730
+ @AdvancedMetricNumber = advancedmetricnumber
5731
+ @APIUsageNumber = apiusagenumber
5732
+ @AlarmSMSNumber = alarmsmsnumber
5733
+ @RequestId = requestid
5734
+ end
5735
+
5736
+ def deserialize(params)
5737
+ @PhoneAlarmNumber = params['PhoneAlarmNumber']
5738
+ @AdvancedMetricNumber = params['AdvancedMetricNumber']
5739
+ @APIUsageNumber = params['APIUsageNumber']
5740
+ @AlarmSMSNumber = params['AlarmSMSNumber']
5741
+ @RequestId = params['RequestId']
5742
+ end
5743
+ end
5744
+
5618
5745
  # DescribeMonitorTypes请求参数结构体
5619
5746
  class DescribeMonitorTypesRequest < TencentCloud::Common::AbstractModel
5620
5747
  # @param Module: 模块名,固定值 monitor
@@ -5662,6 +5789,46 @@ module TencentCloud
5662
5789
  end
5663
5790
  end
5664
5791
 
5792
+ # DescribePhoneAlarmFlowTotalCount请求参数结构体
5793
+ class DescribePhoneAlarmFlowTotalCountRequest < TencentCloud::Common::AbstractModel
5794
+ # @param Module: 默认monitor
5795
+ # @type Module: String
5796
+ # @param QueryTime: unix时间戳,单位:s
5797
+ # @type QueryTime: Integer
5798
+
5799
+ attr_accessor :Module, :QueryTime
5800
+
5801
+ def initialize(_module=nil, querytime=nil)
5802
+ @Module = _module
5803
+ @QueryTime = querytime
5804
+ end
5805
+
5806
+ def deserialize(params)
5807
+ @Module = params['Module']
5808
+ @QueryTime = params['QueryTime']
5809
+ end
5810
+ end
5811
+
5812
+ # DescribePhoneAlarmFlowTotalCount返回参数结构体
5813
+ class DescribePhoneAlarmFlowTotalCountResponse < TencentCloud::Common::AbstractModel
5814
+ # @param Count: 电话流水总数
5815
+ # @type Count: Integer
5816
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5817
+ # @type RequestId: String
5818
+
5819
+ attr_accessor :Count, :RequestId
5820
+
5821
+ def initialize(count=nil, requestid=nil)
5822
+ @Count = count
5823
+ @RequestId = requestid
5824
+ end
5825
+
5826
+ def deserialize(params)
5827
+ @Count = params['Count']
5828
+ @RequestId = params['RequestId']
5829
+ end
5830
+ end
5831
+
5665
5832
  # DescribePluginOverviews请求参数结构体
5666
5833
  class DescribePluginOverviewsRequest < TencentCloud::Common::AbstractModel
5667
5834
 
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.785
4
+ version: 3.0.786
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-18 00:00:00.000000000 Z
11
+ date: 2024-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common