tencentcloud-sdk-mna 3.0.409 → 3.0.410

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: 759023f4d0d2a814ff466a1e8e6d9f66d48d8e86
4
- data.tar.gz: f3027ddd2079010492456ff628b7f87bd69857a8
3
+ metadata.gz: 23d3b9362466c05929bf06bdd4f12af80cf7e319
4
+ data.tar.gz: f3cfd4046627f1a29232093603f08824cd7e931f
5
5
  SHA512:
6
- metadata.gz: 8c62f2a1ea5bd4ecec01e763ec68f4dec51bdaa355caf8c4ba0d34f826edd2950bc1f14f088d779e389b3651af22096d4abad1fdbeb3f83888a6ab92904b8f31
7
- data.tar.gz: 82f50526a4d0e667c7b4d477475202907f09e8d5bd02bb12058b8ead5372eb4e4e7df09df2d02803f6e4c407b66401b49658af8cba4be2f4816039477d08ffcc
6
+ metadata.gz: 914174d617aab5e8703728c2cdfc4072412c55397d28109bfdd1a0b8c6a8ac4fa4f3518269a1715ec84a76d9a5539762d1ca7fb54feb781d6cea8a7ffe0487c6
7
+ data.tar.gz: 35d9be2cf3883a4c79df53e558307316cdf9f2caf32b441a1dab644039b760c7b8faa4b4373a5b0079028067c76d72a2f5c248d2823f86013e9b5cae8efaeb1f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.409
1
+ 3.0.410
@@ -197,6 +197,30 @@ module TencentCloud
197
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
198
  end
199
199
 
200
+ # 获取指定设备Id,指定时间点数据流量使用情况
201
+
202
+ # @param request: Request instance for GetFlowStatistic.
203
+ # @type request: :class:`Tencentcloud::mna::V20210119::GetFlowStatisticRequest`
204
+ # @rtype: :class:`Tencentcloud::mna::V20210119::GetFlowStatisticResponse`
205
+ def GetFlowStatistic(request)
206
+ body = send_request('GetFlowStatistic', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = GetFlowStatisticResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
200
224
  # 在用量统计页面下载流量数据
201
225
 
202
226
  # @param request: Request instance for GetStatisticData.
@@ -683,6 +683,77 @@ module TencentCloud
683
683
  end
684
684
  end
685
685
 
686
+ # GetFlowStatistic请求参数结构体
687
+ class GetFlowStatisticRequest < TencentCloud::Common::AbstractModel
688
+ # @param DeviceId: 设备ID,ID="-1"时默认查找所有设备
689
+ # @type DeviceId: String
690
+ # @param BeginTime: 开始查找时间
691
+ # @type BeginTime: Integer
692
+ # @param EndTime: 截止时间
693
+ # @type EndTime: Integer
694
+ # @param Type: 流量种类(1:上行流量,2:下行流量)
695
+ # @type Type: Integer
696
+ # @param TimeGranularity: 时间粒度(1:按小时统计,2:按天统计)
697
+ # @type TimeGranularity: Integer
698
+
699
+ attr_accessor :DeviceId, :BeginTime, :EndTime, :Type, :TimeGranularity
700
+
701
+ def initialize(deviceid=nil, begintime=nil, endtime=nil, type=nil, timegranularity=nil)
702
+ @DeviceId = deviceid
703
+ @BeginTime = begintime
704
+ @EndTime = endtime
705
+ @Type = type
706
+ @TimeGranularity = timegranularity
707
+ end
708
+
709
+ def deserialize(params)
710
+ @DeviceId = params['DeviceId']
711
+ @BeginTime = params['BeginTime']
712
+ @EndTime = params['EndTime']
713
+ @Type = params['Type']
714
+ @TimeGranularity = params['TimeGranularity']
715
+ end
716
+ end
717
+
718
+ # GetFlowStatistic返回参数结构体
719
+ class GetFlowStatisticResponse < TencentCloud::Common::AbstractModel
720
+ # @param NetDetails: 流量详细信息
721
+ # @type NetDetails: Array
722
+ # @param MaxValue: 查找时间段流量使用最大值(单位:bit)
723
+ # @type MaxValue: Float
724
+ # @param AvgValue: 查找时间段流量使用平均值(单位:bit)
725
+ # @type AvgValue: Float
726
+ # @param TotalValue: 查找时间段流量使用总量(单位:bit)
727
+ # @type TotalValue: Float
728
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
729
+ # @type RequestId: String
730
+
731
+ attr_accessor :NetDetails, :MaxValue, :AvgValue, :TotalValue, :RequestId
732
+
733
+ def initialize(netdetails=nil, maxvalue=nil, avgvalue=nil, totalvalue=nil, requestid=nil)
734
+ @NetDetails = netdetails
735
+ @MaxValue = maxvalue
736
+ @AvgValue = avgvalue
737
+ @TotalValue = totalvalue
738
+ @RequestId = requestid
739
+ end
740
+
741
+ def deserialize(params)
742
+ unless params['NetDetails'].nil?
743
+ @NetDetails = []
744
+ params['NetDetails'].each do |i|
745
+ netdetails_tmp = NetDetails.new
746
+ netdetails_tmp.deserialize(i)
747
+ @NetDetails << netdetails_tmp
748
+ end
749
+ end
750
+ @MaxValue = params['MaxValue']
751
+ @AvgValue = params['AvgValue']
752
+ @TotalValue = params['TotalValue']
753
+ @RequestId = params['RequestId']
754
+ end
755
+ end
756
+
686
757
  # GetStatisticData请求参数结构体
687
758
  class GetStatisticDataRequest < TencentCloud::Common::AbstractModel
688
759
  # @param DeviceId: 设备ID,设备ID="-1"获取所有设备流量统计
@@ -733,6 +804,26 @@ module TencentCloud
733
804
  end
734
805
  end
735
806
 
807
+ # 网络详细信息
808
+ class NetDetails < TencentCloud::Common::AbstractModel
809
+ # @param Time: 时间点,单位:s
810
+ # @type Time: String
811
+ # @param Current: 流量值(bit)
812
+ # @type Current: Float
813
+
814
+ attr_accessor :Time, :Current
815
+
816
+ def initialize(time=nil, current=nil)
817
+ @Time = time
818
+ @Current = current
819
+ end
820
+
821
+ def deserialize(params)
822
+ @Time = params['Time']
823
+ @Current = params['Current']
824
+ end
825
+ end
826
+
736
827
  # 测速数据
737
828
  class NetworkData < TencentCloud::Common::AbstractModel
738
829
  # @param RTT: 时延数组,最大长度30
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mna
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.409
4
+ version: 3.0.410
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-09-14 00:00:00.000000000 Z
11
+ date: 2022-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common