tencentcloud-sdk-antiddos 1.0.305 → 1.0.306

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9fe220f30ac3e293a554dc26a4981dad9166d2d5
4
- data.tar.gz: ed13d5e076caae5530c1f7217694756fd3364f90
3
+ metadata.gz: e1256b746a8b8a3ad0a2c50142e644c46ca279b9
4
+ data.tar.gz: cadc78b0c69e8d7c8d60198068d6b548834fd0e2
5
5
  SHA512:
6
- metadata.gz: 2b97cf7086d371c3a08b8285a806b62b4410596c4e0ab689533b97d119cf614e20c34acaf869dfa46d3b4e7bd861b0767fc461ed2db70e8ea7fb1699db373f0e
7
- data.tar.gz: 63477c79ad81fcf6426b0686f67535c8ca018fb0cbf787aa9b9f05db89b6095b220e2535232046b452600b56d22c11ac3e84fab6dd7f9bc039e0c7cf09e8500b
6
+ metadata.gz: 256f9477b0723f481e795f57ca14fe0ba0668df2f7d47a20dddb49085f564d4908a2e4329a969fb612ffc4957e84b83397357ef681ba82c9f81bb96b367a65bd
7
+ data.tar.gz: fc9617ce443042f0474cfd35ec8b51cd759e5eb76a6d74f6a8c8cd9376748b865aae7f60c4b210b132ee3de1c0aa8f9f0dbd76f31d7e3bd95c3a04a45c912beb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.305
1
+ 1.0.306
@@ -1637,6 +1637,102 @@ module TencentCloud
1637
1637
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1638
1638
  end
1639
1639
 
1640
+ # 拉取防护概览攻击趋势
1641
+
1642
+ # @param request: Request instance for DescribeOverviewAttackTrend.
1643
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeOverviewAttackTrendRequest`
1644
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeOverviewAttackTrendResponse`
1645
+ def DescribeOverviewAttackTrend(request)
1646
+ body = send_request('DescribeOverviewAttackTrend', request.serialize)
1647
+ response = JSON.parse(body)
1648
+ if response['Response'].key?('Error') == false
1649
+ model = DescribeOverviewAttackTrendResponse.new
1650
+ model.deserialize(response['Response'])
1651
+ model
1652
+ else
1653
+ code = response['Response']['Error']['Code']
1654
+ message = response['Response']['Error']['Message']
1655
+ reqid = response['Response']['RequestId']
1656
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1657
+ end
1658
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1659
+ raise e
1660
+ rescue StandardError => e
1661
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1662
+ end
1663
+
1664
+ # 获取防护概览总请求峰值(QPS)和攻击请求(QPS)以及总请求次数和攻击请求次数
1665
+
1666
+ # @param request: Request instance for DescribeOverviewCCTrend.
1667
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeOverviewCCTrendRequest`
1668
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeOverviewCCTrendResponse`
1669
+ def DescribeOverviewCCTrend(request)
1670
+ body = send_request('DescribeOverviewCCTrend', request.serialize)
1671
+ response = JSON.parse(body)
1672
+ if response['Response'].key?('Error') == false
1673
+ model = DescribeOverviewCCTrendResponse.new
1674
+ model.deserialize(response['Response'])
1675
+ model
1676
+ else
1677
+ code = response['Response']['Error']['Code']
1678
+ message = response['Response']['Error']['Message']
1679
+ reqid = response['Response']['RequestId']
1680
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1681
+ end
1682
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1683
+ raise e
1684
+ rescue StandardError => e
1685
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1686
+ end
1687
+
1688
+ # 获取防护概览DDoS攻击流量带宽和攻击包速率数据
1689
+
1690
+ # @param request: Request instance for DescribeOverviewDDoSTrend.
1691
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeOverviewDDoSTrendRequest`
1692
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeOverviewDDoSTrendResponse`
1693
+ def DescribeOverviewDDoSTrend(request)
1694
+ body = send_request('DescribeOverviewDDoSTrend', request.serialize)
1695
+ response = JSON.parse(body)
1696
+ if response['Response'].key?('Error') == false
1697
+ model = DescribeOverviewDDoSTrendResponse.new
1698
+ model.deserialize(response['Response'])
1699
+ model
1700
+ else
1701
+ code = response['Response']['Error']['Code']
1702
+ message = response['Response']['Error']['Message']
1703
+ reqid = response['Response']['RequestId']
1704
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1705
+ end
1706
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1707
+ raise e
1708
+ rescue StandardError => e
1709
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1710
+ end
1711
+
1712
+ # 拉取防护概览指标
1713
+
1714
+ # @param request: Request instance for DescribeOverviewIndex.
1715
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeOverviewIndexRequest`
1716
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeOverviewIndexResponse`
1717
+ def DescribeOverviewIndex(request)
1718
+ body = send_request('DescribeOverviewIndex', request.serialize)
1719
+ response = JSON.parse(body)
1720
+ if response['Response'].key?('Error') == false
1721
+ model = DescribeOverviewIndexResponse.new
1722
+ model.deserialize(response['Response'])
1723
+ model
1724
+ else
1725
+ code = response['Response']['Error']['Code']
1726
+ message = response['Response']['Error']['Message']
1727
+ reqid = response['Response']['RequestId']
1728
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1729
+ end
1730
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1731
+ raise e
1732
+ rescue StandardError => e
1733
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1734
+ end
1735
+
1640
1736
  # 本接口 (DisassociateDDoSEipAddress) 用于解绑高防弹性公网IP。
