Class: TencentCloud::Antiddos::V20200309::DefaultAlarmThreshold

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

Overview

单IP默认告警阈值配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alarmtype = nil, alarmthreshold = nil) ⇒ DefaultAlarmThreshold

Returns a new instance of DefaultAlarmThreshold.



2580
2581
2582
2583
# File 'lib/v20200309/models.rb', line 2580

def initialize(alarmtype=nil, alarmthreshold=nil)
  @AlarmType = alarmtype
  @AlarmThreshold = alarmthreshold
end

Instance Attribute Details

#AlarmThresholdObject

1(入流量告警阈值) 2(攻击清洗流量告警阈值) ]

Parameters:

  • AlarmType:

    告警阈值类型,取值[

  • AlarmThreshold:

    告警阈值,单位Mbps,取值>=0;当作为输入参数时,设置0会删除告警阈值配置;



2578
2579
2580
# File 'lib/v20200309/models.rb', line 2578

def AlarmThreshold
  @AlarmThreshold
end

#AlarmTypeObject

1(入流量告警阈值) 2(攻击清洗流量告警阈值) ]

Parameters:

  • AlarmType:

    告警阈值类型,取值[

  • AlarmThreshold:

    告警阈值,单位Mbps,取值>=0;当作为输入参数时,设置0会删除告警阈值配置;



2578
2579
2580
# File 'lib/v20200309/models.rb', line 2578

def AlarmType
  @AlarmType
end

Instance Method Details

#deserialize(params) ⇒ Object



2585
2586
2587
2588
# File 'lib/v20200309/models.rb', line 2585

def deserialize(params)
  @AlarmType = params['AlarmType']
  @AlarmThreshold = params['AlarmThreshold']
end