tencentcloud-sdk-mna 3.0.514 → 3.0.516

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: b6e2957105e32249a34a2821f831940bef7eb9e2
4
- data.tar.gz: 5a34e852be13c00bddaf3661a1a4f32646d93840
3
+ metadata.gz: 9d9ec7c04e0355fba043c4f17e9286041d7bafa6
4
+ data.tar.gz: 86bd6d095152237f66e82210879587d723d1956a
5
5
  SHA512:
6
- metadata.gz: 927f7bf271f1cc404f3ce3b8ece6274bff5b1160db9fa76ffa65a712fd417898d9b6169292c8643cb301764e9da9d08f2bcc0a3fd836b510422e5a00b7d6b448
7
- data.tar.gz: 9706e82097ac82423d43b0bb6ff1878b1053655aee7965a0878169efd996ea157d1d0e22733972c7cf998f8cd351d60eee74e4c404a1ffa6fbfa4c1ea35b1791
6
+ metadata.gz: 19af95c8ef9ee51378a9e265aac03aec29c879ad15917df55d34fb85c7ab4e644d3add818997ce1bef95509c7e18f998a99dee806f7fb47919b0c628024ecb44
7
+ data.tar.gz: 8c6ea4c30ff0905504342fcfc8d7cc8814354fc06184af34db92ca950dec9af9f7a6ab7499c5e84c36d70f4d04eb3a11c11556fe9c2b718386a800664b4eca26
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.514
1
+ 3.0.516
@@ -245,6 +245,30 @@ module TencentCloud
245
245
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
246
  end
247
247
 
