tencentcloud-sdk-mna 3.0.830 → 3.0.832

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: 9dea9e81801f7745e98844101b4fc5736aaa8808
4
- data.tar.gz: 13ebe52b947769a292125bf6f1ff9fd38d77caed
3
+ metadata.gz: 4f2a8abc1e7255336c2684b0336a71ab7c8718d8
4
+ data.tar.gz: 908acd2e1d67e12edcec7f998a2f1ddfa62356b7
5
5
  SHA512:
6
- metadata.gz: ae4c92b58ec2a38362ab0f6b2bc02097080d396a217deb71023937a322282f85edf36c661ca21ad549117c9062124c64c2acfb3fe5c3ccbb5a0c9b53990ac42e
7
- data.tar.gz: dd4898370f006edff4404c8f4df5a2e0a913c68ca16d9e3d4e45bfaabfa5ea76cddd9fa694be472a5dfc96aeab80b2d82c32a6ec17aa3bd3afa9ad3ad4924011
6
+ metadata.gz: 4ec73af7a8d24fbaba2ffebc3c8a4416fb32b4c30399ba895998485a2bd8bda18d6d238e7b4171bb4d299f2be506e7e81f88fc6a7b7807caffdd49db4665291f
7
+ data.tar.gz: e9a44e51624bf310a03de16a1fe4b6babec37249187a029997e3a149d0b6ac334514759782f4ecaf22744c5fd17b5f171dd2d0d74afec67e7be9d8dba24e97d6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.830
1
+ 3.0.832
@@ -293,6 +293,30 @@ module TencentCloud
293
293
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
294
  end
295
295
 