1641
1737
 
1642
1738
  # @param request: Request instance for DisassociateDDoSEipAddress.
@@ -4716,6 +4716,282 @@ module TencentCloud
4716
4716
  end
4717
4717
  end
4718
4718
 
4719
+ # DescribeOverviewAttackTrend请求参数结构体
4720
+ class DescribeOverviewAttackTrendRequest < TencentCloud::Common::AbstractModel
4721
+ # @param Type: 攻击类型,取值ddos, cc
4722
+ # @type Type: String
4723
+ # @param Dimension: 纬度,当前仅支持attackcount
4724
+ # @type Dimension: String
4725
+ # @param Period: 周期,当前仅支持86400
4726
+ # @type Period: Integer
4727
+ # @param StartTime: 起始时间
4728
+ # @type StartTime: String
4729
+ # @param EndTime: 结束时间
4730
+ # @type EndTime: String
4731
+
4732
+ attr_accessor :Type, :Dimension, :Period, :StartTime, :EndTime
4733
+
4734
+ def initialize(type=nil, dimension=nil, period=nil, starttime=nil, endtime=nil)
4735
+ @Type = type
4736
+ @Dimension = dimension
4737
+ @Period = period
4738
+ @StartTime = starttime
4739
+ @EndTime = endtime
4740
+ end
4741
+
4742
+ def deserialize(params)
4743
+ @Type = params['Type']
4744
+ @Dimension = params['Dimension']
4745
+ @Period = params['Period']
4746
+ @StartTime = params['StartTime']
4747
+ @EndTime = params['EndTime']
4748
+ end
4749
+ end
4750
+
4751
+ # DescribeOverviewAttackTrend返回参数结构体
4752
+ class DescribeOverviewAttackTrendResponse < TencentCloud::Common::AbstractModel
4753
+ # @param Type: 攻击类型
4754
+ # @type Type: String
4755
+ # @param StartTime: 起始时间
4756
+ # @type StartTime: String
4757
+ # @param EndTime: 结束时间
4758
+ # @type EndTime: String
4759
+ # @param Period: 周期
4760
+ # @type Period: Integer
4761
+ # @param Data: 每个周期点的攻击次数
4762
+ # @type Data: Array
4763
+ # @param Count: 包含的周期点数
4764
+ # @type Count: Integer
4765
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4766
+ # @type RequestId: String
4767
+
4768
+ attr_accessor :Type, :StartTime, :EndTime, :Period, :Data, :Count, :RequestId
4769
+
4770
+ def initialize(type=nil, starttime=nil, endtime=nil, period=nil, data=nil, count=nil, requestid=nil)
4771
+ @Type = type
4772
+ @StartTime = starttime
4773
+ @EndTime = endtime
4774
+ @Period = period
4775
+ @Data = data
4776
+ @Count = count
4777
+ @RequestId = requestid
4778
+ end
4779
+
4780
+ def deserialize(params)
4781
+ @Type = params['Type']
4782
+ @StartTime = params['StartTime']
4783
+ @EndTime = params['EndTime']
4784
+ @Period = params['Period']
4785
+ @Data = params['Data']
4786
+ @Count = params['Count']
4787
+ @RequestId = params['RequestId']
4788
+ end
4789
+ end
4790
+
4791
+ # DescribeOverviewCCTrend请求参数结构体
4792
+ class DescribeOverviewCCTrendRequest < TencentCloud::Common::AbstractModel
4793
+ # @param Business: 大禹子产品代号(bgpip表示高防IP;bgp-multip表示共享包;basic表示DDoS基础防护)
4794
+ # @type Business: String
4795
+ # @param Period: 统计粒度,取值[300(5分钟),3600(小时),86400(天)]
4796
+ # @type Period: Integer
4797
+ # @param StartTime: 统计开始时间
4798
+ # @type StartTime: String
4799
+ # @param EndTime: 统计结束时间
4800
+ # @type EndTime: String
4801
+ # @param MetricName: 指标,取值[inqps(总请求峰值,dropqps(攻击请求峰值)),incount(请求次数), dropcount(攻击次数)]
4802
+ # @type MetricName: String
4803
+ # @param IpList: 资源的IP
4804
+ # @type IpList: Array
4805
+ # @param Id: 资源实例ID
4806
+ # @type Id: String
4807
+
4808
+ attr_accessor :Business, :Period, :StartTime, :EndTime, :MetricName, :IpList, :Id
4809
+
4810
+ def initialize(business=nil, period=nil, starttime=nil, endtime=nil, metricname=nil, iplist=nil, id=nil)
4811
+ @Business = business
4812
+ @Period = period
4813
+ @StartTime = starttime
4814
+ @EndTime = endtime
4815
+ @MetricName = metricname
4816
+ @IpList = iplist
4817
+ @Id = id
4818
+ end
4819
+
4820
+ def deserialize(params)
4821
+ @Business = params['Business']
4822
+ @Period = params['Period']
4823
+ @StartTime = params['StartTime']
4824
+ @EndTime = params['EndTime']
4825
+ @MetricName = params['MetricName']
4826
+ @IpList = params['IpList']
4827
+ @Id = params['Id']
4828
+ end
4829
+ end
4830
+
4831
+ # DescribeOverviewCCTrend返回参数结构体
4832
+ class DescribeOverviewCCTrendResponse < TencentCloud::Common::AbstractModel
4833
+ # @param Count: 值个数
4834
+ # @type Count: Integer
4835
+ # @param Data: 值数组
4836
+ # @type Data: Array
4837
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4838
+ # @type RequestId: String
4839
+
4840
+ attr_accessor :Count, :Data, :RequestId
4841
+
4842
+ def initialize(count=nil, data=nil, requestid=nil)
4843
+ @Count = count
4844
+ @Data = data
4845
+ @RequestId = requestid
4846
+ end
4847
+
4848
+ def deserialize(params)
4849
+ @Count = params['Count']
4850
+ @Data = params['Data']
4851
+ @RequestId = params['RequestId']
4852
+ end
4853
+ end
4854
+
4855
+ # DescribeOverviewDDoSTrend请求参数结构体
4856
+ class DescribeOverviewDDoSTrendRequest < TencentCloud::Common::AbstractModel
4857
+ # @param Business: 大禹子产品代号(bgpip表示高防IP;bgp-multip表示高防包;basic表示DDoS基础防护)
4858
+ # @type Business: String
4859
+ # @param Period: 统计粒度,取值[300(5分钟),3600(小时),86400(天)]
4860
+ # @type Period: Integer
4861
+ # @param StartTime: 统计开始时间
4862
+ # @type StartTime: String
4863
+ # @param EndTime: 统计结束时间
4864
+ # @type EndTime: String
4865
+ # @param MetricName: 指标,取值[bps(攻击流量带宽,pps(攻击包速率))]
4866
+ # @type MetricName: String
4867
+ # @param IpList: 资源实例的IP列表
4868
+ # @type IpList: Array
4869
+ # @param Id: 资源实例ID
4870
+ # @type Id: String
4871
+
4872
+ attr_accessor :Business, :Period, :StartTime, :EndTime, :MetricName, :IpList, :Id
4873
+
4874
+ def initialize(business=nil, period=nil, starttime=nil, endtime=nil, metricname=nil, iplist=nil, id=nil)
4875
+ @Business = business
4876
+ @Period = period
4877
+ @StartTime = starttime
4878
+ @EndTime = endtime
4879
+ @MetricName = metricname
4880
+ @IpList = iplist
4881
+ @Id = id
4882
+ end
4883
+
4884
+ def deserialize(params)
4885
+ @Business = params['Business']
4886
+ @Period = params['Period']
4887
+ @StartTime = params['StartTime']
4888
+ @EndTime = params['EndTime']
4889
+ @MetricName = params['MetricName']
4890
+ @IpList = params['IpList']
4891
+ @Id = params['Id']
4892
+ end
4893
+ end
4894
+
4895
+ # DescribeOverviewDDoSTrend返回参数结构体
4896
+ class DescribeOverviewDDoSTrendResponse < TencentCloud::Common::AbstractModel
4897
+ # @param Count: 值个数
4898
+ # @type Count: Integer
4899
+ # @param Data: 值数组,攻击流量带宽单位为Mbps,包速率单位为pps
4900
+ # @type Data: Array
4901
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4902
+ # @type RequestId: String
4903
+
4904
+ attr_accessor :Count, :Data, :RequestId
4905
+
4906
+ def initialize(count=nil, data=nil, requestid=nil)
4907
+ @Count = count
4908
+ @Data = data
4909
+ @RequestId = requestid
4910
+ end
4911
+
4912
+ def deserialize(params)
4913
+ @Count = params['Count']
4914
+ @Data = params['Data']
4915
+ @RequestId = params['RequestId']
4916
+ end
4917
+ end
4918
+
4919
+ # DescribeOverviewIndex请求参数结构体
4920
+ class DescribeOverviewIndexRequest < TencentCloud::Common::AbstractModel
4921
+ # @param StartTime: 拉取指标起始时间
4922
+ # @type StartTime: String
4923
+ # @param EndTime: 拉取指标结束时间
4924
+ # @type EndTime: String
4925
+
4926
+ attr_accessor :StartTime, :EndTime
4927
+
4928
+ def initialize(starttime=nil, endtime=nil)
4929
+ @StartTime = starttime
4930
+ @EndTime = endtime
4931
+ end
4932
+
4933
+ def deserialize(params)
4934
+ @StartTime = params['StartTime']
4935
+ @EndTime = params['EndTime']
4936
+ end
4937
+ end
4938
+
4939
+ # DescribeOverviewIndex返回参数结构体
4940
+ class DescribeOverviewIndexResponse < TencentCloud::Common::AbstractModel
4941
+ # @param AllIpCount: IP总数
4942
+ # @type AllIpCount: Integer
4943
+ # @param AntiddosIpCount: 高防IP总数(包含高防包+高防IP)
4944
+ # @type AntiddosIpCount: Integer
4945
+ # @param AttackIpCount: 攻击IP总数
4946
+ # @type AttackIpCount: Integer
4947
+ # @param BlockIpCount: 封堵IP总数
4948
+ # @type BlockIpCount: Integer
4949
+ # @param AntiddosDomainCount: 高防域名总数
4950
+ # @type AntiddosDomainCount: Integer
4951
+ # @param AttackDomainCount: 攻击域名总数
4952
+ # @type AttackDomainCount: Integer
4953
+ # @param MaxAttackFlow: 攻击流量峰值
4954
+ # @type MaxAttackFlow: Integer
4955
+ # @param NewAttackTime: 当前最近一条攻击中的起始时间
4956
+ # @type NewAttackTime: String
4957
+ # @param NewAttackIp: 当前最近一条攻击中的IP
4958
+ # @type NewAttackIp: String
4959
+ # @param NewAttackType: 当前最近一条攻击中的攻击类型
4960
+ # @type NewAttackType: String
4961
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4962
+ # @type RequestId: String
4963
+
4964
+ attr_accessor :AllIpCount, :AntiddosIpCount, :AttackIpCount, :BlockIpCount, :AntiddosDomainCount, :AttackDomainCount, :MaxAttackFlow, :NewAttackTime, :NewAttackIp, :NewAttackType, :RequestId
4965
+
4966
+ def initialize(allipcount=nil, antiddosipcount=nil, attackipcount=nil, blockipcount=nil, antiddosdomaincount=nil, attackdomaincount=nil, maxattackflow=nil, newattacktime=nil, newattackip=nil, newattacktype=nil, requestid=nil)
4967
+ @AllIpCount = allipcount
4968
+ @AntiddosIpCount = antiddosipcount
4969
+ @AttackIpCount = attackipcount
4970
+ @BlockIpCount = blockipcount
4971
+ @AntiddosDomainCount = antiddosdomaincount
4972
+ @AttackDomainCount = attackdomaincount
4973
+ @MaxAttackFlow = maxattackflow
4974
+ @NewAttackTime = newattacktime
4975
+ @NewAttackIp = newattackip
4976
+ @NewAttackType = newattacktype
4977
+ @RequestId = requestid
4978
+ end
4979
+
4980
+ def deserialize(params)
4981
+ @AllIpCount = params['AllIpCount']
4982
+ @AntiddosIpCount = params['AntiddosIpCount']
4983
+ @AttackIpCount = params['AttackIpCount']
4984
+ @BlockIpCount = params['BlockIpCount']
4985
+ @AntiddosDomainCount = params['AntiddosDomainCount']
4986
+ @AttackDomainCount = params['AttackDomainCount']
4987
+ @MaxAttackFlow = params['MaxAttackFlow']
4988
+ @NewAttackTime = params['NewAttackTime']
4989
+ @NewAttackIp = params['NewAttackIp']
4990
+ @NewAttackType = params['NewAttackType']
4991
+ @RequestId = params['RequestId']
4992
+ end
4993
+ end
4994
+
4719
4995
  # DisassociateDDoSEipAddress请求参数结构体
4720
4996
  class DisassociateDDoSEipAddressRequest < TencentCloud::Common::AbstractModel
4721
4997
  # @param InstanceId: 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-antiddos
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.305
4
+ version: 1.0.306
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-04-28 00:00:00.000000000 Z
11
+ date: 2022-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common