248
+ # 批量获取设备流量统计曲线
249
+
250
+ # @param request: Request instance for GetMultiFlowStatistic.
251
+ # @type request: :class:`Tencentcloud::mna::V20210119::GetMultiFlowStatisticRequest`
252
+ # @rtype: :class:`Tencentcloud::mna::V20210119::GetMultiFlowStatisticResponse`
253
+ def GetMultiFlowStatistic(request)
254
+ body = send_request('GetMultiFlowStatistic', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = GetMultiFlowStatisticResponse.new
258
+ model.deserialize(response['Response'])
259
+ model
260
+ else
261
+ code = response['Response']['Error']['Code']
262
+ message = response['Response']['Error']['Message']
263
+ reqid = response['Response']['RequestId']
264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
265
+ end
266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
267
+ raise e
268
+ rescue StandardError => e
269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
+ end
271
+
248
272
  # 获取公钥用于验签
249
273
 
250
274
  # @param request: Request instance for GetPublicKey.
@@ -445,12 +445,24 @@ module TencentCloud
445
445
  # @param DeviceNetInfo: 设备网络信息
446
446
  # 注意:此字段可能返回 null,表示取不到有效值。
447
447
  # @type DeviceNetInfo: Array
448
+ # @param GatewaySite: 聚合服务器地址
449
+ # 注意:此字段可能返回 null,表示取不到有效值。
450
+ # @type GatewaySite: String
451
+ # @param BusinessDownRate: 业务下行速率
452
+ # 注意:此字段可能返回 null,表示取不到有效值。
453
+ # @type BusinessDownRate: Float
454
+ # @param BusinessUpRate: 业务上行速率
455
+ # 注意:此字段可能返回 null,表示取不到有效值。
456
+ # @type BusinessUpRate: Float
448
457
 
449
- attr_accessor :DeviceBaseInfo, :DeviceNetInfo
458
+ attr_accessor :DeviceBaseInfo, :DeviceNetInfo, :GatewaySite, :BusinessDownRate, :BusinessUpRate
450
459
 
451
- def initialize(devicebaseinfo=nil, devicenetinfo=nil)
460
+ def initialize(devicebaseinfo=nil, devicenetinfo=nil, gatewaysite=nil, businessdownrate=nil, businessuprate=nil)
452
461
  @DeviceBaseInfo = devicebaseinfo
453
462
  @DeviceNetInfo = devicenetinfo
463
+ @GatewaySite = gatewaysite
464
+ @BusinessDownRate = businessdownrate
465
+ @BusinessUpRate = businessuprate
454
466
  end
455
467
 
456
468
  def deserialize(params)
@@ -466,6 +478,9 @@ module TencentCloud
466
478
  @DeviceNetInfo << devicenetinfo_tmp
467
479
  end
468
480
  end
481
+ @GatewaySite = params['GatewaySite']
482
+ @BusinessDownRate = params['BusinessDownRate']
483
+ @BusinessUpRate = params['BusinessUpRate']
469
484
  end
470
485
  end
471
486
 
@@ -567,10 +582,16 @@ module TencentCloud
567
582
  # @param NetInfoName: 网卡名
568
583
  # 注意:此字段可能返回 null,表示取不到有效值。
569
584
  # @type NetInfoName: String
585
+ # @param DownRate: 下行实时速率(浮点数类型代替上一版本DataRx的整型)
586
+ # 注意:此字段可能返回 null,表示取不到有效值。
587
+ # @type DownRate: Float
588
+ # @param UpRate: 上行实时速率(浮点数类型代替上一版本TxRate的整型)
589
+ # 注意:此字段可能返回 null,表示取不到有效值。
590
+ # @type UpRate: Float
570
591
 
571
- attr_accessor :Type, :DataEnable, :UploadLimit, :DownloadLimit, :DataRx, :DataTx, :Vendor, :State, :PublicIp, :SignalStrength, :Rat, :NetInfoName
592
+ attr_accessor :Type, :DataEnable, :UploadLimit, :DownloadLimit, :DataRx, :DataTx, :Vendor, :State, :PublicIp, :SignalStrength, :Rat, :NetInfoName, :DownRate, :UpRate
572
593
 
573
- def initialize(type=nil, dataenable=nil, uploadlimit=nil, downloadlimit=nil, datarx=nil, datatx=nil, vendor=nil, state=nil, publicip=nil, signalstrength=nil, rat=nil, netinfoname=nil)
594
+ def initialize(type=nil, dataenable=nil, uploadlimit=nil, downloadlimit=nil, datarx=nil, datatx=nil, vendor=nil, state=nil, publicip=nil, signalstrength=nil, rat=nil, netinfoname=nil, downrate=nil, uprate=nil)
574
595
  @Type = type
575
596
  @DataEnable = dataenable
576
597
  @UploadLimit = uploadlimit
@@ -583,6 +604,8 @@ module TencentCloud
583
604
  @SignalStrength = signalstrength
584
605
  @Rat = rat
585
606
  @NetInfoName = netinfoname
607
+ @DownRate = downrate
608
+ @UpRate = uprate
586
609
  end
587
610
 
588
611
  def deserialize(params)
@@ -598,6 +621,8 @@ module TencentCloud
598
621
  @SignalStrength = params['SignalStrength']
599
622
  @Rat = params['Rat']
600
623
  @NetInfoName = params['NetInfoName']
624
+ @DownRate = params['DownRate']
625
+ @UpRate = params['UpRate']
601
626
  end
602
627
  end
603
628
 
@@ -625,6 +650,50 @@ module TencentCloud
625
650
  end
626
651
  end
627
652
 
653
+ # 设备流量信息
654
+ class FlowDetails < TencentCloud::Common::AbstractModel
655
+ # @param NetDetails: 流量数据点
656
+ # 注意:此字段可能返回 null,表示取不到有效值。
657
+ # @type NetDetails: Array
658
+ # @param DeviceId: 设备ID
659
+ # 注意:此字段可能返回 null,表示取不到有效值。
660
+ # @type DeviceId: String
661
+ # @param MaxValue: 流量最大值(单位:bytes)
662
+ # 注意:此字段可能返回 null,表示取不到有效值。
663
+ # @type MaxValue: Float
664
+ # @param AvgValue: 流量平均值(单位:bytes)
665
+ # 注意:此字段可能返回 null,表示取不到有效值。
666
+ # @type AvgValue: Float
667
+ # @param TotalValue: 流量总值(单位:bytes)
668
+ # 注意:此字段可能返回 null,表示取不到有效值。
669
+ # @type TotalValue: Float
670
+
671
+ attr_accessor :NetDetails, :DeviceId, :MaxValue, :AvgValue, :TotalValue
672
+
673
+ def initialize(netdetails=nil, deviceid=nil, maxvalue=nil, avgvalue=nil, totalvalue=nil)
674
+ @NetDetails = netdetails
675
+ @DeviceId = deviceid
676
+ @MaxValue = maxvalue
677
+ @AvgValue = avgvalue
678
+ @TotalValue = totalvalue
679
+ end
680
+
681
+ def deserialize(params)
682
+ unless params['NetDetails'].nil?
683
+ @NetDetails = []
684
+ params['NetDetails'].each do |i|
685
+ netdetails_tmp = NetDetails.new
686
+ netdetails_tmp.deserialize(i)
687
+ @NetDetails << netdetails_tmp
688
+ end
689
+ end
690
+ @DeviceId = params['DeviceId']
691
+ @MaxValue = params['MaxValue']
692
+ @AvgValue = params['AvgValue']
693
+ @TotalValue = params['TotalValue']
694
+ end
695
+ end
696
+
628
697
  # GetDevice请求参数结构体
629
698
  class GetDeviceRequest < TencentCloud::Common::AbstractModel
630
699
  # @param DeviceId: 搜索指定设备的id
@@ -725,7 +794,7 @@ module TencentCloud
725
794
 
726
795
  # GetFlowStatistic请求参数结构体
727
796
  class GetFlowStatisticRequest < TencentCloud::Common::AbstractModel
728
- # @param DeviceId: 设备ID,ID="-1"时默认查找所有设备
797
+ # @param DeviceId: 设备ID
729
798
  # @type DeviceId: String
730
799
  # @param BeginTime: 开始查找时间
731
800
  # @type BeginTime: Integer
@@ -794,6 +863,65 @@ module TencentCloud
794
863
  end
795
864
  end
796
865
 
866
+ # GetMultiFlowStatistic请求参数结构体
867
+ class GetMultiFlowStatisticRequest < TencentCloud::Common::AbstractModel
868
+ # @param DeviceIds: 设备id列表,单次最多请求10个设备
869
+ # @type DeviceIds: Array
870
+ # @param BeginTime: 1659514436
871
+ # @type BeginTime: Integer
872
+ # @param EndTime: 1659515000
873
+ # @type EndTime: Integer
874
+ # @param Type: 统计流量类型(1:上行流量,2:下行流量)
875
+ # @type Type: Integer
876
+ # @param TimeGranularity: 统计时间粒度(1:按小时统计,2:按天统计)
877
+ # @type TimeGranularity: Integer
878
+
879
+ attr_accessor :DeviceIds, :BeginTime, :EndTime, :Type, :TimeGranularity
880
+
881
+ def initialize(deviceids=nil, begintime=nil, endtime=nil, type=nil, timegranularity=nil)
882
+ @DeviceIds = deviceids
883
+ @BeginTime = begintime
884
+ @EndTime = endtime
885
+ @Type = type
886
+ @TimeGranularity = timegranularity
887
+ end
888
+
889
+ def deserialize(params)
890
+ @DeviceIds = params['DeviceIds']
891
+ @BeginTime = params['BeginTime']
892
+ @EndTime = params['EndTime']
893
+ @Type = params['Type']
894
+ @TimeGranularity = params['TimeGranularity']
895
+ end
896
+ end
897
+
898
+ # GetMultiFlowStatistic返回参数结构体
899
+ class GetMultiFlowStatisticResponse < TencentCloud::Common::AbstractModel
900
+ # @param FlowDetails: 批量设备流量信息
901
+ # @type FlowDetails: Array
902
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
903
+ # @type RequestId: String
904
+
905
+ attr_accessor :FlowDetails, :RequestId
906
+
907
+ def initialize(flowdetails=nil, requestid=nil)
908
+ @FlowDetails = flowdetails
909
+ @RequestId = requestid
910
+ end
911
+
912
+ def deserialize(params)
913
+ unless params['FlowDetails'].nil?
914
+ @FlowDetails = []
915
+ params['FlowDetails'].each do |i|
916
+ flowdetails_tmp = FlowDetails.new
917
+ flowdetails_tmp.deserialize(i)
918
+ @FlowDetails << flowdetails_tmp
919
+ end
920
+ end
921
+ @RequestId = params['RequestId']
922
+ end
923
+ end
924
+
797
925
  # GetPublicKey请求参数结构体
798
926
  class GetPublicKeyRequest < TencentCloud::Common::AbstractModel
799
927
 
@@ -827,7 +955,7 @@ module TencentCloud
827
955
 
828
956
  # GetStatisticData请求参数结构体
829
957
  class GetStatisticDataRequest < TencentCloud::Common::AbstractModel
830
- # @param DeviceId: 设备ID,设备ID="-1"获取所有设备流量统计
958
+ # @param DeviceId: 设备ID
831
959
  # @type DeviceId: String
832
960
  # @param BeginTime: 统计开始时间,单位:s
833
961
  # @type BeginTime: Integer
@@ -877,21 +1005,21 @@ module TencentCloud
877
1005
 
878
1006
  # 网络详细信息
879
1007
  class NetDetails < TencentCloud::Common::AbstractModel
880
- # @param Time: 时间点,单位:s
881
- # @type Time: String
882
1008
  # @param Current: 流量值(bit)
883
1009
  # @type Current: Float
1010
+ # @param Time: 时间点,单位:s
1011
+ # @type Time: String
884
1012
 
885
- attr_accessor :Time, :Current
1013
+ attr_accessor :Current, :Time
886
1014
 
887
- def initialize(time=nil, current=nil)
888
- @Time = time
1015
+ def initialize(current=nil, time=nil)
889
1016
  @Current = current
1017
+ @Time = time
890
1018
  end
891
1019
 
892
1020
  def deserialize(params)
893
- @Time = params['Time']
894
1021
  @Current = params['Current']
1022
+ @Time = params['Time']
895
1023
  end
896
1024
  end
897
1025
 
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.514
4
+ version: 3.0.516
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-22 00:00:00.000000000 Z
11
+ date: 2023-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common