296
+ # 根据AppId查询用户设置的流量告警信息,包括阈值,回调url和key
297
+
298
+ # @param request: Request instance for GetFlowAlarmInfo.
299
+ # @type request: :class:`Tencentcloud::mna::V20210119::GetFlowAlarmInfoRequest`
300
+ # @rtype: :class:`Tencentcloud::mna::V20210119::GetFlowAlarmInfoResponse`
301
+ def GetFlowAlarmInfo(request)
302
+ body = send_request('GetFlowAlarmInfo', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = GetFlowAlarmInfoResponse.new
306
+ model.deserialize(response['Response'])
307
+ model
308
+ else
309
+ code = response['Response']['Error']['Code']
310
+ message = response['Response']['Error']['Message']
311
+ reqid = response['Response']['RequestId']
312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
+ end
314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
315
+ raise e
316
+ rescue StandardError => e
317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
+ end
319
+
296
320
  # 获取流量包列表
297
321
 
298
322
  # @param request: Request instance for GetFlowPackages.
@@ -341,6 +365,30 @@ module TencentCloud
341
365
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
366
  end
343
367
 
368
+ # 获取指定分组,指定时间数据流量使用情况
369
+
370
+ # @param request: Request instance for GetFlowStatisticByGroup.
371
+ # @type request: :class:`Tencentcloud::mna::V20210119::GetFlowStatisticByGroupRequest`
372
+ # @rtype: :class:`Tencentcloud::mna::V20210119::GetFlowStatisticByGroupResponse`
373
+ def GetFlowStatisticByGroup(request)
374
+ body = send_request('GetFlowStatisticByGroup', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = GetFlowStatisticByGroupResponse.new
378
+ model.deserialize(response['Response'])
379
+ model
380
+ else
381
+ code = response['Response']['Error']['Code']
382
+ message = response['Response']['Error']['Message']
383
+ reqid = response['Response']['RequestId']
384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
385
+ end
386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
387
+ raise e
388
+ rescue StandardError => e
389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
+ end
391
+
344
392
  # 获取厂商硬件列表
345
393
 
346
394
  # @param request: Request instance for GetHardwareList.
@@ -1157,6 +1157,48 @@ module TencentCloud
1157
1157
  end
1158
1158
  end
1159
1159
 
1160
+ # GetFlowAlarmInfo请求参数结构体
1161
+ class GetFlowAlarmInfoRequest < TencentCloud::Common::AbstractModel
1162
+
1163
+
1164
+ def initialize()
1165
+ end
1166
+
1167
+ def deserialize(params)
1168
+ end
1169
+ end
1170
+
1171
+ # GetFlowAlarmInfo返回参数结构体
1172
+ class GetFlowAlarmInfoResponse < TencentCloud::Common::AbstractModel
1173
+ # @param AlarmValue: 流量包的告警阈值
1174
+ # 注意:此字段可能返回 null,表示取不到有效值。
1175
+ # @type AlarmValue: Integer
1176
+ # @param NotifyUrl: 告警通知回调url
1177
+ # 注意:此字段可能返回 null,表示取不到有效值。
1178
+ # @type NotifyUrl: String
1179
+ # @param CallbackKey: 告警通知回调key
1180
+ # 注意:此字段可能返回 null,表示取不到有效值。
1181
+ # @type CallbackKey: String
1182
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1183
+ # @type RequestId: String
1184
+
1185
+ attr_accessor :AlarmValue, :NotifyUrl, :CallbackKey, :RequestId
1186
+
1187
+ def initialize(alarmvalue=nil, notifyurl=nil, callbackkey=nil, requestid=nil)
1188
+ @AlarmValue = alarmvalue
1189
+ @NotifyUrl = notifyurl
1190
+ @CallbackKey = callbackkey
1191
+ @RequestId = requestid
1192
+ end
1193
+
1194
+ def deserialize(params)
1195
+ @AlarmValue = params['AlarmValue']
1196
+ @NotifyUrl = params['NotifyUrl']
1197
+ @CallbackKey = params['CallbackKey']
1198
+ @RequestId = params['RequestId']
1199
+ end
1200
+ end
1201
+
1160
1202
  # GetFlowPackages请求参数结构体
1161
1203
  class GetFlowPackagesRequest < TencentCloud::Common::AbstractModel
1162
1204
  # @param PageNumber: 页码,从1开始
@@ -1220,6 +1262,85 @@ module TencentCloud
1220
1262
  end
1221
1263
  end
1222
1264
 
1265
+ # GetFlowStatisticByGroup请求参数结构体
1266
+ class GetFlowStatisticByGroupRequest < TencentCloud::Common::AbstractModel
1267
+ # @param GroupId: 分组ID
1268
+ # @type GroupId: String
1269
+ # @param BeginTime: 开始查找时间
1270
+ # @type BeginTime: Integer
1271
+ # @param EndTime: 截止时间
1272
+ # @type EndTime: Integer
1273
+ # @param Type: 流量种类(1:上行流量,2:下行流量, 3: 上下行总和)
1274
+ # @type Type: Integer
1275
+ # @param TimeGranularity: 时间粒度(1:按小时统计,2:按天统计)
1276
+ # @type TimeGranularity: Integer
1277
+ # @param AccessRegion: 接入区域。取值范围:['MC','AP','EU','AM'] MC=中国大陆 AP=亚太 EU=欧洲 AM=美洲。不填代表全量区域。
1278
+ # @type AccessRegion: String
1279
+ # @param GatewayType: 网关类型。0:公有云网关;1:自有网关。不传默认为0。
1280
+ # @type GatewayType: Integer
1281
+
1282
+ attr_accessor :GroupId, :BeginTime, :EndTime, :Type, :TimeGranularity, :AccessRegion, :GatewayType
1283
+
1284
+ def initialize(groupid=nil, begintime=nil, endtime=nil, type=nil, timegranularity=nil, accessregion=nil, gatewaytype=nil)
1285
+ @GroupId = groupid
1286
+ @BeginTime = begintime
1287
+ @EndTime = endtime
1288
+ @Type = type
1289
+ @TimeGranularity = timegranularity
1290
+ @AccessRegion = accessregion
1291
+ @GatewayType = gatewaytype
1292
+ end
1293
+
1294
+ def deserialize(params)
1295
+ @GroupId = params['GroupId']
1296
+ @BeginTime = params['BeginTime']
1297
+ @EndTime = params['EndTime']
1298
+ @Type = params['Type']
1299
+ @TimeGranularity = params['TimeGranularity']
1300
+ @AccessRegion = params['AccessRegion']
1301
+ @GatewayType = params['GatewayType']
1302
+ end
1303
+ end
1304
+
1305
+ # GetFlowStatisticByGroup返回参数结构体
1306
+ class GetFlowStatisticByGroupResponse < TencentCloud::Common::AbstractModel
1307
+ # @param NetDetails: 流量详细信息
1308
+ # @type NetDetails: Array
1309
+ # @param MaxValue: 查找时间段流量使用最大值(单位:byte)
1310
+ # @type MaxValue: Float
1311
+ # @param AvgValue: 查找时间段流量使用平均值(单位:byte)
1312
+ # @type AvgValue: Float
1313
+ # @param TotalValue: 查找时间段流量使用总量(单位:byte)
1314
+ # @type TotalValue: Float
1315
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1316
+ # @type RequestId: String
1317
+
1318
+ attr_accessor :NetDetails, :MaxValue, :AvgValue, :TotalValue, :RequestId
1319
+
1320
+ def initialize(netdetails=nil, maxvalue=nil, avgvalue=nil, totalvalue=nil, requestid=nil)
1321
+ @NetDetails = netdetails
1322
+ @MaxValue = maxvalue
1323
+ @AvgValue = avgvalue
1324
+ @TotalValue = totalvalue
1325
+ @RequestId = requestid
1326
+ end
1327
+
1328
+ def deserialize(params)
1329
+ unless params['NetDetails'].nil?
1330
+ @NetDetails = []
1331
+ params['NetDetails'].each do |i|
1332
+ netdetails_tmp = NetDetails.new
1333
+ netdetails_tmp.deserialize(i)
1334
+ @NetDetails << netdetails_tmp
1335
+ end
1336
+ end
1337
+ @MaxValue = params['MaxValue']
1338
+ @AvgValue = params['AvgValue']
1339
+ @TotalValue = params['TotalValue']
1340
+ @RequestId = params['RequestId']
1341
+ end
1342
+ end
1343
+
1223
1344
  # GetFlowStatistic请求参数结构体
1224
1345
  class GetFlowStatisticRequest < TencentCloud::Common::AbstractModel
1225
1346
  # @param DeviceId: 设备ID
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.830
4
+ version: 3.0.832
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-05-26 00:00:00.000000000 Z
11
+ date: 2024-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common