Class: TencentCloud::Monitor::V20180724::CreatePolicyGroupCondition
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::CreatePolicyGroupCondition
- Defined in:
- lib/v20180724/models.rb
Overview
创建策略传入的阈值告警条件
Instance Attribute Summary collapse
- #AlarmNotifyPeriod ⇒ Object
- #AlarmNotifyType ⇒ Object
- #CalcPeriod ⇒ Object
- #CalcType ⇒ Object
- #CalcValue ⇒ Object
- #ContinuePeriod ⇒ Object
- #MetricId ⇒ Object
- #RuleId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(metricid = nil, alarmnotifytype = nil, alarmnotifyperiod = nil, calctype = nil, calcvalue = nil, calcperiod = nil, continueperiod = nil, ruleid = nil) ⇒ CreatePolicyGroupCondition
constructor
A new instance of CreatePolicyGroupCondition.
Constructor Details
#initialize(metricid = nil, alarmnotifytype = nil, alarmnotifyperiod = nil, calctype = nil, calcvalue = nil, calcperiod = nil, continueperiod = nil, ruleid = nil) ⇒ CreatePolicyGroupCondition
Returns a new instance of CreatePolicyGroupCondition.
2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 |
# File 'lib/v20180724/models.rb', line 2395 def initialize(metricid=nil, alarmnotifytype=nil, alarmnotifyperiod=nil, calctype=nil, calcvalue=nil, calcperiod=nil, continueperiod=nil, ruleid=nil) @MetricId = metricid @AlarmNotifyType = alarmnotifytype @AlarmNotifyPeriod = alarmnotifyperiod @CalcType = calctype @CalcValue = calcvalue @CalcPeriod = calcperiod @ContinuePeriod = continueperiod @RuleId = ruleid end |
Instance Attribute Details
#AlarmNotifyPeriod ⇒ Object
2393 2394 2395 |
# File 'lib/v20180724/models.rb', line 2393 def AlarmNotifyPeriod @AlarmNotifyPeriod end |
#AlarmNotifyType ⇒ Object
2393 2394 2395 |
# File 'lib/v20180724/models.rb', line 2393 def AlarmNotifyType @AlarmNotifyType end |
#CalcPeriod ⇒ Object
2393 2394 2395 |
# File 'lib/v20180724/models.rb', line 2393 def CalcPeriod @CalcPeriod end |
#CalcType ⇒ Object
2393 2394 2395 |
# File 'lib/v20180724/models.rb', line 2393 def CalcType @CalcType end |
#CalcValue ⇒ Object
2393 2394 2395 |
# File 'lib/v20180724/models.rb', line 2393 def CalcValue @CalcValue end |
#ContinuePeriod ⇒ Object
2393 2394 2395 |
# File 'lib/v20180724/models.rb', line 2393 def ContinuePeriod @ContinuePeriod end |
#MetricId ⇒ Object
2393 2394 2395 |
# File 'lib/v20180724/models.rb', line 2393 def MetricId @MetricId end |
#RuleId ⇒ Object
2393 2394 2395 |
# File 'lib/v20180724/models.rb', line 2393 def RuleId @RuleId end |
Instance Method Details
#deserialize(params) ⇒ Object
2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 |
# File 'lib/v20180724/models.rb', line 2406 def deserialize(params) @MetricId = params['MetricId'] @AlarmNotifyType = params['AlarmNotifyType'] @AlarmNotifyPeriod = params['AlarmNotifyPeriod'] @CalcType = params['CalcType'] @CalcValue = params['CalcValue'] @CalcPeriod = params['CalcPeriod'] @ContinuePeriod = params['ContinuePeriod'] @RuleId = params['RuleId'] end |