tencentcloud-sdk-mna 3.0.515 → 3.0.516

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: 7b70324f7e56230b459377e86c6f81857d1e80f1
4
- data.tar.gz: be71087c7d9e00ae0d5fdb90b504c31229bbddb0
3
+ metadata.gz: 9d9ec7c04e0355fba043c4f17e9286041d7bafa6
4
+ data.tar.gz: 86bd6d095152237f66e82210879587d723d1956a
5
5
  SHA512:
6
- metadata.gz: bfdd4d0ea4fee636b1de9ee0aa70c6ec0199dec323e7c3029a121e83353835df8bd6d8d30e0f836ae7bf8ba72df34de5ef8bf05c99f8268c88ae160073df016c
7
- data.tar.gz: 9d77f9eb1cbbf598fe93e0733f6799d832998a6d50feb809d7adc3a808e76851b702d93f3ccbc5aa5adf8dbd27403a0482fb907cd61a0138c1f4529852af7374
6
+ metadata.gz: 19af95c8ef9ee51378a9e265aac03aec29c879ad15917df55d34fb85c7ab4e644d3add818997ce1bef95509c7e18f998a99dee806f7fb47919b0c628024ecb44
7
+ data.tar.gz: 8c6ea4c30ff0905504342fcfc8d7cc8814354fc06184af34db92ca950dec9af9f7a6ab7499c5e84c36d70f4d04eb3a11c11556fe9c2b718386a800664b4eca26
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.515
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.
@@ -650,6 +650,50 @@ module TencentCloud
650
650
  end
651
651
  end
652
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
+
653
697
  # GetDevice请求参数结构体
654
698
  class GetDeviceRequest < TencentCloud::Common::AbstractModel
655
699
  # @param DeviceId: 搜索指定设备的id
@@ -819,6 +863,65 @@ module TencentCloud
819
863
  end
820
864
  end
821
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
+
822
925
  # GetPublicKey请求参数结构体
823
926
  class GetPublicKeyRequest < TencentCloud::Common::AbstractModel
824
927
 
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.515
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-23 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