Class: TencentCloud::Billing::V20180709::BudgetWarn

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

Overview

预算阈值提醒信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(warntype = nil, caltype = nil, thresholdvalue = nil) ⇒ BudgetWarn

Returns a new instance of BudgetWarn.



3850
3851
3852
3853
3854
# File 'lib/v20180709/models.rb', line 3850

def initialize(warntype=nil, caltype=nil, thresholdvalue=nil)
  @WarnType = warntype
  @CalType = caltype
  @ThresholdValue = thresholdvalue
end

Instance Attribute Details

#CalTypeObject

FORECAST 预测金额

Parameters:

  • WarnType:

    ACTUAL 实际金额,

  • CalType:

    PERCENTAGE 预算金额的百分比,ABS 固定值

  • ThresholdValue:

    阈值(大于等于0)



3848
3849
3850
# File 'lib/v20180709/models.rb', line 3848

def CalType
  @CalType
end

#ThresholdValueObject

FORECAST 预测金额

Parameters:

  • WarnType:

    ACTUAL 实际金额,

  • CalType:

    PERCENTAGE 预算金额的百分比,ABS 固定值

  • ThresholdValue:

    阈值(大于等于0)



3848
3849
3850
# File 'lib/v20180709/models.rb', line 3848

def ThresholdValue
  @ThresholdValue
end

#WarnTypeObject

FORECAST 预测金额

Parameters:

  • WarnType:

    ACTUAL 实际金额,

  • CalType:

    PERCENTAGE 预算金额的百分比,ABS 固定值

  • ThresholdValue:

    阈值(大于等于0)



3848
3849
3850
# File 'lib/v20180709/models.rb', line 3848

def WarnType
  @WarnType
end

Instance Method Details

#deserialize(params) ⇒ Object



3856
3857
3858
3859
3860
# File 'lib/v20180709/models.rb', line 3856

def deserialize(params)
  @WarnType = params['WarnType']
  @CalType = params['CalType']
  @ThresholdValue = params['ThresholdValue']
end