Class: TencentCloud::Cdn::V20180606::BandwidthAlert

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180606/models.rb

Overview

带宽封顶配置,默认为关闭状态

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, bpsthreshold = nil, countermeasure = nil, lasttriggertime = nil, alertswitch = nil, alertpercentage = nil, lasttriggertimeoverseas = nil, metric = nil, statisticitems = nil) ⇒ BandwidthAlert

Returns a new instance of BandwidthAlert.



1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
# File 'lib/v20180606/models.rb', line 1310

def initialize(switch=nil, bpsthreshold=nil, countermeasure=nil, lasttriggertime=nil, alertswitch=nil, alertpercentage=nil, lasttriggertimeoverseas=nil, metric=nil, statisticitems=nil)
  @Switch = switch
  @BpsThreshold = bpsthreshold
  @CounterMeasure = countermeasure
  @LastTriggerTime = lasttriggertime
  @AlertSwitch = alertswitch
  @AlertPercentage = alertpercentage
  @LastTriggerTimeOverseas = lasttriggertimeoverseas
  @Metric = metric
  @StatisticItems = statisticitems
end

Instance Attribute Details

#AlertPercentageObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 RETURN_404:全部请求返回 404 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 带宽:bandwidth 流量:flux 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 用量封顶配置开关,取值有:

  • 用量封顶阈值,带宽单位为bps,流量单位byte

  • 达到阈值后的操作

  • 境内区域上次触发用量封顶阈值的时间

  • 用量封顶提醒配置开关,取值有:

  • 用量封顶阈值提醒百分比

  • 海外区域上次触发用量封顶阈值的时间

  • 用量阈值触发的维度

  • 累计用量配置



1308
1309
1310
# File 'lib/v20180606/models.rb', line 1308

def AlertPercentage
  @AlertPercentage
end

#AlertSwitchObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 RETURN_404:全部请求返回 404 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 带宽:bandwidth 流量:flux 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 用量封顶配置开关,取值有:

  • 用量封顶阈值,带宽单位为bps,流量单位byte

  • 达到阈值后的操作

  • 境内区域上次触发用量封顶阈值的时间

  • 用量封顶提醒配置开关,取值有:

  • 用量封顶阈值提醒百分比

  • 海外区域上次触发用量封顶阈值的时间

  • 用量阈值触发的维度

  • 累计用量配置



1308
1309
1310
# File 'lib/v20180606/models.rb', line 1308

def AlertSwitch
  @AlertSwitch
end

#BpsThresholdObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 RETURN_404:全部请求返回 404 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 带宽:bandwidth 流量:flux 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 用量封顶配置开关,取值有:

  • 用量封顶阈值,带宽单位为bps,流量单位byte

  • 达到阈值后的操作

  • 境内区域上次触发用量封顶阈值的时间

  • 用量封顶提醒配置开关,取值有:

  • 用量封顶阈值提醒百分比

  • 海外区域上次触发用量封顶阈值的时间

  • 用量阈值触发的维度

  • 累计用量配置



1308
1309
1310
# File 'lib/v20180606/models.rb', line 1308

def BpsThreshold
  @BpsThreshold
end

#CounterMeasureObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 RETURN_404:全部请求返回 404 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 带宽:bandwidth 流量:flux 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 用量封顶配置开关,取值有:

  • 用量封顶阈值,带宽单位为bps,流量单位byte

  • 达到阈值后的操作

  • 境内区域上次触发用量封顶阈值的时间

  • 用量封顶提醒配置开关,取值有:

  • 用量封顶阈值提醒百分比

  • 海外区域上次触发用量封顶阈值的时间

  • 用量阈值触发的维度

  • 累计用量配置



1308
1309
1310
# File 'lib/v20180606/models.rb', line 1308

def CounterMeasure
  @CounterMeasure
end

#LastTriggerTimeObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 RETURN_404:全部请求返回 404 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 带宽:bandwidth 流量:flux 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 用量封顶配置开关,取值有:

  • 用量封顶阈值,带宽单位为bps,流量单位byte

  • 达到阈值后的操作

  • 境内区域上次触发用量封顶阈值的时间

  • 用量封顶提醒配置开关,取值有:

  • 用量封顶阈值提醒百分比

  • 海外区域上次触发用量封顶阈值的时间

  • 用量阈值触发的维度

  • 累计用量配置



1308
1309
1310
# File 'lib/v20180606/models.rb', line 1308

def LastTriggerTime
  @LastTriggerTime
end

#LastTriggerTimeOverseasObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 RETURN_404:全部请求返回 404 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 带宽:bandwidth 流量:flux 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 用量封顶配置开关,取值有:

  • 用量封顶阈值,带宽单位为bps,流量单位byte

  • 达到阈值后的操作

  • 境内区域上次触发用量封顶阈值的时间

  • 用量封顶提醒配置开关,取值有:

  • 用量封顶阈值提醒百分比

  • 海外区域上次触发用量封顶阈值的时间

  • 用量阈值触发的维度

  • 累计用量配置



1308
1309
1310
# File 'lib/v20180606/models.rb', line 1308

def LastTriggerTimeOverseas
  @LastTriggerTimeOverseas
end

#MetricObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 RETURN_404:全部请求返回 404 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 带宽:bandwidth 流量:flux 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 用量封顶配置开关,取值有:

  • 用量封顶阈值,带宽单位为bps,流量单位byte

  • 达到阈值后的操作

  • 境内区域上次触发用量封顶阈值的时间

  • 用量封顶提醒配置开关,取值有:

  • 用量封顶阈值提醒百分比

  • 海外区域上次触发用量封顶阈值的时间

  • 用量阈值触发的维度

  • 累计用量配置



1308
1309
1310
# File 'lib/v20180606/models.rb', line 1308

def Metric
  @Metric
end

#StatisticItemsObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 RETURN_404:全部请求返回 404 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 带宽:bandwidth 流量:flux 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 用量封顶配置开关,取值有:

  • 用量封顶阈值,带宽单位为bps,流量单位byte

  • 达到阈值后的操作

  • 境内区域上次触发用量封顶阈值的时间

  • 用量封顶提醒配置开关,取值有:

  • 用量封顶阈值提醒百分比

  • 海外区域上次触发用量封顶阈值的时间

  • 用量阈值触发的维度

  • 累计用量配置



1308
1309
1310
# File 'lib/v20180606/models.rb', line 1308

def StatisticItems
  @StatisticItems
end

#SwitchObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 RETURN_404:全部请求返回 404 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 带宽:bandwidth 流量:flux 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 用量封顶配置开关,取值有:

  • 用量封顶阈值,带宽单位为bps,流量单位byte

  • 达到阈值后的操作

  • 境内区域上次触发用量封顶阈值的时间

  • 用量封顶提醒配置开关,取值有:

  • 用量封顶阈值提醒百分比

  • 海外区域上次触发用量封顶阈值的时间

  • 用量阈值触发的维度

  • 累计用量配置



1308
1309
1310
# File 'lib/v20180606/models.rb', line 1308

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
# File 'lib/v20180606/models.rb', line 1322

def deserialize(params)
  @Switch = params['Switch']
  @BpsThreshold = params['BpsThreshold']
  @CounterMeasure = params['CounterMeasure']
  @LastTriggerTime = params['LastTriggerTime']
  @AlertSwitch = params['AlertSwitch']
  @AlertPercentage = params['AlertPercentage']
  @LastTriggerTimeOverseas = params['LastTriggerTimeOverseas']
  @Metric = params['Metric']
  unless params['StatisticItems'].nil?
    @StatisticItems = []
    params['StatisticItems'].each do |i|
      statisticitem_tmp = StatisticItem.new
      statisticitem_tmp.deserialize(i)
      @StatisticItems << statisticitem_tmp
    end
  end
end